Skip to content

Commit 8d6b61e

Browse files
Rafał Miłeckiffainelli
authored andcommitted
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>
1 parent 7141209 commit 8d6b61e

File tree

2 files changed

+25
-8
lines changed

2 files changed

+25
-8
lines changed

arch/arm/boot/dts/broadcom/bcm47189-tenda-ac9.dts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -111,34 +111,27 @@
111111

112112
ports {
113113
port@0 {
114-
reg = <0>;
115114
label = "wan";
116115
};
117116

118117
port@1 {
119-
reg = <1>;
120118
label = "lan1";
121119
};
122120

123121
port@2 {
124-
reg = <2>;
125122
label = "lan2";
126123
};
127124

128125
port@3 {
129-
reg = <3>;
130126
label = "lan3";
131127
};
132128

133129
port@4 {
134-
reg = <4>;
135130
label = "lan4";
136131
};
137132

138133
port@8 {
139-
reg = <8>;
140134
label = "cpu";
141-
ethernet = <&gmac0>;
142135
};
143136
};
144137
};

arch/arm/boot/dts/broadcom/bcm53573.dtsi

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,10 +192,34 @@
192192

193193
status = "disabled";
194194

195-
/* ports are defined in board DTS */
196195
ports {
197196
#address-cells = <1>;
198197
#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+
};
199223
};
200224
};
201225
};

0 commit comments

Comments
 (0)