board_config_update
case $board in
-11acnas|\
-all0239-3g|\
-ew1200|\
-hw550-3g|\
-mofi3500-3gn|\
-sap-g3200u3|\
-sk-wb8|\
-w2914nsv2|\
-wf-2881)
- set_usb_led "$boardname:green:usb"
- ;;
-3g150b|\
-3g300m)
- set_usb_led "$boardname:blue:3g"
- ;;
3g-6200n)
set_wifi_led "$boardname:amber:wlan"
- set_usb_led "$boardname:blue:3g"
;;
3g-6200nl|\
wnce2001)
;;
air3gii)
set_wifi_led "$boardname:green:wlan"
- set_usb_led "$boardname:green:mobile"
;;
alfa-network,ac1200rm)
set_wifi_led "$boardname:green:wlan2g" "wlan1"
asl26555-16M)
ucidef_set_led_netdev "eth" "ETH" "asl26555:green:eth" "eth0"
set_wifi_led "asl26555:green:wlan"
- set_usb_led "asl26555:green:3g"
- ;;
-bc2)
- set_usb_led "$boardname:blue:usb"
;;
broadway)
- set_usb_led "$boardname:red:diskmounted"
set_wifi_led "$boardname:red:wps_active"
;;
c108)
c20i)
ucidef_set_led_switch "lan" "lan" "$boardname:blue:lan" "switch0" "0x1e"
ucidef_set_led_switch "wan" "wan" "$boardname:blue:wan" "switch0" "0x01"
- set_usb_led "$boardname:blue:usb" "2-1"
ucidef_set_led_wlan "wlan" "wlan" "$boardname:blue:wlan" "phy0radio"
;;
c50)
ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x1e"
ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x01"
- set_usb_led "$boardname:green:usb"
ucidef_set_led_netdev "wlan2g" "wlan2g" "$boardname:green:wlan2g" wlan1
set_wifi_led "$boardname:green:wlan5g"
;;
;;
cy-swr1100)
ucidef_set_led_default "wps" "WPS" "$boardname:blue:wps" "0"
- set_usb_led "$boardname:blue:usb"
- ;;
-d105)
- set_usb_led "$boardname:green:usb"
;;
d240)
set_wifi_led "$boardname:blue:wifi"
- set_usb_led "$boardname:blue:usb"
;;
dcs-930l-b1)
ucidef_set_led_netdev "wifi" "WiFi" "$boardname:blue:wps"
ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x0e"
ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x01"
set_wifi_led "$boardname:green:wlan2g" "wlan1"
- set_usb_led "$boardname:green:usb"
ucidef_set_led_default "internet" "internet" "$boardname:green:internet" "0"
;;
dlink,dwr-921-c1)
;;
edimax,br-6478ac-v2)
set_wifi_led "$boardname:blue:wlan"
- set_usb_led "$boardname:blue:usb"
;;
ex2700|\
wn3000rpv3)
set_usb_led "$boardname:blue:storage"
set_wifi_led "$boardname:blue:wireless"
;;
-f5d8235-v2)
- set_usb_led "$boardname:blue:storage"
- ;;
fonera20n)
- set_usb_led "$boardname:orange:usb"
set_wifi_led "$boardname:orange:wifi"
;;
gnubee,gb-pc1|\
;;
hg255d)
set_wifi_led "$boardname:green:wlan"
- set_usb_led "$boardname:green:usb"
ucidef_set_led_netdev "internet" "internet" "$boardname:green:internet" "eth0.2"
;;
hiwifi,hc5861b)
;;
kn|\
nbg-419n2)
- set_usb_led "$boardname:green:usb"
set_wifi_led "rt2800pci-phy0::radio"
;;
kn_rc|\
kn_rf|\
kng_rc)
- set_usb_led "$boardname:green:usb"
set_wifi_led "$boardname:green:wifi"
;;
linkits7688)
;;
miniembplug)
set_wifi_led "$boardname:red:wlan"
- set_usb_led "$boardname:green:mobile"
;;
mir3g)
ucidef_set_led_switch "wan-amber" "WAN (amber)" "$boardname:amber:wan" "switch0" "0x02" "0x08"
;;
mr-102n)
set_wifi_led "$boardname:green:wlan"
- set_usb_led "$boardname:green:usb"
;;
mr200)
ucidef_set_led_netdev "lan" "lan" "$boardname:white:lan" "eth0.1"
mzk-ex750np)
set_wifi_led "$boardname:red:wifi"
;;
-na930)
- set_usb_led "$boardname:blue:status"
- ;;
netgear,r6120)
ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x0f"
ucidef_set_led_wlan "wlan2g" "WiFi 2.4GHz" "$boardname:green:wlan2g" "phy0tpt"
ucidef_set_led_wlan "wlan5g" "WiFi 5GHz" "$boardname:green:wlan5g" "phy1tpt"
;;
-nw718)
- set_usb_led "$boardname:amber:usb"
- ;;
oy-0001)
set_wifi_led "$boardname:green:wifi"
;;
-pbr-d1)
- set_usb_led "$boardname:orange:usb"
- ;;
pbr-m1)
ucidef_set_led_netdev "internet" "internet" "$boardname:blue:internet" "eth0.2"
;;
d-team,newifi-d2)
- set_usb_led "$boardname:blue:usb"
ucidef_set_led_switch "internet" "internet" "$boardname:amber:internet" "switch0" "0x10"
ucidef_set_led_netdev "wlan2g" "WiFi 2.4GHz" "$boardname:blue:wlan2g" "wlan0"
ucidef_set_led_netdev "wlan5g" "WiFi 5GHz" "$boardname:blue:wlan5g" "wlan1"
px-4885-4M|\
px-4885-8M)
set_wifi_led "px-4885:orange:wifi"
- set_usb_led "px-4885:blue:storage"
;;
r6220)
ucidef_set_led_netdev "wan" "wan" "$boardname:green:wan" eth0.2
set_wifi_led "$boardname:green:wifi"
- set_usb_led "$boardname:green:usb"
;;
re350-v1)
ucidef_set_led_netdev "wifi2g" "Wifi 2.4G" "$boardname:blue:wifi2G" "wlan0"
;;
rt-ac51u)
set_wifi_led "$boardname:blue:wifi"
- set_usb_led "$boardname:blue:usb" "1-1"
;;
rt-n12p)
ucidef_set_led_netdev "lan" "lan" "$boardname:green:lan" eth0.1
ucidef_set_led_netdev "lan" "lan" "$boardname:blue:lan" eth0.1
ucidef_set_led_netdev "wan" "wan" "$boardname:blue:wan" eth0.2
set_wifi_led "$boardname:blue:air"
- set_usb_led "$boardname:blue:usb"
;;
tama,w06)
ucidef_set_led_netdev "wan" "WAN" "$boardname:green:wan" "eth0"
ucidef_set_led_wlan "wlan" "WLAN" "$boardname:green:wlan" "phy0tpt"
;;
tew-714tru)
- set_usb_led "$boardname:red:usb"
set_wifi_led "$boardname:green:wifi"
;;
tiny-ac)
set_wifi_led "$boardname:orange:wifi"
- set_usb_led "$boardname:green:usb"
;;
tl-wr840n-v4)
ucidef_set_led_wlan "wlan2g" "wlan2g" "$boardname:green:wlan" "phy0tpt"
tplink,c2-v1)
ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch1" "0x1e"
ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch1" "0x01"
- set_usb_led "$boardname:green:usb" "2-1"
set_wifi_led "$boardname:green:wlan"
;;
tplink,c20-v1)
ucidef_set_led_switch "lan" "lan" "$boardname:blue:lan" "switch0" "0x1e"
ucidef_set_led_switch "wan" "wan" "$boardname:blue:wan" "switch0" "0x01"
- set_usb_led "$boardname:blue:usb"
ucidef_set_led_netdev "wlan2g" "wlan2g" "$boardname:blue:wlan2g" "wlan0"
;;
tplink,c20-v4)
ucidef_set_led_netdev "lan" "lan" "$boardname:green:lan" "eth0"
;;
tplink,tl-mr3020-v3)
- set_usb_led "$boardname:green:3g"
set_wifi_led "$boardname:green:wlan"
ucidef_set_led_netdev "lan" "LAN" "$boardname:green:lan" "eth0"
;;
tplink,tl-mr3420-v5|\
tplink,tl-wr842n-v5)
- set_usb_led "$boardname:green:usb"
ucidef_set_led_wlan "wlan2g" "wlan2g" "$boardname:green:wlan" "phy0tpt"
ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x1e"
ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x01"
;;
tplink,tl-wr902ac-v3)
- set_usb_led "$boardname:green:usb"
ucidef_set_led_wlan "wlan2g" "wlan2g" "$boardname:green:wlan" "phy0tpt"
ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x10"
;;
ucidef_set_led_switch "lan3" "lan3" "u7628-01:green:lan3" "switch0" "0x8"
ucidef_set_led_switch "lan4" "lan4" "u7628-01:green:lan4" "switch0" "0x10"
ucidef_set_led_switch "wan" "wan" "u7628-01:green:wan" "switch0" "0x01"
- set_usb_led "u7628-01:green:usb"
set_wifi_led "u7628-01:green:wlan"
;;
vocore-8M|\
set_wifi_led "$boardname:green:status"
;;
w502u)
- set_usb_led "$boardname:blue:usb"
set_wifi_led "rt2800pci-phy0::radio"
;;
-wcr-150gn)
- set_usb_led "$boardname:amber:user"
- ;;
we1026-5g-16m)
ucidef_set_led_netdev "lan" "LAN" "we1026-5g:green:lan" "eth0"
set_wifi_led "we1026-5g:green:wifi"
- set_usb_led "we1026-5g:green:usb" "1-1.1"
;;
wl-wn575a3)
ucidef_set_rssimon "wlan1" "200000" "1"
ucidef_set_led_netdev "lan" "lan" "$boardname:green:ethernet" "eth0"
;;
y1)
- set_usb_led "$boardname:blue:usb"
ucidef_set_led_netdev "wifi" "WIFI" "$boardname:blue:wifi" "wlan1"
ucidef_set_led_netdev "wifi5g" "WIFI5G" "$boardname:blue:wifi5g" "wlan0"
ucidef_set_led_switch "lan" "LAN" "$boardname:blue:lan" "switch0" "0x03"
;;
y1s)
- set_usb_led "$boardname:blue:usb"
ucidef_set_led_netdev "wifi" "WIFI" "$boardname:yellow:wifi" "wlan1"
ucidef_set_led_netdev "wifi5g" "WIFI5G" "$boardname:blue:wifi" "wlan0"
ucidef_set_led_netdev "wan" "WAN" "$boardname:blue:internet" "eth0.2" "tx rx"
;;
youhua,wr1200js)
ucidef_set_led_switch "internet" "INTERNET" "$boardname:green:wan" "switch0" "0x01"
- ucidef_set_led_usbdev "usb" "USB" "$boardname:blue:usb" "1-2"
ucidef_set_led_default "wps" "wps" "$boardname:blue:wps" "0"
;;
zbt-ape522ii)
;;
zbt-wa05)
set_wifi_led "$boardname:blue:air"
- set_usb_led "$boardname:blue:usb"
;;
zbt-we2026)
set_wifi_led "$boardname:green:wlan"
zbt-we826-16M|\
zbt-we826-32M)
set_wifi_led "zbt-we826:green:wifi"
- set_usb_led "zbt-we826:green:usb"
;;
zbtlink,zbt-we1226)
set_wifi_led "$boardname:green:wlan"
ucidef_set_led_switch "wan" "WAN" "$boardname:green:wan" "switch0" "0x10"
;;
zbt-wr8305rt)
- set_usb_led "$boardname:green:usb"
set_wifi_led "$boardname:green:wifi"
;;
zorlik,zl5900v2)
;;
zyxel,keenetic-extra-ii)
set_wifi_led "$boardname:green:wifi"
- set_usb_led "$boardname:green:usb"
ucidef_set_led_switch "internet" "internet" "$boardname:green:internet" "switch0" "0x01"
;;
youku-yk1)
set_wifi_led "$boardname:blue:air"
- set_usb_led "$boardname:blue:usb"
ucidef_set_led_switch "wan" "wan" "$boardname:blue:wan" "switch0" "0x10"
;;
esac
usb {
label = "11acnas:green:usb";
gpios = <&gpio0 27 GPIO_ACTIVE_LOW>;
+ trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
+ linux,default-trigger = "usbport";
};
};
};
3g {
label = "3g-6200n:blue:3g";
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
+ trigger-sources = <&otg_port1>;
+ linux,default-trigger = "usbport";
};
};
3g {
label = "3g150b:blue:3g";
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
+ trigger-sources = <&ohci_port1>, <&ehci_port1>;
+ linux,default-trigger = "usbport";
};
};
3g {
label = "3g300m:blue:3g";
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
+ trigger-sources = <&otg_port1>;
+ linux,default-trigger = "usbport";
};
wpsreset {
mobile {
label = "air3gii:green:mobile";
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
+ trigger-sources = <&ohci_port1>, <&ehci_port1>;
+ linux,default-trigger = "usbport";
};
};
usb {
label = "all0239-3g:green:usb";
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
+ trigger-sources = <&otg_port1>;
+ linux,default-trigger = "usbport";
};
3g {
3g-green {
label = "asl26555:green:3g";
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
+ trigger-sources = <&otg_port1>;
+ linux,default-trigger = "usbport";
};
3g-red {
usb {
label = "c2-v1:green:usb";
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
+ trigger-sources = <&ohci_port1>, <&ehci_port1>;
+ linux,default-trigger = "usbport";
};
led_wps: wps {
usb {
label = "c20i:blue:usb";
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
+ trigger-sources = <&ohci_port1>, <&ehci_port1>;
+ linux,default-trigger = "usbport";
};
wps {
label = "c20i:blue:wps";
usb {
label = "c20-v1:blue:usb";
gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
+ trigger-sources = <&ohci_port1>, <&ehci_port1>;
+ linux,default-trigger = "usbport";
};
wan {
usb {
label = "c50:green:usb";
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
+ trigger-sources = <&ohci_port1>, <&ehci_port1>;
+ linux,default-trigger = "usbport";
};
wan {
usb {
label = "bc2:blue:usb";
gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
+ trigger-sources = <&otg_port1>;
+ linux,default-trigger = "usbport";
};
};
usb {
label = "br-6478ac-v2:blue:usb";
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
+ trigger-sources = <&ohci_port1>, <&ehci_port1>;
+ linux,default-trigger = "usbport";
};
};
diskmounted {
label = "broadway:red:diskmounted";
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
+ trigger-sources = <&otg_port1>;
+ linux,default-trigger = "usbport";
};
wps_active {
usb {
label = "cy-swr1100:blue:usb";
gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
+ trigger-sources = <&ohci_port1>, <&ehci_port1>;
+ linux,default-trigger = "usbport";
};
};
};
usb {
label = "d105:green:usb";
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
+ trigger-sources = <&otg_port1>;
+ linux,default-trigger = "usbport";
};
};
usb {
label = "d240:blue:usb";
gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
+ trigger-sources = <&ohci_port1>, <&ehci_port1>;
+ linux,default-trigger = "usbport";
};
air {
usb {
label = "dwr-118-a2:green:usb";
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
+ trigger-sources = <&ohci_port1>, <&ehci_port1>;
+ linux,default-trigger = "usbport";
};
usb {
label = "ew1200:green:usb";
gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
+ trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
+ linux,default-trigger = "usbport";
};
};
};
storage {
label = "f5d8235-v2:blue:storage";
gpios = <&gpio0 23 GPIO_ACTIVE_LOW>;
+ trigger-sources = <&otg_port1>;
+ linux,default-trigger = "usbport";
};
storage2 {
usb {
label = "fonera20n:orange:usb";
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
+ trigger-sources = <&otg_port1>;
+ linux,default-trigger = "usbport";
};
};
usb {
label = "hg255d:green:usb";
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
+ trigger-sources = <&otg_port1>;
+ linux,default-trigger = "usbport";
};
wps {
usb {
label = "hw550-3g:green:usb";
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
+ trigger-sources = <&otg_port1>;
+ linux,default-trigger = "usbport";
};
3g {
mobile {
label = "miniembplug:green:mobile";
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
+ trigger-sources = <&ohci_port1>, <&ehci_port1>;
+ linux,default-trigger = "usbport";
};
};
usb {
label = "mofi3500-3gn:green:usb";
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
+ trigger-sources = <&otg_port1>;
+ linux,default-trigger = "usbport";
};
3g {
usb {
label = "mr-102n:green:usb";
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
+ trigger-sources = <&otg_port1>;
+ linux,default-trigger = "usbport";
};
led_status: status {
status {
label = "na930:blue:status";
gpios = <&gpio2 26 GPIO_ACTIVE_LOW>;
+ trigger-sources = <&ohci_port1>, <&ehci_port1>;
+ linux,default-trigger = "usbport";
};
service {
usb {
label = "nbg-419n2:green:usb";
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
+ trigger-sources = <&ohci_port1>, <&ehci_port1>;
+ linux,default-trigger = "usbport";
};
};
usb {
label = "nw718:amber:usb";
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
+ trigger-sources = <&otg_port1>;
+ linux,default-trigger = "usbport";
};
wps {
usb {
label = "newifi-d2:blue:usb";
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
+ trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
+ linux,default-trigger = "usbport";
};
};
usb {
label = "pbr-d1:orange:usb";
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
+ trigger-sources = <&ohci_port1>, <&ehci_port1>;
+ linux,default-trigger = "usbport";
default-state = "off";
};
storage {
label = "px-4885:blue:storage";
gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
+ trigger-sources = <&ohci_port1>, <&ehci_port1>;
+ linux,default-trigger = "usbport";
};
};
};
usb {
label = "r6220:green:usb";
gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
+ trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
+ linux,default-trigger = "usbport";
};
internet {
usb {
label = "rt-ac51u:blue:usb";
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
+ trigger-sources = <&ohci_port1>, <&ehci_port1>;
+ linux,default-trigger = "usbport";
};
wifi {
usb {
label = "rt-n14u:blue:usb";
gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
+ trigger-sources = <&ohci_port1>, <&ehci_port1>;
+ linux,default-trigger = "usbport";
};
led_power: power {
compatible = "storylink,sap-g3200u3", "mediatek,mt7621-soc";
model = "STORYLiNK SAP-G3200U3";
- aliases {
- led-status = &led_usb;
- };
-
memory@0 {
device_type = "memory";
reg = <0x0 0x8000000>;
gpio-leds {
compatible = "gpio-leds";
- led_usb: usb {
+ usb {
label = "sap-g3200u3:green:usb";
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
+ trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
+ linux,default-trigger = "usbport";
};
};
usb {
label = "sk-wb8:green:usb";
gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
+ trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
+ linux,default-trigger = "usbport";
};
};
usb {
label = "tew-714tru:red:usb";
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
+ trigger-sources = <&ohci_port1>, <&ehci_port1>;
+ linux,default-trigger = "usbport";
};
wifi {
usb {
label = "tiny-ac:green:usb";
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
+ trigger-sources = <&ohci_port1>, <&ehci_port1>;
+ linux,default-trigger = "usbport";
};
wifi {
wan {
label = "tl-mr3020-v3:green:3g";
gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
+ trigger-sources = <&ehci_port1>, <&ohci_port1>;
+ linux,default-trigger = "usbport";
};
wlan {
usb {
label = "tl-mr3420-v5:green:usb";
gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
+ trigger-sources = <&ohci_port1>, <&ehci_port1>;
+ linux,default-trigger = "usbport";
};
wan {
usb {
label = "tl-wr842n-v5:green:usb";
gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
+ trigger-sources = <&ohci_port1>, <&ehci_port1>;
+ linux,default-trigger = "usbport";
};
wan {
usb {
label = "tl-wr902ac-v3:green:usb";
gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
+ trigger-sources = <&ohci_port1>, <&ehci_port1>;
+ linux,default-trigger = "usbport";
};
wan {
usb {
label = "u7628-01:green:usb";
gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
+ trigger-sources = <&ohci_port1>, <&ehci_port1>;
+ linux,default-trigger = "usbport";
};
};
};
usb {
label = "w2914nsv2:green:usb";
gpios = <&gpio0 27 GPIO_ACTIVE_LOW>;
+ trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
+ linux,default-trigger = "usbport";
};
};
};
usb {
label = "w502u:blue:usb";
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
+ trigger-sources = <&otg_port1>;
+ linux,default-trigger = "usbport";
};
led_wps: wps {
user {
label = "wcr-150gn:amber:user";
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
+ trigger-sources = <&otg_port1>;
+ linux,default-trigger = "usbport";
};
led_power: power {
usb {
label = "we1026-5g:green:usb";
gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>;
+ trigger-sources = <&ohci_port1>, <&ehci_port1>;
+ linux,default-trigger = "usbport";
};
wifi {
usb {
label = "wf-2881:green:usb";
gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
+ trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
+ linux,default-trigger = "usbport";
};
led_wps: wps {
usb {
label = "wr1200js:blue:usb";
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
+ trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
+ linux,default-trigger = "usbport";
};
};
usb {
label = "y1:blue:usb";
gpios = <&gpio2 12 GPIO_ACTIVE_LOW>;
+ trigger-sources = <&ohci_port1>, <&ehci_port1>;
+ linux,default-trigger = "usbport";
};
lan {
usb2 {
label = "y1s:blue:usb";
gpios = <&gpio2 12 GPIO_ACTIVE_LOW>;
+ trigger-sources = <&ohci_port1>, <&ehci_port1>;
+ linux,default-trigger = "usbport";
};
internet {
usb {
label = "youku-yk1:blue:usb";
gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
+ trigger-sources = <&ohci_port1>, <&ehci_port1>;
+ linux,default-trigger = "usbport";
};
led_power: power {
label = "youku-yk1:blue:power";
usb {
label = "zbt-wa05:blue:usb";
gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
+ trigger-sources = <&ohci_port1>, <&ehci_port1>;
+ linux,default-trigger = "usbport";
};
air {
usb {
label = "zbt-we826:green:usb";
gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
+ trigger-sources = <&ohci_port1>, <&ehci_port1>;
+ linux,default-trigger = "usbport";
};
air {
label = "zbt-we826:green:wifi";
lan {
label = "zbt-wr8305rt:green:usb";
gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
+ trigger-sources = <&ohci_port1>, <&ehci_port1>;
+ linux,default-trigger = "usbport";
};
wifi {
usb {
label = "keenetic-extra-ii:green:usb";
gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
+ trigger-sources = <&ohci_port1>, <&ehci_port1>;
+ linux,default-trigger = "usbport";
};
};
usb {
label = "kn:green:usb";
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
+ trigger-sources = <&otg_port1>;
+ linux,default-trigger = "usbport";
};
wps {
usb {
label = "kn_rc:green:usb";
gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
+ trigger-sources = <&ohci_port1>, <&ehci_port1>;
+ linux,default-trigger = "usbport";
};
wifi {
usb {
label = "kn_rc:green:usb";
gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
+ trigger-sources = <&ohci_port1>, <&ehci_port1>;
+ linux,default-trigger = "usbport";
};
wifi {
usb {
label = "kng_rc:green:usb";
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
+ trigger-sources = <&ohci_port1>, <&ehci_port1>;
+ linux,default-trigger = "usbport";
};
power_alert {
};
ehci: ehci@101c0000 {
+ #address-cells = <1>;
+ #size-cells = <0>;
compatible = "generic-ehci";
reg = <0x101c0000 0x1000>;
phy-names = "usb";
status = "disabled";
+
+ ehci_port1: port@1 {
+ reg = <1>;
+ #trigger-source-cells = <0>;
+ };
};
ohci: ohci@101c1000 {
+ #address-cells = <1>;
+ #size-cells = <0>;
compatible = "generic-ohci";
reg = <0x101c1000 0x1000>;
phy-names = "usb";
status = "disabled";
+
+ ohci_port1: port@1 {
+ reg = <1>;
+ #trigger-source-cells = <0>;
+ };
};
pcie: pcie@10140000 {
};
ehci: ehci@101c0000 {
+ #address-cells = <1>;
+ #size-cells = <0>;
compatible = "generic-ehci";
reg = <0x101c0000 0x1000>;
phy-names = "usb";
status = "disabled";
+
+ ehci_port1: port@1 {
+ reg = <1>;
+ #trigger-source-cells = <0>;
+ };
};
ohci: ohci@101c1000 {
+ #address-cells = <1>;
+ #size-cells = <0>;
compatible = "generic-ohci";
reg = <0x101c1000 0x1000>;
interrupts = <18>;
status = "disabled";
+
+ ohci_port1: port@1 {
+ reg = <1>;
+ #trigger-source-cells = <0>;
+ };
};
wmac: wmac@10180000 {
};
xhci: xhci@1E1C0000 {
+ #address-cells = <1>;
+ #size-cells = <0>;
status = "okay";
compatible = "mediatek,mt8173-xhci";
interrupt-parent = <&gic>;
interrupts = <GIC_SHARED 22 IRQ_TYPE_LEVEL_HIGH>;
+
+ /*
+ * Port 1 of both hubs is one usb slot and referenced here.
+ * The binding doesn't allow to address individual hubs.
+ * hub 1 - port 1 is ehci and ohci, hub 2 - port 1 is xhci.
+ */
+ xhci_ehci_port1: port@1 {
+ reg = <1>;
+ #trigger-source-cells = <0>;
+ };
+
+ /*
+ * Only the second usb hub has a second port. That port serves
+ * ehci and ohci.
+ */
+ ehci_port2: port@2 {
+ reg = <2>;
+ #trigger-source-cells = <0>;
+ };
};
gic: interrupt-controller@1fbc0000 {
};
ehci: ehci@101c0000 {
+ #address-cells = <1>;
+ #size-cells = <0>;
compatible = "generic-ehci";
reg = <0x101c0000 0x1000>;
interrupt-parent = <&intc>;
interrupts = <18>;
+
+ ehci_port1: port@1 {
+ reg = <1>;
+ #trigger-source-cells = <0>;
+ };
};
ohci: ohci@101c1000 {
+ #address-cells = <1>;
+ #size-cells = <0>;
compatible = "generic-ohci";
reg = <0x101c1000 0x1000>;
interrupt-parent = <&intc>;
interrupts = <18>;
+
+ ohci_port1: port@1 {
+ reg = <1>;
+ #trigger-source-cells = <0>;
+ };
};
ethernet: ethernet@10100000 {
};
otg: otg@101c0000 {
+ #address-cells = <1>;
+ #size-cells = <0>;
compatible = "ralink,rt3050-otg", "snps,dwc2";
reg = <0x101c0000 0x40000>;
reset-names = "otg";
status = "disabled";
+
+ otg_port1: port@1 {
+ reg = <1>;
+ #trigger-source-cells = <0>;
+ };
};
};
};
ehci: ehci@101c0000 {
+ #address-cells = <1>;
+ #size-cells = <0>;
compatible = "generic-ehci";
reg = <0x101c0000 0x1000>;
interrupts = <18>;
status = "disabled";
+
+ ehci_port1: port@1 {
+ reg = <1>;
+ #trigger-source-cells = <0>;
+ };
};
ohci: ohci@101c1000 {
+ #address-cells = <1>;
+ #size-cells = <0>;
compatible = "generic-ohci";
reg = <0x101c1000 0x1000>;
interrupts = <18>;
status = "disabled";
+
+ ohci_port1: port@1 {
+ reg = <1>;
+ #trigger-source-cells = <0>;
+ };
};
};
};
ehci: ehci@101c0000 {
+ #address-cells = <1>;
+ #size-cells = <0>;
compatible = "generic-ehci";
reg = <0x101c0000 0x1000>;
interrupts = <18>;
status = "disabled";
+
+ ehci_port1: port@1 {
+ reg = <1>;
+ #trigger-source-cells = <0>;
+ };
};
ohci: ohci@101c1000 {
+ #address-cells = <1>;
+ #size-cells = <0>;
compatible = "generic-ohci";
reg = <0x101c1000 0x1000>;
interrupts = <18>;
status = "disabled";
+
+ ohci_port1: port@1 {
+ reg = <1>;
+ #trigger-source-cells = <0>;
+ };
};
};
};
ehci: ehci@101c0000 {
+ #address-cells = <1>;
+ #size-cells = <0>;
compatible = "generic-ehci";
reg = <0x101c0000 0x1000>;
interrupt-parent = <&intc>;
interrupts = <18>;
+
+ ehci_port1: port@1 {
+ reg = <1>;
+ #trigger-source-cells = <0>;
+ };
};
ohci: ohci@101c1000 {
+ #address-cells = <1>;
+ #size-cells = <0>;
compatible = "generic-ohci";
reg = <0x101c1000 0x1000>;
interrupt-parent = <&intc>;
interrupts = <18>;
+
+ ohci_port1: port@1 {
+ reg = <1>;
+ #trigger-source-cells = <0>;
+ };
};
};