From 30644bc579e771e4b6dcc165ca966124e0259e1e Mon Sep 17 00:00:00 2001 From: DENG Qingfang Date: Wed, 18 Mar 2020 23:38:58 +0800 Subject: ramips: mt7621: update dts/defconfig for DSA update dts and network/LED configuration for DSA driver. sysupgrade from images prior to this commit with config preserved will cause broken ethernet setup. Signed-off-by: DENG Qingfang Acked-by: Jo-Philipp Wich [split commit] Signed-off-by: Chuanhong Guo --- .../linux/ramips/dts/mt7621_wevo_w2914ns-v2.dtsi | 35 +++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) (limited to 'target/linux/ramips/dts/mt7621_wevo_w2914ns-v2.dtsi') diff --git a/target/linux/ramips/dts/mt7621_wevo_w2914ns-v2.dtsi b/target/linux/ramips/dts/mt7621_wevo_w2914ns-v2.dtsi index d519961424..9592363260 100644 --- a/target/linux/ramips/dts/mt7621_wevo_w2914ns-v2.dtsi +++ b/target/linux/ramips/dts/mt7621_wevo_w2914ns-v2.dtsi @@ -4,6 +4,10 @@ #include / { + aliases { + label-mac-device = &wan; + }; + chosen { bootargs = "console=ttyS0,57600"; }; @@ -97,10 +101,39 @@ }; }; -ðernet { +&gmac0 { mtd-mac-address = <&factory 0xe000>; }; +&switch0 { + ports { + port@0 { + status = "okay"; + label = "lan4"; + }; + + port@1 { + status = "okay"; + label = "lan3"; + }; + + port@2 { + status = "okay"; + label = "lan2"; + }; + + port@3 { + status = "okay"; + label = "lan1"; + }; + wan: port@4 { + status = "okay"; + label = "wan"; + mtd-mac-address = <&factory 0x2e>; + }; + }; +}; + &state_default { gpio { groups = "wdt", "rgmii2"; -- cgit v1.2.3