ralink: fix wan port on whr-1166
Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 43171
This commit is contained in:
parent
6d1d02eefb
commit
cc142739f2
2 changed files with 22 additions and 4 deletions
|
@ -119,13 +119,18 @@ ramips_setup_interfaces()
|
||||||
mzk-750dhp | \
|
mzk-750dhp | \
|
||||||
whr-300hp2 | \
|
whr-300hp2 | \
|
||||||
whr-600d | \
|
whr-600d | \
|
||||||
whr-1166d | \
|
|
||||||
wt1520)
|
wt1520)
|
||||||
ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
|
ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
|
||||||
ucidef_add_switch "switch0" "1" "1"
|
ucidef_add_switch "switch0" "1" "1"
|
||||||
ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 6t"
|
ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 6t"
|
||||||
ucidef_add_switch_vlan "switch0" "2" "4 6t"
|
ucidef_add_switch_vlan "switch0" "2" "4 6t"
|
||||||
;;
|
;;
|
||||||
|
whr-1166d)
|
||||||
|
ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
|
||||||
|
ucidef_add_switch "switch0" "1" "1"
|
||||||
|
ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 6t"
|
||||||
|
ucidef_add_switch_vlan "switch0" "2" "5 6t"
|
||||||
|
;;
|
||||||
|
|
||||||
awm002-evb | \
|
awm002-evb | \
|
||||||
awm003-evb | \
|
awm003-evb | \
|
||||||
|
|
|
@ -56,7 +56,7 @@
|
||||||
pinctrl {
|
pinctrl {
|
||||||
state_default: pinctrl0 {
|
state_default: pinctrl0 {
|
||||||
gpio {
|
gpio {
|
||||||
ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "nd_sd";
|
ralink,group = "i2c", "uartf", "rgmii1", "wled", "nd_sd";
|
||||||
ralink,function = "gpio";
|
ralink,function = "gpio";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -64,9 +64,22 @@
|
||||||
|
|
||||||
ethernet@10100000 {
|
ethernet@10100000 {
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
pinctrl-0 = <&ephy_pins>;
|
pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
|
||||||
|
|
||||||
ralink,port-map = "llllw";
|
port@5 {
|
||||||
|
status = "okay";
|
||||||
|
phy-handle = <&phy5>;
|
||||||
|
phy-mode = "rgmii";
|
||||||
|
};
|
||||||
|
|
||||||
|
mdio-bus {
|
||||||
|
status = "okay";
|
||||||
|
|
||||||
|
phy5: ethernet-phy@5 {
|
||||||
|
reg = <5>;
|
||||||
|
phy-mode = "rgmii";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
gsw@10110000 {
|
gsw@10110000 {
|
||||||
|
|
Loading…
Reference in a new issue