aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xtarget/linux/ramips/base-files/etc/board.d/01_leds2
-rw-r--r--target/linux/ramips/dts/DWR-118-A2.dts10
2 files changed, 7 insertions, 5 deletions
diff --git a/target/linux/ramips/base-files/etc/board.d/01_leds b/target/linux/ramips/base-files/etc/board.d/01_leds
index bccf68f8e5..043b814773 100755
--- a/target/linux/ramips/base-files/etc/board.d/01_leds
+++ b/target/linux/ramips/base-files/etc/board.d/01_leds
@@ -149,7 +149,7 @@ dlink,dwr-118-a1)
set_wifi_led "$boardname:green:wlan2g" "wlan1"
;;
dlink,dwr-118-a2)
- ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x0e"
+ ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x1e"
ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x01"
set_wifi_led "$boardname:green:wlan2g" "wlan1"
;;
diff --git a/target/linux/ramips/dts/DWR-118-A2.dts b/target/linux/ramips/dts/DWR-118-A2.dts
index e1d181a874..26b23aa6d1 100644
--- a/target/linux/ramips/dts/DWR-118-A2.dts
+++ b/target/linux/ramips/dts/DWR-118-A2.dts
@@ -157,25 +157,27 @@
&ethernet {
status = "okay";
+ mediatek,portmap = "wllll";
pinctrl-names = "default";
pinctrl-0 = <&rgmii1_pins &mdio_pins>;
port@4 {
status = "okay";
- phy-handle = <&phy4>;
+ phy-handle = <&phy0>;
phy-mode = "rgmii";
};
mdio-bus {
status = "okay";
- phy4: ethernet-phy@4 {
- reg = <4>;
- phy-mode = "rgmii";
+ phy0: ethernet-phy@0 {
+ reg = <0>;
+ phy-mode = "rgmii-rxid";
};
};
};
&gsw {
mediatek,port4 = "gmac";
+ mediatek,ephy-base-address = /bits/ 16 < 2 >;
};