clk: twl: add clock driver for TWL6032
authorAndreas Kemnade <andreas@kemnade.info>
Sat, 16 Sep 2023 10:05:14 +0000 (12:05 +0200)
committerStephen Boyd <sboyd@kernel.org>
Thu, 19 Oct 2023 23:40:15 +0000 (16:40 -0700)
commit4eb15b036367006ec7f0b9880993ceb6ae259ec8
treeeb4b1ab51cd72e8b4729c26f9a03a2ee83775ac2
parent0bb80ecc33a8fb5a682236443c1e740d5c917d1d
clk: twl: add clock driver for TWL6032

The TWL6032 has some clock outputs which are controlled like
fixed-voltage regulators, in some drivers for these chips
found in the wild, just the regulator api is abused for controlling
them, so simply use something similar to the regulator functions.
Due to a lack of hardware available for testing, leave out the
TWL6030-specific part of those functions.

Signed-off-by: Andreas Kemnade <andreas@kemnade.info>
Link: https://lore.kernel.org/r/20230916100515.1650336-5-andreas@kemnade.info
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/Kconfig
drivers/clk/Makefile
drivers/clk/clk-twl.c [new file with mode: 0644]