Skip to content

Commit 341a670

Browse files
bebarinoolofj
authored andcommitted
ARM64: dts: vexpress: Use assigned-clock-parents for sp810
The sp810 clk driver is calling the clk consumer APIs from clk_prepare ops to change the parent to a 1 MHz fixed rate clock for each of the clocks that the driver provides. Use assigned-clock-parents for this instead of doing it in the driver to avoid using the consumer API in provider code. This also allows us to remove the usage of clk provider APIs that take a struct clk as an argument from the sp810 driver. Cc: Pawel Moll <[email protected]> Cc: Linus Walleij <[email protected]> Tested-by: Sudeep Holla <[email protected]> Signed-off-by: Stephen Boyd <[email protected]> Signed-off-by: Olof Johansson <[email protected]>
1 parent 509b642 commit 341a670

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

arch/arm64/boot/dts/arm/juno-motherboard.dtsi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,8 @@
136136
clock-names = "refclk", "timclk", "apb_pclk";
137137
#clock-cells = <1>;
138138
clock-output-names = "timerclken0", "timerclken1", "timerclken2", "timerclken3";
139+
assigned-clocks = <&v2m_sysctl 0>, <&v2m_sysctl 1>, <&v2m_sysctl 3>, <&v2m_sysctl 3>;
140+
assigned-clock-parents = <&v2m_refclk1mhz>, <&v2m_refclk1mhz>, <&v2m_refclk1mhz>, <&v2m_refclk1mhz>;
139141
};
140142

141143
apbregs@010000 {

arch/arm64/boot/dts/arm/rtsm_ve-motherboard.dtsi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@
7474
clock-names = "refclk", "timclk", "apb_pclk";
7575
#clock-cells = <1>;
7676
clock-output-names = "timerclken0", "timerclken1", "timerclken2", "timerclken3";
77+
assigned-clocks = <&v2m_sysctl 0>, <&v2m_sysctl 1>, <&v2m_sysctl 3>, <&v2m_sysctl 3>;
78+
assigned-clock-parents = <&v2m_refclk1mhz>, <&v2m_refclk1mhz>, <&v2m_refclk1mhz>, <&v2m_refclk1mhz>;
7779
};
7880

7981
aaci@040000 {

0 commit comments

Comments
 (0)