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

ARM: dts: exynos: move exynos-bus nodes out of soc in Exynos5420

The soc node is supposed to have only device nodes with MMIO addresses,
as reported by dtc W=1:

arch/arm/boot/dts/exynos5420.dtsi:1070.24-1075.5:
Warning (simple_bus_reg): /soc/bus-wcore: missing or empty reg/ranges property

and dtbs_check:

exynos5420-arndale-octa.dtb: soc: bus-wcore:
{'compatible': ['samsung,exynos-bus'], 'clocks': [[2, 769]], 'clock-names': ['bus'], 'status': ['disabled']} should not be valid under {'type': 'object'}

Move the bus nodes and their OPP tables out of SoC to fix this.
Re-order them alphabetically while moving and put some of the OPP tables
in device nodes (if they are not shared).

Link: https://lore.kernel.org/r/20230125094513.155063-2-krzysztof.kozlowski@linaro.org
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

+111 -112
+111 -112
arch/arm/boot/dts/exynos5420.dtsi
··· 37 37 spi2 = &spi_2; 38 38 }; 39 39 40 + bus_disp1: bus-disp1 { 41 + compatible = "samsung,exynos-bus"; 42 + clocks = <&clock CLK_DOUT_ACLK400_DISP1>; 43 + clock-names = "bus"; 44 + status = "disabled"; 45 + }; 46 + 47 + bus_disp1_fimd: bus-disp1-fimd { 48 + compatible = "samsung,exynos-bus"; 49 + clocks = <&clock CLK_DOUT_ACLK300_DISP1>; 50 + clock-names = "bus"; 51 + status = "disabled"; 52 + }; 53 + 54 + bus_fsys: bus-fsys { 55 + compatible = "samsung,exynos-bus"; 56 + clocks = <&clock CLK_DOUT_ACLK200_FSYS>; 57 + clock-names = "bus"; 58 + status = "disabled"; 59 + }; 60 + 61 + bus_fsys2: bus-fsys2 { 62 + compatible = "samsung,exynos-bus"; 63 + clocks = <&clock CLK_DOUT_ACLK200_FSYS2>; 64 + clock-names = "bus"; 65 + status = "disabled"; 66 + }; 67 + 68 + bus_fsys_apb: bus-fsys-apb { 69 + compatible = "samsung,exynos-bus"; 70 + clocks = <&clock CLK_DOUT_PCLK200_FSYS>; 71 + clock-names = "bus"; 72 + status = "disabled"; 73 + }; 74 + 75 + bus_g2d: bus-g2d { 76 + compatible = "samsung,exynos-bus"; 77 + clocks = <&clock CLK_DOUT_ACLK333_G2D>; 78 + clock-names = "bus"; 79 + status = "disabled"; 80 + }; 81 + 82 + bus_g2d_acp: bus-g2d-acp { 83 + compatible = "samsung,exynos-bus"; 84 + clocks = <&clock CLK_DOUT_ACLK266_G2D>; 85 + clock-names = "bus"; 86 + status = "disabled"; 87 + }; 88 + bus_gen: bus-gen { 89 + compatible = "samsung,exynos-bus"; 90 + clocks = <&clock CLK_DOUT_ACLK266>; 91 + clock-names = "bus"; 92 + status = "disabled"; 93 + }; 94 + 95 + bus_gscl_scaler: bus-gscl-scaler { 96 + compatible = "samsung,exynos-bus"; 97 + clocks = <&clock CLK_DOUT_ACLK300_GSCL>; 98 + clock-names = "bus"; 99 + status = "disabled"; 100 + }; 101 + 102 + bus_jpeg: bus-jpeg { 103 + compatible = "samsung,exynos-bus"; 104 + clocks = <&clock CLK_DOUT_ACLK300_JPEG>; 105 + clock-names = "bus"; 106 + status = "disabled"; 107 + }; 108 + 109 + bus_jpeg_apb: bus-jpeg-apb { 110 + compatible = "samsung,exynos-bus"; 111 + clocks = <&clock CLK_DOUT_ACLK166>; 112 + clock-names = "bus"; 113 + status = "disabled"; 114 + }; 115 + 116 + bus_mfc: bus-mfc { 117 + compatible = "samsung,exynos-bus"; 118 + clocks = <&clock CLK_DOUT_ACLK333>; 119 + clock-names = "bus"; 120 + status = "disabled"; 121 + }; 122 + 123 + bus_mscl: bus-mscl { 124 + compatible = "samsung,exynos-bus"; 125 + clocks = <&clock CLK_DOUT_ACLK400_MSCL>; 126 + clock-names = "bus"; 127 + status = "disabled"; 128 + }; 129 + 130 + bus_noc: bus-noc { 131 + compatible = "samsung,exynos-bus"; 132 + clocks = <&clock CLK_DOUT_ACLK100_NOC>; 133 + clock-names = "bus"; 134 + status = "disabled"; 135 + }; 136 + 137 + bus_peri: bus-peri { 138 + compatible = "samsung,exynos-bus"; 139 + clocks = <&clock CLK_DOUT_ACLK66>; 140 + clock-names = "bus"; 141 + status = "disabled"; 142 + }; 143 + 144 + bus_wcore: bus-wcore { 145 + compatible = "samsung,exynos-bus"; 146 + clocks = <&clock CLK_DOUT_ACLK400_WCORE>; 147 + clock-names = "bus"; 148 + status = "disabled"; 149 + }; 150 + 40 151 /* 41 152 * The 'cpus' node is not present here but instead it is provided 42 153 * by exynos5420-cpus.dtsi or exynos5422-cpus.dtsi. ··· 1176 1065 clocks = <&clock CLK_SMMU_FIMD1M1>, <&clock CLK_FIMD1>; 1177 1066 power-domains = <&disp_pd>; 1178 1067 #iommu-cells = <0>; 1179 - }; 1180 - 1181 - bus_wcore: bus-wcore { 1182 - compatible = "samsung,exynos-bus"; 1183 - clocks = <&clock CLK_DOUT_ACLK400_WCORE>; 1184 - clock-names = "bus"; 1185 - status = "disabled"; 1186 - }; 1187 - 1188 - bus_noc: bus-noc { 1189 - compatible = "samsung,exynos-bus"; 1190 - clocks = <&clock CLK_DOUT_ACLK100_NOC>; 1191 - clock-names = "bus"; 1192 - status = "disabled"; 1193 - }; 1194 - 1195 - bus_fsys_apb: bus-fsys-apb { 1196 - compatible = "samsung,exynos-bus"; 1197 - clocks = <&clock CLK_DOUT_PCLK200_FSYS>; 1198 - clock-names = "bus"; 1199 - status = "disabled"; 1200 - }; 1201 - 1202 - bus_fsys: bus-fsys { 1203 - compatible = "samsung,exynos-bus"; 1204 - clocks = <&clock CLK_DOUT_ACLK200_FSYS>; 1205 - clock-names = "bus"; 1206 - status = "disabled"; 1207 - }; 1208 - 1209 - bus_fsys2: bus-fsys2 { 1210 - compatible = "samsung,exynos-bus"; 1211 - clocks = <&clock CLK_DOUT_ACLK200_FSYS2>; 1212 - clock-names = "bus"; 1213 - status = "disabled"; 1214 - }; 1215 - 1216 - bus_mfc: bus-mfc { 1217 - compatible = "samsung,exynos-bus"; 1218 - clocks = <&clock CLK_DOUT_ACLK333>; 1219 - clock-names = "bus"; 1220 - status = "disabled"; 1221 - }; 1222 - 1223 - bus_gen: bus-gen { 1224 - compatible = "samsung,exynos-bus"; 1225 - clocks = <&clock CLK_DOUT_ACLK266>; 1226 - clock-names = "bus"; 1227 - status = "disabled"; 1228 - }; 1229 - 1230 - bus_peri: bus-peri { 1231 - compatible = "samsung,exynos-bus"; 1232 - clocks = <&clock CLK_DOUT_ACLK66>; 1233 - clock-names = "bus"; 1234 - status = "disabled"; 1235 - }; 1236 - 1237 - bus_g2d: bus-g2d { 1238 - compatible = "samsung,exynos-bus"; 1239 - clocks = <&clock CLK_DOUT_ACLK333_G2D>; 1240 - clock-names = "bus"; 1241 - status = "disabled"; 1242 - }; 1243 - 1244 - bus_g2d_acp: bus-g2d-acp { 1245 - compatible = "samsung,exynos-bus"; 1246 - clocks = <&clock CLK_DOUT_ACLK266_G2D>; 1247 - clock-names = "bus"; 1248 - status = "disabled"; 1249 - }; 1250 - 1251 - bus_jpeg: bus-jpeg { 1252 - compatible = "samsung,exynos-bus"; 1253 - clocks = <&clock CLK_DOUT_ACLK300_JPEG>; 1254 - clock-names = "bus"; 1255 - status = "disabled"; 1256 - }; 1257 - 1258 - bus_jpeg_apb: bus-jpeg-apb { 1259 - compatible = "samsung,exynos-bus"; 1260 - clocks = <&clock CLK_DOUT_ACLK166>; 1261 - clock-names = "bus"; 1262 - status = "disabled"; 1263 - }; 1264 - 1265 - bus_disp1_fimd: bus-disp1-fimd { 1266 - compatible = "samsung,exynos-bus"; 1267 - clocks = <&clock CLK_DOUT_ACLK300_DISP1>; 1268 - clock-names = "bus"; 1269 - status = "disabled"; 1270 - }; 1271 - 1272 - bus_disp1: bus-disp1 { 1273 - compatible = "samsung,exynos-bus"; 1274 - clocks = <&clock CLK_DOUT_ACLK400_DISP1>; 1275 - clock-names = "bus"; 1276 - status = "disabled"; 1277 - }; 1278 - 1279 - bus_gscl_scaler: bus-gscl-scaler { 1280 - compatible = "samsung,exynos-bus"; 1281 - clocks = <&clock CLK_DOUT_ACLK300_GSCL>; 1282 - clock-names = "bus"; 1283 - status = "disabled"; 1284 - }; 1285 - 1286 - bus_mscl: bus-mscl { 1287 - compatible = "samsung,exynos-bus"; 1288 - clocks = <&clock CLK_DOUT_ACLK400_MSCL>; 1289 - clock-names = "bus"; 1290 - status = "disabled"; 1291 1068 }; 1292 1069 }; 1293 1070