OSDN Git Service

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)
commitff5f87cb6a75dbf6d30668d2464e46249dd5c47f
tree11082cdf9a1455b4b01e69b660ff9ac794b96754
parent55c174e5c05f93b676c595b927bf74c32274356c
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