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

ARM: dts: BCM53573: Describe BCM53125 switch ports in the main DTS

BCM53125 always has 5 ports with GPHYs (for LAN/WAN ports) and 2 IMP
ports. It seems the best place to describe that in the main .dtsi.
Device specific bits can go to device .dts files. This will help
avoiding some code duplication.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Link: https://lore.kernel.org/r/20230723195416.7831-2-zajec5@gmail.com
Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com>

authored by

Rafał Miłecki and committed by
Florian Fainelli
8d6b61ec 7141209d

+25 -8
-7
arch/arm/boot/dts/broadcom/bcm47189-tenda-ac9.dts
··· 111 111 112 112 ports { 113 113 port@0 { 114 - reg = <0>; 115 114 label = "wan"; 116 115 }; 117 116 118 117 port@1 { 119 - reg = <1>; 120 118 label = "lan1"; 121 119 }; 122 120 123 121 port@2 { 124 - reg = <2>; 125 122 label = "lan2"; 126 123 }; 127 124 128 125 port@3 { 129 - reg = <3>; 130 126 label = "lan3"; 131 127 }; 132 128 133 129 port@4 { 134 - reg = <4>; 135 130 label = "lan4"; 136 131 }; 137 132 138 133 port@8 { 139 - reg = <8>; 140 134 label = "cpu"; 141 - ethernet = <&gmac0>; 142 135 }; 143 136 }; 144 137 };
+25 -1
arch/arm/boot/dts/broadcom/bcm53573.dtsi
··· 192 192 193 193 status = "disabled"; 194 194 195 - /* ports are defined in board DTS */ 196 195 ports { 197 196 #address-cells = <1>; 198 197 #size-cells = <0>; 198 + 199 + port@0 { 200 + reg = <0>; 201 + }; 202 + 203 + port@1 { 204 + reg = <1>; 205 + }; 206 + 207 + port@2 { 208 + reg = <2>; 209 + }; 210 + 211 + port@3 { 212 + reg = <3>; 213 + }; 214 + 215 + port@4 { 216 + reg = <4>; 217 + }; 218 + 219 + port@8 { 220 + reg = <8>; 221 + ethernet = <&gmac0>; 222 + }; 199 223 }; 200 224 }; 201 225 };