Skip to content

Commit c3d60c6

Browse files
paligregkh
authored andcommitted
arm64: dts: marvell: espressobin: Add ethernet switch aliases
commit b64d814 upstream. Espressobin boards have 3 ethernet ports and some of them got assigned more then one MAC address. MAC addresses are stored in U-Boot environment. Since commit a2c7023 ("net: dsa: read mac address from DT for slave device") kernel can use MAC addresses from DT for particular DSA port. Currently Espressobin DTS file contains alias just for ethernet0. This patch defines additional ethernet aliases in Espressobin DTS files, so bootloader can fill correct MAC address for DSA switch ports if more MAC addresses were specified. DT alias ethernet1 is used for wan port, DT aliases ethernet2 and ethernet3 are used for lan ports for both Espressobin revisions (V5 and V7). Fixes: 5253cb8 ("arm64: dts: marvell: espressobin: add ethernet alias") Cc: <stable@vger.kernel.org> # a2c7023: dsa: read mac address Signed-off-by: Pali Rohár <pali@kernel.org> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Reviewed-by: Andre Heider <a.heider@gmail.com> Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com> [pali: Backported Espressobin rev V5 changes to 5.4 and 4.19 versions] Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent b7f7474 commit c3d60c6

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

arch/arm64/boot/dts/marvell/armada-3720-espressobin.dts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121

2222
aliases {
2323
ethernet0 = &eth0;
24+
/* for dsa slave device */
25+
ethernet1 = &switch0port1;
26+
ethernet2 = &switch0port2;
27+
ethernet3 = &switch0port3;
2428
serial0 = &uart0;
2529
serial1 = &uart1;
2630
};
@@ -147,7 +151,7 @@
147151
#address-cells = <1>;
148152
#size-cells = <0>;
149153

150-
port@0 {
154+
switch0port0: port@0 {
151155
reg = <0>;
152156
label = "cpu";
153157
ethernet = <&eth0>;
@@ -158,19 +162,19 @@
158162
};
159163
};
160164

161-
port@1 {
165+
switch0port1: port@1 {
162166
reg = <1>;
163167
label = "wan";
164168
phy-handle = <&switch0phy0>;
165169
};
166170

167-
port@2 {
171+
switch0port2: port@2 {
168172
reg = <2>;
169173
label = "lan0";
170174
phy-handle = <&switch0phy1>;
171175
};
172176

173-
port@3 {
177+
switch0port3: port@3 {
174178
reg = <3>;
175179
label = "lan1";
176180
phy-handle = <&switch0phy2>;

0 commit comments

Comments
 (0)