]> git.baikalelectronics.ru Git - kernel.git/commitdiff
powerpc: dts: t1040rdb: fix ports names for Seville Ethernet switch
authorMaxim Kiselev <bigunclemax@gmail.com>
Fri, 21 Jan 2022 09:14:47 +0000 (12:14 +0300)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 2 Feb 2022 09:32:10 +0000 (20:32 +1100)
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: 2f0186b950d9 ("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
arch/powerpc/boot/dts/fsl/t1040rdb-rev-a.dts [new file with mode: 0644]
arch/powerpc/boot/dts/fsl/t1040rdb.dts

diff --git a/arch/powerpc/boot/dts/fsl/t1040rdb-rev-a.dts b/arch/powerpc/boot/dts/fsl/t1040rdb-rev-a.dts
new file mode 100644 (file)
index 0000000..73f8c99
--- /dev/null
@@ -0,0 +1,30 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+/*
+ * T1040RDB-REV-A Device Tree Source
+ *
+ * Copyright 2014 - 2015 Freescale Semiconductor Inc.
+ *
+ */
+
+#include "t1040rdb.dts"
+
+/ {
+       model = "fsl,T1040RDB-REV-A";
+       compatible = "fsl,T1040RDB-REV-A";
+};
+
+&seville_port0 {
+       label = "ETH5";
+};
+
+&seville_port2 {
+       label = "ETH7";
+};
+
+&seville_port4 {
+       label = "ETH9";
+};
+
+&seville_port6 {
+       label = "ETH11";
+};
index af0c8a6f561385ce9fcf9f24a4effccf9df21fe2..b6733e7e65805e47fc52d345040dd190ca0ea2e7 100644 (file)
        managed = "in-band-status";
        phy-handle = <&phy_qsgmii_0>;
        phy-mode = "qsgmii";
-       label = "ETH5";
+       label = "ETH3";
        status = "okay";
 };
 
        managed = "in-band-status";
        phy-handle = <&phy_qsgmii_2>;
        phy-mode = "qsgmii";
-       label = "ETH7";
+       label = "ETH5";
        status = "okay";
 };
 
        managed = "in-band-status";
        phy-handle = <&phy_qsgmii_4>;
        phy-mode = "qsgmii";
-       label = "ETH9";
+       label = "ETH7";
        status = "okay";
 };
 
        managed = "in-band-status";
        phy-handle = <&phy_qsgmii_6>;
        phy-mode = "qsgmii";
-       label = "ETH11";
+       label = "ETH9";
        status = "okay";
 };