From: Michal Wilczynski Date: Wed, 22 May 2024 12:46:42 +0000 (+0200) Subject: riscv: dts: thead: Move osc_32k and rc_24m clocks under clock parent X-Git-Tag: accepted/tizen/unified/x/20240530.042952~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7582f5af9a4efb0501b56705725c52aaf6c076a2;p=platform%2Fkernel%2Flinux-thead.git riscv: dts: thead: Move osc_32k and rc_24m clocks under clock parent Both osc_32k and rc_24m clocks are under soc parent, while they should be under 'clocks' parent, per vendor kernel. Move them to appropriate place. Change-Id: I3f65c2697da4f6f0403482f70042daf99680a48b Signed-off-by: Michal Wilczynski --- diff --git a/arch/riscv/boot/dts/thead/th1520.dtsi b/arch/riscv/boot/dts/thead/th1520.dtsi index af5eb6418871..8c96f8994ace 100644 --- a/arch/riscv/boot/dts/thead/th1520.dtsi +++ b/arch/riscv/boot/dts/thead/th1520.dtsi @@ -130,20 +130,6 @@ #clock-cells = <0>; }; - osc_32k: 32k-oscillator { - compatible = "fixed-clock"; - clock-output-names = "osc_32k"; - #clock-cells = <0>; - }; - - rc_24m: clock-rc-24m@13 { - compatible = "fixed-clock"; - reg = <13>; - #clock-cells = <0>; - clock-frequency = <24000000>; - clock-output-names = "rc_24m"; - }; - apb_clk: apb-clk-clock { compatible = "fixed-clock"; clock-output-names = "apb_clk"; @@ -184,6 +170,29 @@ riscv,ndev = <240>; }; + clocks { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <0>; + + osc_32k: clock-osc-32k@11 { + compatible = "fixed-clock"; + reg = <11>; + #clock-cells = <0>; + clock-frequency = <32768>; + clock-output-names = "osc_32k"; + }; + + rc_24m: clock-rc-24m@13 { + compatible = "fixed-clock"; + reg = <13>; + #clock-cells = <0>; + clock-frequency = <24000000>; + clock-output-names = "rc_24m"; + }; + + }; + clint: timer@ffdc000000 { compatible = "thead,th1520-clint", "thead,c900-clint"; reg = <0xff 0xdc000000 0x0 0x00010000>;