Created
April 30, 2022 19:08
-
-
Save robimarko/238b08ccf977f2e510e8fc10eb7b0f89 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 4e5408c87eca5fb0446ffedaa4bbd303080f3d5a Mon Sep 17 00:00:00 2001 | |
From: Robert Marko <robert.marko@sartura.hr> | |
Date: Sat, 30 Apr 2022 20:51:43 +0200 | |
Subject: [PATCH] ipq40xx: convert GL-B2200 to DSA | |
Signed-off-by: Robert Marko <robert.marko@sartura.hr> | |
--- | |
.../ipq40xx/base-files/etc/board.d/02_network | 8 ++----- | |
.../arm/boot/dts/qcom-ipq4019-gl-b2200.dts | 24 +++++++++++++++++++ | |
2 files changed, 26 insertions(+), 6 deletions(-) | |
diff --git a/target/linux/ipq40xx/base-files/etc/board.d/02_network b/target/linux/ipq40xx/base-files/etc/board.d/02_network | |
index 848ccab25d..8af29d7d16 100644 | |
--- a/target/linux/ipq40xx/base-files/etc/board.d/02_network | |
+++ b/target/linux/ipq40xx/base-files/etc/board.d/02_network | |
@@ -21,7 +21,8 @@ ipq40xx_setup_interfaces() | |
ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" "wan" | |
;; | |
8dev,jalapeno|\ | |
- alfa-network,ap120c-ac) | |
+ alfa-network,ap120c-ac|\ | |
+ glinet,gl-b2200) | |
ucidef_set_interfaces_lan_wan "lan" "wan" | |
;; | |
aruba,ap-303|\ | |
@@ -125,11 +126,6 @@ ipq40xx_setup_interfaces() | |
ucidef_add_switch "switch0" \ | |
"0u@eth0" "3:lan" "4:lan" | |
;; | |
- glinet,gl-b2200) | |
- ucidef_set_interfaces_lan_wan "eth0" "eth1" | |
- ucidef_add_switch "switch0" \ | |
- "0u@eth0" "1:lan" "2:lan" "3:lan" "5:lan" "0u@eth1" "4:wan" | |
- ;; | |
mobipromo,cm520-79f) | |
ucidef_add_switch "switch0" \ | |
"0u@eth0" "3:lan:2" "4:lan:1" | |
diff --git a/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-gl-b2200.dts b/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-gl-b2200.dts | |
index 6fdc361ee7..e17609ff6f 100644 | |
--- a/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-gl-b2200.dts | |
+++ b/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-gl-b2200.dts | |
@@ -18,6 +18,10 @@ | |
bootargs-append = " root=/dev/mmcblk0p2 rw rootwait clk_ignore_unused"; | |
}; | |
+ aliases { | |
+ ethernet1 = &swport4; | |
+ }; | |
+ | |
soc { | |
rng@22000 { | |
status = "okay"; | |
@@ -346,6 +350,26 @@ | |
}; | |
}; | |
+&gmac { | |
+ status = "okay"; | |
+}; | |
+ | |
+&switch { | |
+ status = "okay"; | |
+}; | |
+ | |
+&swport4 { | |
+ status = "okay"; | |
+ | |
+ label = "wan"; | |
+}; | |
+ | |
+&swport5 { | |
+ status = "okay"; | |
+ | |
+ label = "lan"; | |
+}; | |
+ | |
&wifi0 { | |
status = "okay"; | |
nvmem-cell-names = "pre-calibration"; | |
-- | |
2.35.1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment