提交 7ba7664d 编写于 作者: M Maxim Kiselev 提交者: Zheng Zengkai

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

stable inclusion
from stable-v5.10.110
commit 8b64c158a07bd64054b53a95db5f3103a9809675
bugzilla: https://gitee.com/openeuler/kernel/issues/I574AL

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=8b64c158a07bd64054b53a95db5f3103a9809675

--------------------------------

[ Upstream commit 5ebb7474 ]

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: e69eb082 ("powerpc: dts: t1040rdb: add ports for Seville Ethernet switch")
Signed-off-by: NMaxim Kiselev <bigunclemax@gmail.com>
Reviewed-by: NMaxim Kochetkov <fido_max@inbox.ru>
Reviewed-by: NVladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220121091447.3412907-1-bigunclemax@gmail.comSigned-off-by: NSasha Levin <sashal@kernel.org>
Signed-off-by: NYu Liao <liaoyu15@huawei.com>
Reviewed-by: NWei Li <liwei391@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 cace83e2
// 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";
};
...@@ -119,7 +119,7 @@ ...@@ -119,7 +119,7 @@
managed = "in-band-status"; managed = "in-band-status";
phy-handle = <&phy_qsgmii_0>; phy-handle = <&phy_qsgmii_0>;
phy-mode = "qsgmii"; phy-mode = "qsgmii";
label = "ETH5"; label = "ETH3";
status = "okay"; status = "okay";
}; };
...@@ -135,7 +135,7 @@ ...@@ -135,7 +135,7 @@
managed = "in-band-status"; managed = "in-band-status";
phy-handle = <&phy_qsgmii_2>; phy-handle = <&phy_qsgmii_2>;
phy-mode = "qsgmii"; phy-mode = "qsgmii";
label = "ETH7"; label = "ETH5";
status = "okay"; status = "okay";
}; };
...@@ -151,7 +151,7 @@ ...@@ -151,7 +151,7 @@
managed = "in-band-status"; managed = "in-band-status";
phy-handle = <&phy_qsgmii_4>; phy-handle = <&phy_qsgmii_4>;
phy-mode = "qsgmii"; phy-mode = "qsgmii";
label = "ETH9"; label = "ETH7";
status = "okay"; status = "okay";
}; };
...@@ -167,7 +167,7 @@ ...@@ -167,7 +167,7 @@
managed = "in-band-status"; managed = "in-band-status";
phy-handle = <&phy_qsgmii_6>; phy-handle = <&phy_qsgmii_6>;
phy-mode = "qsgmii"; phy-mode = "qsgmii";
label = "ETH11"; label = "ETH9";
status = "okay"; status = "okay";
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册