]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: Introduce tps68470-regulator driver
authorHans de Goede <hdegoede@redhat.com>
Fri, 3 Dec 2021 10:28:48 +0000 (11:28 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 15 Dec 2021 22:16:53 +0000 (22:16 +0000)
commit3c748c6ae720f754381c6fe5ac48165d25301929
treec2015b14dd5cebb34b2d773a0af9c48f0d55291f
parente53c941bdf2b73b357cb71e939bbe8a086aab800
regulator: Introduce tps68470-regulator driver

The TPS68470 PMIC provides Clocks, GPIOs and Regulators. At present in
the kernel the Regulators and Clocks are controlled by an OpRegion
driver designed to work with power control methods defined in ACPI, but
some platforms lack those methods, meaning drivers need to be able to
consume the resources of these chips through the usual frameworks.

This commit adds a driver for the regulators provided by the tps68470,
and is designed to bind to the platform_device registered by the
intel_skl_int3472 module.

This is based on this out of tree driver written by Intel:
https://github.com/intel/linux-intel-lts/blob/4.14/base/drivers/regulator/tps68470-regulator.c
with various cleanups added.

Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20211203102857.44539-6-hdegoede@redhat.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/Kconfig
drivers/regulator/Makefile
drivers/regulator/tps68470-regulator.c [new file with mode: 0644]