aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorYanase Yuki <dev@zpc.sakura.ne.jp>2023-05-31 16:41:59 +0900
committerChristian Lamparter <chunkeey@gmail.com>2023-06-08 15:33:14 +0200
commit0c15f45fa71feb4eb32f7961446df286cdfc319b (patch)
treed21186d3870b0cc128498de1dfd603be59fd34f2 /target
parentea11b6ea03dff0abca0e4c65265928d86105f6c9 (diff)
downloadupstream-0c15f45fa71feb4eb32f7961446df286cdfc319b.tar.gz
upstream-0c15f45fa71feb4eb32f7961446df286cdfc319b.tar.bz2
upstream-0c15f45fa71feb4eb32f7961446df286cdfc319b.zip
ipq40xx: convert Buffalo WTR-M2133HP to DSA
This commit convert WTR-M2133HP to DSA setup. Signed-off-by: Yanase Yuki <dev@zpc.sakura.ne.jp> (cherry picked from commit edb3a4162c0763ecc9d5e7660700a68a25bf28e3)
Diffstat (limited to 'target')
-rw-r--r--target/linux/ipq40xx/base-files/etc/board.d/02_network1
-rw-r--r--target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-wtr-m2133hp.dts29
-rw-r--r--target/linux/ipq40xx/image/generic.mk3
3 files changed, 31 insertions, 2 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 d6b19c981e..b131d0d618 100644
--- a/target/linux/ipq40xx/base-files/etc/board.d/02_network
+++ b/target/linux/ipq40xx/base-files/etc/board.d/02_network
@@ -82,6 +82,7 @@ ipq40xx_setup_interfaces()
ucidef_set_interface_lan "sw-eth1 sw-eth2"
;;
aruba,ap-303h|\
+ buffalo,wtr-m2133hp|\
ezviz,cs-w3-wd1200g-eup|\
netgear,rbr50|\
netgear,rbs50|\
diff --git a/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-wtr-m2133hp.dts b/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-wtr-m2133hp.dts
index f1d58ccba9..3260de23bd 100644
--- a/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-wtr-m2133hp.dts
+++ b/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-wtr-m2133hp.dts
@@ -417,6 +417,35 @@
qcom,ath10k-calibration-variant = "Buffalo-WTR-M2133HP";
};
+&switch {
+ status = "okay";
+};
+
+&swport2 {
+ status = "okay";
+ label = "lan3";
+};
+
+&swport3 {
+ status = "okay";
+ label = "lan2";
+};
+
+&swport4 {
+ status = "okay";
+ label = "lan1";
+};
+
+&swport5 {
+ status = "okay";
+};
+
+&gmac {
+ status = "okay";
+ nvmem-cell-names = "mac-address";
+ nvmem-cells = <&macaddr_orgdata_20>;
+};
+
&mdio {
status = "okay";
pinctrl-0 = <&mdio_pins>;
diff --git a/target/linux/ipq40xx/image/generic.mk b/target/linux/ipq40xx/image/generic.mk
index 7c7a4acc5c..59d4f082ff 100644
--- a/target/linux/ipq40xx/image/generic.mk
+++ b/target/linux/ipq40xx/image/generic.mk
@@ -305,8 +305,7 @@ define Device/buffalo_wtr-m2133hp
BLOCKSIZE := 128k
PAGESIZE := 2048
endef
-# Missing DSA Setup
-#TARGET_DEVICES += buffalo_wtr-m2133hp
+TARGET_DEVICES += buffalo_wtr-m2133hp
define Device/cellc_rtl30vw
KERNEL_SUFFIX := -zImage.itb