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 stih407-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
97cdb331 e783362e

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