Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: sti: ensure unique unit-address in stih418-clock

Move quadfs and a9-mux clocks nodes into clockgen nodes so
that they can get the reg property from the parent node and
ensure only one node has the address.

Signed-off-by: Alain Volmat <avolmat@me.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>

authored by

Alain Volmat and committed by
Patrice Chotard
c0749d2d 97623670

+48 -53
+48 -53
arch/arm/boot/dts/stih418-clock.dtsi
··· 32 32 */ 33 33 clockgen-a9@92b0000 { 34 34 compatible = "st,clkgen-c32"; 35 - reg = <0x92b0000 0xffff>; 35 + reg = <0x92b0000 0x10000>; 36 36 37 37 clockgen_a9_pll: clockgen-a9-pll { 38 38 #clock-cells = <1>; ··· 40 40 41 41 clocks = <&clk_sysin>; 42 42 }; 43 - }; 44 - 45 - /* 46 - * ARM CPU related clocks. 47 - */ 48 - clk_m_a9: clk-m-a9@92b0000 { 49 - #clock-cells = <0>; 50 - compatible = "st,stih407-clkgen-a9-mux", "st,clkgen-mux"; 51 - reg = <0x92b0000 0x10000>; 52 - 53 - clocks = <&clockgen_a9_pll 0>, 54 - <&clockgen_a9_pll 0>, 55 - <&clk_s_c0_flexgen 13>, 56 - <&clk_m_a9_ext2f_div2>; 57 43 58 44 /* 59 - * ARM Peripheral clock for timers 45 + * ARM CPU related clocks. 60 46 */ 61 - arm_periph_clk: clk-m-a9-periphs { 47 + clk_m_a9: clk-m-a9 { 62 48 #clock-cells = <0>; 63 - compatible = "fixed-factor-clock"; 64 - clocks = <&clk_m_a9>; 65 - clock-div = <2>; 66 - clock-mult = <1>; 49 + compatible = "st,stih407-clkgen-a9-mux", "st,clkgen-mux"; 50 + 51 + clocks = <&clockgen_a9_pll 0>, 52 + <&clockgen_a9_pll 0>, 53 + <&clk_s_c0_flexgen 13>, 54 + <&clk_m_a9_ext2f_div2>; 55 + 56 + /* 57 + * ARM Peripheral clock for timers 58 + */ 59 + arm_periph_clk: clk-m-a9-periphs { 60 + #clock-cells = <0>; 61 + compatible = "fixed-factor-clock"; 62 + clocks = <&clk_m_a9>; 63 + clock-div = <2>; 64 + clock-mult = <1>; 65 + }; 67 66 }; 68 67 }; 69 68 ··· 87 88 }; 88 89 }; 89 90 90 - clk_s_c0_quadfs: clk-s-c0-quadfs@9103000 { 91 - #clock-cells = <1>; 92 - compatible = "st,quadfs-pll"; 93 - reg = <0x9103000 0x1000>; 94 - 95 - clocks = <&clk_sysin>; 96 - }; 97 - 98 91 clk_s_c0: clockgen-c@9103000 { 99 92 compatible = "st,clkgen-c32"; 100 93 reg = <0x9103000 0x1000>; ··· 101 110 clk_s_c0_pll1: clk-s-c0-pll1 { 102 111 #clock-cells = <1>; 103 112 compatible = "st,clkgen-pll1-c0"; 113 + 114 + clocks = <&clk_sysin>; 115 + }; 116 + 117 + clk_s_c0_quadfs: clk-s-c0-quadfs { 118 + #clock-cells = <1>; 119 + compatible = "st,quadfs-pll"; 104 120 105 121 clocks = <&clk_sysin>; 106 122 }; ··· 141 143 }; 142 144 }; 143 145 144 - clk_s_d0_quadfs: clk-s-d0-quadfs@9104000 { 145 - #clock-cells = <1>; 146 - compatible = "st,quadfs-d0"; 147 - reg = <0x9104000 0x1000>; 148 - 149 - clocks = <&clk_sysin>; 150 - }; 151 - 152 146 clockgen-d0@9104000 { 153 147 compatible = "st,clkgen-c32"; 154 148 reg = <0x9104000 0x1000>; 149 + 150 + clk_s_d0_quadfs: clk-s-d0-quadfs { 151 + #clock-cells = <1>; 152 + compatible = "st,quadfs-d0"; 153 + 154 + clocks = <&clk_sysin>; 155 + }; 155 156 156 157 clk_s_d0_flexgen: clk-s-d0-flexgen { 157 158 #clock-cells = <1>; ··· 164 167 }; 165 168 }; 166 169 167 - clk_s_d2_quadfs: clk-s-d2-quadfs@9106000 { 168 - #clock-cells = <1>; 169 - compatible = "st,quadfs-d2"; 170 - reg = <0x9106000 0x1000>; 171 - 172 - clocks = <&clk_sysin>; 173 - }; 174 - 175 170 clockgen-d2@9106000 { 176 171 compatible = "st,clkgen-c32"; 177 172 reg = <0x9106000 0x1000>; 173 + 174 + clk_s_d2_quadfs: clk-s-d2-quadfs { 175 + #clock-cells = <1>; 176 + compatible = "st,quadfs-d2"; 177 + 178 + clocks = <&clk_sysin>; 179 + }; 178 180 179 181 clk_s_d2_flexgen: clk-s-d2-flexgen { 180 182 #clock-cells = <1>; ··· 189 193 }; 190 194 }; 191 195 192 - clk_s_d3_quadfs: clk-s-d3-quadfs@9107000 { 193 - #clock-cells = <1>; 194 - compatible = "st,quadfs-d3"; 195 - reg = <0x9107000 0x1000>; 196 - 197 - clocks = <&clk_sysin>; 198 - }; 199 - 200 196 clockgen-d3@9107000 { 201 197 compatible = "st,clkgen-c32"; 202 198 reg = <0x9107000 0x1000>; 199 + 200 + clk_s_d3_quadfs: clk-s-d3-quadfs { 201 + #clock-cells = <1>; 202 + compatible = "st,quadfs-d3"; 203 + 204 + clocks = <&clk_sysin>; 205 + }; 203 206 204 207 clk_s_d3_flexgen: clk-s-d3-flexgen { 205 208 #clock-cells = <1>;