[PATCH v3 08/22] ARM: dts: BCM5301X: phicomm-k3: specify switch
Rosen Penev
rosenp at gmail.com
Fri Nov 20 16:25:48 PST 2026
bcm-ns.dtsi specifies a default layout that is not correct for the
K3, which has three LAN ports and a WAN port on switch ports 0-3. Port 4
is unused, so disable it. Also allows setting the WAN MAC address
properly.
The port mapping is taken from OpenWrt.
Signed-off-by: Rosen Penev <rosenp at gmail.com>
---
.../boot/dts/broadcom/bcm47094-phicomm-k3.dts | 37 +++++++++++++++++++
1 file changed, 37 insertions(+)
diff --git a/arch/arm/boot/dts/broadcom/bcm47094-phicomm-k3.dts b/arch/arm/boot/dts/broadcom/bcm47094-phicomm-k3.dts
index 5b9250976f13..018faf90fd4d 100644
--- a/arch/arm/boot/dts/broadcom/bcm47094-phicomm-k3.dts
+++ b/arch/arm/boot/dts/broadcom/bcm47094-phicomm-k3.dts
@@ -52,6 +52,43 @@ &gmac2 {
nvmem-cell-names = "mac-address";
};
+&srab {
+ status = "okay";
+
+ ports {
+ port at 0 {
+ label = "lan1";
+ };
+
+ port at 1 {
+ label = "lan2";
+ };
+
+ port at 2 {
+ label = "lan3";
+ };
+
+ port at 3 {
+ label = "wan";
+
+ nvmem-cells = <&et0macaddr 1>;
+ nvmem-cell-names = "mac-address";
+ };
+
+ port at 4 {
+ status = "disabled";
+ };
+
+ port at 5 {
+ status = "disabled";
+ };
+
+ port at 7 {
+ status = "disabled";
+ };
+ };
+};
+
&nandcs {
partitions {
compatible = "fixed-partitions";
--
2.56.1
More information about the linux-arm-kernel
mailing list