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

powerpc: dts: t1040rdb: fix ports names for Seville Ethernet switch

On board rev A, the network interface labels for the switch ports
written on the front panel are different than on rev B and later.

This patch fixes network interface names for the switch ports according
to labels that are written on the front panel of the board rev B.
They start from ETH3 and end at ETH10.

This patch also introduces a separate device tree for rev A.
The main device tree is supposed to cover rev B and later.

Fixes: e69eb0824d8c ("powerpc: dts: t1040rdb: add ports for Seville Ethernet switch")
Signed-off-by: Maxim Kiselev <bigunclemax@gmail.com>
Reviewed-by: Maxim Kochetkov <fido_max@inbox.ru>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220121091447.3412907-1-bigunclemax@gmail.com

authored by

Maxim Kiselev and committed by
Michael Ellerman
5ebb7474 eddaa9a4

+34 -4
+30
arch/powerpc/boot/dts/fsl/t1040rdb-rev-a.dts
··· 1 + // SPDX-License-Identifier: GPL-2.0-or-later 2 + /* 3 + * T1040RDB-REV-A Device Tree Source 4 + * 5 + * Copyright 2014 - 2015 Freescale Semiconductor Inc. 6 + * 7 + */ 8 + 9 + #include "t1040rdb.dts" 10 + 11 + / { 12 + model = "fsl,T1040RDB-REV-A"; 13 + compatible = "fsl,T1040RDB-REV-A"; 14 + }; 15 + 16 + &seville_port0 { 17 + label = "ETH5"; 18 + }; 19 + 20 + &seville_port2 { 21 + label = "ETH7"; 22 + }; 23 + 24 + &seville_port4 { 25 + label = "ETH9"; 26 + }; 27 + 28 + &seville_port6 { 29 + label = "ETH11"; 30 + };
+4 -4
arch/powerpc/boot/dts/fsl/t1040rdb.dts
··· 119 119 managed = "in-band-status"; 120 120 phy-handle = <&phy_qsgmii_0>; 121 121 phy-mode = "qsgmii"; 122 - label = "ETH5"; 122 + label = "ETH3"; 123 123 status = "okay"; 124 124 }; 125 125 ··· 135 135 managed = "in-band-status"; 136 136 phy-handle = <&phy_qsgmii_2>; 137 137 phy-mode = "qsgmii"; 138 - label = "ETH7"; 138 + label = "ETH5"; 139 139 status = "okay"; 140 140 }; 141 141 ··· 151 151 managed = "in-band-status"; 152 152 phy-handle = <&phy_qsgmii_4>; 153 153 phy-mode = "qsgmii"; 154 - label = "ETH9"; 154 + label = "ETH7"; 155 155 status = "okay"; 156 156 }; 157 157 ··· 167 167 managed = "in-band-status"; 168 168 phy-handle = <&phy_qsgmii_6>; 169 169 phy-mode = "qsgmii"; 170 - label = "ETH11"; 170 + label = "ETH9"; 171 171 status = "okay"; 172 172 }; 173 173