mirror of https://github.com/hak5/openwrt.git
ramips: fix GELAN port in D-Link DWR-118-A2
This patch fix and enable GELAN port in D-LINK DWR-118-A2. Tested-by: Richard Toth <trtk1992@gmail.com> Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>master
parent
391df37829
commit
eeeaf24e28
|
@ -149,7 +149,7 @@ dlink,dwr-118-a1)
|
||||||
set_wifi_led "$boardname:green:wlan2g" "wlan1"
|
set_wifi_led "$boardname:green:wlan2g" "wlan1"
|
||||||
;;
|
;;
|
||||||
dlink,dwr-118-a2)
|
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"
|
ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x01"
|
||||||
set_wifi_led "$boardname:green:wlan2g" "wlan1"
|
set_wifi_led "$boardname:green:wlan2g" "wlan1"
|
||||||
;;
|
;;
|
||||||
|
|
|
@ -157,25 +157,27 @@
|
||||||
|
|
||||||
ðernet {
|
ðernet {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
|
mediatek,portmap = "wllll";
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
pinctrl-0 = <&rgmii1_pins &mdio_pins>;
|
pinctrl-0 = <&rgmii1_pins &mdio_pins>;
|
||||||
|
|
||||||
port@4 {
|
port@4 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
phy-handle = <&phy4>;
|
phy-handle = <&phy0>;
|
||||||
phy-mode = "rgmii";
|
phy-mode = "rgmii";
|
||||||
};
|
};
|
||||||
|
|
||||||
mdio-bus {
|
mdio-bus {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
|
|
||||||
phy4: ethernet-phy@4 {
|
phy0: ethernet-phy@0 {
|
||||||
reg = <4>;
|
reg = <0>;
|
||||||
phy-mode = "rgmii";
|
phy-mode = "rgmii-rxid";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
&gsw {
|
&gsw {
|
||||||
mediatek,port4 = "gmac";
|
mediatek,port4 = "gmac";
|
||||||
|
mediatek,ephy-base-address = /bits/ 16 < 2 >;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue