ramips: set usb led trigger via devicetree
authorMathias Kresin <dev@kresin.me>
Mon, 13 Aug 2018 15:14:08 +0000 (17:14 +0200)
committerMathias Kresin <dev@kresin.me>
Sun, 7 Oct 2018 09:34:18 +0000 (11:34 +0200)
Assign the usbdev trigger via devicetree for all subtargets and drop
the userspace handling of the usb leds.

With the change all usb ports are triggering the usb led instead of
only usb 1.1 XOR usb 2.0 XOR usb 3.0 as it was before.

Signed-off-by: Mathias Kresin <dev@kresin.me>
70 files changed:
target/linux/ramips/base-files/etc/board.d/01_leds
target/linux/ramips/dts/11ACNAS.dts
target/linux/ramips/dts/3G-6200N.dts
target/linux/ramips/dts/3G150B.dts
target/linux/ramips/dts/3G300M.dts
target/linux/ramips/dts/AIR3GII.dts
target/linux/ramips/dts/ALL0239-3G.dts
target/linux/ramips/dts/ASL26555.dtsi
target/linux/ramips/dts/ArcherC2-v1.dts
target/linux/ramips/dts/ArcherC20i.dts
target/linux/ramips/dts/ArcherC20v1.dts
target/linux/ramips/dts/ArcherC50.dts
target/linux/ramips/dts/BC2.dts
target/linux/ramips/dts/BR-6478AC-V2.dts
target/linux/ramips/dts/BROADWAY.dts
target/linux/ramips/dts/CY-SWR1100.dts
target/linux/ramips/dts/D105.dts
target/linux/ramips/dts/D240.dts
target/linux/ramips/dts/DWR-118-A2.dts
target/linux/ramips/dts/EW1200.dts
target/linux/ramips/dts/F5D8235_V2.dts
target/linux/ramips/dts/FONERA20N.dts
target/linux/ramips/dts/HG255D.dts
target/linux/ramips/dts/HW550-3G.dts
target/linux/ramips/dts/MINIEMBPLUG.dts
target/linux/ramips/dts/MOFI3500-3GN.dts
target/linux/ramips/dts/MR-102N.dts
target/linux/ramips/dts/NA930.dts
target/linux/ramips/dts/NBG-419N2.dts
target/linux/ramips/dts/NW718.dts
target/linux/ramips/dts/Newifi-D2.dts
target/linux/ramips/dts/PBR-D1.dts
target/linux/ramips/dts/PX-4885.dtsi
target/linux/ramips/dts/R6220.dts
target/linux/ramips/dts/RT-AC51U.dts
target/linux/ramips/dts/RT-N14U.dts
target/linux/ramips/dts/SAP-G3200U3.dts
target/linux/ramips/dts/SK-WB8.dts
target/linux/ramips/dts/TEW-714TRU.dts
target/linux/ramips/dts/TINY-AC.dts
target/linux/ramips/dts/TL-MR3020V3.dts
target/linux/ramips/dts/TL-MR3420V5.dts
target/linux/ramips/dts/TL-WR842NV5.dts
target/linux/ramips/dts/TL-WR902ACV3.dts
target/linux/ramips/dts/U7628-01.dtsi
target/linux/ramips/dts/W2914NSV2.dts
target/linux/ramips/dts/W502U.dts
target/linux/ramips/dts/WCR150GN.dts
target/linux/ramips/dts/WE1026-5G.dtsi
target/linux/ramips/dts/WF-2881.dts
target/linux/ramips/dts/WR1200JS.dts
target/linux/ramips/dts/Y1.dts
target/linux/ramips/dts/Y1S.dts
target/linux/ramips/dts/YOUKU-YK1.dts
target/linux/ramips/dts/ZBT-WA05.dts
target/linux/ramips/dts/ZBT-WE826.dtsi
target/linux/ramips/dts/ZBT-WR8305RT.dts
target/linux/ramips/dts/ki_rb.dts
target/linux/ramips/dts/kn.dts
target/linux/ramips/dts/kn_rc.dts
target/linux/ramips/dts/kn_rf.dts
target/linux/ramips/dts/kng_rc.dts
target/linux/ramips/dts/mt7620a.dtsi
target/linux/ramips/dts/mt7620n.dtsi
target/linux/ramips/dts/mt7621.dtsi
target/linux/ramips/dts/mt7628an.dtsi
target/linux/ramips/dts/rt3050.dtsi
target/linux/ramips/dts/rt3352.dtsi
target/linux/ramips/dts/rt3883.dtsi
target/linux/ramips/dts/rt5350.dtsi

index 293e91ea2163a6bad619a1c2da698fc15e3a7b2d..4935d145375109adefc91bd6a6ff469b7d465c55 100755 (executable)
@@ -17,24 +17,8 @@ boardname="${board##*,}"
 board_config_update
 
 case $board in
 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"
 3g-6200n)
        set_wifi_led "$boardname:amber:wlan"
-       set_usb_led "$boardname:blue:3g"
        ;;
 3g-6200nl|\
 wnce2001)
        ;;
 3g-6200nl|\
 wnce2001)
@@ -50,7 +34,6 @@ ai-br100)
        ;;
 air3gii)
        set_wifi_led "$boardname:green:wlan"
        ;;
 air3gii)
        set_wifi_led "$boardname:green:wlan"
-       set_usb_led "$boardname:green:mobile"
        ;;
 alfa-network,ac1200rm)
        set_wifi_led "$boardname:green:wlan2g" "wlan1"
        ;;
 alfa-network,ac1200rm)
        set_wifi_led "$boardname:green:wlan2g" "wlan1"
@@ -76,13 +59,8 @@ asl26555-8M|\
 asl26555-16M)
        ucidef_set_led_netdev "eth" "ETH" "asl26555:green:eth" "eth0"
        set_wifi_led "asl26555:green:wlan"
 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)
        ;;
 broadway)
-       set_usb_led "$boardname:red:diskmounted"
        set_wifi_led "$boardname:red:wps_active"
        ;;
 c108)
        set_wifi_led "$boardname:red:wps_active"
        ;;
 c108)
@@ -92,13 +70,11 @@ c108)
 c20i)
        ucidef_set_led_switch "lan" "lan" "$boardname:blue:lan" "switch0" "0x1e"
        ucidef_set_led_switch "wan" "wan" "$boardname:blue:wan" "switch0" "0x01"
 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"
        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"
        ;;
        ucidef_set_led_netdev "wlan2g" "wlan2g" "$boardname:green:wlan2g" wlan1
        set_wifi_led "$boardname:green:wlan5g"
        ;;
@@ -108,14 +84,9 @@ cf-wr800n)
        ;;
 cy-swr1100)
        ucidef_set_led_default "wps" "WPS" "$boardname:blue:wps" "0"
        ;;
 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"
        ;;
 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"
        ;;
 dcs-930l-b1)
        ucidef_set_led_netdev "wifi" "WiFi" "$boardname:blue:wps"
@@ -150,7 +121,6 @@ dlink,dwr-118-a2)
        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"
        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)
        ucidef_set_led_default "internet" "internet" "$boardname:green:internet" "0"
        ;;
 dlink,dwr-921-c1)
@@ -163,7 +133,6 @@ dir-860l-b1)
        ;;
 edimax,br-6478ac-v2)
        set_wifi_led "$boardname:blue:wlan"
        ;;
 edimax,br-6478ac-v2)
        set_wifi_led "$boardname:blue:wlan"
-       set_usb_led "$boardname:blue:usb"
        ;;
 ex2700|\
 wn3000rpv3)
        ;;
 ex2700|\
 wn3000rpv3)
@@ -178,11 +147,7 @@ f5d8235-v1)
        set_usb_led "$boardname:blue:storage"
        set_wifi_led "$boardname:blue:wireless"
        ;;
        set_usb_led "$boardname:blue:storage"
        set_wifi_led "$boardname:blue:wireless"
        ;;
-f5d8235-v2)
-       set_usb_led "$boardname:blue:storage"
-       ;;
 fonera20n)
 fonera20n)
-       set_usb_led "$boardname:orange:usb"
        set_wifi_led "$boardname:orange:wifi"
        ;;
 gnubee,gb-pc1|\
        set_wifi_led "$boardname:orange:wifi"
        ;;
 gnubee,gb-pc1|\
@@ -215,7 +180,6 @@ hc5861)
        ;;
 hg255d)
        set_wifi_led "$boardname:green:wlan"
        ;;
 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)
        ucidef_set_led_netdev "internet" "internet" "$boardname:green:internet" "eth0.2"
        ;;
 hiwifi,hc5861b)
@@ -235,13 +199,11 @@ kimax,u35wf)
        ;;
 kn|\
 nbg-419n2)
        ;;
 kn|\
 nbg-419n2)
-       set_usb_led "$boardname:green:usb"
        set_wifi_led "rt2800pci-phy0::radio"
        ;;
 kn_rc|\
 kn_rf|\
 kng_rc)
        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)
        set_wifi_led "$boardname:green:wifi"
        ;;
 linkits7688)
@@ -261,7 +223,6 @@ mikrotik,rbm11g)
        ;;
 miniembplug)
        set_wifi_led "$boardname:red:wlan"
        ;;
 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"
        ;;
 mir3g)
        ucidef_set_led_switch "wan-amber"  "WAN (amber)"  "$boardname:amber:wan"  "switch0" "0x02" "0x08"
@@ -278,7 +239,6 @@ mpr-a2)
        ;;
 mr-102n)
        set_wifi_led "$boardname:green:wlan"
        ;;
 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"
        ;;
 mr200)
        ucidef_set_led_netdev "lan" "lan" "$boardname:white:lan" "eth0.1"
@@ -288,28 +248,18 @@ mr200)
 mzk-ex750np)
        set_wifi_led "$boardname:red:wifi"
        ;;
 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"
        ;;
 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"
        ;;
 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)
 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"
        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"
@@ -320,12 +270,10 @@ psg1208)
 px-4885-4M|\
 px-4885-8M)
        set_wifi_led "px-4885:orange:wifi"
 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"
        ;;
 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"
        ;;
 re350-v1)
        ucidef_set_led_netdev "wifi2g" "Wifi 2.4G" "$boardname:blue:wifi2G" "wlan0"
@@ -339,7 +287,6 @@ rp-n53)
        ;;
 rt-ac51u)
        set_wifi_led "$boardname:blue:wifi"
        ;;
 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
        ;;
 rt-n12p)
        ucidef_set_led_netdev "lan" "lan" "$boardname:green:lan" eth0.1
@@ -350,19 +297,16 @@ rt-n14u)
        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"
        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)
        ;;
 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_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"
        ;;
 tl-wr840n-v4)
        ucidef_set_led_wlan "wlan2g" "wlan2g" "$boardname:green:wlan" "phy0tpt"
@@ -380,13 +324,11 @@ tl-wr841n-v13)
 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"
 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_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 "wlan2g" "wlan2g" "$boardname:blue:wlan2g" "wlan0"
        ;;
 tplink,c20-v4)
@@ -405,19 +347,16 @@ tplink,tl-wa801nd-v5)
        ucidef_set_led_netdev "lan" "lan" "$boardname:green:lan" "eth0"
        ;;
 tplink,tl-mr3020-v3)
        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_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)
        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_wlan "wlan2g" "wlan2g" "$boardname:green:wlan" "phy0tpt"
        ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x10"
        ;;
@@ -431,7 +370,6 @@ u7628-01-128M-16M)
        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"
        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 "u7628-01:green:wlan"
        ;;
 vocore-8M|\
@@ -446,16 +384,11 @@ vocore2lite)
        set_wifi_led "$boardname:green:status"
        ;;
 w502u)
        set_wifi_led "$boardname:green:status"
        ;;
 w502u)
-       set_usb_led "$boardname:blue:usb"
        set_wifi_led "rt2800pci-phy0::radio"
        ;;
        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"
 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"
        ;;
 wl-wn575a3)
        ucidef_set_rssimon "wlan1" "200000" "1"
@@ -468,20 +401,17 @@ wrh-300cr)
        ucidef_set_led_netdev "lan" "lan" "$boardname:green:ethernet" "eth0"
        ;;
 y1)
        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)
        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_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)
        ucidef_set_led_default "wps" "wps" "$boardname:blue:wps" "0"
        ;;
 zbt-ape522ii)
@@ -494,7 +424,6 @@ zbt-cpe102)
        ;;
 zbt-wa05)
        set_wifi_led "$boardname:blue:air"
        ;;
 zbt-wa05)
        set_wifi_led "$boardname:blue:air"
-       set_usb_led "$boardname:blue:usb"
        ;;
 zbt-we2026)
        set_wifi_led "$boardname:green:wlan"
        ;;
 zbt-we2026)
        set_wifi_led "$boardname:green:wlan"
@@ -502,7 +431,6 @@ zbt-we2026)
 zbt-we826-16M|\
 zbt-we826-32M)
        set_wifi_led "zbt-we826:green:wifi"
 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"
        ;;
 zbtlink,zbt-we1226)
        set_wifi_led "$boardname:green:wlan"
@@ -511,7 +439,6 @@ zbtlink,zbt-we1226)
        ucidef_set_led_switch "wan" "WAN" "$boardname:green:wan" "switch0" "0x10"
        ;;
 zbt-wr8305rt)
        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)
        set_wifi_led "$boardname:green:wifi"
        ;;
 zorlik,zl5900v2)
@@ -522,12 +449,10 @@ zte-q7)
        ;;
 zyxel,keenetic-extra-ii)
        set_wifi_led "$boardname:green:wifi"
        ;;
 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"
        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
        ucidef_set_led_switch "wan" "wan" "$boardname:blue:wan" "switch0" "0x10"
        ;;
 esac
index f66bee6363a29abb23ed88c4cc4eac4fdcb69cc8..6516bb0c13a4fe31b6330cf81d4ba82e6ce4d5ce 100644 (file)
@@ -17,6 +17,8 @@
                usb {
                        label = "11acnas:green:usb";
                        gpios = <&gpio0 27 GPIO_ACTIVE_LOW>;
                usb {
                        label = "11acnas:green:usb";
                        gpios = <&gpio0 27 GPIO_ACTIVE_LOW>;
+                       trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
+                       linux,default-trigger = "usbport";
                };
        };
 };
                };
        };
 };
index 88ee81dfaf96c4804202a9b7dfa084cf271f1e63..678c0eec4bf80148b191be4a8cf181a3650630a2 100644 (file)
@@ -71,6 +71,8 @@
                3g {
                        label = "3g-6200n:blue:3g";
                        gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                3g {
                        label = "3g-6200n:blue:3g";
                        gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
+                       trigger-sources = <&otg_port1>;
+                       linux,default-trigger = "usbport";
                };
        };
 
                };
        };
 
index 90a52fa8bcc77ff52eb65a468e8166ba0f516e6a..533070089cac9285ce5fd0e3db0a63bcd12ccbd0 100644 (file)
@@ -24,6 +24,8 @@
                3g {
                        label = "3g150b:blue:3g";
                        gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                3g {
                        label = "3g150b:blue:3g";
                        gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
+                       trigger-sources = <&ohci_port1>, <&ehci_port1>;
+                       linux,default-trigger = "usbport";
                };
        };
 
                };
        };
 
index 8d55020e74a7867dceb49737407fc998837e52d4..3e377e3afe61ec20977fc9ba1de09a5e167f9992 100644 (file)
@@ -39,6 +39,8 @@
                3g {
                        label = "3g300m:blue:3g";
                        gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                3g {
                        label = "3g300m:blue:3g";
                        gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
+                       trigger-sources = <&otg_port1>;
+                       linux,default-trigger = "usbport";
                };
 
                wpsreset {
                };
 
                wpsreset {
index c3ce087ed2dcff6ee2ab891060623e67909181ea..eb7cd0f1caef4a8598db879ee541a9b847c08049 100644 (file)
@@ -20,6 +20,8 @@
                mobile {
                        label = "air3gii:green:mobile";
                        gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                mobile {
                        label = "air3gii:green:mobile";
                        gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
+                       trigger-sources = <&ohci_port1>, <&ehci_port1>;
+                       linux,default-trigger = "usbport";
                };
        };
 
                };
        };
 
index 305fe6e261843f5aea2a4509f8093d20c9dafe00..840ec7851c3d508040cf0670eeaeb853bdcc6e08 100644 (file)
@@ -56,6 +56,8 @@
                usb {
                        label = "all0239-3g:green:usb";
                        gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
                usb {
                        label = "all0239-3g:green:usb";
                        gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
+                       trigger-sources = <&otg_port1>;
+                       linux,default-trigger = "usbport";
                };
 
                3g {
                };
 
                3g {
index 890a7de1872afda900fca99964ad1b388c08fee5..d1a5da9c204f0419c3c59672978ce1c1f104461d 100644 (file)
@@ -63,6 +63,8 @@
                3g-green {
                        label = "asl26555:green:3g";
                        gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                3g-green {
                        label = "asl26555:green:3g";
                        gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
+                       trigger-sources = <&otg_port1>;
+                       linux,default-trigger = "usbport";
                };
 
                3g-red {
                };
 
                3g-red {
index cc0d46a6b77f9f1612362e2946e5f07ecf225117..64b7997349c15fed0240079ed9aba3cecfccf8c3 100644 (file)
@@ -37,6 +37,8 @@
                usb {
                        label = "c2-v1:green:usb";
                        gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                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 {
                };
 
                led_wps: wps {
index edaa76e3dd0f8bf5fe55452de2bd3453b95a26ce..b44c161fa1cf3e60c90fd6a862aa763918b117aa 100644 (file)
@@ -22,6 +22,8 @@
                usb {
                        label = "c20i:blue:usb";
                        gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                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";
                };
                wps {
                        label = "c20i:blue:wps";
index 70c6f84300d151826392402925d0bbdcac66d7bf..2ec948bc5410e88c09c1a23a0902eb9b939a02f6 100644 (file)
@@ -34,6 +34,8 @@
                usb {
                        label = "c20-v1:blue:usb";
                        gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
                usb {
                        label = "c20-v1:blue:usb";
                        gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
+                       trigger-sources = <&ohci_port1>, <&ehci_port1>;
+                       linux,default-trigger = "usbport";
                };
 
                wan {
                };
 
                wan {
index efcb17094e302d3d4d822805bdeb57617d39adb3..8fc8bde984db2cf9f789f2ee02562156ad7e2d83 100644 (file)
@@ -34,6 +34,8 @@
                usb {
                        label = "c50:green:usb";
                        gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                usb {
                        label = "c50:green:usb";
                        gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
+                       trigger-sources = <&ohci_port1>, <&ehci_port1>;
+                       linux,default-trigger = "usbport";
                };
 
                wan {
                };
 
                wan {
index c57e79e534985fac42bcbd083fec4893800cc023..1143497b6940354f8b32e8a41c570e55ee896760 100644 (file)
@@ -51,6 +51,8 @@
                usb {
                        label = "bc2:blue:usb";
                        gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
                usb {
                        label = "bc2:blue:usb";
                        gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
+                       trigger-sources = <&otg_port1>;
+                       linux,default-trigger = "usbport";
                };
        };
 
                };
        };
 
index b38be1e2c27e7e376b123efe6c273cdbf6b10fa9..00de0d9c473f0856a9cb8e520fffdf6df4ac415b 100644 (file)
@@ -59,6 +59,8 @@
                usb {
                        label = "br-6478ac-v2:blue:usb";
                        gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                usb {
                        label = "br-6478ac-v2:blue:usb";
                        gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
+                       trigger-sources = <&ohci_port1>, <&ehci_port1>;
+                       linux,default-trigger = "usbport";
                };
        };
 
                };
        };
 
index a5664fe7976980cceb17b063d8d4692aa71a6bb5..b3382cd16d4b37cd092f9a590900d204c8a2630c 100644 (file)
@@ -51,6 +51,8 @@
                diskmounted {
                        label = "broadway:red:diskmounted";
                        gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                diskmounted {
                        label = "broadway:red:diskmounted";
                        gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
+                       trigger-sources = <&otg_port1>;
+                       linux,default-trigger = "usbport";
                };
 
                wps_active {
                };
 
                wps_active {
index 787667a6ec729f327c04b3d11e0bdd87ea5b3b42..b9f12f10689a95cc9461c6d84d8ed33d3860fca6 100644 (file)
@@ -94,6 +94,8 @@
                usb {
                        label = "cy-swr1100:blue:usb";
                        gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
                usb {
                        label = "cy-swr1100:blue:usb";
                        gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
+                       trigger-sources = <&ohci_port1>, <&ehci_port1>;
+                       linux,default-trigger = "usbport";
                };
        };
 };
                };
        };
 };
index 89cde124beabf473ceae74edf400175e5579d391..676d68c1166f01d6379a45a430c12c914253162a 100644 (file)
@@ -60,6 +60,8 @@
                usb {
                        label = "d105:green:usb";
                        gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                usb {
                        label = "d105:green:usb";
                        gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
+                       trigger-sources = <&otg_port1>;
+                       linux,default-trigger = "usbport";
                };
        };
 
                };
        };
 
index 613a20f99530add0d5d8c9ac46ec1001ea19427c..59183df4d7d9f09397de58919ac85c30b0d6e6b5 100644 (file)
@@ -78,6 +78,8 @@
                usb {
                        label = "d240:blue:usb";
                        gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
                usb {
                        label = "d240:blue:usb";
                        gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
+                       trigger-sources = <&ohci_port1>, <&ehci_port1>;
+                       linux,default-trigger = "usbport";
                };
 
                air {
                };
 
                air {
index fd8f932412c739158a10cc7c1b41e8f6fabc5772..5582a49bf7b316eb45c0d964992a009a796a8a4f 100644 (file)
@@ -56,6 +56,8 @@
                usb {
                        label = "dwr-118-a2:green:usb";
                        gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                usb {
                        label = "dwr-118-a2:green:usb";
                        gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
+                       trigger-sources = <&ohci_port1>, <&ehci_port1>;
+                       linux,default-trigger = "usbport";
                };
        };
 
                };
        };
 
index b7b15137ec7f330a42253136fbd6d2e8dd997692..99bbf8c8f0886775cd4a22181589099cb8496019 100644 (file)
@@ -50,6 +50,8 @@
                usb {
                        label = "ew1200:green:usb";
                        gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
                usb {
                        label = "ew1200:green:usb";
                        gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
+                       trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
+                       linux,default-trigger = "usbport";
                };
        };
 };
                };
        };
 };
index f075dff49692b70270b195379d0b5f64eb3695e5..c7fb55f46caf86db877baf8e441e72fd58bae1bb 100644 (file)
@@ -84,6 +84,8 @@
                storage {
                        label = "f5d8235-v2:blue:storage";
                        gpios = <&gpio0 23 GPIO_ACTIVE_LOW>;
                storage {
                        label = "f5d8235-v2:blue:storage";
                        gpios = <&gpio0 23 GPIO_ACTIVE_LOW>;
+                       trigger-sources = <&otg_port1>;
+                       linux,default-trigger = "usbport";
                };
 
                storage2 {
                };
 
                storage2 {
index 17bf4a83f75a44314a2663703af77d39971bf1f4..2ff29d9a2e0513bfb1f384ffaa2e2468afbd35db 100644 (file)
@@ -65,6 +65,8 @@
                usb {
                        label = "fonera20n:orange:usb";
                        gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                usb {
                        label = "fonera20n:orange:usb";
                        gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
+                       trigger-sources = <&otg_port1>;
+                       linux,default-trigger = "usbport";
                };
        };
 
                };
        };
 
index 0e4ad421e4152d9efec8234a80188781352be91b..242d04d2cde67d31339db5d57397fe4b4a4520c6 100644 (file)
@@ -76,6 +76,8 @@
                usb {
                        label = "hg255d:green:usb";
                        gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                usb {
                        label = "hg255d:green:usb";
                        gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
+                       trigger-sources = <&otg_port1>;
+                       linux,default-trigger = "usbport";
                };
 
                wps {
                };
 
                wps {
index 1b589b5f60c26865ad46e4a8ae337492abfd0d43..385ec343bb4c9766c08db6128695cc0b6effdc7d 100644 (file)
@@ -55,6 +55,8 @@
                usb {
                        label = "hw550-3g:green:usb";
                        gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
                usb {
                        label = "hw550-3g:green:usb";
                        gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
+                       trigger-sources = <&otg_port1>;
+                       linux,default-trigger = "usbport";
                };
 
                3g {
                };
 
                3g {
index 94d6b410fcd9dbd3d8791352a1a8ac814f279ece..00d057d29731d2325cc63b96f3a80dab3c7f150d 100644 (file)
@@ -20,6 +20,8 @@
                mobile {
                        label = "miniembplug:green:mobile";
                        gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                mobile {
                        label = "miniembplug:green:mobile";
                        gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
+                       trigger-sources = <&ohci_port1>, <&ehci_port1>;
+                       linux,default-trigger = "usbport";
                };
        };
 
                };
        };
 
index 345c028d02dbc22385502b7ce206ad837cfee620..bfd20d201482cc2066b4ceeab38e4a31b929f7bf 100644 (file)
@@ -55,6 +55,8 @@
                usb {
                        label = "mofi3500-3gn:green:usb";
                        gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
                usb {
                        label = "mofi3500-3gn:green:usb";
                        gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
+                       trigger-sources = <&otg_port1>;
+                       linux,default-trigger = "usbport";
                };
 
                3g {
                };
 
                3g {
index c278b9cb919b723a304a1abe36b3a8052f55731b..13cec1b37776e3243602acfbb3a9ea80a3c0edd5 100644 (file)
@@ -65,6 +65,8 @@
                usb {
                        label = "mr-102n:green:usb";
                        gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
                usb {
                        label = "mr-102n:green:usb";
                        gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
+                       trigger-sources = <&otg_port1>;
+                       linux,default-trigger = "usbport";
                };
 
                led_status: status {
                };
 
                led_status: status {
index fadb484f3904fdff4abce0c8d4ba2e779004c38e..7dd4d1b234f12d46d39afc66aab956506c44e69c 100644 (file)
@@ -84,6 +84,8 @@
                status {
                        label = "na930:blue:status";
                        gpios = <&gpio2 26 GPIO_ACTIVE_LOW>;
                status {
                        label = "na930:blue:status";
                        gpios = <&gpio2 26 GPIO_ACTIVE_LOW>;
+                       trigger-sources = <&ohci_port1>, <&ehci_port1>;
+                       linux,default-trigger = "usbport";
                };
 
                service {
                };
 
                service {
index 151da14847233a224ded2ca308c96c52299e1821..213db93159b09d85f1da2ac0f008c2509f6da538 100644 (file)
@@ -69,6 +69,8 @@
                usb {
                        label = "nbg-419n2:green:usb";
                        gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                usb {
                        label = "nbg-419n2:green:usb";
                        gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
+                       trigger-sources = <&ohci_port1>, <&ehci_port1>;
+                       linux,default-trigger = "usbport";
                };
        };
 
                };
        };
 
index c87a8d3cfb2169b916e059e952889240d666e3b6..1c9d14384b88509f7c4358542993ebd5ed3f22c5 100644 (file)
@@ -24,6 +24,8 @@
                usb {
                        label = "nw718:amber:usb";
                        gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
                usb {
                        label = "nw718:amber:usb";
                        gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
+                       trigger-sources = <&otg_port1>;
+                       linux,default-trigger = "usbport";
                };
 
                wps {
                };
 
                wps {
index f9c5ca8da5bb862b243f0073deaaa7448307c5c2..cf9b9f3a14636b860a39c8cffef45f472ddc36fe 100644 (file)
@@ -58,6 +58,8 @@
                usb {
                        label = "newifi-d2:blue:usb";
                        gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                usb {
                        label = "newifi-d2:blue:usb";
                        gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
+                       trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
+                       linux,default-trigger = "usbport";
                };
        };
 
                };
        };
 
index 01ac2a127721a56a134f7f1a82db73f1679dfe1d..038978bc6829cbde0e254c07aceac8b69e8d11a2 100644 (file)
@@ -32,6 +32,8 @@
                usb {
                        label = "pbr-d1:orange:usb";
                        gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                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";
                };
 
                        default-state = "off";
                };
 
index 64e007adc67247069430784e2613e2932a4bb051..3bd4d47bf417acae0151ef8e096fcac51bd3d6ad 100644 (file)
@@ -32,6 +32,8 @@
                storage {
                        label = "px-4885:blue:storage";
                        gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
                storage {
                        label = "px-4885:blue:storage";
                        gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
+                       trigger-sources = <&ohci_port1>, <&ehci_port1>;
+                       linux,default-trigger = "usbport";
                };
        };
 };
                };
        };
 };
index 83ba4531d5095a6cb10e025f584ed20dd80fbf4f..bf789287c8e7d90fcb9aa082b93b18fbe5f809a9 100644 (file)
@@ -33,6 +33,8 @@
                usb {
                        label = "r6220:green:usb";
                        gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
                usb {
                        label = "r6220:green:usb";
                        gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
+                       trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
+                       linux,default-trigger = "usbport";
                };
 
                internet {
                };
 
                internet {
index 7281bc9ce3815fb1eeaad4c02a975dc1e6f003ff..976a9c478bea4be84a7ff3b51daa6ca663c720da 100644 (file)
@@ -24,6 +24,8 @@
                usb {
                        label = "rt-ac51u:blue:usb";
                        gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                usb {
                        label = "rt-ac51u:blue:usb";
                        gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
+                       trigger-sources = <&ohci_port1>, <&ehci_port1>;
+                       linux,default-trigger = "usbport";
                };
 
                wifi {
                };
 
                wifi {
index 3a72026a2a04cd5b03f98bea741502161986942d..51fae090f414e05bb419716feb23dc025c4a34a5 100644 (file)
@@ -29,6 +29,8 @@
                usb {
                        label = "rt-n14u:blue:usb";
                        gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
                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 {
                };
 
                led_power: power {
index 4ca5e889dec84b942a225501050847f9277d3d0f..353bae59719ed1892e6f3ebd25db093c1e7ecbaf 100644 (file)
@@ -9,10 +9,6 @@
        compatible = "storylink,sap-g3200u3", "mediatek,mt7621-soc";
        model = "STORYLiNK SAP-G3200U3";
 
        compatible = "storylink,sap-g3200u3", "mediatek,mt7621-soc";
        model = "STORYLiNK SAP-G3200U3";
 
-       aliases {
-               led-status = &led_usb;
-       };
-
        memory@0 {
                device_type = "memory";
                reg = <0x0 0x8000000>;
        memory@0 {
                device_type = "memory";
                reg = <0x0 0x8000000>;
        gpio-leds {
                compatible = "gpio-leds";
 
        gpio-leds {
                compatible = "gpio-leds";
 
-               led_usb: usb {
+               usb {
                        label = "sap-g3200u3:green:usb";
                        gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                        label = "sap-g3200u3:green:usb";
                        gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
+                       trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
+                       linux,default-trigger = "usbport";
                };
        };
 
                };
        };
 
index 7cbd205acc5e9ffa2e512a19ab68748bc73a1aec..0216229c5eb641a9914c16dcddf80cc78218572e 100644 (file)
@@ -32,6 +32,8 @@
                usb {
                        label = "sk-wb8:green:usb";
                        gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
                usb {
                        label = "sk-wb8:green:usb";
                        gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
+                       trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
+                       linux,default-trigger = "usbport";
                };
        };
 
                };
        };
 
index 0fc798ee1151e46c4ee08324a200f51817089519..b9cb5ba774f25c4943ef273f5d3a2df4b257ad38 100644 (file)
@@ -15,6 +15,8 @@
                usb {
                        label = "tew-714tru:red:usb";
                        gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                usb {
                        label = "tew-714tru:red:usb";
                        gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
+                       trigger-sources = <&ohci_port1>, <&ehci_port1>;
+                       linux,default-trigger = "usbport";
                };
 
                wifi {
                };
 
                wifi {
index ed539b1d0e39192e670306c20f2fab696c40706b..e81f0cbdb33e9d3b3af2dea8dd3f47bc80c3f045 100644 (file)
@@ -19,6 +19,8 @@
                usb {
                        label = "tiny-ac:green:usb";
                        gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                usb {
                        label = "tiny-ac:green:usb";
                        gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
+                       trigger-sources = <&ohci_port1>, <&ehci_port1>;
+                       linux,default-trigger = "usbport";
                };
 
                wifi {
                };
 
                wifi {
index 5bc1a82cc40adcbede54d3ccadd3faaa11114231..8bd26d6d3595c3c6982a538aed5b5e90088fdd33 100644 (file)
@@ -57,6 +57,8 @@
                wan {
                        label = "tl-mr3020-v3:green:3g";
                        gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
                wan {
                        label = "tl-mr3020-v3:green:3g";
                        gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
+                       trigger-sources = <&ehci_port1>, <&ohci_port1>;
+                       linux,default-trigger = "usbport";
                };
 
                wlan {
                };
 
                wlan {
index 8845e8075bf3d61987f44d5101d410cc20d85e6a..e2f90721ed169acc4d7e1a1f91d82667dcca99b4 100644 (file)
@@ -46,6 +46,8 @@
                usb {
                        label = "tl-mr3420-v5:green:usb";
                        gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
                usb {
                        label = "tl-mr3420-v5:green:usb";
                        gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
+                       trigger-sources = <&ohci_port1>, <&ehci_port1>;
+                       linux,default-trigger = "usbport";
                };
 
                wan {
                };
 
                wan {
index c20e780617796ee39d91a32027a696c3a8d966c6..2d6307de729a160dfc899ae433022f80bd0f37a1 100644 (file)
@@ -46,6 +46,8 @@
                usb {
                        label = "tl-wr842n-v5:green:usb";
                        gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
                usb {
                        label = "tl-wr842n-v5:green:usb";
                        gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
+                       trigger-sources = <&ohci_port1>, <&ehci_port1>;
+                       linux,default-trigger = "usbport";
                };
 
                wan {
                };
 
                wan {
index 014c545e9e60cf0441d0c84664e97651899bc60d..3490dc7b154e4bdbf64d74e3955d5a308d4948ec 100644 (file)
@@ -58,6 +58,8 @@
                usb {
                        label = "tl-wr902ac-v3:green:usb";
                        gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
                usb {
                        label = "tl-wr902ac-v3:green:usb";
                        gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
+                       trigger-sources = <&ohci_port1>, <&ehci_port1>;
+                       linux,default-trigger = "usbport";
                };
 
                wan {
                };
 
                wan {
index f9f94be82faa644e4b930234d419e9d055e98757..6de61a70856acdad766f1a9e88fc181fe226a327 100644 (file)
@@ -99,6 +99,8 @@
                usb {
                        label = "u7628-01:green:usb";
                        gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
                usb {
                        label = "u7628-01:green:usb";
                        gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
+                       trigger-sources = <&ohci_port1>, <&ehci_port1>;
+                       linux,default-trigger = "usbport";
                };
        };
 };
                };
        };
 };
index e1a9c41626535ba0f72c8dd155401a830cee45e8..4c13122c115c40dc0003c7e7c684886bec710784 100644 (file)
@@ -16,6 +16,8 @@
                usb {
                        label = "w2914nsv2:green:usb";
                        gpios = <&gpio0 27 GPIO_ACTIVE_LOW>;
                usb {
                        label = "w2914nsv2:green:usb";
                        gpios = <&gpio0 27 GPIO_ACTIVE_LOW>;
+                       trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
+                       linux,default-trigger = "usbport";
                };
        };
 };
                };
        };
 };
index 6b8775ef38f4ef0d26a91c7cd971e2460eea5036..9276ce8714442b1be8c9f1ab0f0aad724dd017cf 100644 (file)
@@ -59,6 +59,8 @@
                usb {
                        label = "w502u:blue:usb";
                        gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                usb {
                        label = "w502u:blue:usb";
                        gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
+                       trigger-sources = <&otg_port1>;
+                       linux,default-trigger = "usbport";
                };
 
                led_wps: wps {
                };
 
                led_wps: wps {
index 93c7c54932c7085654eb21869ea0c0acb1a7ab5c..f67aef3ada1425dfc1b55266dcd032667d0eea3a 100644 (file)
@@ -55,6 +55,8 @@
                user {
                        label = "wcr-150gn:amber:user";
                        gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                user {
                        label = "wcr-150gn:amber:user";
                        gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
+                       trigger-sources = <&otg_port1>;
+                       linux,default-trigger = "usbport";
                };
 
                led_power: power {
                };
 
                led_power: power {
index f82c4b94b13cd71fe16b62f90adf47d5b81dda54..e6c4b8c1b694c7c962923b287275c9fea2cfb564 100644 (file)
@@ -53,6 +53,8 @@
                usb {
                        label = "we1026-5g:green:usb";
                        gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>;
                usb {
                        label = "we1026-5g:green:usb";
                        gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>;
+                       trigger-sources = <&ohci_port1>, <&ehci_port1>;
+                       linux,default-trigger = "usbport";
                };
 
                wifi {
                };
 
                wifi {
index 17011b1e393ea196fa55b524e709ab3268f75b08..ac3ce7088707a342c80362ca336d4746cbd006b8 100644 (file)
@@ -28,6 +28,8 @@
                usb {
                        label = "wf-2881:green:usb";
                        gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
                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 {
                };
 
                led_wps: wps {
index f7916486410e78bad19b7e8c0608938c49567069..43ec413300c63382ccfcd0716d4d5d4ce700b2dc 100644 (file)
@@ -38,6 +38,8 @@
                usb {
                        label = "wr1200js:blue:usb";
                        gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
                usb {
                        label = "wr1200js:blue:usb";
                        gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
+                       trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
+                       linux,default-trigger = "usbport";
                };
        };
 
                };
        };
 
index d9d00f082fca3c57936f92e102016e67bac074af..1ce64daee00970d8897da7e6cf87ccc15e0ff589 100644 (file)
@@ -31,6 +31,8 @@
                usb {
                        label = "y1:blue:usb";
                        gpios = <&gpio2 12 GPIO_ACTIVE_LOW>;
                usb {
                        label = "y1:blue:usb";
                        gpios = <&gpio2 12 GPIO_ACTIVE_LOW>;
+                       trigger-sources = <&ohci_port1>, <&ehci_port1>;
+                       linux,default-trigger = "usbport";
                };
 
                lan {
                };
 
                lan {
index 51bd10d75ab703032947c12a9015c8550de10c92..c2f6c07c2a7221e305a00c7dadc054f515a6e78f 100644 (file)
@@ -62,6 +62,8 @@
                usb2 {
                        label = "y1s:blue:usb";
                        gpios = <&gpio2 12 GPIO_ACTIVE_LOW>;
                usb2 {
                        label = "y1s:blue:usb";
                        gpios = <&gpio2 12 GPIO_ACTIVE_LOW>;
+                       trigger-sources = <&ohci_port1>, <&ehci_port1>;
+                       linux,default-trigger = "usbport";
                };
 
                internet {
                };
 
                internet {
index 5c0699e2eb3cda29060234313cdffd6a04fe85b6..3dda713e46880d7de12fa3dba22ddab58ea8d5e3 100644 (file)
@@ -26,6 +26,8 @@
                usb {
                        label = "youku-yk1:blue:usb";
                        gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
                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";
                };
                led_power: power {
                        label = "youku-yk1:blue:power";
index bd5bdb26b7051369c01ccb32ebbe403dbe1b7ff2..73b57ceddf2797801913f75fb0f8547c84693318 100644 (file)
@@ -28,6 +28,8 @@
                usb {
                        label = "zbt-wa05:blue:usb";
                        gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
                usb {
                        label = "zbt-wa05:blue:usb";
                        gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
+                       trigger-sources = <&ohci_port1>, <&ehci_port1>;
+                       linux,default-trigger = "usbport";
                };
 
                air {
                };
 
                air {
index 1210568ca9d9bbd9ab4276312b8fce05097140db..a46af063234c0eb206c5588bf0d241e69f8fb1e9 100644 (file)
@@ -23,6 +23,8 @@
                usb {
                        label = "zbt-we826:green:usb";
                        gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
                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";
                };
                air {
                        label = "zbt-we826:green:wifi";
index 52860909716219513765258571410d7d6ab81b1d..606154ea4760b58067f3050cacdab976eff57ee8 100644 (file)
@@ -24,6 +24,8 @@
                lan {
                        label = "zbt-wr8305rt:green:usb";
                        gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
                lan {
                        label = "zbt-wr8305rt:green:usb";
                        gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
+                       trigger-sources = <&ohci_port1>, <&ehci_port1>;
+                       linux,default-trigger = "usbport";
                };
 
                wifi {
                };
 
                wifi {
index ea4b060777cb9a2de60eaa353066c94b9473af75..bc4ba81b4a36fd1855e9a66494a13ca1a5b3b71a 100644 (file)
@@ -67,6 +67,8 @@
                usb {
                        label = "keenetic-extra-ii:green:usb";
                        gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
                usb {
                        label = "keenetic-extra-ii:green:usb";
                        gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
+                       trigger-sources = <&ohci_port1>, <&ehci_port1>;
+                       linux,default-trigger = "usbport";
                };
        };
 
                };
        };
 
index eccd52a992efcfe83b0eef01e46ae989d2a54a8d..da87444e12a0fa2c976e0812c66b03e21e649f30 100644 (file)
@@ -60,6 +60,8 @@
                usb {
                        label = "kn:green:usb";
                        gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                usb {
                        label = "kn:green:usb";
                        gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
+                       trigger-sources = <&otg_port1>;
+                       linux,default-trigger = "usbport";
                };
 
                wps {
                };
 
                wps {
index 461e726fe3d5c217f6e33c7cd33ec549c5b730f0..8780dd77e55825ba458e9822bbe53211d0cf8146 100644 (file)
@@ -24,6 +24,8 @@
                usb {
                        label = "kn_rc:green:usb";
                        gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
                usb {
                        label = "kn_rc:green:usb";
                        gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
+                       trigger-sources = <&ohci_port1>, <&ehci_port1>;
+                       linux,default-trigger = "usbport";
                };
 
                wifi {
                };
 
                wifi {
index 184cbd2386835d0965b3ee4e3559a8ad9f1f7c94..eda44a4c5ce4fa5d7ed0ab2ce8bac2dd931ed492 100644 (file)
@@ -24,6 +24,8 @@
                usb {
                        label = "kn_rc:green:usb";
                        gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
                usb {
                        label = "kn_rc:green:usb";
                        gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
+                       trigger-sources = <&ohci_port1>, <&ehci_port1>;
+                       linux,default-trigger = "usbport";
                };
 
                wifi {
                };
 
                wifi {
index 2aea16c21b2298988232c43c6a8cd8cba93ef9a4..325522ec90374a514c13bb2434c9d3fcbf85b085 100644 (file)
@@ -24,6 +24,8 @@
                usb {
                        label = "kng_rc:green:usb";
                        gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
                usb {
                        label = "kng_rc:green:usb";
                        gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
+                       trigger-sources = <&ohci_port1>, <&ehci_port1>;
+                       linux,default-trigger = "usbport";
                };
 
                power_alert {
                };
 
                power_alert {
index a242684fd891ede36c55aef792b26a0edd52107b..2d6ec49370ccde71307bc039b676c7ee380c6b70 100644 (file)
        };
 
        ehci: ehci@101c0000 {
        };
 
        ehci: ehci@101c0000 {
+               #address-cells = <1>;
+               #size-cells = <0>;
                compatible = "generic-ehci";
                reg = <0x101c0000 0x1000>;
 
                compatible = "generic-ehci";
                reg = <0x101c0000 0x1000>;
 
                phy-names = "usb";
 
                status = "disabled";
                phy-names = "usb";
 
                status = "disabled";
+
+               ehci_port1: port@1 {
+                       reg = <1>;
+                       #trigger-source-cells = <0>;
+               };
        };
 
        ohci: ohci@101c1000 {
        };
 
        ohci: ohci@101c1000 {
+               #address-cells = <1>;
+               #size-cells = <0>;
                compatible = "generic-ohci";
                reg = <0x101c1000 0x1000>;
 
                compatible = "generic-ohci";
                reg = <0x101c1000 0x1000>;
 
                phy-names = "usb";
 
                status = "disabled";
                phy-names = "usb";
 
                status = "disabled";
+
+               ohci_port1: port@1 {
+                       reg = <1>;
+                       #trigger-source-cells = <0>;
+               };
        };
 
        pcie: pcie@10140000 {
        };
 
        pcie: pcie@10140000 {
index 1a72e98f0954b11a28758007f289880f7b7a5378..7fa15a6cefeb3ea8f7ba67c2e97f024d91a40014 100644 (file)
        };
 
        ehci: ehci@101c0000 {
        };
 
        ehci: ehci@101c0000 {
+               #address-cells = <1>;
+               #size-cells = <0>;
                compatible = "generic-ehci";
                reg = <0x101c0000 0x1000>;
 
                compatible = "generic-ehci";
                reg = <0x101c0000 0x1000>;
 
                phy-names = "usb";
 
                status = "disabled";
                phy-names = "usb";
 
                status = "disabled";
+
+               ehci_port1: port@1 {
+                       reg = <1>;
+                       #trigger-source-cells = <0>;
+               };
        };
 
        ohci: ohci@101c1000 {
        };
 
        ohci: ohci@101c1000 {
+               #address-cells = <1>;
+               #size-cells = <0>;
                compatible = "generic-ohci";
                reg = <0x101c1000 0x1000>;
 
                compatible = "generic-ohci";
                reg = <0x101c1000 0x1000>;
 
                interrupts = <18>;
 
                status = "disabled";
                interrupts = <18>;
 
                status = "disabled";
+
+               ohci_port1: port@1 {
+                       reg = <1>;
+                       #trigger-source-cells = <0>;
+               };
        };
 
        wmac: wmac@10180000 {
        };
 
        wmac: wmac@10180000 {
index f3f47cdc9227134482503656c9ae4f3b778c2a83..aa85aee6cb38935d9478fc395934b216a0781a5f 100644 (file)
        };
 
        xhci: xhci@1E1C0000 {
        };
 
        xhci: xhci@1E1C0000 {
+               #address-cells = <1>;
+               #size-cells = <0>;
                status = "okay";
 
                compatible = "mediatek,mt8173-xhci";
                status = "okay";
 
                compatible = "mediatek,mt8173-xhci";
 
                interrupt-parent = <&gic>;
                interrupts = <GIC_SHARED 22 IRQ_TYPE_LEVEL_HIGH>;
 
                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 {
        };
 
        gic: interrupt-controller@1fbc0000 {
index 43e201699e39583788e8bfd8b148680d75c36894..b8a8bb910334cd9ba86b4b69ad2702e772fe4768 100644 (file)
        };
 
        ehci: ehci@101c0000 {
        };
 
        ehci: ehci@101c0000 {
+               #address-cells = <1>;
+               #size-cells = <0>;
                compatible = "generic-ehci";
                reg = <0x101c0000 0x1000>;
 
                compatible = "generic-ehci";
                reg = <0x101c0000 0x1000>;
 
 
                interrupt-parent = <&intc>;
                interrupts = <18>;
 
                interrupt-parent = <&intc>;
                interrupts = <18>;
+
+               ehci_port1: port@1 {
+                       reg = <1>;
+                       #trigger-source-cells = <0>;
+               };
        };
 
        ohci: ohci@101c1000 {
        };
 
        ohci: ohci@101c1000 {
+               #address-cells = <1>;
+               #size-cells = <0>;
                compatible = "generic-ohci";
                reg = <0x101c1000 0x1000>;
 
                compatible = "generic-ohci";
                reg = <0x101c1000 0x1000>;
 
 
                interrupt-parent = <&intc>;
                interrupts = <18>;
 
                interrupt-parent = <&intc>;
                interrupts = <18>;
+
+               ohci_port1: port@1 {
+                       reg = <1>;
+                       #trigger-source-cells = <0>;
+               };
        };
 
        ethernet: ethernet@10100000 {
        };
 
        ethernet: ethernet@10100000 {
index 75f1229c926c950dd5876e53a1eb9566cb423cdf..40b1b2126c71df6d7a71c228b12c62c0a11e0c00 100644 (file)
        };
 
        otg: otg@101c0000 {
        };
 
        otg: otg@101c0000 {
+               #address-cells = <1>;
+               #size-cells = <0>;
                compatible = "ralink,rt3050-otg", "snps,dwc2";
                reg = <0x101c0000 0x40000>;
 
                compatible = "ralink,rt3050-otg", "snps,dwc2";
                reg = <0x101c0000 0x40000>;
 
                reset-names = "otg";
 
                status = "disabled";
                reset-names = "otg";
 
                status = "disabled";
+
+               otg_port1: port@1 {
+                       reg = <1>;
+                       #trigger-source-cells = <0>;
+               };
        };
 };
        };
 };
index a609afd73d739b6e4b8bab2ed48e43d80064d115..547de2cb4c1fe813ae5de478350ad64b70b752cc 100644 (file)
        };
 
        ehci: ehci@101c0000 {
        };
 
        ehci: ehci@101c0000 {
+               #address-cells = <1>;
+               #size-cells = <0>;
                compatible = "generic-ehci";
                reg = <0x101c0000 0x1000>;
 
                compatible = "generic-ehci";
                reg = <0x101c0000 0x1000>;
 
                interrupts = <18>;
 
                status = "disabled";
                interrupts = <18>;
 
                status = "disabled";
+
+               ehci_port1: port@1 {
+                       reg = <1>;
+                       #trigger-source-cells = <0>;
+               };
        };
 
        ohci: ohci@101c1000 {
        };
 
        ohci: ohci@101c1000 {
+               #address-cells = <1>;
+               #size-cells = <0>;
                compatible = "generic-ohci";
                reg = <0x101c1000 0x1000>;
 
                compatible = "generic-ohci";
                reg = <0x101c1000 0x1000>;
 
                interrupts = <18>;
 
                status = "disabled";
                interrupts = <18>;
 
                status = "disabled";
+
+               ohci_port1: port@1 {
+                       reg = <1>;
+                       #trigger-source-cells = <0>;
+               };
        };
 };
        };
 };
index 2a62327d80bdb5ef1435ca832f0ed47adf734f12..ce71c915c0255484968958020334f75bdc75133d 100644 (file)
        };
 
        ehci: ehci@101c0000 {
        };
 
        ehci: ehci@101c0000 {
+               #address-cells = <1>;
+               #size-cells = <0>;
                compatible = "generic-ehci";
                reg = <0x101c0000 0x1000>;
 
                compatible = "generic-ehci";
                reg = <0x101c0000 0x1000>;
 
                interrupts = <18>;
 
                status = "disabled";
                interrupts = <18>;
 
                status = "disabled";
+
+               ehci_port1: port@1 {
+                       reg = <1>;
+                       #trigger-source-cells = <0>;
+               };
        };
 
        ohci: ohci@101c1000 {
        };
 
        ohci: ohci@101c1000 {
+               #address-cells = <1>;
+               #size-cells = <0>;
                compatible = "generic-ohci";
                reg = <0x101c1000 0x1000>;
 
                compatible = "generic-ohci";
                reg = <0x101c1000 0x1000>;
 
                interrupts = <18>;
 
                status = "disabled";
                interrupts = <18>;
 
                status = "disabled";
+
+               ohci_port1: port@1 {
+                       reg = <1>;
+                       #trigger-source-cells = <0>;
+               };
        };
 };
        };
 };
index f14162a5885574431137b14757ad9bbc8121eae9..1cc35f12a3750cabb2ac3ea1ca0dfdbbb39b3983 100644 (file)
        };
 
        ehci: ehci@101c0000 {
        };
 
        ehci: ehci@101c0000 {
+               #address-cells = <1>;
+               #size-cells = <0>;
                compatible = "generic-ehci";
                reg = <0x101c0000 0x1000>;
 
                compatible = "generic-ehci";
                reg = <0x101c0000 0x1000>;
 
 
                interrupt-parent = <&intc>;
                interrupts = <18>;
 
                interrupt-parent = <&intc>;
                interrupts = <18>;
+
+               ehci_port1: port@1 {
+                       reg = <1>;
+                       #trigger-source-cells = <0>;
+               };
        };
 
        ohci: ohci@101c1000 {
        };
 
        ohci: ohci@101c1000 {
+               #address-cells = <1>;
+               #size-cells = <0>;
                compatible = "generic-ohci";
                reg = <0x101c1000 0x1000>;
 
                compatible = "generic-ohci";
                reg = <0x101c1000 0x1000>;
 
 
                interrupt-parent = <&intc>;
                interrupts = <18>;
 
                interrupt-parent = <&intc>;
                interrupts = <18>;
+
+               ohci_port1: port@1 {
+                       reg = <1>;
+                       #trigger-source-cells = <0>;
+               };
        };
 };
        };
 };