diff options
author | DENG Qingfang <dengqf6@mail2.sysu.edu.cn> | 2020-03-18 23:38:58 +0800 |
---|---|---|
committer | Chuanhong Guo <gch981213@gmail.com> | 2020-04-04 14:40:44 +0800 |
commit | 30644bc579e771e4b6dcc165ca966124e0259e1e (patch) | |
tree | 1c842dd8090b274b33dd1ccb812c075933ddcc40 /target/linux/ramips/dts/mt7621_xiaomi_mir3p.dts | |
parent | 7bd19dbe99b18c5dfd85a004595df6061e8df8f6 (diff) | |
download | upstream-30644bc579e771e4b6dcc165ca966124e0259e1e.tar.gz upstream-30644bc579e771e4b6dcc165ca966124e0259e1e.tar.bz2 upstream-30644bc579e771e4b6dcc165ca966124e0259e1e.zip |
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 <dengqf6@mail2.sysu.edu.cn>
Acked-by: Jo-Philipp Wich <jo@mein.io>
[split commit]
Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
Diffstat (limited to 'target/linux/ramips/dts/mt7621_xiaomi_mir3p.dts')
-rw-r--r-- | target/linux/ramips/dts/mt7621_xiaomi_mir3p.dts | 35 |
1 files changed, 32 insertions, 3 deletions
diff --git a/target/linux/ramips/dts/mt7621_xiaomi_mir3p.dts b/target/linux/ramips/dts/mt7621_xiaomi_mir3p.dts index 45d7411bd0..8a85c8b48d 100644 --- a/target/linux/ramips/dts/mt7621_xiaomi_mir3p.dts +++ b/target/linux/ramips/dts/mt7621_xiaomi_mir3p.dts @@ -15,6 +15,7 @@ led-failsafe = &led_status_red; led-running = &led_status_blue; led-upgrade = &led_status_yellow; + label-mac-device = &gmac0; }; chosen { @@ -42,21 +43,25 @@ wan_amber { label = "mir3p:amber:wan"; gpios = <&gpio 14 GPIO_ACTIVE_LOW>; + linux,default-trigger = "dsa-0.0:04:1Gbps"; }; lan3_amber { label = "mir3p:amber:lan3"; gpios = <&gpio 13 GPIO_ACTIVE_LOW>; + linux,default-trigger = "dsa-0.0:01:1Gbps"; }; lan2_amber { label = "mir3p:amber:lan2"; gpios = <&gpio 16 GPIO_ACTIVE_LOW>; + linux,default-trigger = "dsa-0.0:02:1Gbps"; }; lan1_amber { label = "mir3p:amber:lan1"; gpios = <&gpio 15 GPIO_ACTIVE_LOW>; + linux,default-trigger = "dsa-0.0:03:1Gbps"; }; }; @@ -171,9 +176,33 @@ }; }; -ðernet { - mtd-mac-address = <&factory 0xe000>; - mediatek,portmap = "llllw"; +&gmac0 { + mtd-mac-address = <&factory 0xe006>; +}; + +&switch0 { + ports { + port@1 { + status = "okay"; + label = "lan3"; + }; + + port@2 { + status = "okay"; + label = "lan2"; + }; + + port@3 { + status = "okay"; + label = "lan1"; + }; + + port@4 { + status = "okay"; + label = "wan"; + mtd-mac-address = <&factory 0xe000>; + }; + }; }; &state_default { |