]> git.dujemihanovic.xyz Git - u-boot.git/commit
clk: microchip: mpfs: support new syscon based devicetree configuration
authorConor Dooley <conor.dooley@microchip.com>
Wed, 23 Oct 2024 10:17:52 +0000 (11:17 +0100)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Tue, 29 Oct 2024 11:58:22 +0000 (19:58 +0800)
commit084367be4d3134a0be46879ba2bf28b377f2c3a5
tree1bbb5913c427e27fd40cebc7bc2a4d1bbd7d4f60
parent8e1acda14ea0ac08a77ea7d3d40ab7255ccbe4c5
clk: microchip: mpfs: support new syscon based devicetree configuration

Why get a devicetree description wrong once when you can get it wrong
twice? The original mistake, which the driver supports was failing to
describe the main PLL that the "cfg" and "periph" clocks parented by.
The second mistake was describing the "cfg" and "periph" clocks a
reg region within the clock controller, rather as two registers within
a syscon region that also contains pinctrl, interrupt muxing controls
and other functions.

Make up for lost time and describe these regions as they should have
been originally, preserving support for the existing two configurations
for the sake of existing systems with firmware-provided devicetrees.

Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
drivers/clk/microchip/Kconfig
drivers/clk/microchip/mpfs_clk.c
drivers/clk/microchip/mpfs_clk.h
drivers/clk/microchip/mpfs_clk_cfg.c
drivers/clk/microchip/mpfs_clk_periph.c