]> git.baikalelectronics.ru Git - kernel.git/commit
clk: Introduce clk-tps68470 driver
authorHans de Goede <hdegoede@redhat.com>
Fri, 3 Dec 2021 10:28:49 +0000 (11:28 +0100)
committerStephen Boyd <sboyd@kernel.org>
Thu, 16 Dec 2021 04:12:07 +0000 (20:12 -0800)
commit45fbb124c1dc68373cc6ba04b5665069047b77c5
tree11082cdf9a1455b4b01e69b660ff9ac794b96754
parenta1ee36c425988ead8f74c4fbb50413dbd4b4cb52
clk: Introduce clk-tps68470 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 clocks 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/clk/clk-tps68470.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-7-hdegoede@redhat.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/Kconfig
drivers/clk/Makefile
drivers/clk/clk-tps68470.c [new file with mode: 0644]
include/linux/mfd/tps68470.h