gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
};
- wan {
+ wan_orange {
label = "dir-810l:orange:wan";
gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
};
+ wan_green {
+ label = "dir-810l:green:wan";
+ gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
+ };
+
power_orange {
label = "dir-810l:orange:power";
gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
&state_default {
gpio {
- groups = "i2c", "uartf";
+ groups = "i2c", "uartf", "ephy";
function = "gpio";
};
};
-
-&gsw {
- pinctrl-names = "default";
- pinctrl-0 = <&ephy_pins>;
-
- mediatek,port4 = "ephy";
-};
ucidef_set_led_netdev "lan" "lan" "$boardname:white:ethernet" eth0.1
set_wifi_led "$boardname:white:wifi"
;;
+dlink,dir-810l|\
+trendnet,tew-810dr)
+ ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x10"
+ ;;
dlink,dwr-116-a1|\
head-weblink,hdrm200|\
ohyeah,oy-0001|\
tplink,re200-v1)
ucidef_set_led_netdev "lan" "lan" "$boardname:green:lan" "eth0"
;;
-trendnet,tew-810dr)
- ucidef_set_led_netdev "wan" "wan" "$boardname:green:wan" "eth0.2"
- ;;
youku,yk1)
set_wifi_led "$boardname:blue:air"
ucidef_set_led_switch "wan" "wan" "$boardname:blue:wan" "switch0" "0x10"