diff options
Diffstat (limited to 'target/linux/ramips')
379 files changed, 1975 insertions, 3123 deletions
diff --git a/target/linux/ramips/base-files/etc/uci-defaults/04_led_migration b/target/linux/ramips/base-files/etc/uci-defaults/04_led_migration new file mode 100644 index 0000000000..161b79dac4 --- /dev/null +++ b/target/linux/ramips/base-files/etc/uci-defaults/04_led_migration @@ -0,0 +1,8 @@ +. /lib/functions.sh +. /lib/functions/migrations.sh + +remove_devicename_leds "rt2800soc-phy0" "rt2800pci-phy0" + +migrations_apply system + +exit 0 diff --git a/target/linux/ramips/dts/mt7620a_aigale_ai-br100.dts b/target/linux/ramips/dts/mt7620a_aigale_ai-br100.dts index 66776c2fc6..ba251c2656 100644 --- a/target/linux/ramips/dts/mt7620a_aigale_ai-br100.dts +++ b/target/linux/ramips/dts/mt7620a_aigale_ai-br100.dts @@ -18,12 +18,12 @@ compatible = "gpio-leds"; wan { - label = "ai-br100:blue:wan"; + label = "blue:wan"; gpios = <&gpio2 4 GPIO_ACTIVE_LOW>; }; led_wlan: wlan { - label = "ai-br100:blue:wlan"; + label = "blue:wlan"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_alfa-network_ac1200rm.dts b/target/linux/ramips/dts/mt7620a_alfa-network_ac1200rm.dts index 8632f5ce04..fe666e482a 100644 --- a/target/linux/ramips/dts/mt7620a_alfa-network_ac1200rm.dts +++ b/target/linux/ramips/dts/mt7620a_alfa-network_ac1200rm.dts @@ -62,12 +62,12 @@ compatible = "gpio-leds"; wlan2g { - label = "ac1200rm:green:wlan2g"; + label = "green:wlan2g"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; led_wps: wps { - label = "ac1200rm:green:wps"; + label = "green:wps"; gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_alfa-network_r36m-e4g.dts b/target/linux/ramips/dts/mt7620a_alfa-network_r36m-e4g.dts index 366a377440..58386a9ac7 100644 --- a/target/linux/ramips/dts/mt7620a_alfa-network_r36m-e4g.dts +++ b/target/linux/ramips/dts/mt7620a_alfa-network_r36m-e4g.dts @@ -81,40 +81,40 @@ compatible = "gpio-leds"; 4g { - label = "r36m-e4g:orange:4g"; + label = "orange:4g"; gpios = <&gpio1 3 GPIO_ACTIVE_LOW>; }; lan { - label = "r36m-e4g:green:lan"; + label = "green:lan"; gpios = <&gpio2 3 GPIO_ACTIVE_LOW>; }; led_system: system { - label = "r36m-e4g:green:system"; + label = "green:system"; gpios = <&gpio2 0 GPIO_ACTIVE_LOW>; default-state = "keep"; }; sim1 { - label = "r36m-e4g:green:sim1"; + label = "green:sim1"; gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; default-state = "keep"; }; sim2 { - label = "r36m-e4g:green:sim2"; + label = "green:sim2"; gpios = <&gpio2 2 GPIO_ACTIVE_LOW>; default-state = "keep"; }; wan { - label = "r36m-e4g:green:wan"; + label = "green:wan"; gpios = <&gpio2 4 GPIO_ACTIVE_LOW>; }; wlan { - label = "r36m-e4g:orange:wlan"; + label = "orange:wlan"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0radio"; }; diff --git a/target/linux/ramips/dts/mt7620a_alfa-network_tube-e4g.dts b/target/linux/ramips/dts/mt7620a_alfa-network_tube-e4g.dts index 2462e13b47..42047390b0 100644 --- a/target/linux/ramips/dts/mt7620a_alfa-network_tube-e4g.dts +++ b/target/linux/ramips/dts/mt7620a_alfa-network_tube-e4g.dts @@ -69,29 +69,29 @@ compatible = "gpio-leds"; 4g { - label = "tube-e4g:green:4g"; + label = "green:4g"; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; }; lan { - label = "tube-e4g:blue:lan"; + label = "blue:lan"; gpios = <&gpio2 4 GPIO_ACTIVE_LOW>; }; power: power { - label = "tube-e4g:green:power"; + label = "green:power"; gpios = <&gpio2 0 GPIO_ACTIVE_LOW>; default-state = "keep"; }; sim1 { - label = "tube-e4g:green:sim1"; + label = "green:sim1"; gpios = <&gpio2 3 GPIO_ACTIVE_LOW>; default-state = "keep"; }; sim2 { - label = "tube-e4g:green:sim2"; + label = "green:sim2"; gpios = <&gpio2 2 GPIO_ACTIVE_LOW>; default-state = "keep"; }; diff --git a/target/linux/ramips/dts/mt7620a_asus_rp-n53.dts b/target/linux/ramips/dts/mt7620a_asus_rp-n53.dts index d58591e950..3cb9142c38 100644 --- a/target/linux/ramips/dts/mt7620a_asus_rp-n53.dts +++ b/target/linux/ramips/dts/mt7620a_asus_rp-n53.dts @@ -39,42 +39,42 @@ compatible = "gpio-leds"; backlight { - label = "rp-n53:white:back"; + label = "white:back"; gpios = <&gpio1 4 GPIO_ACTIVE_LOW>; }; wifi0 { - label = "rp-n53:blue:5g3"; + label = "blue:5g3"; gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; }; wifi1 { - label = "rp-n53:blue:5g2"; + label = "blue:5g2"; gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; }; wifi2 { - label = "rp-n53:blue:5g1"; + label = "blue:5g1"; gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; }; wifi3 { - label = "rp-n53:blue:wifi"; + label = "blue:wifi"; gpios = <&gpio1 8 GPIO_ACTIVE_LOW>; }; wifi4 { - label = "rp-n53:blue:2g1"; + label = "blue:2g1"; gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; }; wifi5 { - label = "rp-n53:blue:2g2"; + label = "blue:2g2"; gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; }; wifi6 { - label = "rp-n53:blue:2g3"; + label = "blue:2g3"; gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_asus_rt-ac51u.dts b/target/linux/ramips/dts/mt7620a_asus_rt-ac51u.dts index f517e2c0e2..0710b25571 100644 --- a/target/linux/ramips/dts/mt7620a_asus_rt-ac51u.dts +++ b/target/linux/ramips/dts/mt7620a_asus_rt-ac51u.dts @@ -3,42 +3,6 @@ / { compatible = "asus,rt-ac51u", "ralink,mt7620a-soc"; model = "Asus RT-AC51U"; - - aliases { - led-boot = &led_power; - led-failsafe = &led_power; - led-running = &led_power; - led-upgrade = &led_power; - }; - - leds { - compatible = "gpio-leds"; - - led_power: power { - label = "rt-ac51u:blue:power"; - gpios = <&gpio0 9 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"; - }; - - wifi2g { - label = "rt-ac51u:blue:wifi2g"; - gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy1tpt"; - }; - }; -}; - -&state_default { - gpio { - groups = "i2c", "wled", "uartf"; - function = "gpio"; - }; }; &pcie0 { diff --git a/target/linux/ramips/dts/mt7620a_asus_rt-ac54u.dts b/target/linux/ramips/dts/mt7620a_asus_rt-ac54u.dts index d0ff5d6d70..acc60807b6 100644 --- a/target/linux/ramips/dts/mt7620a_asus_rt-ac54u.dts +++ b/target/linux/ramips/dts/mt7620a_asus_rt-ac54u.dts @@ -5,42 +5,6 @@ / { compatible = "asus,rt-ac54u", "ralink,mt7620a-soc"; model = "Asus RT-AC54U"; - - aliases { - led-boot = &led_power; - led-failsafe = &led_power; - led-running = &led_power; - led-upgrade = &led_power; - }; - - leds { - compatible = "gpio-leds"; - - led_power: power { - label = "rt-ac54u:blue:power"; - gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; - }; - - usb { - label = "rt-ac54u:blue:usb"; - gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; - trigger-sources = <&ohci_port1>, <&ehci_port1>; - linux,default-trigger = "usbport"; - }; - - wifi2g { - label = "rt-ac54u:blue:wifi2g"; - gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy1tpt"; - }; - }; -}; - -&state_default { - gpio { - groups = "i2c", "wled", "uartf"; - function = "gpio"; - }; }; &pcie0 { diff --git a/target/linux/ramips/dts/mt7620a_asus_rt-ac5x.dtsi b/target/linux/ramips/dts/mt7620a_asus_rt-ac5x.dtsi index adec8a1a6f..423b4edc6b 100644 --- a/target/linux/ramips/dts/mt7620a_asus_rt-ac5x.dtsi +++ b/target/linux/ramips/dts/mt7620a_asus_rt-ac5x.dtsi @@ -6,6 +6,10 @@ / { aliases { label-mac-device = ðernet; + led-boot = &led_power; + led-failsafe = &led_power; + led-running = &led_power; + led-upgrade = &led_power; }; keys { @@ -23,6 +27,28 @@ linux,code = <KEY_WPS_BUTTON>; }; }; + + leds { + compatible = "gpio-leds"; + + led_power: power { + label = "blue:power"; + gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; + }; + + usb { + label = "blue:usb"; + gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; + trigger-sources = <&ohci_port1>, <&ehci_port1>; + linux,default-trigger = "usbport"; + }; + + wifi2g { + label = "blue:wifi2g"; + gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; + linux,default-trigger = "phy1tpt"; + }; + }; }; &spi0 { @@ -88,6 +114,13 @@ status = "okay"; }; +&state_default { + gpio { + groups = "i2c", "wled", "uartf"; + function = "gpio"; + }; +}; + ðernet { mtd-mac-address = <&factory 0x28>; diff --git a/target/linux/ramips/dts/mt7620a_bdcom_wap2100-sk.dts b/target/linux/ramips/dts/mt7620a_bdcom_wap2100-sk.dts index f7d2748d2e..07586f6922 100644 --- a/target/linux/ramips/dts/mt7620a_bdcom_wap2100-sk.dts +++ b/target/linux/ramips/dts/mt7620a_bdcom_wap2100-sk.dts @@ -22,19 +22,19 @@ compatible = "gpio-leds"; usb { - label = "wap2100-sk:green:usb"; + label = "green:usb"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; }; led_power: wps { - label = "wap2100-sk:green:wps"; + label = "green:wps"; gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; }; wlan2g { - label = "wap2100-sk:green:wlan2g"; + label = "green:wlan2g"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_buffalo_whr-1166d.dts b/target/linux/ramips/dts/mt7620a_buffalo_whr-1166d.dts index bba0bde86d..196bbde726 100644 --- a/target/linux/ramips/dts/mt7620a_buffalo_whr-1166d.dts +++ b/target/linux/ramips/dts/mt7620a_buffalo_whr-1166d.dts @@ -18,37 +18,37 @@ compatible = "gpio-leds"; power { - label = "whr-1166d:red:power"; + label = "red:power"; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; }; wifi { - label = "whr-1166d:green:wifi"; + label = "green:wifi"; gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; }; led_power_green: power2 { - label = "whr-1166d:green:power"; + label = "green:power"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; wifi2 { - label = "whr-1166d:orange:wifi"; + label = "orange:wifi"; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; }; internet { - label = "whr-1166d:green:internet"; + label = "green:internet"; gpios = <&gpio2 17 GPIO_ACTIVE_LOW>; }; router { - label = "whr-1166d:orange:router"; + label = "orange:router"; gpios = <&gpio2 18 GPIO_ACTIVE_LOW>; }; router2 { - label = "whr-1166d:green:router"; + label = "green:router"; gpios = <&gpio2 19 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_buffalo_whr-300hp2.dts b/target/linux/ramips/dts/mt7620a_buffalo_whr-300hp2.dts index cd370b989b..ed2e03d6cf 100644 --- a/target/linux/ramips/dts/mt7620a_buffalo_whr-300hp2.dts +++ b/target/linux/ramips/dts/mt7620a_buffalo_whr-300hp2.dts @@ -18,37 +18,37 @@ compatible = "gpio-leds"; power { - label = "whr-300hp2:red:power"; + label = "red:power"; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; }; wifi { - label = "whr-300hp2:green:wifi"; + label = "green:wifi"; gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; }; led_power_green: power2 { - label = "whr-300hp2:green:power"; + label = "green:power"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; wifi2 { - label = "whr-300hp2:orange:wifi"; + label = "orange:wifi"; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; }; internet { - label = "whr-300hp2:green:internet"; + label = "green:internet"; gpios = <&gpio2 17 GPIO_ACTIVE_LOW>; }; router { - label = "whr-300hp2:green:router"; + label = "green:router"; gpios = <&gpio2 18 GPIO_ACTIVE_LOW>; }; router2 { - label = "whr-300hp2:orange:router"; + label = "orange:router"; gpios = <&gpio2 19 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_buffalo_whr-600d.dts b/target/linux/ramips/dts/mt7620a_buffalo_whr-600d.dts index 7579d901d3..b799a98e56 100644 --- a/target/linux/ramips/dts/mt7620a_buffalo_whr-600d.dts +++ b/target/linux/ramips/dts/mt7620a_buffalo_whr-600d.dts @@ -18,37 +18,37 @@ compatible = "gpio-leds"; power { - label = "whr-600d:red:power"; + label = "red:power"; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; }; wifi { - label = "whr-600d:green:wifi"; + label = "green:wifi"; gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; }; led_power_green: power2 { - label = "whr-600d:green:power"; + label = "green:power"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; wifi2 { - label = "whr-600d:orange:wifi"; + label = "orange:wifi"; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; }; internet { - label = "whr-600d:green:internet"; + label = "green:internet"; gpios = <&gpio2 17 GPIO_ACTIVE_LOW>; }; router { - label = "whr-600d:green:router"; + label = "green:router"; gpios = <&gpio2 18 GPIO_ACTIVE_LOW>; }; router2 { - label = "whr-600d:orange:router"; + label = "orange:router"; gpios = <&gpio2 19 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_cameo_810.dtsi b/target/linux/ramips/dts/mt7620a_cameo_810.dtsi index adbb4cf65c..3ec31238b4 100644 --- a/target/linux/ramips/dts/mt7620a_cameo_810.dtsi +++ b/target/linux/ramips/dts/mt7620a_cameo_810.dtsi @@ -6,6 +6,14 @@ #include <dt-bindings/input/input.h> / { + aliases { + label-mac-device = ðernet; + led-boot = &led_power_green; + led-failsafe = &led_power_green; + led-running = &led_power_green; + led-upgrade = &led_power_green; + }; + keys { compatible = "gpio-keys"; @@ -21,6 +29,30 @@ linux,code = <KEY_WPS_BUTTON>; }; }; + + leds { + compatible = "gpio-leds"; + + led_power_green: power_green { + label = "green:power"; + gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>; + }; + + wan_orange { + label = "orange:wan"; + gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; + }; + + wan_green { + label = "green:wan"; + gpios = <&gpio2 0 GPIO_ACTIVE_LOW>; + }; + + power_orange { + label = "orange:power"; + gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>; + }; + }; }; &spi0 { @@ -87,6 +119,13 @@ }; }; +&state_default { + gpio { + groups = "i2c", "uartf", "ephy"; + function = "gpio"; + }; +}; + ðernet { mtd-mac-address = <&factory 0x28>; diff --git a/target/linux/ramips/dts/mt7620a_dlink_dch-m225.dts b/target/linux/ramips/dts/mt7620a_dlink_dch-m225.dts index 5bc5b376c7..bbd193b4ac 100644 --- a/target/linux/ramips/dts/mt7620a_dlink_dch-m225.dts +++ b/target/linux/ramips/dts/mt7620a_dlink_dch-m225.dts @@ -34,13 +34,13 @@ compatible = "gpio-leds"; led_power: power { - label = "dch-m225:green:power"; + label = "green:power"; gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; default-state = "on"; }; status { - label = "dch-m225:red:status"; + label = "red:status"; gpios = <&gpio1 0 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_dlink_dir-510l.dts b/target/linux/ramips/dts/mt7620a_dlink_dir-510l.dts index 0c0d9c9f33..6ad3f41560 100644 --- a/target/linux/ramips/dts/mt7620a_dlink_dir-510l.dts +++ b/target/linux/ramips/dts/mt7620a_dlink_dir-510l.dts @@ -40,12 +40,12 @@ compatible = "gpio-leds"; led_status: status { - label = "dir-510l:green:status"; + label = "green:status"; gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>; }; status-red { - label = "dir-510l:red:status"; + label = "red:status"; gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_dlink_dir-810l.dts b/target/linux/ramips/dts/mt7620a_dlink_dir-810l.dts index fa080a2403..12173d1e86 100644 --- a/target/linux/ramips/dts/mt7620a_dlink_dir-810l.dts +++ b/target/linux/ramips/dts/mt7620a_dlink_dir-810l.dts @@ -3,43 +3,4 @@ / { compatible = "dlink,dir-810l", "ralink,mt7620a-soc"; model = "D-Link DIR-810L"; - - aliases { - led-boot = &led_power_green; - led-failsafe = &led_power_green; - led-running = &led_power_green; - led-upgrade = &led_power_green; - label-mac-device = ðernet; - }; - - leds { - compatible = "gpio-leds"; - - led_power_green: power_green { - label = "dir-810l:green:power"; - gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>; - }; - - wan_orange { - label = "dir-810l:orange:wan"; - gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; - }; - - wan_green { - label = "dir-810l:green:wan"; - gpios = <&gpio2 0 GPIO_ACTIVE_LOW>; - }; - - power_orange { - label = "dir-810l:orange:power"; - gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>; - }; - }; -}; - -&state_default { - gpio { - groups = "i2c", "uartf", "ephy"; - function = "gpio"; - }; }; diff --git a/target/linux/ramips/dts/mt7620a_dlink_dwr-118-a1.dts b/target/linux/ramips/dts/mt7620a_dlink_dwr-118-a1.dts index ee62f3d49a..bacebee8e1 100644 --- a/target/linux/ramips/dts/mt7620a_dlink_dwr-118-a1.dts +++ b/target/linux/ramips/dts/mt7620a_dlink_dwr-118-a1.dts @@ -35,27 +35,27 @@ compatible = "gpio-leds"; wan { - label = "dwr-118-a1:green:wan"; + label = "green:wan"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; led_internet: internet { - label = "dwr-118-a1:green:internet"; + label = "green:internet"; gpios = <&gpio2 0 GPIO_ACTIVE_LOW>; }; lan { - label = "dwr-118-a1:green:lan"; + label = "green:lan"; gpios = <&gpio2 1 GPIO_ACTIVE_LOW>; }; wlan2g { - label = "dwr-118-a1:green:wlan2g"; + label = "green:wlan2g"; gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; }; usb { - label = "dwr-118-a1:green:usb"; + label = "green:usb"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; diff --git a/target/linux/ramips/dts/mt7620a_dlink_dwr-118-a2.dts b/target/linux/ramips/dts/mt7620a_dlink_dwr-118-a2.dts index 296890ebd6..0b124e67de 100644 --- a/target/linux/ramips/dts/mt7620a_dlink_dwr-118-a2.dts +++ b/target/linux/ramips/dts/mt7620a_dlink_dwr-118-a2.dts @@ -32,27 +32,27 @@ compatible = "gpio-leds"; wan { - label = "dwr-118-a2:green:wan"; + label = "green:wan"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; led_internet: internet { - label = "dwr-118-a2:green:internet"; + label = "green:internet"; gpios = <&gpio2 0 GPIO_ACTIVE_LOW>; }; lan { - label = "dwr-118-a2:green:lan"; + label = "green:lan"; gpios = <&gpio2 1 GPIO_ACTIVE_LOW>; }; wlan2g { - label = "dwr-118-a2:green:wlan2g"; + label = "green:wlan2g"; gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; }; usb { - label = "dwr-118-a2:green:usb"; + label = "green:usb"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; diff --git a/target/linux/ramips/dts/mt7620a_dlink_dwr-960.dts b/target/linux/ramips/dts/mt7620a_dlink_dwr-960.dts index ed0cc575eb..4284c61aa2 100644 --- a/target/linux/ramips/dts/mt7620a_dlink_dwr-960.dts +++ b/target/linux/ramips/dts/mt7620a_dlink_dwr-960.dts @@ -36,53 +36,53 @@ compatible = "gpio-leds"; led_status: status { - label = "dwr-960:green:status"; + label = "green:status"; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; }; wan { - label = "dwr-960:green:wan"; + label = "green:wan"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; }; lan { - label = "dwr-960:green:lan"; + label = "green:lan"; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; }; sms { - label = "dwr-960:green:sms"; + label = "green:sms"; gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; }; signal_green { - label = "dwr-960:green:signal"; + label = "green:signal"; gpios = <&gpio2 0 GPIO_ACTIVE_HIGH>; }; signal_red { - label = "dwr-960:red:signal"; + label = "red:signal"; gpios = <&gpio2 1 GPIO_ACTIVE_HIGH>; }; 4g { - label = "dwr-960:green:4g"; + label = "green:4g"; gpios = <&gpio2 2 GPIO_ACTIVE_LOW>; }; 3g { - label = "dwr-960:green:3g"; + label = "green:3g"; gpios = <&gpio2 3 GPIO_ACTIVE_LOW>; }; wlan5g { - label = "dwr-960:green:wlan5g"; + label = "green:wlan5g"; gpios = <&gpio2 4 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; wlan2g { - label = "dwr-960:green:wlan2g"; + label = "green:wlan2g"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy1tpt"; }; diff --git a/target/linux/ramips/dts/mt7620a_dovado_tiny-ac.dts b/target/linux/ramips/dts/mt7620a_dovado_tiny-ac.dts index a0e72a4fae..4f25b34567 100644 --- a/target/linux/ramips/dts/mt7620a_dovado_tiny-ac.dts +++ b/target/linux/ramips/dts/mt7620a_dovado_tiny-ac.dts @@ -11,14 +11,14 @@ compatible = "gpio-leds"; usb { - label = "tiny-ac:green:usb"; + label = "green:usb"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; }; wifi { - label = "tiny-ac:orange:wifi"; + label = "orange:wifi"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_edimax_br-6478ac-v2.dts b/target/linux/ramips/dts/mt7620a_edimax_br-6478ac-v2.dts index a90760eb6d..0b991611b2 100644 --- a/target/linux/ramips/dts/mt7620a_edimax_br-6478ac-v2.dts +++ b/target/linux/ramips/dts/mt7620a_edimax_br-6478ac-v2.dts @@ -41,22 +41,22 @@ compatible = "gpio-leds"; led_power: power { - label = "br-6478ac-v2:white:power"; + label = "white:power"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; }; internet { - label = "br-6478ac-v2:blue:internet"; + label = "blue:internet"; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; }; wlan { - label = "br-6478ac-v2:blue:wlan"; + label = "blue:wlan"; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; }; usb { - label = "br-6478ac-v2:blue:usb"; + label = "blue:usb"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; diff --git a/target/linux/ramips/dts/mt7620a_edimax_ew-7476rpc.dts b/target/linux/ramips/dts/mt7620a_edimax_ew-7476rpc.dts index cb0ce575ae..ebab7e4089 100644 --- a/target/linux/ramips/dts/mt7620a_edimax_ew-7476rpc.dts +++ b/target/linux/ramips/dts/mt7620a_edimax_ew-7476rpc.dts @@ -5,40 +5,4 @@ / { compatible = "edimax,ew-7476rpc", "ralink,mt7620a-soc"; model = "Edimax EW-7476RPC"; - - leds { - compatible = "gpio-leds"; - - led_power: power { - label = "ew-7476rpc:green:power"; - gpios = <&gpio2 27 GPIO_ACTIVE_LOW>; - }; - - lan { - label = "ew-7476rpc:green:lan"; - gpios = <&gpio2 26 GPIO_ACTIVE_LOW>; - }; - - wlan2g { - label = "ew-7476rpc:blue:wlan2g"; - gpios = <&gpio2 30 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy1radio"; - }; - - wlan5g { - label = "ew-7476rpc:blue:wlan5g"; - gpios = <&gpio2 31 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0radio"; - }; - - wps { - label = "ew-7476rpc:green:wps"; - gpios = <&gpio2 28 GPIO_ACTIVE_LOW>; - }; - - crossband { - label = "ew-7476rpc:green:crossband"; - gpios = <&gpio2 29 GPIO_ACTIVE_LOW>; - }; - }; }; diff --git a/target/linux/ramips/dts/mt7620a_edimax_ew-7478ac.dts b/target/linux/ramips/dts/mt7620a_edimax_ew-7478ac.dts index 160a8c26dd..a0fa2e3da8 100644 --- a/target/linux/ramips/dts/mt7620a_edimax_ew-7478ac.dts +++ b/target/linux/ramips/dts/mt7620a_edimax_ew-7478ac.dts @@ -5,40 +5,4 @@ / { compatible = "edimax,ew-7478ac", "ralink,mt7620a-soc"; model = "Edimax EW-7478AC"; - - leds { - compatible = "gpio-leds"; - - led_power: power { - label = "ew-7478ac:green:power"; - gpios = <&gpio2 27 GPIO_ACTIVE_LOW>; - }; - - lan { - label = "ew-7478ac:green:lan"; - gpios = <&gpio2 26 GPIO_ACTIVE_LOW>; - }; - - wlan2g { - label = "ew-7478ac:blue:wlan2g"; - gpios = <&gpio2 30 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy1radio"; - }; - - wlan5g { - label = "ew-7478ac:blue:wlan5g"; - gpios = <&gpio2 31 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0radio"; - }; - - wps { - label = "ew-7478ac:green:wps"; - gpios = <&gpio2 28 GPIO_ACTIVE_LOW>; - }; - - crossband { - label = "ew-7478ac:green:crossband"; - gpios = <&gpio2 29 GPIO_ACTIVE_LOW>; - }; - }; }; diff --git a/target/linux/ramips/dts/mt7620a_edimax_ew-7478apc.dts b/target/linux/ramips/dts/mt7620a_edimax_ew-7478apc.dts index 9d59755ac8..1e1b2830f0 100644 --- a/target/linux/ramips/dts/mt7620a_edimax_ew-7478apc.dts +++ b/target/linux/ramips/dts/mt7620a_edimax_ew-7478apc.dts @@ -30,22 +30,22 @@ compatible = "gpio-leds"; led_power: power { - label = "ew-7478apc:white:power"; + label = "white:power"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; }; internet { - label = "ew-7478apc:blue:internet"; + label = "blue:internet"; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; }; wlan { - label = "ew-7478apc:blue:wlan"; + label = "blue:wlan"; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; }; usb { - label = "ew-7478apc:blue:usb"; + label = "blue:usb"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; diff --git a/target/linux/ramips/dts/mt7620a_edimax_ew-747x.dtsi b/target/linux/ramips/dts/mt7620a_edimax_ew-747x.dtsi index be83db2503..78b481bd2a 100644 --- a/target/linux/ramips/dts/mt7620a_edimax_ew-747x.dtsi +++ b/target/linux/ramips/dts/mt7620a_edimax_ew-747x.dtsi @@ -38,6 +38,42 @@ linux,input-type = <EV_SW>; }; }; + + leds { + compatible = "gpio-leds"; + + led_power: power { + label = "green:power"; + gpios = <&gpio2 27 GPIO_ACTIVE_LOW>; + }; + + lan { + label = "green:lan"; + gpios = <&gpio2 26 GPIO_ACTIVE_LOW>; + }; + + wlan2g { + label = "blue:wlan2g"; + gpios = <&gpio2 30 GPIO_ACTIVE_LOW>; + linux,default-trigger = "phy1radio"; + }; + + wlan5g { + label = "blue:wlan5g"; + gpios = <&gpio2 31 GPIO_ACTIVE_LOW>; + linux,default-trigger = "phy0radio"; + }; + + wps { + label = "green:wps"; + gpios = <&gpio2 28 GPIO_ACTIVE_LOW>; + }; + + crossband { + label = "green:crossband"; + gpios = <&gpio2 29 GPIO_ACTIVE_LOW>; + }; + }; }; &gpio1 { diff --git a/target/linux/ramips/dts/mt7620a_engenius_esr600.dts b/target/linux/ramips/dts/mt7620a_engenius_esr600.dts index 4da1c9c708..807e18d62b 100644 --- a/target/linux/ramips/dts/mt7620a_engenius_esr600.dts +++ b/target/linux/ramips/dts/mt7620a_engenius_esr600.dts @@ -24,22 +24,22 @@ compatible = "gpio-leds"; led_power: power { - label = "esr600:amber:power"; + label = "amber:power"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; wps2g { - label = "esr600:amber:wps2g"; + label = "amber:wps2g"; gpios = <&gpio2 6 GPIO_ACTIVE_LOW>; }; wlan5g { - label = "esr600:blue:wlan5g"; + label = "blue:wlan5g"; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; }; wlan2g { - label = "esr600:blue:wlan2g"; + label = "blue:wlan2g"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_fon_fon2601.dts b/target/linux/ramips/dts/mt7620a_fon_fon2601.dts index 1ed778f4f5..4dc0e28c9f 100644 --- a/target/linux/ramips/dts/mt7620a_fon_fon2601.dts +++ b/target/linux/ramips/dts/mt7620a_fon_fon2601.dts @@ -20,22 +20,22 @@ compatible = "gpio-leds"; led_power: power_r { - label = "fon2601:red:power"; + label = "red:power"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; internet_g { - label = "fon2601:green:internet"; + label = "green:internet"; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; }; net_g { - label = "fon2601:green:net"; + label = "green:net"; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; }; wifi_g { - label = "fon2601:green:wifi"; + label = "green:wifi"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_head-weblink_hdrm200.dts b/target/linux/ramips/dts/mt7620a_head-weblink_hdrm200.dts index 2c6ac0baf7..d4e0a81e9f 100644 --- a/target/linux/ramips/dts/mt7620a_head-weblink_hdrm200.dts +++ b/target/linux/ramips/dts/mt7620a_head-weblink_hdrm200.dts @@ -24,17 +24,17 @@ compatible = "gpio-leds"; rssi { - label = "hdrm200:red:rssi"; + label = "red:rssi"; gpios = <&gpio0 19 GPIO_ACTIVE_LOW>; }; led_system: system { - label = "hdrm200:green:system"; + label = "green:system"; gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>; }; air { - label = "hdrm200:green:wifi"; + label = "green:wifi"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_hiwifi_hc5661.dts b/target/linux/ramips/dts/mt7620a_hiwifi_hc5661.dts index 263bccd20a..90ce3c92d7 100644 --- a/target/linux/ramips/dts/mt7620a_hiwifi_hc5661.dts +++ b/target/linux/ramips/dts/mt7620a_hiwifi_hc5661.dts @@ -15,17 +15,17 @@ compatible = "gpio-leds"; led_system: system { - label = "hc5661:blue:system"; + label = "blue:system"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; internet { - label = "hc5661:blue:internet"; + label = "blue:internet"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; }; wlan2g { - label = "hc5661:blue:wlan2g"; + label = "blue:wlan2g"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; diff --git a/target/linux/ramips/dts/mt7620a_hiwifi_hc5761.dts b/target/linux/ramips/dts/mt7620a_hiwifi_hc5761.dts index 9ad32000e2..5b67779984 100644 --- a/target/linux/ramips/dts/mt7620a_hiwifi_hc5761.dts +++ b/target/linux/ramips/dts/mt7620a_hiwifi_hc5761.dts @@ -15,23 +15,23 @@ compatible = "gpio-leds"; led_system: system { - label = "hc5761:blue:system"; + label = "blue:system"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; internet { - label = "hc5761:blue:internet"; + label = "blue:internet"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; }; wlan2g { - label = "hc5761:blue:wlan2g"; + label = "blue:wlan2g"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy1tpt"; }; wlan5g { - label = "hc5761:blue:wlan5g"; + label = "blue:wlan5g"; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; diff --git a/target/linux/ramips/dts/mt7620a_hiwifi_hc5861.dts b/target/linux/ramips/dts/mt7620a_hiwifi_hc5861.dts index d54248fd86..08163e56ba 100644 --- a/target/linux/ramips/dts/mt7620a_hiwifi_hc5861.dts +++ b/target/linux/ramips/dts/mt7620a_hiwifi_hc5861.dts @@ -15,29 +15,29 @@ compatible = "gpio-leds"; led_system: system { - label = "hc5861:blue:system"; + label = "blue:system"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; wlan2g { - label = "hc5861:blue:wlan2g"; + label = "blue:wlan2g"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy1tpt"; }; internet { - label = "hc5861:blue:internet"; + label = "blue:internet"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; wlan5g { - label = "hc5861:blue:wlan5g"; + label = "blue:wlan5g"; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; turbo { - label = "hc5861:blue:turbo"; + label = "blue:turbo"; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_hnet_c108.dts b/target/linux/ramips/dts/mt7620a_hnet_c108.dts index be0e0c0e99..d9c5c24287 100644 --- a/target/linux/ramips/dts/mt7620a_hnet_c108.dts +++ b/target/linux/ramips/dts/mt7620a_hnet_c108.dts @@ -66,27 +66,27 @@ compatible = "gpio-leds"; sdcard { - label = "c108:green:sdcard"; + label = "green:sdcard"; gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>; }; modem_green { - label = "c108:green:modem"; + label = "green:modem"; gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; }; modem_red { - label = "c108:red:modem"; + label = "red:modem"; gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; }; lan_red { - label = "c108:red:lan"; + label = "red:lan"; gpios = <&gpio2 3 GPIO_ACTIVE_HIGH>; }; led_lan_green: lan_green { - label = "c108:green:lan"; + label = "green:lan"; gpios = <&gpio2 4 GPIO_ACTIVE_HIGH>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_iodata_wn-ac1167gr.dts b/target/linux/ramips/dts/mt7620a_iodata_wn-ac1167gr.dts index 1ac294f06a..7044a511bc 100644 --- a/target/linux/ramips/dts/mt7620a_iodata_wn-ac1167gr.dts +++ b/target/linux/ramips/dts/mt7620a_iodata_wn-ac1167gr.dts @@ -20,23 +20,23 @@ compatible = "gpio-leds"; led_power: power { - label = "wn-ac1167gr:green:power"; + label = "green:power"; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; default-state = "on"; }; wlan2g { - label = "wn-ac1167gr:green:wlan2g"; + label = "green:wlan2g"; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; }; notification { - label = "wn-ac1167gr:green:notification"; + label = "green:notification"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; }; wlan5g { - label = "wn-ac1167gr:green:wlan5g"; + label = "green:wlan5g"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_iodata_wn-ac733gr3.dts b/target/linux/ramips/dts/mt7620a_iodata_wn-ac733gr3.dts index 150be50d44..e29431dc8d 100644 --- a/target/linux/ramips/dts/mt7620a_iodata_wn-ac733gr3.dts +++ b/target/linux/ramips/dts/mt7620a_iodata_wn-ac733gr3.dts @@ -20,23 +20,23 @@ compatible = "gpio-leds"; led_power: power { - label = "wn-ac733gr3:green:power"; + label = "green:power"; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; default-state = "on"; }; notification { - label = "wn-ac733gr3:green:notification"; + label = "green:notification"; gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; }; wlan2g { - label = "wn-ac733gr3:green:wlan2g"; + label = "green:wlan2g"; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; }; wlan5g { - label = "wn-ac733gr3:green:wlan5g"; + label = "green:wlan5g"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_iptime_a1004ns.dts b/target/linux/ramips/dts/mt7620a_iptime_a1004ns.dts index d5e97bc153..20d0557916 100644 --- a/target/linux/ramips/dts/mt7620a_iptime_a1004ns.dts +++ b/target/linux/ramips/dts/mt7620a_iptime_a1004ns.dts @@ -17,12 +17,12 @@ compatible = "gpio-leds"; led_cpu: cpu { - label = "a1004ns:blue:cpu"; + label = "blue:cpu"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; }; usb { - label = "a1004ns:blue:usb"; + label = "blue:usb"; gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; diff --git a/target/linux/ramips/dts/mt7620a_iptime_a104ns.dts b/target/linux/ramips/dts/mt7620a_iptime_a104ns.dts index 0784061a97..c997d68cd1 100644 --- a/target/linux/ramips/dts/mt7620a_iptime_a104ns.dts +++ b/target/linux/ramips/dts/mt7620a_iptime_a104ns.dts @@ -17,14 +17,14 @@ compatible = "gpio-leds"; usb { - label = "a104ns:blue:usb"; + label = "blue:usb"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; }; led_cpu: cpu { - label = "a104ns:blue:cpu"; + label = "blue:cpu"; gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_kimax_u25awf-h1.dts b/target/linux/ramips/dts/mt7620a_kimax_u25awf-h1.dts index 9c21d94d73..218dd7a761 100644 --- a/target/linux/ramips/dts/mt7620a_kimax_u25awf-h1.dts +++ b/target/linux/ramips/dts/mt7620a_kimax_u25awf-h1.dts @@ -28,12 +28,12 @@ compatible = "gpio-leds"; led_wifi: wifi { - label = "u25awf:red:wifi"; + label = "red:wifi"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; lan { - label = "u25awf:green:lan"; + label = "green:lan"; gpios = <&gpio2 4 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_lava_lr-25g001.dts b/target/linux/ramips/dts/mt7620a_lava_lr-25g001.dts index 810c1bf856..d5fb543a63 100644 --- a/target/linux/ramips/dts/mt7620a_lava_lr-25g001.dts +++ b/target/linux/ramips/dts/mt7620a_lava_lr-25g001.dts @@ -34,17 +34,17 @@ compatible = "gpio-leds"; led_status: status { - label = "lr-25g001:green:status"; + label = "green:status"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; wifi2g { - label = "lr-25g001:green:wifi2g"; + label = "green:wifi2g"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; }; wifi5g { - label = "lr-25g001:green:wifi5g"; + label = "green:wifi5g"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_lb-link_bl-w1200.dts b/target/linux/ramips/dts/mt7620a_lb-link_bl-w1200.dts index 5c198941f9..bb1303d4fb 100644 --- a/target/linux/ramips/dts/mt7620a_lb-link_bl-w1200.dts +++ b/target/linux/ramips/dts/mt7620a_lb-link_bl-w1200.dts @@ -29,7 +29,7 @@ compatible = "gpio-leds"; led_wps: wps { - label = "bl-w1200:green:wps"; + label = "green:wps"; gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_lenovo_newifi-y1.dts b/target/linux/ramips/dts/mt7620a_lenovo_newifi-y1.dts index a232c92458..2bea987b42 100644 --- a/target/linux/ramips/dts/mt7620a_lenovo_newifi-y1.dts +++ b/target/linux/ramips/dts/mt7620a_lenovo_newifi-y1.dts @@ -16,34 +16,34 @@ compatible = "gpio-leds"; led_power: power { - label = "newifi-y1:blue:power"; + label = "blue:power"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; wlan1 { - label = "newifi-y1:blue:wifi"; + label = "blue:wifi"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; wlan2 { - label = "newifi-y1:blue:wifi5g"; + label = "blue:wifi5g"; gpios = <&gpio2 10 GPIO_ACTIVE_LOW>; }; usb { - label = "newifi-y1:blue:usb"; + label = "blue:usb"; gpios = <&gpio2 12 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; }; lan { - label = "newifi-y1:blue:lan"; + label = "blue:lan"; gpios = <&gpio2 15 GPIO_ACTIVE_LOW>; }; internet { - label = "newifi-y1:blue:internet"; + label = "blue:internet"; gpios = <&gpio2 11 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_lenovo_newifi-y1s.dts b/target/linux/ramips/dts/mt7620a_lenovo_newifi-y1s.dts index 979e96ca0e..a07683ed4a 100644 --- a/target/linux/ramips/dts/mt7620a_lenovo_newifi-y1s.dts +++ b/target/linux/ramips/dts/mt7620a_lenovo_newifi-y1s.dts @@ -37,39 +37,39 @@ compatible = "gpio-leds"; power1 { - label = "newifi-y1s:yellow:power"; + label = "yellow:power"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; led_power_blue: power2 { - label = "newifi-y1s:blue:power"; + label = "blue:power"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; wlan1 { - label = "newifi-y1s:yellow:wifi"; + label = "yellow:wifi"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; wlan2 { - label = "newifi-y1s:blue:wifi"; + label = "blue:wifi"; gpios = <&gpio2 10 GPIO_ACTIVE_LOW>; }; usb1 { - label = "newifi-y1s:yellow:usb"; + label = "yellow:usb"; gpios = <&gpio2 13 GPIO_ACTIVE_LOW>; }; usb2 { - label = "newifi-y1s:blue:usb"; + label = "blue:usb"; gpios = <&gpio2 12 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; }; internet { - label = "newifi-y1s:blue:internet"; + label = "blue:internet"; gpios = <&gpio2 11 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_linksys_e1700.dts b/target/linux/ramips/dts/mt7620a_linksys_e1700.dts index 9b6917baeb..01197aafd2 100644 --- a/target/linux/ramips/dts/mt7620a_linksys_e1700.dts +++ b/target/linux/ramips/dts/mt7620a_linksys_e1700.dts @@ -44,12 +44,12 @@ compatible = "gpio-leds"; led_power: power { - label = "e1700:green:power"; + label = "green:power"; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; }; wan { - label = "e1700:green:wps"; + label = "green:wps"; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_netgear_ex2700.dts b/target/linux/ramips/dts/mt7620a_netgear_ex2700.dts index b15a3e12ef..ec310dee22 100644 --- a/target/linux/ramips/dts/mt7620a_netgear_ex2700.dts +++ b/target/linux/ramips/dts/mt7620a_netgear_ex2700.dts @@ -25,38 +25,38 @@ compatible = "gpio-leds"; led_power_green: power_g { - label = "ex2700:green:power"; + label = "green:power"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; default-state = "on"; }; power_r { - label = "ex2700:red:power"; + label = "red:power"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; }; device_g { - label = "ex2700:green:device"; + label = "green:device"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; device_r { - label = "ex2700:red:device"; + label = "red:device"; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; }; router_g { - label = "ex2700:green:router"; + label = "green:router"; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; }; router_r { - label = "ex2700:red:router"; + label = "red:router"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; wps { - label = "ex2700:green:wps"; + label = "green:wps"; gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_netgear_ex3700.dts b/target/linux/ramips/dts/mt7620a_netgear_ex3700.dts index 8d6ee5b612..0ab84f7e27 100644 --- a/target/linux/ramips/dts/mt7620a_netgear_ex3700.dts +++ b/target/linux/ramips/dts/mt7620a_netgear_ex3700.dts @@ -5,51 +5,4 @@ / { compatible = "netgear,ex3700", "ralink,mt7620a-soc"; model = "Netgear EX3700/EX3800"; - - aliases { - led-boot = &led_power_amber; - led-failsafe = &led_power_amber; - led-running = &led_power_green; - led-upgrade = &led_power_green; - }; - - leds { - compatible = "gpio-leds"; - - led_power_green: power_green { - label = "ex3700:green:power"; - gpios = <&gpio2 23 GPIO_ACTIVE_LOW>; - default-state = "on"; - }; - - led_power_amber: power_amber { - label = "ex3700:amber:power"; - gpios = <&gpio2 28 GPIO_ACTIVE_LOW>; - }; - - router_green { - label = "ex3700:green:router"; - gpios = <&gpio2 25 GPIO_ACTIVE_LOW>; - }; - - router_red { - label = "ex3700:red:router"; - gpios = <&gpio2 24 GPIO_ACTIVE_LOW>; - }; - - device_green { - label = "ex3700:green:device"; - gpios = <&gpio2 20 GPIO_ACTIVE_LOW>; - }; - - device_red { - label = "ex3700:red:device"; - gpios = <&gpio2 21 GPIO_ACTIVE_LOW>; - }; - - wps { - label = "ex3700:green:wps"; - gpios = <&gpio2 27 GPIO_ACTIVE_LOW>; - }; - }; }; diff --git a/target/linux/ramips/dts/mt7620a_netgear_ex3x00_ex61xx.dtsi b/target/linux/ramips/dts/mt7620a_netgear_ex3x00_ex61xx.dtsi index 3cafd932ab..0f0d9aee7e 100644 --- a/target/linux/ramips/dts/mt7620a_netgear_ex3x00_ex61xx.dtsi +++ b/target/linux/ramips/dts/mt7620a_netgear_ex3x00_ex61xx.dtsi @@ -4,6 +4,13 @@ #include <dt-bindings/input/input.h> / { + aliases { + led-boot = &led_power_amber; + led-failsafe = &led_power_amber; + led-running = &led_power_green; + led-upgrade = &led_power_green; + }; + keys { compatible = "gpio-keys"; @@ -19,6 +26,46 @@ linux,code = <KEY_WPS_BUTTON>; }; }; + + leds { + compatible = "gpio-leds"; + + led_power_green: power_green { + label = "green:power"; + gpios = <&gpio2 23 GPIO_ACTIVE_LOW>; + default-state = "on"; + }; + + led_power_amber: power_amber { + label = "amber:power"; + gpios = <&gpio2 28 GPIO_ACTIVE_LOW>; + }; + + router_green { + label = "green:router"; + gpios = <&gpio2 25 GPIO_ACTIVE_LOW>; + }; + + router_red { + label = "red:router"; + gpios = <&gpio2 24 GPIO_ACTIVE_LOW>; + }; + + device_green { + label = "green:device"; + gpios = <&gpio2 20 GPIO_ACTIVE_LOW>; + }; + + device_red { + label = "red:device"; + gpios = <&gpio2 21 GPIO_ACTIVE_LOW>; + }; + + wps { + label = "green:wps"; + gpios = <&gpio2 27 GPIO_ACTIVE_LOW>; + }; + }; }; &gpio0 { diff --git a/target/linux/ramips/dts/mt7620a_netgear_ex6120.dts b/target/linux/ramips/dts/mt7620a_netgear_ex6120.dts index 58581e6706..2d376275a0 100644 --- a/target/linux/ramips/dts/mt7620a_netgear_ex6120.dts +++ b/target/linux/ramips/dts/mt7620a_netgear_ex6120.dts @@ -5,51 +5,4 @@ / { compatible = "netgear,ex6120", "ralink,mt7620a-soc"; model = "Netgear EX6120"; - - aliases { - led-boot = &led_power_amber; - led-failsafe = &led_power_amber; - led-running = &led_power_green; - led-upgrade = &led_power_green; - }; - - leds { - compatible = "gpio-leds"; - - led_power_green: power_green { - label = "ex6120:green:power"; - gpios = <&gpio2 23 GPIO_ACTIVE_LOW>; - default-state = "on"; - }; - - led_power_amber: power_amber { - label = "ex6120:amber:power"; - gpios = <&gpio2 28 GPIO_ACTIVE_LOW>; - }; - - router_green { - label = "ex6120:green:router"; - gpios = <&gpio2 25 GPIO_ACTIVE_LOW>; - }; - - router_red { - label = "ex6120:red:router"; - gpios = <&gpio2 24 GPIO_ACTIVE_LOW>; - }; - - device_green { - label = "ex6120:green:device"; - gpios = <&gpio2 20 GPIO_ACTIVE_LOW>; - }; - - device_red { - label = "ex6120:red:device"; - gpios = <&gpio2 21 GPIO_ACTIVE_LOW>; - }; - - wps { - label = "ex6120:green:wps"; - gpios = <&gpio2 27 GPIO_ACTIVE_LOW>; - }; - }; }; diff --git a/target/linux/ramips/dts/mt7620a_netgear_ex6130.dts b/target/linux/ramips/dts/mt7620a_netgear_ex6130.dts index 5994a10d42..0cb4dc6f27 100644 --- a/target/linux/ramips/dts/mt7620a_netgear_ex6130.dts +++ b/target/linux/ramips/dts/mt7620a_netgear_ex6130.dts @@ -7,50 +7,6 @@ model = "Netgear EX6130"; aliases { - led-boot = &led_power_amber; - led-failsafe = &led_power_amber; - led-running = &led_power_green; - led-upgrade = &led_power_green; label-mac-device = ðernet; }; - - leds { - compatible = "gpio-leds"; - - led_power_green: power_green { - label = "ex6130:green:power"; - gpios = <&gpio2 23 GPIO_ACTIVE_LOW>; - default-state = "on"; - }; - - led_power_amber: power_amber { - label = "ex6130:amber:power"; - gpios = <&gpio2 28 GPIO_ACTIVE_LOW>; - }; - - router_green { - label = "ex6130:green:router"; - gpios = <&gpio2 25 GPIO_ACTIVE_LOW>; - }; - - router_red { - label = "ex6130:red:router"; - gpios = <&gpio2 24 GPIO_ACTIVE_LOW>; - }; - - device_green { - label = "ex6130:green:device"; - gpios = <&gpio2 20 GPIO_ACTIVE_LOW>; - }; - - device_red { - label = "ex6130:red:device"; - gpios = <&gpio2 21 GPIO_ACTIVE_LOW>; - }; - - wps { - label = "ex6130:green:wps"; - gpios = <&gpio2 27 GPIO_ACTIVE_LOW>; - }; - }; }; diff --git a/target/linux/ramips/dts/mt7620a_netgear_wn3000rp-v3.dts b/target/linux/ramips/dts/mt7620a_netgear_wn3000rp-v3.dts index 0028f26fdb..c9b1806243 100644 --- a/target/linux/ramips/dts/mt7620a_netgear_wn3000rp-v3.dts +++ b/target/linux/ramips/dts/mt7620a_netgear_wn3000rp-v3.dts @@ -17,48 +17,48 @@ compatible = "gpio-leds"; led_power_green: power_g { - label = "wn3000rp-v3:green:power"; + label = "green:power"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; default-state = "on"; }; power_r { - label = "wn3000rp-v3:red:power"; + label = "red:power"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; }; client_g { - label = "wn3000rp-v3:green:client"; + label = "green:client"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; client_r { - label = "wn3000rp-v3:red:client"; + label = "red:client"; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; }; router_g { - label = "wn3000rp-v3:green:router"; + label = "green:router"; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; }; router_r { - label = "wn3000rp-v3:red:router"; + label = "red:router"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; wps { - label = "wn3000rp-v3:green:wps"; + label = "green:wps"; gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; }; l_arrow { - label = "wn3000rp-v3:blue:leftarrow"; + label = "blue:leftarrow"; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; }; r_arrow { - label = "wn3000rp-v3:blue:rightarrow"; + label = "blue:rightarrow"; gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_netis_wf2770.dts b/target/linux/ramips/dts/mt7620a_netis_wf2770.dts index b58c8b55ad..ab8c61b1d8 100644 --- a/target/linux/ramips/dts/mt7620a_netis_wf2770.dts +++ b/target/linux/ramips/dts/mt7620a_netis_wf2770.dts @@ -13,7 +13,7 @@ compatible = "gpio-leds"; wlan { - label = "wf2770:blue:wlan"; + label = "blue:wlan"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; diff --git a/target/linux/ramips/dts/mt7620a_ohyeah_oy-0001.dts b/target/linux/ramips/dts/mt7620a_ohyeah_oy-0001.dts index 0ce376b45d..908f89d149 100644 --- a/target/linux/ramips/dts/mt7620a_ohyeah_oy-0001.dts +++ b/target/linux/ramips/dts/mt7620a_ohyeah_oy-0001.dts @@ -22,12 +22,12 @@ compatible = "gpio-leds"; led_power: powerled { - label = "oy-0001:green:power"; + label = "green:power"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; wifiled { - label = "oy-0001:green:wifi"; + label = "green:wifi"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_phicomm_k2g.dts b/target/linux/ramips/dts/mt7620a_phicomm_k2g.dts index 8f1343e938..e01c60a695 100644 --- a/target/linux/ramips/dts/mt7620a_phicomm_k2g.dts +++ b/target/linux/ramips/dts/mt7620a_phicomm_k2g.dts @@ -19,17 +19,17 @@ compatible = "gpio-leds"; led_blue: blue { - label = "k2g:blue:status"; + label = "blue:status"; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; }; yellow { - label = "k2g:yellow:status"; + label = "yellow:status"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; }; red { - label = "k2g:red:status"; + label = "red:status"; gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_phicomm_psg1208.dts b/target/linux/ramips/dts/mt7620a_phicomm_psg1208.dts index aa7b5907ee..ea87d64ecc 100644 --- a/target/linux/ramips/dts/mt7620a_phicomm_psg1208.dts +++ b/target/linux/ramips/dts/mt7620a_phicomm_psg1208.dts @@ -18,12 +18,12 @@ compatible = "gpio-leds"; led_wps: wps { - label = "psg1208:white:wps"; + label = "white:wps"; gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; }; wlan { - label = "psg1208:white:wlan2g"; + label = "white:wlan2g"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_phicomm_psg1218.dtsi b/target/linux/ramips/dts/mt7620a_phicomm_psg1218.dtsi index f74506ea61..dbfec00f81 100644 --- a/target/linux/ramips/dts/mt7620a_phicomm_psg1218.dtsi +++ b/target/linux/ramips/dts/mt7620a_phicomm_psg1218.dtsi @@ -6,6 +6,13 @@ / { compatible = "phicomm,psg1218", "ralink,mt7620a-soc"; + aliases { + led-boot = &led_blue; + led-failsafe = &led_blue; + led-running = &led_blue; + led-upgrade = &led_blue; + }; + keys { compatible = "gpio-keys"; @@ -15,6 +22,26 @@ linux,code = <KEY_RESTART>; }; }; + + leds { + compatible = "gpio-leds"; + + led_blue: blue { + label = "blue:status"; + gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; + default-state = "on"; + }; + + yellow { + label = "yellow:status"; + gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; + }; + + red { + label = "red:status"; + gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>; + }; + }; }; &gpio0 { diff --git a/target/linux/ramips/dts/mt7620a_phicomm_psg1218a.dts b/target/linux/ramips/dts/mt7620a_phicomm_psg1218a.dts index 7a6e10c733..baa0d8b261 100644 --- a/target/linux/ramips/dts/mt7620a_phicomm_psg1218a.dts +++ b/target/linux/ramips/dts/mt7620a_phicomm_psg1218a.dts @@ -3,33 +3,6 @@ / { compatible = "phicomm,psg1218a", "phicomm,psg1218", "ralink,mt7620a-soc"; model = "Phicomm PSG1218 rev.A"; - - aliases { - led-boot = &led_blue; - led-failsafe = &led_blue; - led-running = &led_blue; - led-upgrade = &led_blue; - }; - - leds { - compatible = "gpio-leds"; - - led_blue: blue { - label = "psg1218a:blue:status"; - gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; - default-state = "on"; - }; - - yellow { - label = "psg1218a:yellow:status"; - gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; - }; - - red { - label = "psg1218a:red:status"; - gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>; - }; - }; }; &state_default { diff --git a/target/linux/ramips/dts/mt7620a_phicomm_psg1218b.dts b/target/linux/ramips/dts/mt7620a_phicomm_psg1218b.dts index e2a49e068f..f7e70c92c8 100644 --- a/target/linux/ramips/dts/mt7620a_phicomm_psg1218b.dts +++ b/target/linux/ramips/dts/mt7620a_phicomm_psg1218b.dts @@ -3,33 +3,6 @@ / { compatible = "phicomm,psg1218b", "phicomm,psg1218", "ralink,mt7620a-soc"; model = "Phicomm PSG1218 rev.B"; - - aliases { - led-boot = &led_blue; - led-failsafe = &led_blue; - led-running = &led_blue; - led-upgrade = &led_blue; - }; - - leds { - compatible = "gpio-leds"; - - led_blue: blue { - label = "psg1218b:blue:status"; - gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; - default-state = "on"; - }; - - yellow { - label = "psg1218b:yellow:status"; - gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; - }; - - red { - label = "psg1218b:red:status"; - gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>; - }; - }; }; &state_default { diff --git a/target/linux/ramips/dts/mt7620a_planex_cs-qr10.dts b/target/linux/ramips/dts/mt7620a_planex_cs-qr10.dts index c13d6bf210..089b74bbc6 100644 --- a/target/linux/ramips/dts/mt7620a_planex_cs-qr10.dts +++ b/target/linux/ramips/dts/mt7620a_planex_cs-qr10.dts @@ -18,7 +18,7 @@ compatible = "gpio-leds"; led_power: power { - label = "cs-qr10:red:power"; + label = "red:power"; gpios = <&gpio1 4 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_planex_db-wrt01.dts b/target/linux/ramips/dts/mt7620a_planex_db-wrt01.dts index 6df13c3040..eb373e9aa2 100644 --- a/target/linux/ramips/dts/mt7620a_planex_db-wrt01.dts +++ b/target/linux/ramips/dts/mt7620a_planex_db-wrt01.dts @@ -18,7 +18,7 @@ compatible = "gpio-leds"; led_power: power { - label = "db-wrt01:orange:power"; + label = "orange:power"; gpios = <&gpio1 1 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_planex_mzk-750dhp.dts b/target/linux/ramips/dts/mt7620a_planex_mzk-750dhp.dts index 50cf79b94f..df9c9689c3 100644 --- a/target/linux/ramips/dts/mt7620a_planex_mzk-750dhp.dts +++ b/target/linux/ramips/dts/mt7620a_planex_mzk-750dhp.dts @@ -18,17 +18,17 @@ compatible = "gpio-leds"; wps { - label = "mzk-750dhp:green:wps"; + label = "green:wps"; gpios = <&gpio2 15 GPIO_ACTIVE_LOW>; }; led_power: power { - label = "mzk-750dhp:green:power"; + label = "green:power"; gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; }; wlan5g { - label = "mzk-750dhp:green:wlan5g"; + label = "green:wlan5g"; gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_planex_mzk-ex300np.dts b/target/linux/ramips/dts/mt7620a_planex_mzk-ex300np.dts index 825964cdc0..5459886a3a 100644 --- a/target/linux/ramips/dts/mt7620a_planex_mzk-ex300np.dts +++ b/target/linux/ramips/dts/mt7620a_planex_mzk-ex300np.dts @@ -18,32 +18,32 @@ compatible = "gpio-leds"; wifi { - label = "mzk-ex300np:green:wifi"; + label = "green:wifi"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; led_wps: wps { - label = "mzk-ex300np:green:wps"; + label = "green:wps"; gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; }; rep { - label = "mzk-ex300np:blue:rep"; + label = "blue:rep"; gpios = <&gpio1 4 GPIO_ACTIVE_LOW>; }; wifi1 { - label = "mzk-ex300np:blue:wifi1"; + label = "blue:wifi1"; gpios = <&gpio1 1 GPIO_ACTIVE_LOW>; }; wifi2 { - label = "mzk-ex300np:blue:wifi2"; + label = "blue:wifi2"; gpios = <&gpio1 2 GPIO_ACTIVE_LOW>; }; wifi3 { - label = "mzk-ex300np:blue:wifi3"; + label = "blue:wifi3"; gpios = <&gpio1 0 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_planex_mzk-ex750np.dts b/target/linux/ramips/dts/mt7620a_planex_mzk-ex750np.dts index cac6dc9be4..457d4fd552 100644 --- a/target/linux/ramips/dts/mt7620a_planex_mzk-ex750np.dts +++ b/target/linux/ramips/dts/mt7620a_planex_mzk-ex750np.dts @@ -18,37 +18,37 @@ compatible = "gpio-leds"; led_power: power { - label = "mzk-ex750np:red:power"; + label = "red:power"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; wifi { - label = "mzk-ex750np:red:wifi"; + label = "red:wifi"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; wps { - label = "mzk-ex750np:green:wps"; + label = "green:wps"; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; }; rep { - label = "mzk-ex750np:blue:rep"; + label = "blue:rep"; gpios = <&gpio2 16 GPIO_ACTIVE_LOW>; }; wifi1 { - label = "mzk-ex750np:blue:wifi1"; + label = "blue:wifi1"; gpios = <&gpio2 19 GPIO_ACTIVE_LOW>; }; wifi2 { - label = "mzk-ex750np:blue:wifi2"; + label = "blue:wifi2"; gpios = <&gpio2 18 GPIO_ACTIVE_LOW>; }; wifi3 { - label = "mzk-ex750np:blue:wifi3"; + label = "blue:wifi3"; gpios = <&gpio2 17 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_sanlinking_d240.dts b/target/linux/ramips/dts/mt7620a_sanlinking_d240.dts index d37ed37172..8003ac9dc2 100644 --- a/target/linux/ramips/dts/mt7620a_sanlinking_d240.dts +++ b/target/linux/ramips/dts/mt7620a_sanlinking_d240.dts @@ -72,19 +72,19 @@ compatible = "gpio-leds"; led_power: power { - label = "d240:blue:power"; + label = "blue:power"; gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>; }; usb { - label = "d240:blue:usb"; + label = "blue:usb"; gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; }; air { - label = "d240:blue:wifi"; + label = "blue:wifi"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_sercomm_na930.dts b/target/linux/ramips/dts/mt7620a_sercomm_na930.dts index 2d3e4cba05..0d96fd2901 100644 --- a/target/linux/ramips/dts/mt7620a_sercomm_na930.dts +++ b/target/linux/ramips/dts/mt7620a_sercomm_na930.dts @@ -78,24 +78,24 @@ compatible = "gpio-leds"; zwave { - label = "na930:blue:zwave"; + label = "blue:zwave"; gpios = <&gpio2 0 GPIO_ACTIVE_LOW>; }; status { - label = "na930:blue:status"; + label = "blue:status"; gpios = <&gpio2 26 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; }; service { - label = "na930:blue:service"; + label = "blue:service"; gpios = <&gpio2 28 GPIO_ACTIVE_LOW>; }; led_power: power { - label = "na930:blue:power"; + label = "blue:power"; gpios = <&gpio2 29 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_tplink_archer-c2-v1.dts b/target/linux/ramips/dts/mt7620a_tplink_archer-c2-v1.dts index 1c95325fb2..184af58d29 100644 --- a/target/linux/ramips/dts/mt7620a_tplink_archer-c2-v1.dts +++ b/target/linux/ramips/dts/mt7620a_tplink_archer-c2-v1.dts @@ -22,29 +22,29 @@ compatible = "gpio-leds"; lan { - label = "archer-c2-v1:green:lan"; + label = "green:lan"; gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; }; usb { - label = "archer-c2-v1:green:usb"; + label = "green:usb"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; }; led_wps: wps { - label = "archer-c2-v1:green:wps"; + label = "green:wps"; gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; }; wan { - label = "archer-c2-v1:green:wan"; + label = "green:wan"; gpios = <&gpio2 0 GPIO_ACTIVE_LOW>; }; wlan { - label = "archer-c2-v1:green:wlan"; + label = "green:wlan"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy1tpt"; }; diff --git a/target/linux/ramips/dts/mt7620a_tplink_archer-c20-v1.dts b/target/linux/ramips/dts/mt7620a_tplink_archer-c20-v1.dts index 265592e336..f7e7d50df7 100644 --- a/target/linux/ramips/dts/mt7620a_tplink_archer-c20-v1.dts +++ b/target/linux/ramips/dts/mt7620a_tplink_archer-c20-v1.dts @@ -15,47 +15,47 @@ compatible = "gpio-leds"; lan { - label = "archer-c20-v1:blue:lan"; + label = "blue:lan"; gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; }; led_power: power { - label = "archer-c20-v1:blue:power"; + label = "blue:power"; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; default-state = "keep"; }; usb { - label = "archer-c20-v1:blue:usb"; + label = "blue:usb"; gpios = <&gpio2 4 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; }; wan { - label = "archer-c20-v1:blue:wan"; + label = "blue:wan"; gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>; }; wan_orange { - label = "archer-c20-v1:orange:wan"; + label = "orange:wan"; gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>; }; wlan5g { - label = "archer-c20-v1:blue:wlan5g"; + label = "blue:wlan5g"; gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; wlan2g { - label = "archer-c20-v1:blue:wlan2g"; + label = "blue:wlan2g"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy1tpt"; }; wps { - label = "archer-c20-v1:blue:wps"; + label = "blue:wps"; gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_tplink_archer-c20i.dts b/target/linux/ramips/dts/mt7620a_tplink_archer-c20i.dts index 785b740861..a6c3cea736 100644 --- a/target/linux/ramips/dts/mt7620a_tplink_archer-c20i.dts +++ b/target/linux/ramips/dts/mt7620a_tplink_archer-c20i.dts @@ -16,29 +16,29 @@ compatible = "gpio-leds"; lan { - label = "archer-c20i:blue:lan"; + label = "blue:lan"; gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; }; usb { - label = "archer-c20i:blue:usb"; + label = "blue:usb"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; }; led_wps: wps { - label = "archer-c20i:blue:wps"; + label = "blue:wps"; gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; }; wan { - label = "archer-c20i:blue:wan"; + label = "blue:wan"; gpios = <&gpio2 0 GPIO_ACTIVE_LOW>; }; wlan { - label = "archer-c20i:blue:wlan"; + label = "blue:wlan"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy1tpt"; }; diff --git a/target/linux/ramips/dts/mt7620a_tplink_archer-c50-v1.dts b/target/linux/ramips/dts/mt7620a_tplink_archer-c50-v1.dts index b10d1ed30e..d564552ff0 100644 --- a/target/linux/ramips/dts/mt7620a_tplink_archer-c50-v1.dts +++ b/target/linux/ramips/dts/mt7620a_tplink_archer-c50-v1.dts @@ -15,47 +15,47 @@ compatible = "gpio-leds"; lan { - label = "archer-c50-v1:green:lan"; + label = "green:lan"; gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; }; led_power: power { - label = "archer-c50-v1:green:power"; + label = "green:power"; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; default-state = "on"; }; usb { - label = "archer-c50-v1:green:usb"; + label = "green:usb"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; }; wan { - label = "archer-c50-v1:green:wan"; + label = "green:wan"; gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; }; wan_orange { - label = "archer-c50-v1:orange:wan"; + label = "orange:wan"; gpios = <&gpio2 4 GPIO_ACTIVE_LOW>; }; wlan5g { - label = "archer-c50-v1:green:wlan5g"; + label = "green:wlan5g"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; wlan2g { - label = "archer-c50-v1:green:wlan2g"; + label = "green:wlan2g"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy1tpt"; }; wps { - label = "archer-c50-v1:green:wps"; + label = "green:wps"; gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_tplink_archer-mr200.dts b/target/linux/ramips/dts/mt7620a_tplink_archer-mr200.dts index c1454a8e2b..ae92dc85e6 100644 --- a/target/linux/ramips/dts/mt7620a_tplink_archer-mr200.dts +++ b/target/linux/ramips/dts/mt7620a_tplink_archer-mr200.dts @@ -22,52 +22,52 @@ compatible = "gpio-leds"; lan { - label = "archer-mr200:white:lan"; + label = "white:lan"; gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; }; wan { - label = "archer-mr200:white:wan"; + label = "white:wan"; gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; }; led_power: power { - label = "archer-mr200:white:power"; + label = "white:power"; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; }; 4g { - label = "archer-mr200:white:4g"; + label = "white:4g"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; wps { - label = "archer-mr200:white:wps"; + label = "white:wps"; gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; }; signal1 { - label = "archer-mr200:white:signal1"; + label = "white:signal1"; gpios = <&gpio2 1 GPIO_ACTIVE_LOW>; }; signal2 { - label = "archer-mr200:white:signal2"; + label = "white:signal2"; gpios = <&gpio2 2 GPIO_ACTIVE_LOW>; }; signal3 { - label = "archer-mr200:white:signal3"; + label = "white:signal3"; gpios = <&gpio2 3 GPIO_ACTIVE_LOW>; }; signal4 { - label = "archer-mr200:white:signal4"; + label = "white:signal4"; gpios = <&gpio2 4 GPIO_ACTIVE_LOW>; }; wlan { - label = "archer-mr200:white:wlan"; + label = "white:wlan"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy1tpt"; }; diff --git a/target/linux/ramips/dts/mt7620a_tplink_re200-v1.dts b/target/linux/ramips/dts/mt7620a_tplink_re200-v1.dts index 8972dc2687..d2f5207fac 100644 --- a/target/linux/ramips/dts/mt7620a_tplink_re200-v1.dts +++ b/target/linux/ramips/dts/mt7620a_tplink_re200-v1.dts @@ -17,32 +17,32 @@ compatible = "gpio-leds"; led_power: power { - label = "re200-v1:green:power"; + label = "green:power"; gpios = <&gpio1 0 GPIO_ACTIVE_LOW>; }; lan { - label = "re200-v1:green:lan"; + label = "green:lan"; gpios = <&gpio2 0 GPIO_ACTIVE_LOW>; }; wlan { - label = "re200-v1:green:wlan"; + label = "green:wlan"; gpios = <&gpio1 3 GPIO_ACTIVE_LOW>; }; qss { - label = "re200-v1:green:qss"; + label = "green:qss"; gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; }; wlan2g_red { - label = "re200-v1:red:wlan2g"; + label = "red:wlan2g"; gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; }; wlan2g_green { - label = "re200-v1:green:wlan2g"; + label = "green:wlan2g"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy1tpt"; }; diff --git a/target/linux/ramips/dts/mt7620a_tplink_re210-v1.dts b/target/linux/ramips/dts/mt7620a_tplink_re210-v1.dts index 8668e0b84a..41e56fbe36 100644 --- a/target/linux/ramips/dts/mt7620a_tplink_re210-v1.dts +++ b/target/linux/ramips/dts/mt7620a_tplink_re210-v1.dts @@ -17,28 +17,28 @@ compatible = "gpio-leds"; led_power: power { - label = "re210-v1:green:power"; + label = "green:power"; gpios = <&gpio1 3 GPIO_ACTIVE_LOW>; }; rssi_high { - label = "re210-v1:green:rssi-high"; + label = "green:rssi-high"; gpios = <&gpio1 1 GPIO_ACTIVE_LOW>; }; rssi_low { - label = "re210-v1:red:rssi-low"; + label = "red:rssi-low"; gpios = <&gpio1 2 GPIO_ACTIVE_LOW>; }; wlan2g { - label = "re210-v1:green:wlan2g"; + label = "green:wlan2g"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy1tpt"; }; wlan5g { - label = "re210-v1:green:wlan5g"; + label = "green:wlan5g"; gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; diff --git a/target/linux/ramips/dts/mt7620a_trendnet_tew-810dr.dts b/target/linux/ramips/dts/mt7620a_trendnet_tew-810dr.dts index 4c93c44d0e..767da53f65 100644 --- a/target/linux/ramips/dts/mt7620a_trendnet_tew-810dr.dts +++ b/target/linux/ramips/dts/mt7620a_trendnet_tew-810dr.dts @@ -5,43 +5,4 @@ / { compatible = "trendnet,tew-810dr", "ralink,mt7620a-soc"; model = "TRENDnet TEW-810DR"; - - aliases { - led-boot = &led_power_green; - led-failsafe = &led_power_green; - led-running = &led_power_green; - led-upgrade = &led_power_green; - label-mac-device = ðernet; - }; - - leds { - compatible = "gpio-leds"; - - led_power_green: power_green { - label = "tew-810dr:green:power"; - gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>; - }; - - wan_orange { - label = "tew-810dr:orange:wan"; - gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; - }; - - wan_green { - label = "tew-810dr:green:wan"; - gpios = <&gpio2 0 GPIO_ACTIVE_LOW>; - }; - - power_orange { - label = "tew-810dr:orange:power"; - gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>; - }; - }; -}; - -&state_default { - gpio { - groups = "i2c", "uartf", "ephy"; - function = "gpio"; - }; }; diff --git a/target/linux/ramips/dts/mt7620a_xiaomi_miwifi-mini.dts b/target/linux/ramips/dts/mt7620a_xiaomi_miwifi-mini.dts index bce257dc7f..14cbc1830f 100644 --- a/target/linux/ramips/dts/mt7620a_xiaomi_miwifi-mini.dts +++ b/target/linux/ramips/dts/mt7620a_xiaomi_miwifi-mini.dts @@ -23,18 +23,18 @@ compatible = "gpio-leds"; led_blue: blue { - label = "miwifi-mini:blue:status"; + label = "blue:status"; gpios = <&gpio1 0 GPIO_ACTIVE_LOW>; default-state = "on"; }; yellow { - label = "miwifi-mini:yellow:status"; + label = "yellow:status"; gpios = <&gpio1 2 GPIO_ACTIVE_LOW>; }; red { - label = "miwifi-mini:red:status"; + label = "red:status"; gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_youku_yk1.dts b/target/linux/ramips/dts/mt7620a_youku_yk1.dts index 522838156b..64eac1df36 100644 --- a/target/linux/ramips/dts/mt7620a_youku_yk1.dts +++ b/target/linux/ramips/dts/mt7620a_youku_yk1.dts @@ -18,24 +18,24 @@ compatible = "gpio-leds"; wan { - label = "yk1:blue:wan"; + label = "blue:wan"; gpios = <&gpio2 4 GPIO_ACTIVE_LOW>; }; air { - label = "yk1:blue:air"; + label = "blue:air"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; usb { - label = "yk1:blue:usb"; + label = "blue:usb"; gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; }; led_power: power { - label = "yk1:blue:power"; + label = "blue:power"; gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_zbtlink_zbt-ape522ii.dts b/target/linux/ramips/dts/mt7620a_zbtlink_zbt-ape522ii.dts index d8c3047a8c..aaa35a72b2 100644 --- a/target/linux/ramips/dts/mt7620a_zbtlink_zbt-ape522ii.dts +++ b/target/linux/ramips/dts/mt7620a_zbtlink_zbt-ape522ii.dts @@ -15,27 +15,27 @@ compatible = "gpio-leds"; sys1 { - label = "zbt-ape522ii:green:sys1"; + label = "green:sys1"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; }; sys2 { - label = "zbt-ape522ii:green:sys2"; + label = "green:sys2"; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; }; sys3 { - label = "zbt-ape522ii:green:sys3"; + label = "green:sys3"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; sys4 { - label = "zbt-ape522ii:green:sys4"; + label = "green:sys4"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; wlan2g4 { - label = "zbt-ape522ii:green:wlan2g4"; + label = "green:wlan2g4"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_zbtlink_zbt-we1026-5g.dtsi b/target/linux/ramips/dts/mt7620a_zbtlink_zbt-we1026-5g.dtsi index b594cab2c3..4991897ca4 100644 --- a/target/linux/ramips/dts/mt7620a_zbtlink_zbt-we1026-5g.dtsi +++ b/target/linux/ramips/dts/mt7620a_zbtlink_zbt-we1026-5g.dtsi @@ -10,19 +10,19 @@ compatible = "gpio-leds"; lan { - label = "we1026-5g:green:lan"; + label = "green:lan"; gpios = <&gpio2 0 GPIO_ACTIVE_LOW>; }; usb { - label = "we1026-5g:green:usb"; + label = "green:usb"; gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; }; wifi { - label = "we1026-5g:green:wifi"; + label = "green:wifi"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_zbtlink_zbt-we1026-h.dtsi b/target/linux/ramips/dts/mt7620a_zbtlink_zbt-we1026-h.dtsi index f8f9bc754a..09f0ba773c 100644 --- a/target/linux/ramips/dts/mt7620a_zbtlink_zbt-we1026-h.dtsi +++ b/target/linux/ramips/dts/mt7620a_zbtlink_zbt-we1026-h.dtsi @@ -10,22 +10,22 @@ compatible = "gpio-leds"; usb { - label = "we1026-h:green:usb"; + label = "green:usb"; gpios = <&gpio2 2 GPIO_ACTIVE_LOW>; }; lan { - label = "we1026-h:green:lan"; + label = "green:lan"; gpios = <&gpio2 3 GPIO_ACTIVE_LOW>; }; wan { - label = "we1026-h:green:wan"; + label = "green:wan"; gpios = <&gpio2 4 GPIO_ACTIVE_LOW>; }; wifi { - label = "we1026-h:green:wifi"; + label = "green:wifi"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_zbtlink_zbt-we826-e.dts b/target/linux/ramips/dts/mt7620a_zbtlink_zbt-we826-e.dts index b6d6a99800..bce6afe263 100644 --- a/target/linux/ramips/dts/mt7620a_zbtlink_zbt-we826-e.dts +++ b/target/linux/ramips/dts/mt7620a_zbtlink_zbt-we826-e.dts @@ -12,22 +12,22 @@ compatible = "gpio-leds"; led_power: gsm { - label = "zbt-we826-e:blue:gsm"; + label = "blue:gsm"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; signal { - label = "zbt-we826-e:green:signal"; + label = "green:signal"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; }; sim { - label = "zbt-we826-e:red:sim"; + label = "red:sim"; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; }; air { - label = "zbt-we826-e:red:wifi"; + label = "red:wifi"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_zbtlink_zbt-we826.dtsi b/target/linux/ramips/dts/mt7620a_zbtlink_zbt-we826.dtsi index 0e3d689b4f..3e612badc3 100644 --- a/target/linux/ramips/dts/mt7620a_zbtlink_zbt-we826.dtsi +++ b/target/linux/ramips/dts/mt7620a_zbtlink_zbt-we826.dtsi @@ -21,19 +21,19 @@ compatible = "gpio-leds"; led_power: power { - label = "zbt-we826:green:power"; + label = "green:power"; gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>; }; usb { - label = "zbt-we826:green:usb"; + label = "green:usb"; gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; }; air { - label = "zbt-we826:green:wifi"; + label = "green:wifi"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_zte_q7.dts b/target/linux/ramips/dts/mt7620a_zte_q7.dts index 6cb2c8b225..dd9a87d5af 100644 --- a/target/linux/ramips/dts/mt7620a_zte_q7.dts +++ b/target/linux/ramips/dts/mt7620a_zte_q7.dts @@ -18,12 +18,12 @@ compatible = "gpio-leds"; statred { - label = "zte-q7:red:status"; + label = "red:status"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; led_status_blue: statblue { - label = "zte-q7:blue:status"; + label = "blue:status"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_zyxel_keenetic-viva.dts b/target/linux/ramips/dts/mt7620a_zyxel_keenetic-viva.dts index 7f997eb97c..8c07de4845 100644 --- a/target/linux/ramips/dts/mt7620a_zyxel_keenetic-viva.dts +++ b/target/linux/ramips/dts/mt7620a_zyxel_keenetic-viva.dts @@ -18,29 +18,29 @@ compatible = "gpio-leds"; wan { - label = "keenetic-viva:green:wan"; + label = "green:wan"; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; }; usb { - label = "keenetic-viva:green:usb"; + label = "green:usb"; gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; }; power_alert { - label = "keenetic-viva:red:power"; + label = "red:power"; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; }; wifi { - label = "keenetic-viva:green:wifi"; + label = "green:wifi"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; }; led_power_green: power { - label = "keenetic-viva:green:power"; + label = "green:power"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620n_asus_rt-n12p.dts b/target/linux/ramips/dts/mt7620n_asus_rt-n12p.dts index 7a3105f9be..24a8779b27 100644 --- a/target/linux/ramips/dts/mt7620n_asus_rt-n12p.dts +++ b/target/linux/ramips/dts/mt7620n_asus_rt-n12p.dts @@ -22,22 +22,22 @@ compatible = "gpio-leds"; wan { - label = "rt-n12p:green:wan"; + label = "green:wan"; gpios = <&gpio2 4 GPIO_ACTIVE_LOW>; }; lan { - label = "rt-n12p:green:lan"; + label = "green:lan"; gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; }; led_power: power { - label = "rt-n12p:green:power"; + label = "green:power"; gpios = <&gpio2 3 GPIO_ACTIVE_LOW>; }; air { - label = "rt-n12p:green:air"; + label = "green:air"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620n_asus_rt-n14u.dts b/target/linux/ramips/dts/mt7620n_asus_rt-n14u.dts index 13614640e6..ce51ff89b3 100644 --- a/target/linux/ramips/dts/mt7620n_asus_rt-n14u.dts +++ b/target/linux/ramips/dts/mt7620n_asus_rt-n14u.dts @@ -18,29 +18,29 @@ compatible = "gpio-leds"; wan { - label = "rt-n14u:blue:wan"; + label = "blue:wan"; gpios = <&gpio2 0 GPIO_ACTIVE_LOW>; }; lan { - label = "rt-n14u:blue:lan"; + label = "blue:lan"; gpios = <&gpio2 1 GPIO_ACTIVE_LOW>; }; usb { - label = "rt-n14u:blue:usb"; + label = "blue:usb"; gpios = <&gpio2 2 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; }; led_power: power { - label = "rt-n14u:blue:power"; + label = "blue:power"; gpios = <&gpio2 3 GPIO_ACTIVE_LOW>; }; air { - label = "rt-n14u:blue:air"; + label = "blue:air"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620n_buffalo_wmr-300.dts b/target/linux/ramips/dts/mt7620n_buffalo_wmr-300.dts index 8fc39cb914..26803c0c2a 100644 --- a/target/linux/ramips/dts/mt7620n_buffalo_wmr-300.dts +++ b/target/linux/ramips/dts/mt7620n_buffalo_wmr-300.dts @@ -18,17 +18,17 @@ compatible = "gpio-leds"; aoss1 { - label = "wmr-300:red:aoss"; + label = "red:aoss"; gpios = <&gpio2 1 GPIO_ACTIVE_LOW>; }; aoss2 { - label = "wmr-300:green:aoss"; + label = "green:aoss"; gpios = <&gpio2 2 GPIO_ACTIVE_LOW>; }; led_status: status { - label = "wmr-300:green:status"; + label = "green:status"; gpios = <&gpio2 4 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620n_comfast_cf-wr800n.dts b/target/linux/ramips/dts/mt7620n_comfast_cf-wr800n.dts index 6a24c5d75c..17d9a68623 100644 --- a/target/linux/ramips/dts/mt7620n_comfast_cf-wr800n.dts +++ b/target/linux/ramips/dts/mt7620n_comfast_cf-wr800n.dts @@ -22,17 +22,17 @@ compatible = "gpio-leds"; ethernet { - label = "cf-wr800n:white:ethernet"; + label = "white:ethernet"; gpios = <&gpio2 4 GPIO_ACTIVE_LOW>; }; wifi { - label = "cf-wr800n:white:wifi"; + label = "white:wifi"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; led_wps: wps { - label = "cf-wr800n:white:wps"; + label = "white:wps"; gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620n_dlink_dwr-116-a1.dts b/target/linux/ramips/dts/mt7620n_dlink_dwr-116-a1.dts index b387e3d811..2467a766a3 100644 --- a/target/linux/ramips/dts/mt7620n_dlink_dwr-116-a1.dts +++ b/target/linux/ramips/dts/mt7620n_dlink_dwr-116-a1.dts @@ -34,12 +34,12 @@ compatible = "gpio-leds"; led_status: status { - label = "dwr-116-a1:green:status"; + label = "green:status"; gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>; }; wifi { - label = "dwr-116-a1:green:wifi"; + label = "green:wifi"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620n_dlink_dwr-921-c1.dts b/target/linux/ramips/dts/mt7620n_dlink_dwr-921-c1.dts index b64a9f7f2f..c784839c34 100644 --- a/target/linux/ramips/dts/mt7620n_dlink_dwr-921-c1.dts +++ b/target/linux/ramips/dts/mt7620n_dlink_dwr-921-c1.dts @@ -32,37 +32,37 @@ compatible = "gpio-leds"; sms { - label = "dwr-921-c1:green:sms"; + label = "green:sms"; gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; }; lan { - label = "dwr-921-c1:green:lan"; + label = "green:lan"; gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>; }; led_sstrenghg: sstrengthg { - label = "dwr-921-c1:green:sigstrength"; + label = "green:sigstrength"; gpios = <&gpio2 0 GPIO_ACTIVE_LOW>; }; sstrengthr { - label = "dwr-921-c1:red:sigstrength"; + label = "red:sigstrength"; gpios = <&gpio2 1 GPIO_ACTIVE_LOW>; }; 4g { - label = "dwr-921-c1:green:4g"; + label = "green:4g"; gpios = <&gpio2 2 GPIO_ACTIVE_LOW>; }; 3g { - label = "dwr-921-c1:green:3g"; + label = "green:3g"; gpios = <&gpio2 3 GPIO_ACTIVE_LOW>; }; wifi { - label = "dwr-921-c1:green:wifi"; + label = "green:wifi"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620n_dlink_dwr-922-e2.dts b/target/linux/ramips/dts/mt7620n_dlink_dwr-922-e2.dts index 83c9fc8645..9400394d89 100644 --- a/target/linux/ramips/dts/mt7620n_dlink_dwr-922-e2.dts +++ b/target/linux/ramips/dts/mt7620n_dlink_dwr-922-e2.dts @@ -35,37 +35,37 @@ led-boot = &sstrengthg; sms { - label = "dwr-922-e2:green:sms"; + label = "green:sms"; gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; }; lan { - label = "dwr-922-e2:green:lan"; + label = "green:lan"; gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>; }; sstrengthg: sstrengthg { - label = "dwr-922-e2:green:sigstrength"; + label = "green:sigstrength"; gpios = <&gpio2 0 GPIO_ACTIVE_LOW>; }; sstrengthr { - label = "dwr-922-e2:red:sigstrength"; + label = "red:sigstrength"; gpios = <&gpio2 1 GPIO_ACTIVE_LOW>; }; 4g { - label = "dwr-922-e2:green:4g"; + label = "green:4g"; gpios = <&gpio2 2 GPIO_ACTIVE_LOW>; }; 3g { - label = "dwr-922-e2:green:3g"; + label = "green:3g"; gpios = <&gpio2 3 GPIO_ACTIVE_LOW>; }; wifi { - label = "dwr-922-e2:green:wifi"; + label = "green:wifi"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620n_elecom_wrh-300cr.dts b/target/linux/ramips/dts/mt7620n_elecom_wrh-300cr.dts index 1d4efcc592..6c6e98fdd4 100644 --- a/target/linux/ramips/dts/mt7620n_elecom_wrh-300cr.dts +++ b/target/linux/ramips/dts/mt7620n_elecom_wrh-300cr.dts @@ -18,17 +18,17 @@ compatible = "gpio-leds"; led_wps: wps { - label = "wrh-300cr:green:wps"; + label = "green:wps"; gpios = <&gpio2 0 GPIO_ACTIVE_LOW>; }; ethernet { - label = "wrh-300cr:green:ethernet"; + label = "green:ethernet"; gpios = <&gpio2 3 GPIO_ACTIVE_LOW>; }; wlan { - label = "wrh-300cr:green:wlan"; + label = "green:wlan"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620n_hootoo_ht-tm05.dts b/target/linux/ramips/dts/mt7620n_hootoo_ht-tm05.dts index 25a5e12f4e..1c408bcaa1 100644 --- a/target/linux/ramips/dts/mt7620n_hootoo_ht-tm05.dts +++ b/target/linux/ramips/dts/mt7620n_hootoo_ht-tm05.dts @@ -17,13 +17,13 @@ compatible = "gpio-leds"; led_power: power { - label = "ht-tm05:blue:power"; + label = "blue:power"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; default-state = "on"; }; wifi { - label = "ht-tm05:green:wifi"; + label = "green:wifi"; gpios = <&gpio2 0 GPIO_ACTIVE_HIGH>; linux,default-trigger = "phy0tpt"; }; diff --git a/target/linux/ramips/dts/mt7620n_kimax_u35wf.dts b/target/linux/ramips/dts/mt7620n_kimax_u35wf.dts index e5af6bf39a..7d6d80038c 100644 --- a/target/linux/ramips/dts/mt7620n_kimax_u35wf.dts +++ b/target/linux/ramips/dts/mt7620n_kimax_u35wf.dts @@ -28,12 +28,12 @@ compatible = "gpio-leds"; led_wifi: wifi { - label = "u35wf:blue:wifi"; + label = "blue:wifi"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; lan { - label = "u35wf:green:eth"; + label = "green:eth"; gpios = <&gpio2 4 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620n_kingston_mlw221.dts b/target/linux/ramips/dts/mt7620n_kingston_mlw221.dts index 24b3df4696..dcd38fc8d6 100644 --- a/target/linux/ramips/dts/mt7620n_kingston_mlw221.dts +++ b/target/linux/ramips/dts/mt7620n_kingston_mlw221.dts @@ -18,12 +18,12 @@ compatible = "gpio-leds"; led_system: system { - label = "mlw221:blue:system"; + label = "blue:system"; gpios = <&gpio2 3 GPIO_ACTIVE_LOW>; }; wifi { - label = "mlw221:blue:wifi"; + label = "blue:wifi"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620n_kingston_mlwg2.dts b/target/linux/ramips/dts/mt7620n_kingston_mlwg2.dts index 79a695baac..3410077ce5 100644 --- a/target/linux/ramips/dts/mt7620n_kingston_mlwg2.dts +++ b/target/linux/ramips/dts/mt7620n_kingston_mlwg2.dts @@ -18,12 +18,12 @@ compatible = "gpio-leds"; led_system: system { - label = "mlwg2:blue:system"; + label = "blue:system"; gpios = <&gpio2 3 GPIO_ACTIVE_LOW>; }; wifi { - label = "mlwg2:blue:wifi"; + label = "blue:wifi"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620n_netgear_jwnr2010-v5.dts b/target/linux/ramips/dts/mt7620n_netgear_jwnr2010-v5.dts index d66574bb03..63cf38dec5 100644 --- a/target/linux/ramips/dts/mt7620n_netgear_jwnr2010-v5.dts +++ b/target/linux/ramips/dts/mt7620n_netgear_jwnr2010-v5.dts @@ -18,38 +18,38 @@ compatible = "gpio-leds"; led_power: power { - label = "jwnr2010-v5:green:power"; + label = "green:power"; gpios = <&gpio0 21 GPIO_ACTIVE_LOW>; }; wan { - label = "jwnr2010-v5:green:wan"; + label = "green:wan"; gpios = <&gpio0 19 GPIO_ACTIVE_HIGH>; }; wlan { - label = "jwnr2010-v5:green:wlan"; + label = "green:wlan"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0radio"; }; lan1 { - label = "jwnr2010-v5:green:lan1"; + label = "green:lan1"; gpios = <&gpio2 3 GPIO_ACTIVE_LOW>; }; lan2 { - label = "jwnr2010-v5:green:lan2"; + label = "green:lan2"; gpios = <&gpio2 2 GPIO_ACTIVE_LOW>; }; lan3 { - label = "jwnr2010-v5:green:lan3"; + label = "green:lan3"; gpios = <&gpio2 1 GPIO_ACTIVE_LOW>; }; lan4 { - label = "jwnr2010-v5:green:lan4"; + label = "green:lan4"; gpios = <&gpio2 0 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620n_nexx_wt3020.dtsi b/target/linux/ramips/dts/mt7620n_nexx_wt3020.dtsi index 9762472355..0a724c048b 100644 --- a/target/linux/ramips/dts/mt7620n_nexx_wt3020.dtsi +++ b/target/linux/ramips/dts/mt7620n_nexx_wt3020.dtsi @@ -28,7 +28,7 @@ compatible = "gpio-leds"; led_power: power { - label = "wt3020:blue:power"; + label = "blue:power"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620n_ravpower_rp-wd03.dts b/target/linux/ramips/dts/mt7620n_ravpower_rp-wd03.dts index e98184e7ac..320d61f65c 100644 --- a/target/linux/ramips/dts/mt7620n_ravpower_rp-wd03.dts +++ b/target/linux/ramips/dts/mt7620n_ravpower_rp-wd03.dts @@ -15,12 +15,12 @@ compatible = "gpio-leds"; wifi_green { - label = "rp-wd03:green:wifi"; + label = "green:wifi"; gpios = <&gpio2 0 GPIO_ACTIVE_HIGH>; }; led_wifi_blue: wifi_blue { - label = "rp-wd03:blue:wifi"; + label = "blue:wifi"; gpios = <&gpio3 0 GPIO_ACTIVE_HIGH>; }; }; diff --git a/target/linux/ramips/dts/mt7620n_vonets_var11n-300.dts b/target/linux/ramips/dts/mt7620n_vonets_var11n-300.dts index cc5e06b1b5..8fa05a0793 100644 --- a/target/linux/ramips/dts/mt7620n_vonets_var11n-300.dts +++ b/target/linux/ramips/dts/mt7620n_vonets_var11n-300.dts @@ -18,7 +18,7 @@ compatible = "gpio-leds"; led_system: system { - label = "var11n-300:blue:system"; + label = "blue:system"; gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>; }; }; diff --git a/target/linux/ramips/dts/mt7620n_wrtnode_wrtnode.dts b/target/linux/ramips/dts/mt7620n_wrtnode_wrtnode.dts index f2b2345ac7..3ac7296f75 100644 --- a/target/linux/ramips/dts/mt7620n_wrtnode_wrtnode.dts +++ b/target/linux/ramips/dts/mt7620n_wrtnode_wrtnode.dts @@ -17,7 +17,7 @@ compatible = "gpio-leds"; led_indicator: indicator { - label = "wrtnode:blue:indicator"; + label = "blue:indicator"; gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620n_zbtlink_zbt-cpe102.dts b/target/linux/ramips/dts/mt7620n_zbtlink_zbt-cpe102.dts index fbbadf6dba..35bada9a24 100644 --- a/target/linux/ramips/dts/mt7620n_zbtlink_zbt-cpe102.dts +++ b/target/linux/ramips/dts/mt7620n_zbtlink_zbt-cpe102.dts @@ -20,17 +20,17 @@ compatible = "gpio-leds"; led_4g_0: 4g-0 { - label = "zbt-cpe102:green:4g-0"; + label = "green:4g-0"; gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; }; 4g-1 { - label = "zbt-cpe102:green:4g-1"; + label = "green:4g-1"; gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; }; 4g-2 { - label = "zbt-cpe102:green:4g-2"; + label = "green:4g-2"; gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620n_zbtlink_zbt-wa05.dts b/target/linux/ramips/dts/mt7620n_zbtlink_zbt-wa05.dts index f3e391e950..a6ef51dabb 100644 --- a/target/linux/ramips/dts/mt7620n_zbtlink_zbt-wa05.dts +++ b/target/linux/ramips/dts/mt7620n_zbtlink_zbt-wa05.dts @@ -22,19 +22,19 @@ compatible = "gpio-leds"; led_power: power { - label = "zbt-wa05:blue:power"; + label = "blue:power"; gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; }; usb { - label = "zbt-wa05:blue:usb"; + label = "blue:usb"; gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; }; air { - label = "zbt-wa05:blue:air"; + label = "blue:air"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620n_zbtlink_zbt-we2026.dts b/target/linux/ramips/dts/mt7620n_zbtlink_zbt-we2026.dts index d547923b48..fe1799885a 100644 --- a/target/linux/ramips/dts/mt7620n_zbtlink_zbt-we2026.dts +++ b/target/linux/ramips/dts/mt7620n_zbtlink_zbt-we2026.dts @@ -22,12 +22,12 @@ compatible = "gpio-leds"; led_power: power { - label = "zbt-we2026:red:power"; + label = "red:power"; gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; }; wlan { - label = "zbt-we2026:green:wlan"; + label = "green:wlan"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620n_zbtlink_zbt-wr8305rt.dts b/target/linux/ramips/dts/mt7620n_zbtlink_zbt-wr8305rt.dts index c2692467c5..af3ac4b009 100644 --- a/target/linux/ramips/dts/mt7620n_zbtlink_zbt-wr8305rt.dts +++ b/target/linux/ramips/dts/mt7620n_zbtlink_zbt-wr8305rt.dts @@ -18,19 +18,19 @@ compatible = "gpio-leds"; led_sys: sys { - label = "zbt-wr8305rt:green:sys"; + label = "green:sys"; gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; }; lan { - label = "zbt-wr8305rt:green:usb"; + label = "green:usb"; gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; }; wifi { - label = "zbt-wr8305rt:green:wifi"; + label = "green:wifi"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620n_zyxel_keenetic-omni-ii.dts b/target/linux/ramips/dts/mt7620n_zyxel_keenetic-omni-ii.dts index a9c4e922d6..4e5c68ef3f 100644 --- a/target/linux/ramips/dts/mt7620n_zyxel_keenetic-omni-ii.dts +++ b/target/linux/ramips/dts/mt7620n_zyxel_keenetic-omni-ii.dts @@ -18,24 +18,24 @@ compatible = "gpio-leds"; wan { - label = "keenetic-omni-ii:green:wan"; + label = "green:wan"; gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; }; usb { - label = "keenetic-omni-ii:green:usb"; + label = "green:usb"; gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; }; wifi { - label = "keenetic-omni-ii:green:wifi"; + label = "green:wifi"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; led_power: power { - label = "keenetic-omni-ii:green:power"; + label = "green:power"; gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7620n_zyxel_keenetic-omni.dts b/target/linux/ramips/dts/mt7620n_zyxel_keenetic-omni.dts index a238d7ae91..e43f1357dd 100644 --- a/target/linux/ramips/dts/mt7620n_zyxel_keenetic-omni.dts +++ b/target/linux/ramips/dts/mt7620n_zyxel_keenetic-omni.dts @@ -18,24 +18,24 @@ compatible = "gpio-leds"; wan { - label = "keenetic-omni:green:wan"; + label = "green:wan"; gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; }; usb { - label = "keenetic-omni:green:usb"; + label = "green:usb"; gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; }; wifi { - label = "keenetic-omni:green:wifi"; + label = "green:wifi"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; led_power: power { - label = "keenetic-omni:green:power"; + label = "green:power"; gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7621_adslr_g7.dts b/target/linux/ramips/dts/mt7621_adslr_g7.dts index dba6ddbff8..3290a5e710 100644 --- a/target/linux/ramips/dts/mt7621_adslr_g7.dts +++ b/target/linux/ramips/dts/mt7621_adslr_g7.dts @@ -21,7 +21,7 @@ compatible = "gpio-leds"; led_sys: sys { - label = "g7:blue:sys"; + label = "blue:sys"; gpios = <&gpio 7 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7621_afoundry_ew1200.dts b/target/linux/ramips/dts/mt7621_afoundry_ew1200.dts index 56016ed0f5..ed9e9852d3 100644 --- a/target/linux/ramips/dts/mt7621_afoundry_ew1200.dts +++ b/target/linux/ramips/dts/mt7621_afoundry_ew1200.dts @@ -28,12 +28,12 @@ compatible = "gpio-leds"; led_run: run { - label = "ew1200:green:run"; + label = "green:run"; gpios = <&gpio 5 GPIO_ACTIVE_HIGH>; }; usb { - label = "ew1200:green:usb"; + label = "green:usb"; gpios = <&gpio 4 GPIO_ACTIVE_LOW>; trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>; linux,default-trigger = "usbport"; diff --git a/target/linux/ramips/dts/mt7621_alfa-network_quad-e4g.dts b/target/linux/ramips/dts/mt7621_alfa-network_quad-e4g.dts index 6fc8eb3081..e457dfcdbe 100644 --- a/target/linux/ramips/dts/mt7621_alfa-network_quad-e4g.dts +++ b/target/linux/ramips/dts/mt7621_alfa-network_quad-e4g.dts @@ -112,28 +112,28 @@ compatible = "gpio-leds"; led_system: system { - label = "quad-e4g:red:system"; + label = "red:system"; gpios = <&gpio 13 GPIO_ACTIVE_LOW>; default-state = "keep"; }; m2 { - label = "quad-e4g:orange:m2"; + label = "orange:m2"; gpios = <&gpio 33 GPIO_ACTIVE_LOW>; }; minipcie0 { - label = "quad-e4g:orange:minipcie0"; + label = "orange:minipcie0"; gpios = <&gpio 26 GPIO_ACTIVE_LOW>; }; minipcie1 { - label = "quad-e4g:orange:minipcie1"; + label = "orange:minipcie1"; gpios = <&gpio 27 GPIO_ACTIVE_LOW>; }; minipcie2 { - label = "quad-e4g:orange:minipcie2"; + label = "orange:minipcie2"; gpios = <&gpio 28 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7621_asiarf_ap7621.dtsi b/target/linux/ramips/dts/mt7621_asiarf_ap7621.dtsi index bc54d14083..b011c7ae2a 100644 --- a/target/linux/ramips/dts/mt7621_asiarf_ap7621.dtsi +++ b/target/linux/ramips/dts/mt7621_asiarf_ap7621.dtsi @@ -20,12 +20,12 @@ compatible = "gpio-leds"; wlan1 { - label = "ap7621-001:orange:wlan1"; + label = "orange:wlan1"; gpios = <&gpio 11 GPIO_ACTIVE_LOW>; }; wlan0 { - label = "ap7621-001:orange:wlan0"; + label = "orange:wlan0"; gpios = <&gpio 12 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7621_asus_rt-ac57u.dts b/target/linux/ramips/dts/mt7621_asus_rt-ac57u.dts index bfbb47fe66..78f5584b4c 100644 --- a/target/linux/ramips/dts/mt7621_asus_rt-ac57u.dts +++ b/target/linux/ramips/dts/mt7621_asus_rt-ac57u.dts @@ -20,12 +20,12 @@ compatible = "gpio-leds"; led_power: power { - label = "rt-ac57u:blue:power"; + label = "blue:power"; gpios = <&gpio 48 GPIO_ACTIVE_LOW>; }; usb { - label = "rt-ac57u:blue:usb"; + label = "blue:usb"; gpios = <&gpio 47 GPIO_ACTIVE_LOW>; trigger-sources = <&ehci_port2>; linux,default-trigger = "usbport"; diff --git a/target/linux/ramips/dts/mt7621_asus_rt-ac65p.dts b/target/linux/ramips/dts/mt7621_asus_rt-ac65p.dts index 6bdacb6349..9be178ecd3 100644 --- a/target/linux/ramips/dts/mt7621_asus_rt-ac65p.dts +++ b/target/linux/ramips/dts/mt7621_asus_rt-ac65p.dts @@ -5,32 +5,4 @@ / { compatible = "asus,rt-ac65p", "mediatek,mt7621-soc"; model = "ASUS RT-AC65P"; - - aliases { - led-boot = &led_power; - led-failsafe = &led_power; - led-running = &led_power; - led-upgrade = &led_power; - }; - - leds { - compatible = "gpio-leds"; - - led_power: power { - label = "rt-ac65p:blue:power"; - gpios = <&gpio 4 GPIO_ACTIVE_LOW>; - }; - - wlan5g { - label = "rt-ac65p:blue:wlan5g"; - gpios = <&gpio 8 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy1radio"; - }; - - wlan2g { - label = "rt-ac65p:blue:wlan2g"; - gpios = <&gpio 10 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0radio"; - }; - }; }; diff --git a/target/linux/ramips/dts/mt7621_asus_rt-ac85p.dts b/target/linux/ramips/dts/mt7621_asus_rt-ac85p.dts index be29697f73..cc8e0c2c44 100644 --- a/target/linux/ramips/dts/mt7621_asus_rt-ac85p.dts +++ b/target/linux/ramips/dts/mt7621_asus_rt-ac85p.dts @@ -5,32 +5,4 @@ / { compatible = "asus,rt-ac85p", "mediatek,mt7621-soc"; model = "ASUS RT-AC85P"; - - aliases { - led-boot = &led_power; - led-failsafe = &led_power; - led-running = &led_power; - led-upgrade = &led_power; - }; - - leds { - compatible = "gpio-leds"; - - led_power: power { - label = "rt-ac85p:blue:power"; - gpios = <&gpio 4 GPIO_ACTIVE_LOW>; - }; - - wlan5g { - label = "rt-ac85p:blue:wlan5g"; - gpios = <&gpio 8 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy1radio"; - }; - - wlan2g { - label = "rt-ac85p:blue:wlan2g"; - gpios = <&gpio 10 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0radio"; - }; - }; }; diff --git a/target/linux/ramips/dts/mt7621_asus_rt-acx5p.dtsi b/target/linux/ramips/dts/mt7621_asus_rt-acx5p.dtsi index f31e74b051..b5e8655cb9 100644 --- a/target/linux/ramips/dts/mt7621_asus_rt-acx5p.dtsi +++ b/target/linux/ramips/dts/mt7621_asus_rt-acx5p.dtsi @@ -6,6 +6,13 @@ #include <dt-bindings/input/input.h> / { + aliases { + led-boot = &led_power; + led-failsafe = &led_power; + led-running = &led_power; + led-upgrade = &led_power; + }; + keys { compatible = "gpio-keys"; @@ -21,6 +28,27 @@ linux,code = <KEY_WPS_BUTTON>; }; }; + + leds { + compatible = "gpio-leds"; + + led_power: power { + label = "blue:power"; + gpios = <&gpio 4 GPIO_ACTIVE_LOW>; + }; + + wlan5g { + label = "blue:wlan5g"; + gpios = <&gpio 8 GPIO_ACTIVE_LOW>; + linux,default-trigger = "phy1radio"; + }; + + wlan2g { + label = "blue:wlan2g"; + gpios = <&gpio 10 GPIO_ACTIVE_LOW>; + linux,default-trigger = "phy0radio"; + }; + }; }; &i2c { diff --git a/target/linux/ramips/dts/mt7621_buffalo_wsr-1166dhp.dts b/target/linux/ramips/dts/mt7621_buffalo_wsr-1166dhp.dts index 21c763c1e1..f9211463f8 100644 --- a/target/linux/ramips/dts/mt7621_buffalo_wsr-1166dhp.dts +++ b/target/linux/ramips/dts/mt7621_buffalo_wsr-1166dhp.dts @@ -18,42 +18,42 @@ compatible = "gpio-leds"; internet_g { - label = "wsr-1166:green:internet"; + label = "green:internet"; gpios = <&gpio 41 GPIO_ACTIVE_LOW>; }; router_g { - label = "wsr-1166:green:router"; + label = "green:router"; gpios = <&gpio 42 GPIO_ACTIVE_LOW>; }; router_o { - label = "wsr-1166:orange:router"; + label = "orange:router"; gpios = <&gpio 43 GPIO_ACTIVE_LOW>; }; internet_o { - label = "wsr-1166:orange:internet"; + label = "orange:internet"; gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; wifi_o { - label = "wsr-1166:orange:wifi"; + label = "orange:wifi"; gpios = <&gpio 45 GPIO_ACTIVE_LOW>; }; led_power: power { - label = "wsr-1166:green:power"; + label = "green:power"; gpios = <&gpio 46 GPIO_ACTIVE_LOW>; }; diag { - label = "wsr-1166:orange:diag"; + label = "orange:diag"; gpios = <&gpio 47 GPIO_ACTIVE_LOW>; }; wifi_g { - label = "wsr-1166:green:wifi"; + label = "green:wifi"; gpios = <&gpio 48 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7621_buffalo_wsr-2533dhpl.dts b/target/linux/ramips/dts/mt7621_buffalo_wsr-2533dhpl.dts index 9b921af757..048eac5a3d 100644 --- a/target/linux/ramips/dts/mt7621_buffalo_wsr-2533dhpl.dts +++ b/target/linux/ramips/dts/mt7621_buffalo_wsr-2533dhpl.dts @@ -21,42 +21,42 @@ compatible = "gpio-leds"; internet_green { - label = "wsr-2533dhpl:green:internet"; + label = "green:internet"; gpios = <&gpio 41 GPIO_ACTIVE_LOW>; }; router_green { - label = "wsr-2533dhpl:green:router"; + label = "green:router"; gpios = <&gpio 42 GPIO_ACTIVE_LOW>; }; router_amber { - label = "wsr-2533dhpl:amber:router"; + label = "amber:router"; gpios = <&gpio 43 GPIO_ACTIVE_LOW>; }; internet_amber { - label = "wsr-2533dhpl:amber:internet"; + label = "amber:internet"; gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; wireless_amber { - label = "wsr-2533dhpl:amber:wireless"; + label = "amber:wireless"; gpios = <&gpio 45 GPIO_ACTIVE_LOW>; }; led_power: power { - label = "wsr-2533dhpl:green:power"; + label = "green:power"; gpios = <&gpio 46 GPIO_ACTIVE_LOW>; }; led_diag: diag { - label = "wsr-2533dhpl:amber:diag"; + label = "amber:diag"; gpios = <&gpio 47 GPIO_ACTIVE_LOW>; }; wireless_green { - label = "wsr-2533dhpl:green:wireless"; + label = "green:wireless"; gpios = <&gpio 48 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7621_buffalo_wsr-600dhp.dts b/target/linux/ramips/dts/mt7621_buffalo_wsr-600dhp.dts index a25a56c0dd..7392b1d7c1 100644 --- a/target/linux/ramips/dts/mt7621_buffalo_wsr-600dhp.dts +++ b/target/linux/ramips/dts/mt7621_buffalo_wsr-600dhp.dts @@ -18,42 +18,42 @@ compatible = "gpio-leds"; led_power: power { - label = "wsr-600:green:power"; + label = "green:power"; gpios = <&gpio 12 GPIO_ACTIVE_LOW>; }; wifi_o { - label = "wsr-600:orange:wifi"; + label = "orange:wifi"; gpios = <&gpio 41 GPIO_ACTIVE_LOW>; }; diag { - label = "wsr-600:orange:diag"; + label = "orange:diag"; gpios = <&gpio 42 GPIO_ACTIVE_LOW>; }; wifi_g { - label = "wsr-600:green:wifi"; + label = "green:wifi"; gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; router_o { - label = "wsr-600:orange:router"; + label = "orange:router"; gpios = <&gpio 45 GPIO_ACTIVE_LOW>; }; router_g { - label = "wsr-600:green:router"; + label = "green:router"; gpios = <&gpio 46 GPIO_ACTIVE_LOW>; }; internet_o { - label = "wsr-600:orange:internet"; + label = "orange:internet"; gpios = <&gpio 47 GPIO_ACTIVE_LOW>; }; internet_g { - label = "wsr-600:green:internet"; + label = "green:internet"; gpios = <&gpio 48 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7621_d-team_newifi-d2.dts b/target/linux/ramips/dts/mt7621_d-team_newifi-d2.dts index 34b43ff5cc..5622855f48 100644 --- a/target/linux/ramips/dts/mt7621_d-team_newifi-d2.dts +++ b/target/linux/ramips/dts/mt7621_d-team_newifi-d2.dts @@ -23,37 +23,37 @@ compatible = "gpio-leds"; power-amber { - label = "newifi-d2:amber:power"; + label = "amber:power"; gpios = <&gpio 6 GPIO_ACTIVE_LOW>; }; led_power_blue: power-blue { - label = "newifi-d2:blue:power"; + label = "blue:power"; gpios = <&gpio 15 GPIO_ACTIVE_LOW>; }; internet-amber { - label = "newifi-d2:amber:internet"; + label = "amber:internet"; gpios = <&gpio 4 GPIO_ACTIVE_LOW>; }; internet-blue { - label = "newifi-d2:blue:internet"; + label = "blue:internet"; gpios = <&gpio 13 GPIO_ACTIVE_LOW>; }; wlan2g { - label = "newifi-d2:blue:wlan2g"; + label = "blue:wlan2g"; gpios = <&gpio 14 GPIO_ACTIVE_LOW>; }; wlan5g { - label = "newifi-d2:blue:wlan5g"; + label = "blue:wlan5g"; gpios = <&gpio 16 GPIO_ACTIVE_LOW>; }; usb { - label = "newifi-d2:blue:usb"; + label = "blue:usb"; gpios = <&gpio 10 GPIO_ACTIVE_LOW>; trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>; linux,default-trigger = "usbport"; diff --git a/target/linux/ramips/dts/mt7621_d-team_pbr-m1.dts b/target/linux/ramips/dts/mt7621_d-team_pbr-m1.dts index 0d939f5883..2fcdce5f19 100644 --- a/target/linux/ramips/dts/mt7621_d-team_pbr-m1.dts +++ b/target/linux/ramips/dts/mt7621_d-team_pbr-m1.dts @@ -22,28 +22,28 @@ compatible = "gpio-leds"; power { - label = "pbr-m1:blue:power"; + label = "blue:power"; gpios = <&gpio 31 GPIO_ACTIVE_LOW>; default-state = "on"; }; led_sys: sys { - label = "pbr-m1:blue:sys"; + label = "blue:sys"; gpios = <&gpio 32 GPIO_ACTIVE_LOW>; }; internet { - label = "pbr-m1:blue:internet"; + label = "blue:internet"; gpios = <&gpio 29 GPIO_ACTIVE_LOW>; }; wlan2g { - label = "pbr-m1:blue:wlan2g"; + label = "blue:wlan2g"; gpios = <&gpio 33 GPIO_ACTIVE_LOW>; }; wlan5g { - label = "pbr-m1:blue:wlan5g"; + label = "blue:wlan5g"; gpios = <&gpio 28 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7621_dlink_dir-1960-a1.dts b/target/linux/ramips/dts/mt7621_dlink_dir-1960-a1.dts index 14974c8c4a..0f4fbc1873 100644 --- a/target/linux/ramips/dts/mt7621_dlink_dir-1960-a1.dts +++ b/target/linux/ramips/dts/mt7621_dlink_dir-1960-a1.dts @@ -5,43 +5,14 @@ / { compatible = "dlink,dir-1960-a1", "mediatek,mt7621-soc"; model = "D-Link DIR-1960 A1"; +}; - aliases { - led-boot = &led_power_orange; - led-failsafe = &led_power_white; - led-running = &led_power_white; - led-upgrade = &led_net_orange; - }; - - leds { - compatible = "gpio-leds"; - - led_power_orange: power_orange { - label = "dir-1960-a1:orange:power"; - gpios = <&gpio 8 GPIO_ACTIVE_LOW>; - }; - - led_power_white: power_white { - label = "dir-1960-a1:white:power"; - gpios = <&gpio 16 GPIO_ACTIVE_LOW>; - }; - - led_net_orange: net_orange { - label = "dir-1960-a1:orange:net"; - gpios = <&gpio 4 GPIO_ACTIVE_LOW>; - }; - - net_white { - label = "dir-1960-a1:white:net"; - gpios = <&gpio 3 GPIO_ACTIVE_LOW>; - }; - - usb_white { - label = "dir-1960-a1:white:usb"; - gpios = <&gpio 14 GPIO_ACTIVE_LOW>; - trigger-sources = <&xhci_ehci_port1>; - linux,default-trigger = "usbport"; - }; +&leds { + usb_white { + label = "white:usb"; + gpios = <&gpio 14 GPIO_ACTIVE_LOW>; + trigger-sources = <&xhci_ehci_port1>; + linux,default-trigger = "usbport"; }; }; diff --git a/target/linux/ramips/dts/mt7621_dlink_dir-2660-a1.dts b/target/linux/ramips/dts/mt7621_dlink_dir-2660-a1.dts index c185285eb6..fbf233d96f 100644 --- a/target/linux/ramips/dts/mt7621_dlink_dir-2660-a1.dts +++ b/target/linux/ramips/dts/mt7621_dlink_dir-2660-a1.dts @@ -5,50 +5,21 @@ / { compatible = "dlink,dir-2660-a1", "mediatek,mt7621-soc"; model = "D-Link DIR-2660 A1"; +}; - aliases { - led-boot = &led_power_orange; - led-failsafe = &led_power_white; - led-running = &led_power_white; - led-upgrade = &led_net_orange; +&leds { + usb2_white { + label = "white:usb2"; + gpios = <&gpio 13 GPIO_ACTIVE_LOW>; + trigger-sources = <&ehci_port2>; + linux,default-trigger = "usbport"; }; - leds { - compatible = "gpio-leds"; - - led_power_orange: power_orange { - label = "dir-2660-a1:orange:power"; - gpios = <&gpio 8 GPIO_ACTIVE_LOW>; - }; - - led_power_white: power_white { - label = "dir-2660-a1:white:power"; - gpios = <&gpio 16 GPIO_ACTIVE_LOW>; - }; - - led_net_orange: net_orange { - label = "dir-2660-a1:orange:net"; - gpios = <&gpio 4 GPIO_ACTIVE_LOW>; - }; - - net_white { - label = "dir-2660-a1:white:net"; - gpios = <&gpio 3 GPIO_ACTIVE_LOW>; - }; - - usb2_white { - label = "dir-2660-a1:white:usb2"; - gpios = <&gpio 13 GPIO_ACTIVE_LOW>; - trigger-sources = <&ehci_port2>; - linux,default-trigger = "usbport"; - }; - - usb3_white { - label = "dir-2660-a1:white:usb3"; - gpios = <&gpio 14 GPIO_ACTIVE_LOW>; - trigger-sources = <&xhci_ehci_port1>; - linux,default-trigger = "usbport"; - }; + usb3_white { + label = "white:usb3"; + gpios = <&gpio 14 GPIO_ACTIVE_LOW>; + trigger-sources = <&xhci_ehci_port1>; + linux,default-trigger = "usbport"; }; }; diff --git a/target/linux/ramips/dts/mt7621_dlink_dir-860l-b1.dts b/target/linux/ramips/dts/mt7621_dlink_dir-860l-b1.dts index 68146b0518..5d1c336736 100644 --- a/target/linux/ramips/dts/mt7621_dlink_dir-860l-b1.dts +++ b/target/linux/ramips/dts/mt7621_dlink_dir-860l-b1.dts @@ -19,22 +19,22 @@ compatible = "gpio-leds"; power { - label = "dir-860l-b1:orange:power"; + label = "orange:power"; gpios = <&gpio 13 GPIO_ACTIVE_LOW>; }; led_power_green: power2 { - label = "dir-860l-b1:green:power"; + label = "green:power"; gpios = <&gpio 15 GPIO_ACTIVE_LOW>; }; net { - label = "dir-860l-b1:orange:net"; + label = "orange:net"; gpios = <&gpio 14 GPIO_ACTIVE_LOW>; }; net2 { - label = "dir-860l-b1:green:net"; + label = "green:net"; gpios = <&gpio 16 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7621_dlink_dir-867-a1.dts b/target/linux/ramips/dts/mt7621_dlink_dir-867-a1.dts index 060f7a47c0..b2ba5ecaa9 100644 --- a/target/linux/ramips/dts/mt7621_dlink_dir-867-a1.dts +++ b/target/linux/ramips/dts/mt7621_dlink_dir-867-a1.dts @@ -5,35 +5,4 @@ / { compatible = "dlink,dir-867-a1", "mediatek,mt7621-soc"; model = "D-Link DIR-867 A1"; - - aliases { - led-boot = &led_power_orange; - led-failsafe = &led_power_green; - led-running = &led_power_green; - led-upgrade = &led_net_orange; - }; - - leds { - compatible = "gpio-leds"; - - led_power_orange: power_orange { - label = "dir-867-a1:orange:power"; - gpios = <&gpio 8 GPIO_ACTIVE_LOW>; - }; - - led_power_green: power_green { - label = "dir-867-a1:green:power"; - gpios = <&gpio 16 GPIO_ACTIVE_LOW>; - }; - - led_net_orange: net_orange { - label = "dir-867-a1:orange:net"; - gpios = <&gpio 4 GPIO_ACTIVE_LOW>; - }; - - net_green { - label = "dir-867-a1:green:net"; - gpios = <&gpio 3 GPIO_ACTIVE_LOW>; - }; - }; }; diff --git a/target/linux/ramips/dts/mt7621_dlink_dir-878-a1.dts b/target/linux/ramips/dts/mt7621_dlink_dir-878-a1.dts index 05a6a6543f..4bfe5ca43c 100644 --- a/target/linux/ramips/dts/mt7621_dlink_dir-878-a1.dts +++ b/target/linux/ramips/dts/mt7621_dlink_dir-878-a1.dts @@ -5,35 +5,4 @@ / { compatible = "dlink,dir-878-a1", "mediatek,mt7621-soc"; model = "D-Link DIR-878 A1"; - - aliases { - led-boot = &led_power_orange; - led-failsafe = &led_power_green; - led-running = &led_power_green; - led-upgrade = &led_net_orange; - }; - - leds { - compatible = "gpio-leds"; - - led_power_orange: power_orange { - label = "dir-878-a1:orange:power"; - gpios = <&gpio 8 GPIO_ACTIVE_LOW>; - }; - - led_power_green: power_green { - label = "dir-878-a1:green:power"; - gpios = <&gpio 16 GPIO_ACTIVE_LOW>; - }; - - led_net_orange: net_orange { - label = "dir-878-a1:orange:net"; - gpios = <&gpio 4 GPIO_ACTIVE_LOW>; - }; - - net_green { - label = "dir-878-a1:green:net"; - gpios = <&gpio 3 GPIO_ACTIVE_LOW>; - }; - }; }; diff --git a/target/linux/ramips/dts/mt7621_dlink_dir-882-a1.dts b/target/linux/ramips/dts/mt7621_dlink_dir-882-a1.dts index 07a257be70..bc2c6dfe86 100644 --- a/target/linux/ramips/dts/mt7621_dlink_dir-882-a1.dts +++ b/target/linux/ramips/dts/mt7621_dlink_dir-882-a1.dts @@ -5,49 +5,20 @@ / { compatible = "dlink,dir-882-a1", "mediatek,mt7621-soc"; model = "D-Link DIR-882 A1"; +}; - aliases { - led-boot = &led_power_orange; - led-failsafe = &led_power_green; - led-running = &led_power_green; - led-upgrade = &led_net_orange; +&leds { + usb2 { + label = "green:usb2"; + gpios = <&gpio 13 GPIO_ACTIVE_LOW>; + trigger-sources = <&ehci_port2>; + linux,default-trigger = "usbport"; }; - leds { - compatible = "gpio-leds"; - - led_power_orange: power_orange { - label = "dir-882-a1:orange:power"; - gpios = <&gpio 8 GPIO_ACTIVE_LOW>; - }; - - led_power_green: power_green { - label = "dir-882-a1:green:power"; - gpios = <&gpio 16 GPIO_ACTIVE_LOW>; - }; - - led_net_orange: net_orange { - label = "dir-882-a1:orange:net"; - gpios = <&gpio 4 GPIO_ACTIVE_LOW>; - }; - - net_green { - label = "dir-882-a1:green:net"; - gpios = <&gpio 3 GPIO_ACTIVE_LOW>; - }; - - usb2 { - label = "dir-882-a1:green:usb2"; - gpios = <&gpio 13 GPIO_ACTIVE_LOW>; - trigger-sources = <&ehci_port2>; - linux,default-trigger = "usbport"; - }; - - usb3 { - label = "dir-882-a1:green:usb3"; - gpios = <&gpio 14 GPIO_ACTIVE_LOW>; - trigger-sources = <&xhci_ehci_port1>; - linux,default-trigger = "usbport"; - }; + usb3 { + label = "green:usb3"; + gpios = <&gpio 14 GPIO_ACTIVE_LOW>; + trigger-sources = <&xhci_ehci_port1>; + linux,default-trigger = "usbport"; }; }; diff --git a/target/linux/ramips/dts/mt7621_dlink_dir-8xx-a1.dtsi b/target/linux/ramips/dts/mt7621_dlink_dir-8xx-a1.dtsi index 9320967e71..e451d6a39f 100644 --- a/target/linux/ramips/dts/mt7621_dlink_dir-8xx-a1.dtsi +++ b/target/linux/ramips/dts/mt7621_dlink_dir-8xx-a1.dtsi @@ -8,6 +8,10 @@ / { aliases { label-mac-device = &gmac0; + led-boot = &led_power_orange; + led-failsafe = &led_power_green; + led-running = &led_power_green; + led-upgrade = &led_net_orange; }; keys { @@ -31,6 +35,30 @@ linux,code = <KEY_RFKILL>; }; }; + + leds: leds { + compatible = "gpio-leds"; + + led_power_orange: power_orange { + label = "orange:power"; + gpios = <&gpio 8 GPIO_ACTIVE_LOW>; + }; + + led_power_green: power_green { + label = "green:power"; + gpios = <&gpio 16 GPIO_ACTIVE_LOW>; + }; + + led_net_orange: net_orange { + label = "orange:net"; + gpios = <&gpio 4 GPIO_ACTIVE_LOW>; + }; + + net_green { + label = "green:net"; + gpios = <&gpio 3 GPIO_ACTIVE_LOW>; + }; + }; }; &spi0 { diff --git a/target/linux/ramips/dts/mt7621_dlink_dir-xx60-a1.dtsi b/target/linux/ramips/dts/mt7621_dlink_dir-xx60-a1.dtsi index e194592b57..96c6921124 100644 --- a/target/linux/ramips/dts/mt7621_dlink_dir-xx60-a1.dtsi +++ b/target/linux/ramips/dts/mt7621_dlink_dir-xx60-a1.dtsi @@ -8,6 +8,10 @@ / { aliases { label-mac-device = &gmac0; + led-boot = &led_power_orange; + led-failsafe = &led_power_white; + led-running = &led_power_white; + led-upgrade = &led_net_orange; }; keys { @@ -25,6 +29,30 @@ linux,code = <KEY_WPS_BUTTON>; }; }; + + leds: leds { + compatible = "gpio-leds"; + + led_power_orange: power_orange { + label = "orange:power"; + gpios = <&gpio 8 GPIO_ACTIVE_LOW>; + }; + + led_power_white: power_white { + label = "white:power"; + gpios = <&gpio 16 GPIO_ACTIVE_LOW>; + }; + + led_net_orange: net_orange { + label = "orange:net"; + gpios = <&gpio 4 GPIO_ACTIVE_LOW>; + }; + + net_white { + label = "white:net"; + gpios = <&gpio 3 GPIO_ACTIVE_LOW>; + }; + }; }; &nand { diff --git a/target/linux/ramips/dts/mt7621_edimax_ra21s.dts b/target/linux/ramips/dts/mt7621_edimax_ra21s.dts index 8938db5107..1aea949004 100644 --- a/target/linux/ramips/dts/mt7621_edimax_ra21s.dts +++ b/target/linux/ramips/dts/mt7621_edimax_ra21s.dts @@ -5,35 +5,4 @@ / { compatible = "edimax,ra21s", "mediatek,mt7621-soc"; model = "Edimax RA21S"; - - aliases { - led-boot = &led_power; - led-failsafe = &led_power; - led-running = &led_power; - led-upgrade = &led_power; - }; - - leds { - compatible = "gpio-leds"; - - led_power: led_1 { - label = "ra21s:red:led1"; - gpios = <&gpio 7 GPIO_ACTIVE_HIGH>; - }; - - led_2 { - label = "ra21s:red:led2"; - gpios = <&gpio 12 GPIO_ACTIVE_HIGH>; - }; - - led_3 { - label = "ra21s:red:led3"; - gpios = <&gpio 14 GPIO_ACTIVE_HIGH>; - }; - - led_4 { - label = "ra21s:red:led4"; - gpios = <&gpio 15 GPIO_ACTIVE_HIGH>; - }; - }; }; diff --git a/target/linux/ramips/dts/mt7621_edimax_re23s.dts b/target/linux/ramips/dts/mt7621_edimax_re23s.dts index e79b5bb2d2..cf44746e8f 100644 --- a/target/linux/ramips/dts/mt7621_edimax_re23s.dts +++ b/target/linux/ramips/dts/mt7621_edimax_re23s.dts @@ -21,22 +21,22 @@ compatible = "gpio-leds"; led_power: power { - label = "re23s:green:power"; + label = "green:power"; gpios = <&gpio 13 GPIO_ACTIVE_HIGH>; }; wifi_green { - label = "re23s:green:wifi"; + label = "green:wifi"; gpios = <&gpio 12 GPIO_ACTIVE_HIGH>; }; wifi_amber { - label = "re23s:amber:wifi"; + label = "amber:wifi"; gpios = <&gpio 7 GPIO_ACTIVE_HIGH>; }; led_wifi_red: wifi_red { - label = "re23s:red:wifi"; + label = "red:wifi"; gpios = <&gpio 6 GPIO_ACTIVE_HIGH>; }; }; diff --git a/target/linux/ramips/dts/mt7621_edimax_rg21s.dts b/target/linux/ramips/dts/mt7621_edimax_rg21s.dts index 0180c5b8cb..6ac01dd86d 100644 --- a/target/linux/ramips/dts/mt7621_edimax_rg21s.dts +++ b/target/linux/ramips/dts/mt7621_edimax_rg21s.dts @@ -5,35 +5,4 @@ / { compatible = "edimax,rg21s", "mediatek,mt7621-soc"; model = "Edimax RG21S"; - - aliases { - led-boot = &led_power; - led-failsafe = &led_power; - led-running = &led_power; - led-upgrade = &led_power; - }; - - leds { - compatible = "gpio-leds"; - - led_power: led_1 { - label = "rg21s:red:led1"; - gpios = <&gpio 7 GPIO_ACTIVE_HIGH>; - }; - - led_2 { - label = "rg21s:red:led2"; - gpios = <&gpio 12 GPIO_ACTIVE_HIGH>; - }; - - led_3 { - label = "rg21s:red:led3"; - gpios = <&gpio 14 GPIO_ACTIVE_HIGH>; - }; - - led_4 { - label = "rg21s:red:led4"; - gpios = <&gpio 15 GPIO_ACTIVE_HIGH>; - }; - }; }; diff --git a/target/linux/ramips/dts/mt7621_edimax_rx21s.dtsi b/target/linux/ramips/dts/mt7621_edimax_rx21s.dtsi index 4f30972f60..3f3bae43f1 100644 --- a/target/linux/ramips/dts/mt7621_edimax_rx21s.dtsi +++ b/target/linux/ramips/dts/mt7621_edimax_rx21s.dtsi @@ -8,6 +8,10 @@ / { aliases { label-mac-device = &gmac0; + led-boot = &led_power; + led-failsafe = &led_power; + led-running = &led_power; + led-upgrade = &led_power; }; keys { @@ -25,6 +29,30 @@ linux,code = <KEY_WPS_BUTTON>; }; }; + + leds { + compatible = "gpio-leds"; + + led_power: led_1 { + label = "red:led1"; + gpios = <&gpio 7 GPIO_ACTIVE_HIGH>; + }; + + led_2 { + label = "red:led2"; + gpios = <&gpio 12 GPIO_ACTIVE_HIGH>; + }; + + led_3 { + label = "red:led3"; + gpios = <&gpio 14 GPIO_ACTIVE_HIGH>; + }; + + led_4 { + label = "red:led4"; + gpios = <&gpio 15 GPIO_ACTIVE_HIGH>; + }; + }; }; &spi0 { diff --git a/target/linux/ramips/dts/mt7621_elecom_wrc-1167ghbk2-s.dts b/target/linux/ramips/dts/mt7621_elecom_wrc-1167ghbk2-s.dts index 4d8e20d9f2..b6a7383557 100644 --- a/target/linux/ramips/dts/mt7621_elecom_wrc-1167ghbk2-s.dts +++ b/target/linux/ramips/dts/mt7621_elecom_wrc-1167ghbk2-s.dts @@ -18,33 +18,33 @@ compatible = "gpio-leds"; wlan2g { - label = "wrc-1167ghbk2-s:white:wlan2g"; + label = "white:wlan2g"; gpios = <&gpio 3 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0radio"; }; wlan5g { - label = "wrc-1167ghbk2-s:white:wlan5g"; + label = "white:wlan5g"; gpios = <&gpio 4 GPIO_ACTIVE_LOW>; }; led_power_green: power_green { - label = "wrc-1167ghbk2-s:green:power"; + label = "green:power"; gpios = <&gpio 7 GPIO_ACTIVE_HIGH>; }; power_blue { - label = "wrc-1167ghbk2-s:blue:power"; + label = "blue:power"; gpios = <&gpio 8 GPIO_ACTIVE_HIGH>; }; wps { - label = "wrc-1167ghbk2-s:red:wps"; + label = "red:wps"; gpios = <&gpio 15 GPIO_ACTIVE_HIGH>; }; power_red { - label = "wrc-1167ghbk2-s:red:power"; + label = "red:power"; gpios = <&gpio 16 GPIO_ACTIVE_HIGH>; }; }; diff --git a/target/linux/ramips/dts/mt7621_elecom_wrc-gs.dtsi b/target/linux/ramips/dts/mt7621_elecom_wrc-gs.dtsi index a9ed9f6a41..fd54ead0bc 100644 --- a/target/linux/ramips/dts/mt7621_elecom_wrc-gs.dtsi +++ b/target/linux/ramips/dts/mt7621_elecom_wrc-gs.dtsi @@ -18,22 +18,22 @@ compatible = "gpio-leds"; led_power_green: power_green { - label = "wrc-gst:green:power"; + label = "green:power"; gpios = <&gpio 7 GPIO_ACTIVE_HIGH>; }; power_blue { - label = "wrc-gst:blue:power"; + label = "blue:power"; gpios = <&gpio 8 GPIO_ACTIVE_HIGH>; }; wps { - label = "wrc-gst:red:wps"; + label = "red:wps"; gpios = <&gpio 15 GPIO_ACTIVE_HIGH>; }; power_red { - label = "wrc-gst:red:power"; + label = "red:power"; gpios = <&gpio 16 GPIO_ACTIVE_HIGH>; }; }; diff --git a/target/linux/ramips/dts/mt7621_firefly_firewrt.dts b/target/linux/ramips/dts/mt7621_firefly_firewrt.dts index e0a4634547..62423f02e5 100644 --- a/target/linux/ramips/dts/mt7621_firefly_firewrt.dts +++ b/target/linux/ramips/dts/mt7621_firefly_firewrt.dts @@ -18,7 +18,7 @@ compatible = "gpio-leds"; led_power: power { - label = "firewrt:green:power"; + label = "green:power"; gpios = <&gpio 22 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7621_gehua_ghl-r-001.dts b/target/linux/ramips/dts/mt7621_gehua_ghl-r-001.dts index 97488b2d7a..e7b19fa42c 100644 --- a/target/linux/ramips/dts/mt7621_gehua_ghl-r-001.dts +++ b/target/linux/ramips/dts/mt7621_gehua_ghl-r-001.dts @@ -13,12 +13,12 @@ compatible = "gpio-leds"; internet { - label = "ghl-r-001:blue:internet"; + label = "blue:internet"; gpios = <&gpio 16 GPIO_ACTIVE_LOW>; }; usb { - label = "ghl-r-001:blue:usb"; + label = "blue:usb"; gpios = <&gpio 15 GPIO_ACTIVE_LOW>; trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>; linux,default-trigger = "usbport"; diff --git a/target/linux/ramips/dts/mt7621_gnubee_gb-pc1.dts b/target/linux/ramips/dts/mt7621_gnubee_gb-pc1.dts index 4f0152e364..c218521c03 100644 --- a/target/linux/ramips/dts/mt7621_gnubee_gb-pc1.dts +++ b/target/linux/ramips/dts/mt7621_gnubee_gb-pc1.dts @@ -28,22 +28,22 @@ compatible = "gpio-leds"; system { - label = "gb-pc1:green:system"; + label = "green:system"; gpios = <&gpio 6 GPIO_ACTIVE_LOW>; }; led_status: status { - label = "gb-pc1:green:status"; + label = "green:status"; gpios = <&gpio 8 GPIO_ACTIVE_LOW>; }; lan1 { - label = "gb-pc1:green:lan1"; + label = "green:lan1"; gpios = <&gpio 24 GPIO_ACTIVE_LOW>; }; lan2 { - label = "gb-pc1:green:lan2"; + label = "green:lan2"; gpios = <&gpio 25 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7621_gnubee_gb-pc2.dts b/target/linux/ramips/dts/mt7621_gnubee_gb-pc2.dts index e617f43255..613524d1da 100644 --- a/target/linux/ramips/dts/mt7621_gnubee_gb-pc2.dts +++ b/target/linux/ramips/dts/mt7621_gnubee_gb-pc2.dts @@ -28,32 +28,32 @@ compatible = "gpio-leds"; system { - label = "gb-pc2:green:system"; + label = "green:system"; gpios = <&gpio 6 GPIO_ACTIVE_LOW>; }; led_status: status { - label = "gb-pc2:green:status"; + label = "green:status"; gpios = <&gpio 8 GPIO_ACTIVE_LOW>; }; lan1 { - label = "gb-pc2:green:lan1"; + label = "green:lan1"; gpios = <&gpio 24 GPIO_ACTIVE_LOW>; }; lan2 { - label = "gb-pc2:green:lan2"; + label = "green:lan2"; gpios = <&gpio 25 GPIO_ACTIVE_LOW>; }; lan3-yellow { - label = "gb-pc2:yellow:lan3"; + label = "yellow:lan3"; gpios = <&gpio 13 GPIO_ACTIVE_LOW>; }; lan3-green { - label = "gb-pc2:green:lan3"; + label = "green:lan3"; gpios = <&gpio 15 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7621_hiwifi_hc5962.dts b/target/linux/ramips/dts/mt7621_hiwifi_hc5962.dts index 5bb6544d12..87b103f539 100644 --- a/target/linux/ramips/dts/mt7621_hiwifi_hc5962.dts +++ b/target/linux/ramips/dts/mt7621_hiwifi_hc5962.dts @@ -22,12 +22,12 @@ compatible = "gpio-leds"; led_status: status { - label = "hc5962:white:status"; + label = "white:status"; gpios = <&gpio 6 GPIO_ACTIVE_LOW>; }; led_system: system { - label = "hc5962:red:system"; + label = "red:system"; gpios = <&gpio 7 GPIO_ACTIVE_LOW>; panic-indicator; }; diff --git a/target/linux/ramips/dts/mt7621_iodata_wn-ax1167gr.dts b/target/linux/ramips/dts/mt7621_iodata_wn-ax1167gr.dts index 546abd023a..879fb68c85 100644 --- a/target/linux/ramips/dts/mt7621_iodata_wn-ax1167gr.dts +++ b/target/linux/ramips/dts/mt7621_iodata_wn-ax1167gr.dts @@ -22,12 +22,12 @@ compatible = "gpio-leds"; led_power: power { - label = "wn-ax1167gr:green:power"; + label = "green:power"; gpios = <&gpio 7 GPIO_ACTIVE_LOW>; }; wps { - label = "wn-ax1167gr:green:wps"; + label = "green:wps"; gpios = <&gpio 17 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7621_iodata_wn-gx300gr.dts b/target/linux/ramips/dts/mt7621_iodata_wn-gx300gr.dts index 0a18518de6..06d024e9a7 100644 --- a/target/linux/ramips/dts/mt7621_iodata_wn-gx300gr.dts +++ b/target/linux/ramips/dts/mt7621_iodata_wn-gx300gr.dts @@ -22,12 +22,12 @@ compatible = "gpio-leds"; led_power: power { - label = "wn-gx300gr:green:power"; + label = "green:power"; gpios = <&gpio 7 GPIO_ACTIVE_LOW>; }; wps { - label = "wn-gx300gr:green:wps"; + label = "green:wps"; gpios = <&gpio 17 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7621_iodata_wn-xx-xr.dtsi b/target/linux/ramips/dts/mt7621_iodata_wn-xx-xr.dtsi index 1ed9380b37..ff9e525ae2 100644 --- a/target/linux/ramips/dts/mt7621_iodata_wn-xx-xr.dtsi +++ b/target/linux/ramips/dts/mt7621_iodata_wn-xx-xr.dtsi @@ -18,12 +18,12 @@ compatible = "gpio-leds"; wps { - label = "iodata:green:wps"; + label = "green:wps"; gpios = <&gpio 8 GPIO_ACTIVE_LOW>; }; led_power: power { - label = "iodata:green:power"; + label = "green:power"; gpios = <&gpio 9 GPIO_ACTIVE_HIGH>; }; }; diff --git a/target/linux/ramips/dts/mt7621_iodata_wnpr2600g.dts b/target/linux/ramips/dts/mt7621_iodata_wnpr2600g.dts index 827e606b52..0e808f6894 100644 --- a/target/linux/ramips/dts/mt7621_iodata_wnpr2600g.dts +++ b/target/linux/ramips/dts/mt7621_iodata_wnpr2600g.dts @@ -20,24 +20,24 @@ compatible = "gpio-leds"; led_power: power { - label = "wnpr2600g:green:power"; + label = "green:power"; gpios = <&gpio 7 GPIO_ACTIVE_HIGH>; default-state = "on"; }; notification { - label = "wnpr2600g:green:notification"; + label = "green:notification"; gpios = <&gpio 12 GPIO_ACTIVE_HIGH>; }; wlan2g { - label = "wnpr2600g:green:wlan2g"; + label = "green:wlan2g"; gpios = <&gpio 14 GPIO_ACTIVE_HIGH>; linux,default-trigger = "phy0radio"; }; wlan5g { - label = "wnpr2600g:green:wlan5g"; + label = "green:wlan5g"; gpios = <&gpio 15 GPIO_ACTIVE_HIGH>; linux,default-trigger = "phy1radio"; }; diff --git a/target/linux/ramips/dts/mt7621_iptime_a6ns-m.dts b/target/linux/ramips/dts/mt7621_iptime_a6ns-m.dts index 9e7cbf39be..4ebd980521 100644 --- a/target/linux/ramips/dts/mt7621_iptime_a6ns-m.dts +++ b/target/linux/ramips/dts/mt7621_iptime_a6ns-m.dts @@ -21,26 +21,26 @@ compatible = "gpio-leds"; usb { - label = "a6ns-m:blue:usb"; + label = "blue:usb"; gpios = <&gpio 7 GPIO_ACTIVE_LOW>; trigger-sources = <&xhci_ehci_port1>; linux,default-trigger = "usbport"; }; wlan5g { - label = "a6ns-m:blue:wlan5g"; + label = "blue:wlan5g"; gpios = <&gpio 14 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0radio"; }; wlan2g { - label = "a6ns-m:blue:wlan2g"; + label = "blue:wlan2g"; gpios = <&gpio 17 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy1radio"; }; led_cpu: cpu { - label = "a6ns-m:blue:cpu"; + label = "blue:cpu"; gpios = <&gpio 18 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7621_iptime_a8004t.dts b/target/linux/ramips/dts/mt7621_iptime_a8004t.dts index cccc317cc3..df6aed664e 100644 --- a/target/linux/ramips/dts/mt7621_iptime_a8004t.dts +++ b/target/linux/ramips/dts/mt7621_iptime_a8004t.dts @@ -20,18 +20,18 @@ compatible = "gpio-leds"; led_cpu: cpu { - label = "a8004t:orange:cpu"; + label = "orange:cpu"; gpios = <&gpio 18 GPIO_ACTIVE_LOW>; }; wlan2g { - label = "a8004t:orange:wlan2g"; + label = "orange:wlan2g"; gpios = <&gpio 17 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0radio"; }; wlan5g { - label = "a8004t:orange:wlan5g"; + label = "orange:wlan5g"; gpios = <&gpio 14 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy1radio"; }; diff --git a/target/linux/ramips/dts/mt7621_jcg_jhr-ac876m.dts b/target/linux/ramips/dts/mt7621_jcg_jhr-ac876m.dts index 0427ae1df6..ae312fcc52 100644 --- a/target/linux/ramips/dts/mt7621_jcg_jhr-ac876m.dts +++ b/target/linux/ramips/dts/mt7621_jcg_jhr-ac876m.dts @@ -21,21 +21,21 @@ compatible = "gpio-leds"; usb3 { - label = "jhr-ac876m:blue:usb3"; + label = "blue:usb3"; gpios = <&gpio 3 GPIO_ACTIVE_LOW>; trigger-sources = <&xhci_ehci_port1>; linux,default-trigger = "usbport"; }; usb2 { - label = "jhr-ac876m:blue:usb2"; + label = "blue:usb2"; gpios = <&gpio 6 GPIO_ACTIVE_LOW>; trigger-sources = <&ehci_port2>; linux,default-trigger = "usbport"; }; led_wps: wps { - label = "jhr-ac876m:blue:wps"; + label = "blue:wps"; gpios = <&gpio 14 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7621_lenovo_newifi-d1.dts b/target/linux/ramips/dts/mt7621_lenovo_newifi-d1.dts index d76014d104..fa26900720 100644 --- a/target/linux/ramips/dts/mt7621_lenovo_newifi-d1.dts +++ b/target/linux/ramips/dts/mt7621_lenovo_newifi-d1.dts @@ -23,17 +23,17 @@ compatible = "gpio-leds"; status-red { - label = "newifi-d1:red:status"; + label = "red:status"; gpios = <&gpio 14 GPIO_ACTIVE_LOW>; }; status-green { - label = "newifi-d1:green:status"; + label = "green:status"; gpios = <&gpio 13 GPIO_ACTIVE_LOW>; }; led_blue: status-blue { - label = "newifi-d1:blue:status"; + label = "blue:status"; gpios = <&gpio 16 GPIO_ACTIVE_LOW>; default-state = "on"; }; diff --git a/target/linux/ramips/dts/mt7621_linksys_ea7300-v1.dts b/target/linux/ramips/dts/mt7621_linksys_ea7300-v1.dts index 9636559e09..3e50d85e9c 100644 --- a/target/linux/ramips/dts/mt7621_linksys_ea7300-v1.dts +++ b/target/linux/ramips/dts/mt7621_linksys_ea7300-v1.dts @@ -5,50 +5,4 @@ / { compatible = "linksys,ea7300-v1", "mediatek,mt7621-soc"; model = "Linksys EA7300 v1"; - - aliases { - led-boot = &led_power; - led-failsafe = &led_power; - led-running = &led_power; - led-upgrade = &led_power; - }; - - leds { - compatible = "gpio-leds"; - - wan_green { - label = "ea7300-v1:green:wan"; - gpios = <&gpio 7 GPIO_ACTIVE_LOW>; - }; - - lan1_green { - label = "ea7300-v1:green:lan1"; - gpios = <&gpio 3 GPIO_ACTIVE_LOW>; - }; - - lan2_green { - label = "ea7300-v1:green:lan2"; - gpios = <&gpio 18 GPIO_ACTIVE_LOW>; - }; - - lan3_green { - label = "ea7300-v1:green:lan3"; - gpios = <&gpio 13 GPIO_ACTIVE_LOW>; - }; - - lan4_green { - label = "ea7300-v1:green:lan4"; - gpios = <&gpio 15 GPIO_ACTIVE_LOW>; - }; - - led_power: power { - label = "ea7300-v1:white:power"; - gpios = <&gpio 10 GPIO_ACTIVE_HIGH>; - }; - - wps { - label = "ea7300-v1:green:wps"; - gpios = <&gpio 5 GPIO_ACTIVE_HIGH>; - }; - }; }; diff --git a/target/linux/ramips/dts/mt7621_linksys_ea7300-v2.dts b/target/linux/ramips/dts/mt7621_linksys_ea7300-v2.dts index 359ad17f86..4ee148828a 100644 --- a/target/linux/ramips/dts/mt7621_linksys_ea7300-v2.dts +++ b/target/linux/ramips/dts/mt7621_linksys_ea7300-v2.dts @@ -5,50 +5,4 @@ / { compatible = "linksys,ea7300-v2", "mediatek,mt7621-soc"; model = "Linksys EA7300 v2"; - - aliases { - led-boot = &led_power; - led-failsafe = &led_power; - led-running = &led_power; - led-upgrade = &led_power; - }; - - leds { - compatible = "gpio-leds"; - - wan_green { - label = "ea7300-v2:green:wan"; - gpios = <&gpio 7 GPIO_ACTIVE_LOW>; - }; - - lan1_green { - label = "ea7300-v2:green:lan1"; - gpios = <&gpio 3 GPIO_ACTIVE_LOW>; - }; - - lan2_green { - label = "ea7300-v2:green:lan2"; - gpios = <&gpio 18 GPIO_ACTIVE_LOW>; - }; - - lan3_green { - label = "ea7300-v2:green:lan3"; - gpios = <&gpio 13 GPIO_ACTIVE_LOW>; - }; - - lan4_green { - label = "ea7300-v2:green:lan4"; - gpios = <&gpio 15 GPIO_ACTIVE_LOW>; - }; - - led_power: power { - label = "ea7300-v2:white:power"; - gpios = <&gpio 10 GPIO_ACTIVE_HIGH>; - }; - - wps { - label = "ea7300-v2:green:wps"; - gpios = <&gpio 5 GPIO_ACTIVE_HIGH>; - }; - }; }; diff --git a/target/linux/ramips/dts/mt7621_linksys_ea7500-v2.dts b/target/linux/ramips/dts/mt7621_linksys_ea7500-v2.dts index 7f611b9815..8e13cc26ad 100644 --- a/target/linux/ramips/dts/mt7621_linksys_ea7500-v2.dts +++ b/target/linux/ramips/dts/mt7621_linksys_ea7500-v2.dts @@ -5,50 +5,4 @@ / { compatible = "linksys,ea7500-v2", "mediatek,mt7621-soc"; model = "Linksys EA7500 v2"; - - aliases { - led-boot = &led_power; - led-failsafe = &led_power; - led-running = &led_power; - led-upgrade = &led_power; - }; - - leds { - compatible = "gpio-leds"; - - wan_green { - label = "ea7500-v2:green:wan"; - gpios = <&gpio 7 GPIO_ACTIVE_LOW>; - }; - - lan1_green { - label = "ea7500-v2:green:lan1"; - gpios = <&gpio 3 GPIO_ACTIVE_LOW>; - }; - - lan2_green { - label = "ea7500-v2:green:lan2"; - gpios = <&gpio 18 GPIO_ACTIVE_LOW>; - }; - - lan3_green { - label = "ea7500-v2:green:lan3"; - gpios = <&gpio 13 GPIO_ACTIVE_LOW>; - }; - - lan4_green { - label = "ea7500-v2:green:lan4"; - gpios = <&gpio 15 GPIO_ACTIVE_LOW>; - }; - - led_power: power { - label = "ea7500-v2:white:power"; - gpios = <&gpio 10 GPIO_ACTIVE_HIGH>; - }; - - wps { - label = "ea7500-v2:green:wps"; - gpios = <&gpio 5 GPIO_ACTIVE_HIGH>; - }; - }; }; diff --git a/target/linux/ramips/dts/mt7621_linksys_ea7xxx.dtsi b/target/linux/ramips/dts/mt7621_linksys_ea7xxx.dtsi index 46b1c9cdfc..ecff6406d5 100644 --- a/target/linux/ramips/dts/mt7621_linksys_ea7xxx.dtsi +++ b/target/linux/ramips/dts/mt7621_linksys_ea7xxx.dtsi @@ -6,6 +6,13 @@ #include <dt-bindings/input/input.h> / { + aliases { + led-boot = &led_power; + led-failsafe = &led_power; + led-running = &led_power; + led-upgrade = &led_power; + }; + chosen { bootargs = "console=ttyS0,115200"; }; @@ -25,6 +32,45 @@ linux,code = <KEY_RESTART>; }; }; + + leds { + compatible = "gpio-leds"; + + wan_green { + label = "green:wan"; + gpios = <&gpio 7 GPIO_ACTIVE_LOW>; + }; + + lan1_green { + label = "green:lan1"; + gpios = <&gpio 3 GPIO_ACTIVE_LOW>; + }; + + lan2_green { + label = "green:lan2"; + gpios = <&gpio 18 GPIO_ACTIVE_LOW>; + }; + + lan3_green { + label = "green:lan3"; + gpios = <&gpio 13 GPIO_ACTIVE_LOW>; + }; + + lan4_green { + label = "green:lan4"; + gpios = <&gpio 15 GPIO_ACTIVE_LOW>; + }; + + led_power: power { + label = "white:power"; + gpios = <&gpio 10 GPIO_ACTIVE_HIGH>; + }; + + wps { + label = "green:wps"; + gpios = <&gpio 5 GPIO_ACTIVE_HIGH>; + }; + }; }; &nand { diff --git a/target/linux/ramips/dts/mt7621_linksys_re6500.dts b/target/linux/ramips/dts/mt7621_linksys_re6500.dts index 6313e85adf..319d0d7fb2 100644 --- a/target/linux/ramips/dts/mt7621_linksys_re6500.dts +++ b/target/linux/ramips/dts/mt7621_linksys_re6500.dts @@ -18,12 +18,12 @@ compatible = "gpio-leds"; wifi { - label = "re6500:orange:wifi"; + label = "orange:wifi"; gpios = <&gpio 0 GPIO_ACTIVE_HIGH>; }; led_power: power { - label = "re6500:white:power"; + label = "white:power"; gpios = <&gpio 9 GPIO_ACTIVE_HIGH>; }; }; diff --git a/target/linux/ramips/dts/mt7621_mikrotik_routerboard-750gr3.dts b/target/linux/ramips/dts/mt7621_mikrotik_routerboard-750gr3.dts index a4d16dc131..7f329b2359 100644 --- a/target/linux/ramips/dts/mt7621_mikrotik_routerboard-750gr3.dts +++ b/target/linux/ramips/dts/mt7621_mikrotik_routerboard-750gr3.dts @@ -17,13 +17,13 @@ compatible = "gpio-leds"; pwr { - label = "routerboard-750gr3:blue:pwr"; + label = "blue:pwr"; gpios = <&gpio 16 GPIO_ACTIVE_HIGH>; default-state = "on"; }; led_usr: usr { - label = "routerboard-750gr3:green:usr"; + label = "green:usr"; gpios = <&gpio 0 GPIO_ACTIVE_HIGH>; }; }; diff --git a/target/linux/ramips/dts/mt7621_mikrotik_routerboard-760igs.dts b/target/linux/ramips/dts/mt7621_mikrotik_routerboard-760igs.dts index ca1b3cc421..ed0b4e52cf 100644 --- a/target/linux/ramips/dts/mt7621_mikrotik_routerboard-760igs.dts +++ b/target/linux/ramips/dts/mt7621_mikrotik_routerboard-760igs.dts @@ -17,13 +17,13 @@ compatible = "gpio-leds"; led_pwr: pwr { - label = "routerboard-760igs:blue:pwr"; + label = "blue:pwr"; gpios = <&gpio 16 GPIO_ACTIVE_HIGH>; default-state = "on"; }; sfp { - label = "routerboard-760igs:blue:sfp"; + label = "blue:sfp"; gpios = <&gpio 9 GPIO_ACTIVE_HIGH>; }; }; diff --git a/target/linux/ramips/dts/mt7621_mikrotik_routerboard-m11g.dts b/target/linux/ramips/dts/mt7621_mikrotik_routerboard-m11g.dts index 1180c8a979..20a834a3eb 100644 --- a/target/linux/ramips/dts/mt7621_mikrotik_routerboard-m11g.dts +++ b/target/linux/ramips/dts/mt7621_mikrotik_routerboard-m11g.dts @@ -15,32 +15,32 @@ compatible = "gpio-leds"; led_usr: usr { - label = "routerboard-m11g:green:usr"; + label = "green:usr"; gpios = <&gpio 0 GPIO_ACTIVE_HIGH>; }; rssi0 { - label = "routerboard-m11g:green:rssi0"; + label = "green:rssi0"; gpios = <&gpio 22 GPIO_ACTIVE_LOW>; }; rssi1 { - label = "routerboard-m11g:green:rssi1"; + label = "green:rssi1"; gpios = <&gpio 23 GPIO_ACTIVE_LOW>; }; rssi2 { - label = "routerboard-m11g:green:rssi2"; + label = "green:rssi2"; gpios = <&gpio 24 GPIO_ACTIVE_LOW>; }; rssi3 { - label = "routerboard-m11g:green:rssi3"; + label = "green:rssi3"; gpios = <&gpio 25 GPIO_ACTIVE_LOW>; }; rssi4 { - label = "routerboard-m11g:green:rssi4"; + label = "green:rssi4"; gpios = <&gpio 26 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7621_mikrotik_routerboard-m33g.dts b/target/linux/ramips/dts/mt7621_mikrotik_routerboard-m33g.dts index 5597dc812e..affbaf35b7 100644 --- a/target/linux/ramips/dts/mt7621_mikrotik_routerboard-m33g.dts +++ b/target/linux/ramips/dts/mt7621_mikrotik_routerboard-m33g.dts @@ -15,7 +15,7 @@ compatible = "gpio-leds"; led_usr: usr { - label = "routerboard-m33g:green:usr"; + label = "green:usr"; gpios = <&gpio 0 GPIO_ACTIVE_HIGH>; }; }; diff --git a/target/linux/ramips/dts/mt7621_mtc_wr1201.dts b/target/linux/ramips/dts/mt7621_mtc_wr1201.dts index de6a9b7f36..8a79d9ca9a 100644 --- a/target/linux/ramips/dts/mt7621_mtc_wr1201.dts +++ b/target/linux/ramips/dts/mt7621_mtc_wr1201.dts @@ -19,24 +19,24 @@ compatible = "gpio-leds"; led_power: power { - label = "wr1201:green:power"; + label = "green:power"; gpios = <&gpio 24 GPIO_ACTIVE_LOW>; }; usb { - label = "wr1201:green:usb"; + label = "green:usb"; gpios = <&gpio 22 GPIO_ACTIVE_LOW>; trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>; linux,default-trigger = "usbport"; }; eth_link { - label = "wr1201:green:eth_link"; + label = "green:eth_link"; gpios = <&gpio 26 GPIO_ACTIVE_LOW>; }; wps { - label = "wr1201:green:wps"; + label = "green:wps"; gpios = <&gpio 23 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7621_netgear_ex6150.dts b/target/linux/ramips/dts/mt7621_netgear_ex6150.dts index 9a59dab98d..8fce1d7d6d 100644 --- a/target/linux/ramips/dts/mt7621_netgear_ex6150.dts +++ b/target/linux/ramips/dts/mt7621_netgear_ex6150.dts @@ -20,49 +20,49 @@ compatible = "gpio-leds"; power_amber: power_amber { - label = "ex6150:amber:power"; + label = "amber:power"; gpios = <&gpio 15 GPIO_ACTIVE_LOW>; }; power_green: power_green { - label = "ex6150:green:power"; + label = "green:power"; gpios = <&gpio 13 GPIO_ACTIVE_LOW>; }; wps { - label = "ex6150:green:wps"; + label = "green:wps"; gpios = <&gpio 16 GPIO_ACTIVE_LOW>; }; rightarrow { - label = "ex6150:blue:rightarrow"; + label = "blue:rightarrow"; gpios = <&gpio 28 GPIO_ACTIVE_LOW>; }; leftarrow { - label = "ex6150:blue:leftarrow"; + label = "blue:leftarrow"; gpios = <&gpio 31 GPIO_ACTIVE_LOW>; }; router_green { - label = "ex6150:green:router"; + label = "green:router"; gpios = <&gpio 29 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy1tpt"; }; router_red { - label = "ex6150:red:router"; + label = "red:router"; gpios = <&gpio 30 GPIO_ACTIVE_LOW>; }; client_green { - label = "ex6150:green:client"; + label = "green:client"; gpios = <&gpio 33 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; client_red { - label = "ex6150:red:client"; + label = "red:client"; gpios = <&gpio 32 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7621_netgear_r6220.dts b/target/linux/ramips/dts/mt7621_netgear_r6220.dts index 644972d15f..cc29d4ea8e 100644 --- a/target/linux/ramips/dts/mt7621_netgear_r6220.dts +++ b/target/linux/ramips/dts/mt7621_netgear_r6220.dts @@ -7,26 +7,6 @@ model = "Netgear R6220"; }; -&led_power { - label = "r6220:green:power"; -}; - -&led_usb { - label = "r6220:green:usb"; -}; - -&led_internet { - label = "r6220:green:wan"; -}; - -&led_wifi { - label = "r6220:green:wifi"; -}; - -&led_wps { - label = "r6220:green:wps"; -}; - &nand { status = "okay"; diff --git a/target/linux/ramips/dts/mt7621_netgear_r6260.dts b/target/linux/ramips/dts/mt7621_netgear_r6260.dts index ad655eb83c..b32f26d890 100644 --- a/target/linux/ramips/dts/mt7621_netgear_r6260.dts +++ b/target/linux/ramips/dts/mt7621_netgear_r6260.dts @@ -6,19 +6,3 @@ compatible = "netgear,r6260", "mediatek,mt7621-soc"; model = "Netgear R6260"; }; - -&led_power { - label = "r6260:green:power"; -}; - -&led_usb { - label = "r6260:green:usb"; -}; - -&led_internet { - label = "r6260:green:wan"; -}; - -&led_wifi { - label = "r6260:green:wifi"; -}; diff --git a/target/linux/ramips/dts/mt7621_netgear_r6350.dts b/target/linux/ramips/dts/mt7621_netgear_r6350.dts index c43dbf1c89..22535c9ae6 100644 --- a/target/linux/ramips/dts/mt7621_netgear_r6350.dts +++ b/target/linux/ramips/dts/mt7621_netgear_r6350.dts @@ -6,19 +6,3 @@ compatible = "netgear,r6350", "mediatek,mt7621-soc"; model = "Netgear R6350"; }; - -&led_power { - label = "r6350:green:power"; -}; - -&led_usb { - label = "r6350:green:usb"; -}; - -&led_internet { - label = "r6350:green:wan"; -}; - -&led_wifi { - label = "r6350:green:wifi"; -}; diff --git a/target/linux/ramips/dts/mt7621_netgear_r6700-v2.dts b/target/linux/ramips/dts/mt7621_netgear_r6700-v2.dts index af9a0ee2ce..b93d6aa5a7 100644 --- a/target/linux/ramips/dts/mt7621_netgear_r6700-v2.dts +++ b/target/linux/ramips/dts/mt7621_netgear_r6700-v2.dts @@ -5,116 +5,11 @@ / { compatible = "netgear,r6700-v2", "mediatek,mt7621-soc"; model = "Netgear R6700 v2"; - - aliases { - led-boot = &led_power_white; - led-failsafe = &led_power_orange; - led-running = &led_power_white; - led-upgrade = &led_power_orange; - }; - - leds { - compatible = "gpio-leds"; - - led_power_orange: power_orange { - gpios = <&gpio_expander 0 GPIO_ACTIVE_LOW>; - label = "r6700-v2:orange:power"; - }; - - led_power_white: power_white { - gpios = <&gpio_expander 1 GPIO_ACTIVE_LOW>; - label = "r6700-v2:white:power"; - }; - - wan_orange { - gpios = <&gpio_expander 2 GPIO_ACTIVE_LOW>; - label = "r6700-v2:orange:wan"; - }; - - wan_white { - gpios = <&gpio_expander 3 GPIO_ACTIVE_LOW>; - label = "r6700-v2:white:wan"; - }; - - wlan2g { - gpios = <&gpio_expander 4 GPIO_ACTIVE_LOW>; - label = "r6700-v2:white:wlan2g"; - linux,default-trigger = "phy0radio"; - }; - - wlan5g { - gpios = <&gpio_expander 5 GPIO_ACTIVE_LOW>; - label = "r6700-v2:white:wlan5g"; - linux,default-trigger = "phy1radio"; - }; - - guest_wifi { - gpios = <&gpio_expander 6 GPIO_ACTIVE_LOW>; - label = "r6700-v2:white:guest_wifi"; - }; - - usb3 { - gpios = <&gpio_expander 7 GPIO_ACTIVE_LOW>; - label = "r6700-v2:white:usb3"; - linux,default-trigger = "usbport"; - trigger-sources = <&xhci_ehci_port1>; - }; - - lan1_orange { - gpios = <&gpio_expander 8 GPIO_ACTIVE_LOW>; - label = "r6700-v2:orange:lan1"; - }; - - lan1_white { - gpios = <&gpio_expander 9 GPIO_ACTIVE_LOW>; - label = "r6700-v2:white:lan1"; - }; - - lan2_orange { - gpios = <&gpio_expander 10 GPIO_ACTIVE_LOW>; - label = "r6700-v2:orange:lan2"; - }; - - lan2_white { - gpios = <&gpio_expander 11 GPIO_ACTIVE_LOW>; - label = "r6700-v2:white:lan2"; - }; - - lan3_orange { - gpios = <&gpio_expander 12 GPIO_ACTIVE_LOW>; - label = "r6700-v2:orange:lan3"; - }; - - lan3_white { - gpios = <&gpio_expander 13 GPIO_ACTIVE_LOW>; - label = "r6700-v2:white:lan3"; - }; - - lan4_orange { - gpios = <&gpio_expander 14 GPIO_ACTIVE_LOW>; - label = "r6700-v2:orange:lan4"; - }; - - lan4_white { - gpios = <&gpio_expander 15 GPIO_ACTIVE_LOW>; - label = "r6700-v2:white:lan4"; - }; - - wps { - gpios = <&gpio 17 GPIO_ACTIVE_HIGH>; - label = "r6700-v2:white:wps"; - }; - - wlan { - gpios = <&gpio 5 GPIO_ACTIVE_LOW>; - label = "r6700-v2:white:wlan"; - }; - }; }; -&state_default { - gpio { - groups = "uart3", "uart2", "jtag", "wdt"; - function = "gpio"; +&leds { + guest_wifi { + gpios = <&gpio_expander 6 GPIO_ACTIVE_LOW>; + label = "white:guest_wifi"; }; }; diff --git a/target/linux/ramips/dts/mt7621_netgear_r6800.dts b/target/linux/ramips/dts/mt7621_netgear_r6800.dts index 9b6de32b50..c7afc53016 100644 --- a/target/linux/ramips/dts/mt7621_netgear_r6800.dts +++ b/target/linux/ramips/dts/mt7621_netgear_r6800.dts @@ -5,118 +5,13 @@ / { compatible = "netgear,r6800", "mediatek,mt7621-soc"; model = "Netgear R6800"; - - aliases { - led-boot = &led_power_white; - led-failsafe = &led_power_orange; - led-running = &led_power_white; - led-upgrade = &led_power_orange; - }; - - leds { - compatible = "gpio-leds"; - - led_power_orange: power_orange { - gpios = <&gpio_expander 0 GPIO_ACTIVE_LOW>; - label = "r6800:orange:power"; - }; - - led_power_white: power_white { - gpios = <&gpio_expander 1 GPIO_ACTIVE_LOW>; - label = "r6800:white:power"; - }; - - wan_orange { - gpios = <&gpio_expander 2 GPIO_ACTIVE_LOW>; - label = "r6800:orange:wan"; - }; - - wan_white { - gpios = <&gpio_expander 3 GPIO_ACTIVE_LOW>; - label = "r6800:white:wan"; - }; - - wlan2g { - gpios = <&gpio_expander 4 GPIO_ACTIVE_LOW>; - label = "r6800:white:wlan2g"; - linux,default-trigger = "phy0radio"; - }; - - wlan5g { - gpios = <&gpio_expander 5 GPIO_ACTIVE_LOW>; - label = "r6800:white:wlan5g"; - linux,default-trigger = "phy1radio"; - }; - - usb2 { - gpios = <&gpio_expander 6 GPIO_ACTIVE_LOW>; - label = "r6800:white:usb2"; - linux,default-trigger = "usbport"; - trigger-sources = <&ehci_port2>; - }; - - usb3 { - gpios = <&gpio_expander 7 GPIO_ACTIVE_LOW>; - label = "r6800:white:usb3"; - linux,default-trigger = "usbport"; - trigger-sources = <&xhci_ehci_port1>; - }; - - lan1_orange { - gpios = <&gpio_expander 8 GPIO_ACTIVE_LOW>; - label = "r6800:orange:lan1"; - }; - - lan1_white { - gpios = <&gpio_expander 9 GPIO_ACTIVE_LOW>; - label = "r6800:white:lan1"; - }; - - lan2_orange { - gpios = <&gpio_expander 10 GPIO_ACTIVE_LOW>; - label = "r6800:orange:lan2"; - }; - - lan2_white { - gpios = <&gpio_expander 11 GPIO_ACTIVE_LOW>; - label = "r6800:white:lan2"; - }; - - lan3_orange { - gpios = <&gpio_expander 12 GPIO_ACTIVE_LOW>; - label = "r6800:orange:lan3"; - }; - - lan3_white { - gpios = <&gpio_expander 13 GPIO_ACTIVE_LOW>; - label = "r6800:white:lan3"; - }; - - lan4_orange { - gpios = <&gpio_expander 14 GPIO_ACTIVE_LOW>; - label = "r6800:orange:lan4"; - }; - - lan4_white { - gpios = <&gpio_expander 15 GPIO_ACTIVE_LOW>; - label = "r6800:white:lan4"; - }; - - wps { - gpios = <&gpio 17 GPIO_ACTIVE_HIGH>; - label = "r6800:white:wps"; - }; - - wlan { - gpios = <&gpio 5 GPIO_ACTIVE_LOW>; - label = "r6800:white:wlan"; - }; - }; }; -&state_default { - gpio { - groups = "uart3", "uart2", "jtag", "wdt"; - function = "gpio"; +&leds { + usb2 { + gpios = <&gpio_expander 6 GPIO_ACTIVE_LOW>; + label = "white:usb2"; + linux,default-trigger = "usbport"; + trigger-sources = <&ehci_port2>; }; }; diff --git a/target/linux/ramips/dts/mt7621_netgear_r6850.dts b/target/linux/ramips/dts/mt7621_netgear_r6850.dts index 19eb67d2d0..78e9093216 100644 --- a/target/linux/ramips/dts/mt7621_netgear_r6850.dts +++ b/target/linux/ramips/dts/mt7621_netgear_r6850.dts @@ -6,19 +6,3 @@ compatible = "netgear,r6850", "mediatek,mt7621-soc"; model = "Netgear R6850"; }; - -&led_power { - label = "r6850:green:power"; -}; - -&led_usb { - label = "r6850:green:usb"; -}; - -&led_internet { - label = "r6850:green:wan"; -}; - -&led_wifi { - label = "r6850:green:wifi"; -}; diff --git a/target/linux/ramips/dts/mt7621_netgear_sercomm_ayx.dtsi b/target/linux/ramips/dts/mt7621_netgear_sercomm_ayx.dtsi index 0ec1a4fb3c..1a19cd048b 100644 --- a/target/linux/ramips/dts/mt7621_netgear_sercomm_ayx.dtsi +++ b/target/linux/ramips/dts/mt7621_netgear_sercomm_ayx.dtsi @@ -42,25 +42,30 @@ compatible = "gpio-leds"; led_power: power { + label = "green:power"; gpios = <&gpio 18 GPIO_ACTIVE_LOW>; }; - led_usb: usb { + usb { + label = "green:usb"; gpios = <&gpio 15 GPIO_ACTIVE_LOW>; trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>; linux,default-trigger = "usbport"; }; - led_internet: internet { + internet { + label = "green:wan"; gpios = <&gpio 13 GPIO_ACTIVE_LOW>; }; - led_wifi: wifi { + wifi { + label = "green:wifi"; gpios = <&gpio 16 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; - led_wps: wps { + wps { + label = "green:wps"; gpios = <&gpio 12 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7621_netgear_sercomm_bzv.dtsi b/target/linux/ramips/dts/mt7621_netgear_sercomm_bzv.dtsi index eefda07860..71c95e75bd 100644 --- a/target/linux/ramips/dts/mt7621_netgear_sercomm_bzv.dtsi +++ b/target/linux/ramips/dts/mt7621_netgear_sercomm_bzv.dtsi @@ -10,6 +10,10 @@ aliases { label-mac-device = &gmac0; + led-boot = &led_power_white; + led-failsafe = &led_power_orange; + led-running = &led_power_white; + led-upgrade = &led_power_orange; }; keys { @@ -33,6 +37,106 @@ linux,code = <KEY_RESTART>; }; }; + + leds: leds { + compatible = "gpio-leds"; + + led_power_orange: power_orange { + gpios = <&gpio_expander 0 GPIO_ACTIVE_LOW>; + label = "orange:power"; + }; + + led_power_white: power_white { + gpios = <&gpio_expander 1 GPIO_ACTIVE_LOW>; + label = "white:power"; + }; + + wan_orange { + gpios = <&gpio_expander 2 GPIO_ACTIVE_LOW>; + label = "orange:wan"; + }; + + wan_white { + gpios = <&gpio_expander 3 GPIO_ACTIVE_LOW>; + label = "white:wan"; + }; + + wlan2g { + gpios = <&gpio_expander 4 GPIO_ACTIVE_LOW>; + label = "white:wlan2g"; + linux,default-trigger = "phy0radio"; + }; + + wlan5g { + gpios = <&gpio_expander 5 GPIO_ACTIVE_LOW>; + label = "white:wlan5g"; + linux,default-trigger = "phy1radio"; + }; + + usb3 { + gpios = <&gpio_expander 7 GPIO_ACTIVE_LOW>; + label = "white:usb3"; + linux,default-trigger = "usbport"; + trigger-sources = <&xhci_ehci_port1>; + }; + + lan1_orange { + gpios = <&gpio_expander 8 GPIO_ACTIVE_LOW>; + label = "orange:lan1"; + }; + + lan1_white { + gpios = <&gpio_expander 9 GPIO_ACTIVE_LOW>; + label = "white:lan1"; + }; + + lan2_orange { + gpios = <&gpio_expander 10 GPIO_ACTIVE_LOW>; + label = "orange:lan2"; + }; + + lan2_white { + gpios = <&gpio_expander 11 GPIO_ACTIVE_LOW>; + label = "white:lan2"; + }; + + lan3_orange { + gpios = <&gpio_expander 12 GPIO_ACTIVE_LOW>; + label = "orange:lan3"; + }; + + lan3_white { + gpios = <&gpio_expander 13 GPIO_ACTIVE_LOW>; + label = "white:lan3"; + }; + + lan4_orange { + gpios = <&gpio_expander 14 GPIO_ACTIVE_LOW>; + label = "orange:lan4"; + }; + + lan4_white { + gpios = <&gpio_expander 15 GPIO_ACTIVE_LOW>; + label = "white:lan4"; + }; + + wps { + gpios = <&gpio 17 GPIO_ACTIVE_HIGH>; + label = "white:wps"; + }; + + wlan { + gpios = <&gpio 5 GPIO_ACTIVE_LOW>; + label = "white:wlan"; + }; + }; +}; + +&state_default { + gpio { + groups = "uart3", "uart2", "jtag", "wdt"; + function = "gpio"; + }; }; &pcie { diff --git a/target/linux/ramips/dts/mt7621_netgear_sercomm_chj.dtsi b/target/linux/ramips/dts/mt7621_netgear_sercomm_chj.dtsi index dc15d5f91f..7a15cd1f6c 100644 --- a/target/linux/ramips/dts/mt7621_netgear_sercomm_chj.dtsi +++ b/target/linux/ramips/dts/mt7621_netgear_sercomm_chj.dtsi @@ -20,20 +20,24 @@ compatible = "gpio-leds"; led_power: power { + label = "green:power"; gpios = <&gpio 18 GPIO_ACTIVE_LOW>; }; - led_usb: usb { + usb { + label = "green:usb"; gpios = <&gpio 15 GPIO_ACTIVE_LOW>; trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>; linux,default-trigger = "usbport"; }; - led_internet: internet { + internet { + label = "green:wan"; gpios = <&gpio 13 GPIO_ACTIVE_LOW>; }; - led_wifi: wifi { + wifi { + label = "green:wifi"; gpios = <&gpio 16 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; diff --git a/target/linux/ramips/dts/mt7621_netgear_wac104.dts b/target/linux/ramips/dts/mt7621_netgear_wac104.dts index b811d80722..fbedeb2645 100644 --- a/target/linux/ramips/dts/mt7621_netgear_wac104.dts +++ b/target/linux/ramips/dts/mt7621_netgear_wac104.dts @@ -43,17 +43,17 @@ compatible = "gpio-leds"; wps { - label = "wac104:green:wps"; + label = "green:wps"; gpios = <&gpio 13 GPIO_ACTIVE_LOW>; }; led_power: power { - label = "wac104:green:power"; + label = "green:power"; gpios = <&gpio 18 GPIO_ACTIVE_LOW>; }; wifi { - label = "wac104:green:wifi"; + label = "green:wifi"; gpios = <&gpio 16 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; diff --git a/target/linux/ramips/dts/mt7621_netgear_wac124.dts b/target/linux/ramips/dts/mt7621_netgear_wac124.dts index bd23d209b7..92860c00af 100644 --- a/target/linux/ramips/dts/mt7621_netgear_wac124.dts +++ b/target/linux/ramips/dts/mt7621_netgear_wac124.dts @@ -6,19 +6,3 @@ compatible = "netgear,wac124", "mediatek,mt7621-soc"; model = "Netgear WAC124"; }; - -&led_power { - label = "wac124:green:power"; -}; - -&led_usb { - label = "wac124:green:usb"; -}; - -&led_internet { - label = "wac124:green:wan"; -}; - -&led_wifi { - label = "wac124:green:wifi"; -}; diff --git a/target/linux/ramips/dts/mt7621_netgear_wndr3700-v5.dts b/target/linux/ramips/dts/mt7621_netgear_wndr3700-v5.dts index 7e070b7829..90c0ca1276 100644 --- a/target/linux/ramips/dts/mt7621_netgear_wndr3700-v5.dts +++ b/target/linux/ramips/dts/mt7621_netgear_wndr3700-v5.dts @@ -7,26 +7,6 @@ model = "Netgear WNDR3700 v5"; }; -&led_power { - label = "wndr3700-v5:green:power"; -}; - -&led_usb { - label = "wndr3700-v5:green:usb"; -}; - -&led_internet { - label = "wndr3700-v5:green:wan"; -}; - -&led_wifi { - label = "wndr3700-v5:green:wifi"; -}; - -&led_wps { - label = "wndr3700-v5:green:wps"; -}; - &spi0 { status = "okay"; diff --git a/target/linux/ramips/dts/mt7621_netis_wf2881.dts b/target/linux/ramips/dts/mt7621_netis_wf2881.dts index e40fb312ee..7dfd133a44 100644 --- a/target/linux/ramips/dts/mt7621_netis_wf2881.dts +++ b/target/linux/ramips/dts/mt7621_netis_wf2881.dts @@ -19,14 +19,14 @@ compatible = "gpio-leds"; usb { - label = "wf2881:green:usb"; + label = "green:usb"; gpios = <&gpio 6 GPIO_ACTIVE_LOW>; trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>; linux,default-trigger = "usbport"; }; led_wps: wps { - label = "wf2881:green:wps"; + label = "green:wps"; gpios = <&gpio 0 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7621_phicomm_k2p.dts b/target/linux/ramips/dts/mt7621_phicomm_k2p.dts index 9825118b08..83169cd1e9 100644 --- a/target/linux/ramips/dts/mt7621_phicomm_k2p.dts +++ b/target/linux/ramips/dts/mt7621_phicomm_k2p.dts @@ -18,17 +18,17 @@ compatible = "gpio-leds"; stat_r { - label = "k2p:red:status"; + label = "red:status"; gpios = <&gpio 13 GPIO_ACTIVE_HIGH>; }; stat_y { - label = "k2p:yellow:status"; + label = "yellow:status"; gpios = <&gpio 14 GPIO_ACTIVE_LOW>; }; led_blue: stat_b { - label = "k2p:blue:status"; + label = "blue:status"; gpios = <&gpio 15 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7621_planex_vr500.dts b/target/linux/ramips/dts/mt7621_planex_vr500.dts index c6b9e3a2b4..5f8f190a91 100644 --- a/target/linux/ramips/dts/mt7621_planex_vr500.dts +++ b/target/linux/ramips/dts/mt7621_planex_vr500.dts @@ -18,7 +18,7 @@ compatible = "gpio-leds"; led_power: power { - label = "vr500:green:power"; + label = "green:power"; gpios = <&gpio 45 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7621_samknows_whitebox-v8.dts b/target/linux/ramips/dts/mt7621_samknows_whitebox-v8.dts index f619d77cac..9561c97b7e 100644 --- a/target/linux/ramips/dts/mt7621_samknows_whitebox-v8.dts +++ b/target/linux/ramips/dts/mt7621_samknows_whitebox-v8.dts @@ -18,12 +18,12 @@ compatible = "gpio-leds"; led_wps: wps { - label = "sk-wb8:green:wps"; + label = "green:wps"; gpios = <&gpio 46 GPIO_ACTIVE_LOW>; }; usb { - label = "sk-wb8:green:usb"; + label = "green:usb"; gpios = <&gpio 47 GPIO_ACTIVE_LOW>; trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>; linux,default-trigger = "usbport"; diff --git a/target/linux/ramips/dts/mt7621_storylink_sap-g3200u3.dts b/target/linux/ramips/dts/mt7621_storylink_sap-g3200u3.dts index e40d999412..d44960a9a1 100644 --- a/target/linux/ramips/dts/mt7621_storylink_sap-g3200u3.dts +++ b/target/linux/ramips/dts/mt7621_storylink_sap-g3200u3.dts @@ -11,7 +11,7 @@ compatible = "gpio-leds"; usb { - label = "sap-g3200u3:green:usb"; + label = "green:usb"; gpios = <&gpio 13 GPIO_ACTIVE_LOW>; trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>; linux,default-trigger = "usbport"; diff --git a/target/linux/ramips/dts/mt7621_telco-electronics_x1.dts b/target/linux/ramips/dts/mt7621_telco-electronics_x1.dts index 29aeb85b19..fc9b4c6d2a 100644 --- a/target/linux/ramips/dts/mt7621_telco-electronics_x1.dts +++ b/target/linux/ramips/dts/mt7621_telco-electronics_x1.dts @@ -34,47 +34,47 @@ compatible = "gpio-leds"; system_led: system { - label = "x1:green:system"; + label = "green:system"; gpios = <&gpio 26 GPIO_ACTIVE_LOW>; }; modem_offline { - label = "x1:red:modem-offline"; + label = "red:modem-offline"; gpios = <&gpio 23 GPIO_ACTIVE_HIGH>; }; modem_4g { - label = "x1:blue:modem-4g"; + label = "blue:modem-4g"; gpios = <&gpio 24 GPIO_ACTIVE_LOW>; }; modem_3g { - label = "x1:green:modem-3g"; + label = "green:modem-3g"; gpios = <&gpio 25 GPIO_ACTIVE_LOW>; }; modem_rssi_lowest { - label = "x1:green:modem-rssi-lowest"; + label = "green:modem-rssi-lowest"; gpios = <&gpio 27 GPIO_ACTIVE_LOW>; }; modem_rssi_low { - label = "x1:green:modem-rssi-low"; + label = "green:modem-rssi-low"; gpios = <&gpio 28 GPIO_ACTIVE_LOW>; }; modem_rssi_medium { - label = "x1:green:modem-rssi-medium"; + label = "green:modem-rssi-medium"; gpios = <&gpio 29 GPIO_ACTIVE_LOW>; }; modem_rssi_high { - label = "x1:green:modem-rssi-high"; + label = "green:modem-rssi-high"; gpios = <&gpio 30 GPIO_ACTIVE_LOW>; }; modem_rssi_highest { - label = "x1:green:modem-rssi-highest"; + label = "green:modem-rssi-highest"; gpios = <&gpio 31 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7621_thunder_timecloud.dts b/target/linux/ramips/dts/mt7621_thunder_timecloud.dts index f40c0eb7c2..fe11f4f487 100644 --- a/target/linux/ramips/dts/mt7621_thunder_timecloud.dts +++ b/target/linux/ramips/dts/mt7621_thunder_timecloud.dts @@ -22,12 +22,12 @@ compatible = "gpio-leds"; statw { - label = "timecloud:white:status"; + label = "white:status"; gpios = <&gpio 7 GPIO_ACTIVE_HIGH>; }; led_statuso: stato { - label = "timecloud:orange:status"; + label = "orange:status"; gpios = <&gpio 8 GPIO_ACTIVE_HIGH>; }; }; diff --git a/target/linux/ramips/dts/mt7621_totolink_a7000r.dts b/target/linux/ramips/dts/mt7621_totolink_a7000r.dts index f217cdf662..d0e38f1721 100644 --- a/target/linux/ramips/dts/mt7621_totolink_a7000r.dts +++ b/target/linux/ramips/dts/mt7621_totolink_a7000r.dts @@ -20,7 +20,7 @@ compatible = "gpio-leds"; led_sys: sys { - label = "a7000r:blue:sys"; + label = "blue:sys"; gpios = <&gpio 18 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7621_tplink_re350-v1.dts b/target/linux/ramips/dts/mt7621_tplink_re350-v1.dts index 5e5539e489..9f29ecd8cf 100644 --- a/target/linux/ramips/dts/mt7621_tplink_re350-v1.dts +++ b/target/linux/ramips/dts/mt7621_tplink_re350-v1.dts @@ -18,37 +18,37 @@ compatible = "gpio-leds"; led_power: power { - label = "re350-v1:blue:power"; + label = "blue:power"; gpios = <&gpio 22 GPIO_ACTIVE_LOW>; }; wifi2g { - label = "re350-v1:blue:wifi2G"; + label = "blue:wifi2G"; gpios = <&gpio 23 GPIO_ACTIVE_LOW>; }; wifi5g { - label = "re350-v1:blue:wifi5G"; + label = "blue:wifi5G"; gpios = <&gpio 24 GPIO_ACTIVE_LOW>; }; wps_r { - label = "re350-v1:red:wps"; + label = "red:wps"; gpios = <&gpio 25 GPIO_ACTIVE_HIGH>; }; wps_b { - label = "re350-v1:blue:wps"; + label = "blue:wps"; gpios = <&gpio 26 GPIO_ACTIVE_HIGH>; }; eth { - label = "re350-v1:green:eth_act"; + label = "green:eth_act"; gpios = <&gpio 28 GPIO_ACTIVE_LOW>; }; eth2 { - label = "re350-v1:green:eth_link"; + label = "green:eth_link"; gpios = <&gpio 29 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7621_tplink_re500-v1.dts b/target/linux/ramips/dts/mt7621_tplink_re500-v1.dts index e164f9ba2a..f199423ed0 100644 --- a/target/linux/ramips/dts/mt7621_tplink_re500-v1.dts +++ b/target/linux/ramips/dts/mt7621_tplink_re500-v1.dts @@ -5,59 +5,4 @@ / { compatible = "tplink,re500-v1", "mediatek,mt7621-soc"; model = "TP-Link RE500 v1"; - - aliases { - led-boot = &led_power; - led-failsafe = &led_power; - led-running = &led_power; - led-upgrade = &led_power; - }; - - leds { - compatible = "gpio-leds"; - - led_power: power { - label = "re500-v1:blue:power"; - gpios = <&gpio 22 GPIO_ACTIVE_LOW>; - }; - - wifi2g { - label = "re500-v1:blue:wifi2g"; - gpios = <&gpio 23 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0tpt"; - }; - - wifi5g { - label = "re500-v1:blue:wifi5g"; - gpios = <&gpio 24 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy1tpt"; - }; - - wps_red { - label = "re500-v1:red:wps"; - gpios = <&gpio 26 GPIO_ACTIVE_HIGH>; - }; - - wps_blue { - label = "re500-v1:blue:wps"; - gpios = <&gpio 27 GPIO_ACTIVE_HIGH>; - }; - - eth_act { - label = "re500-v1:green:eth_act"; - gpios = <&gpio 28 GPIO_ACTIVE_LOW>; - }; - - eth_link { - label = "re500-v1:green:eth_link"; - gpios = <&gpio 29 GPIO_ACTIVE_LOW>; - }; - }; -}; - -&state_default { - gpio { - groups = "rgmii2", "wdt"; - function = "gpio"; - }; }; diff --git a/target/linux/ramips/dts/mt7621_tplink_re650-v1.dts b/target/linux/ramips/dts/mt7621_tplink_re650-v1.dts index 4e0d16c0c6..dcc5a3b3e9 100644 --- a/target/linux/ramips/dts/mt7621_tplink_re650-v1.dts +++ b/target/linux/ramips/dts/mt7621_tplink_re650-v1.dts @@ -5,59 +5,4 @@ / { compatible = "tplink,re650-v1", "mediatek,mt7621-soc"; model = "TP-Link RE650 v1"; - - aliases { - led-boot = &led_power; - led-failsafe = &led_power; - led-running = &led_power; - led-upgrade = &led_power; - }; - - leds { - compatible = "gpio-leds"; - - led_power: power { - label = "re650-v1:blue:power"; - gpios = <&gpio 22 GPIO_ACTIVE_LOW>; - }; - - wifi2g { - label = "re650-v1:blue:wifi2g"; - gpios = <&gpio 23 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0tpt"; - }; - - wifi5g { - label = "re650-v1:blue:wifi5g"; - gpios = <&gpio 24 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy1tpt"; - }; - - wps_red { - label = "re650-v1:red:wps"; - gpios = <&gpio 26 GPIO_ACTIVE_HIGH>; - }; - - wps_blue { - label = "re650-v1:blue:wps"; - gpios = <&gpio 27 GPIO_ACTIVE_HIGH>; - }; - - eth_act { - label = "re650-v1:green:eth_act"; - gpios = <&gpio 28 GPIO_ACTIVE_LOW>; - }; - - eth_link { - label = "re650-v1:green:eth_link"; - gpios = <&gpio 29 GPIO_ACTIVE_LOW>; - }; - }; -}; - -&state_default { - gpio { - groups = "rgmii2", "wdt"; - function = "gpio"; - }; }; diff --git a/target/linux/ramips/dts/mt7621_tplink_rexx0-v1.dtsi b/target/linux/ramips/dts/mt7621_tplink_rexx0-v1.dtsi index 7e860cb00e..45a983098d 100644 --- a/target/linux/ramips/dts/mt7621_tplink_rexx0-v1.dtsi +++ b/target/linux/ramips/dts/mt7621_tplink_rexx0-v1.dtsi @@ -8,6 +8,10 @@ / { aliases { label-mac-device = &gmac0; + led-boot = &led_power; + led-failsafe = &led_power; + led-running = &led_power; + led-upgrade = &led_power; }; keys { @@ -41,6 +45,47 @@ linux,code = <KEY_RESTART>; }; }; + + leds { + compatible = "gpio-leds"; + + led_power: power { + label = "blue:power"; + gpios = <&gpio 22 GPIO_ACTIVE_LOW>; + }; + + wifi2g { + label = "blue:wifi2g"; + gpios = <&gpio 23 GPIO_ACTIVE_LOW>; + linux,default-trigger = "phy0tpt"; + }; + + wifi5g { + label = "blue:wifi5g"; + gpios = <&gpio 24 GPIO_ACTIVE_LOW>; + linux,default-trigger = "phy1tpt"; + }; + + wps_red { + label = "red:wps"; + gpios = <&gpio 26 GPIO_ACTIVE_HIGH>; + }; + + wps_blue { + label = "blue:wps"; + gpios = <&gpio 27 GPIO_ACTIVE_HIGH>; + }; + + eth_act { + label = "green:eth_act"; + gpios = <&gpio 28 GPIO_ACTIVE_LOW>; + }; + + eth_link { + label = "green:eth_link"; + gpios = <&gpio 29 GPIO_ACTIVE_LOW>; + }; + }; }; &spi0 { @@ -87,6 +132,13 @@ }; }; +&state_default { + gpio { + groups = "rgmii2", "wdt"; + function = "gpio"; + }; +}; + &pcie { status = "okay"; }; diff --git a/target/linux/ramips/dts/mt7621_ubnt_unifi-nanohd.dts b/target/linux/ramips/dts/mt7621_ubnt_unifi-nanohd.dts index 71638032f2..4ba5f6a428 100644 --- a/target/linux/ramips/dts/mt7621_ubnt_unifi-nanohd.dts +++ b/target/linux/ramips/dts/mt7621_ubnt_unifi-nanohd.dts @@ -25,12 +25,12 @@ compatible = "gpio-leds"; led_blue: dome_blue { - label = "nanohd:blue:dome"; + label = "blue:dome"; gpios = <&gpio 3 GPIO_ACTIVE_HIGH>; }; led_white: dome_white { - label = "nanohd:white:dome"; + label = "white:dome"; gpios = <&gpio 4 GPIO_ACTIVE_HIGH>; }; }; diff --git a/target/linux/ramips/dts/mt7621_unielec_u7621-06.dtsi b/target/linux/ramips/dts/mt7621_unielec_u7621-06.dtsi index ca0e2d7dcd..ae8f3a5e54 100644 --- a/target/linux/ramips/dts/mt7621_unielec_u7621-06.dtsi +++ b/target/linux/ramips/dts/mt7621_unielec_u7621-06.dtsi @@ -76,17 +76,17 @@ compatible = "gpio-leds"; led_status: status { - label = "u7621-06:green:status"; + label = "green:status"; gpios = <&gpio 10 GPIO_ACTIVE_LOW>; }; led4 { - label = "u7621-06:green:led4"; + label = "green:led4"; gpios = <&gpio 11 GPIO_ACTIVE_HIGH>; }; led5 { - label = "u7621-06:green:led5"; + label = "green:led5"; gpios = <&gpio 12 GPIO_ACTIVE_HIGH>; }; }; diff --git a/target/linux/ramips/dts/mt7621_wavlink_wl-wn531a6.dts b/target/linux/ramips/dts/mt7621_wavlink_wl-wn531a6.dts index 1dcea5f285..04f656d0f6 100644 --- a/target/linux/ramips/dts/mt7621_wavlink_wl-wn531a6.dts +++ b/target/linux/ramips/dts/mt7621_wavlink_wl-wn531a6.dts @@ -48,17 +48,17 @@ compatible = "gpio-leds"; led_status_blue: status_blue { - label = "wl-wn531a6:blue:power"; + label = "blue:power"; gpios = <&gpio 16 GPIO_ACTIVE_HIGH>; }; led_status_red: status_red { - label = "wl-wn531a6:red:power"; + label = "red:power"; gpios = <&gpio 17 GPIO_ACTIVE_HIGH>; }; wifi2g { - label = "wl-wn531a6:blue:wifi2g"; + label = "blue:wifi2g"; gpios = <&gpio 23 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; diff --git a/target/linux/ramips/dts/mt7621_wevo_11acnas.dts b/target/linux/ramips/dts/mt7621_wevo_11acnas.dts index 66f8b9df0f..60d31852f0 100644 --- a/target/linux/ramips/dts/mt7621_wevo_11acnas.dts +++ b/target/linux/ramips/dts/mt7621_wevo_11acnas.dts @@ -8,7 +8,7 @@ compatible = "gpio-leds"; usb { - label = "11acnas:green:usb"; + label = "green:usb"; gpios = <&gpio 27 GPIO_ACTIVE_LOW>; trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>; linux,default-trigger = "usbport"; diff --git a/target/linux/ramips/dts/mt7621_wevo_w2914ns-v2.dts b/target/linux/ramips/dts/mt7621_wevo_w2914ns-v2.dts index 5ee466ba6b..bd449832e3 100644 --- a/target/linux/ramips/dts/mt7621_wevo_w2914ns-v2.dts +++ b/target/linux/ramips/dts/mt7621_wevo_w2914ns-v2.dts @@ -8,7 +8,7 @@ compatible = "gpio-leds"; usb { - label = "w2914nsv2:green:usb"; + label = "green:usb"; gpios = <&gpio 27 GPIO_ACTIVE_LOW>; trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>; linux,default-trigger = "usbport"; diff --git a/target/linux/ramips/dts/mt7621_winstars_ws-wn583a6.dts b/target/linux/ramips/dts/mt7621_winstars_ws-wn583a6.dts index 8e6d116f48..803bf5cf24 100644 --- a/target/linux/ramips/dts/mt7621_winstars_ws-wn583a6.dts +++ b/target/linux/ramips/dts/mt7621_winstars_ws-wn583a6.dts @@ -20,22 +20,22 @@ compatible = "gpio-leds"; night_light_white { - label = "ws-wn583a6:white:night_light"; + label = "white:night_light"; gpios = <&gpio 15 GPIO_ACTIVE_HIGH>; }; led_status_blue: status_blue { - label = "ws-wn583a6:blue:status"; + label = "blue:status"; gpios = <&gpio 22 GPIO_ACTIVE_LOW>; }; status_amber { - label = "ws-wn583a6:amber:status"; + label = "amber:status"; gpios = <&gpio 24 GPIO_ACTIVE_LOW>; }; led_status_red: status_red { - label = "ws-wn583a6:red:status"; + label = "red:status"; gpios = <&gpio 25 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7621_xiaomi_mi-router-ac2100.dts b/target/linux/ramips/dts/mt7621_xiaomi_mi-router-ac2100.dts index fd9c842ece..6cca16a79b 100644 --- a/target/linux/ramips/dts/mt7621_xiaomi_mi-router-ac2100.dts +++ b/target/linux/ramips/dts/mt7621_xiaomi_mi-router-ac2100.dts @@ -18,22 +18,22 @@ compatible = "gpio-leds"; wan_yellow { - label = "mi-router-ac2100:yellow:wan"; + label = "yellow:wan"; gpios = <&gpio 6 GPIO_ACTIVE_LOW>; }; wan_blue { - label = "mi-router-ac2100:blue:wan"; + label = "blue:wan"; gpios = <&gpio 8 GPIO_ACTIVE_LOW>; }; led_status_yellow: status_yellow { - label = "mi-router-ac2100:yellow:status"; + label = "yellow:status"; gpios = <&gpio 10 GPIO_ACTIVE_LOW>; }; led_status_blue: status_blue { - label = "mi-router-ac2100:blue:status"; + label = "blue:status"; gpios = <&gpio 12 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7621_xiaomi_mir3g-v2.dts b/target/linux/ramips/dts/mt7621_xiaomi_mir3g-v2.dts index 37f34a947e..3df6931bd4 100644 --- a/target/linux/ramips/dts/mt7621_xiaomi_mir3g-v2.dts +++ b/target/linux/ramips/dts/mt7621_xiaomi_mir3g-v2.dts @@ -25,12 +25,12 @@ compatible = "gpio-leds"; led_status_blue: status_blue { - label = "mir3gv2:blue:status"; + label = "blue:status"; gpios = <&gpio 8 GPIO_ACTIVE_LOW>; }; led_status_yellow: status_yellow { - label = "mir3gv2:yellow:status"; + label = "yellow:status"; gpios = <&gpio 10 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7621_xiaomi_mir3g.dts b/target/linux/ramips/dts/mt7621_xiaomi_mir3g.dts index 1c3ff7de73..51f4842255 100644 --- a/target/linux/ramips/dts/mt7621_xiaomi_mir3g.dts +++ b/target/linux/ramips/dts/mt7621_xiaomi_mir3g.dts @@ -23,34 +23,34 @@ compatible = "gpio-leds"; led_status_red: status_red { - label = "mir3g:red:status"; + label = "red:status"; gpios = <&gpio 6 GPIO_ACTIVE_LOW>; }; led_status_blue: status_blue { - label = "mir3g:blue:status"; + label = "blue:status"; gpios = <&gpio 8 GPIO_ACTIVE_LOW>; }; led_status_yellow: status_yellow { - label = "mir3g:yellow:status"; + label = "yellow:status"; gpios = <&gpio 10 GPIO_ACTIVE_LOW>; }; wan_amber { - label = "mir3g:amber:wan"; + label = "amber:wan"; gpios = <&gpio 13 GPIO_ACTIVE_LOW>; linux,default-trigger = "dsa-0.0:01:1Gbps"; }; lan1_amber { - label = "mir3g:amber:lan1"; + label = "amber:lan1"; gpios = <&gpio 14 GPIO_ACTIVE_LOW>; linux,default-trigger = "dsa-0.0:03:1Gbps"; }; lan2_amber { - label = "mir3g:amber:lan2"; + label = "amber:lan2"; gpios = <&gpio 16 GPIO_ACTIVE_LOW>; linux,default-trigger = "dsa-0.0:02:1Gbps"; }; diff --git a/target/linux/ramips/dts/mt7621_xiaomi_mir3p.dts b/target/linux/ramips/dts/mt7621_xiaomi_mir3p.dts index 6fe857e451..43e61e9140 100644 --- a/target/linux/ramips/dts/mt7621_xiaomi_mir3p.dts +++ b/target/linux/ramips/dts/mt7621_xiaomi_mir3p.dts @@ -25,40 +25,40 @@ compatible = "gpio-leds"; led_status_red: status_red { - label = "mir3p:red:status"; + label = "red:status"; gpios = <&gpio 6 GPIO_ACTIVE_LOW>; }; led_status_blue: status_blue { - label = "mir3p:blue:status"; + label = "blue:status"; gpios = <&gpio 8 GPIO_ACTIVE_LOW>; }; led_status_yellow: status_yellow { - label = "mir3p:yellow:status"; + label = "yellow:status"; gpios = <&gpio 10 GPIO_ACTIVE_LOW>; }; wan_amber { - label = "mir3p:amber:wan"; + label = "amber:wan"; gpios = <&gpio 14 GPIO_ACTIVE_LOW>; linux,default-trigger = "dsa-0.0:04:1Gbps"; }; lan3_amber { - label = "mir3p:amber:lan3"; + label = "amber:lan3"; gpios = <&gpio 13 GPIO_ACTIVE_LOW>; linux,default-trigger = "dsa-0.0:01:1Gbps"; }; lan2_amber { - label = "mir3p:amber:lan2"; + label = "amber:lan2"; gpios = <&gpio 16 GPIO_ACTIVE_LOW>; linux,default-trigger = "dsa-0.0:02:1Gbps"; }; lan1_amber { - label = "mir3p:amber:lan1"; + label = "amber:lan1"; gpios = <&gpio 15 GPIO_ACTIVE_LOW>; linux,default-trigger = "dsa-0.0:03:1Gbps"; }; diff --git a/target/linux/ramips/dts/mt7621_xiaomi_redmi-router-ac2100.dts b/target/linux/ramips/dts/mt7621_xiaomi_redmi-router-ac2100.dts index 54c8a672e4..4299de318b 100644 --- a/target/linux/ramips/dts/mt7621_xiaomi_redmi-router-ac2100.dts +++ b/target/linux/ramips/dts/mt7621_xiaomi_redmi-router-ac2100.dts @@ -18,22 +18,22 @@ compatible = "gpio-leds"; led_status_amber: status_amber { - label = "redmi-router-ac2100:amber:status"; + label = "amber:status"; gpios = <&gpio 6 GPIO_ACTIVE_LOW>; }; led_status_white: status_white { - label = "redmi-router-ac2100:white:status"; + label = "white:status"; gpios = <&gpio 8 GPIO_ACTIVE_LOW>; }; wan_amber { - label = "redmi-router-ac2100:amber:wan"; + label = "amber:wan"; gpios = <&gpio 10 GPIO_ACTIVE_LOW>; }; wan_white { - label = "redmi-router-ac2100:white:wan"; + label = "white:wan"; gpios = <&gpio 12 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7621_xiaoyu_xy-c5.dts b/target/linux/ramips/dts/mt7621_xiaoyu_xy-c5.dts index e7f9161b46..b90ff92c70 100644 --- a/target/linux/ramips/dts/mt7621_xiaoyu_xy-c5.dts +++ b/target/linux/ramips/dts/mt7621_xiaoyu_xy-c5.dts @@ -19,12 +19,12 @@ compatible = "gpio-leds"; work { - label = "xy-c5:green:work"; + label = "green:work"; gpios = <&gpio 8 GPIO_ACTIVE_LOW>; }; led_sys: sys { - label = "xy-c5:green:sys"; + label = "green:sys"; gpios = <&gpio 7 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7621_xzwifi_creativebox-v1.dts b/target/linux/ramips/dts/mt7621_xzwifi_creativebox-v1.dts index 2179de0a5e..182b6db5b3 100644 --- a/target/linux/ramips/dts/mt7621_xzwifi_creativebox-v1.dts +++ b/target/linux/ramips/dts/mt7621_xzwifi_creativebox-v1.dts @@ -24,29 +24,29 @@ compatible = "gpio-leds"; power { - label = "creativebox-v1:blue:power"; + label = "blue:power"; gpios = <&gpio 31 GPIO_ACTIVE_LOW>; default-state = "on"; }; led_sys: sys { - label = "creativebox-v1:blue:sys"; + label = "blue:sys"; gpios = <&gpio 32 GPIO_ACTIVE_LOW>; }; internet { - label = "creativebox-v1:blue:internet"; + label = "blue:internet"; gpios = <&gpio 29 GPIO_ACTIVE_LOW>; }; wlan2g { - label = "creativebox-v1:blue:wlan2g"; + label = "blue:wlan2g"; gpios = <&gpio 33 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; wlan5g { - label = "creativebox-v1:blue:wlan5g"; + label = "blue:wlan5g"; gpios = <&gpio 28 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy1tpt"; }; diff --git a/target/linux/ramips/dts/mt7621_youhua_wr1200js.dts b/target/linux/ramips/dts/mt7621_youhua_wr1200js.dts index 31a9dc9b91..a77d13c71c 100644 --- a/target/linux/ramips/dts/mt7621_youhua_wr1200js.dts +++ b/target/linux/ramips/dts/mt7621_youhua_wr1200js.dts @@ -20,17 +20,17 @@ compatible = "gpio-leds"; internet { - label = "wr1200js:blue:internet"; + label = "blue:internet"; gpios = <&gpio 6 GPIO_ACTIVE_LOW>; }; led_wps: wps { - label = "wr1200js:blue:wps"; + label = "blue:wps"; gpios = <&gpio 7 GPIO_ACTIVE_LOW>; }; usb { - label = "wr1200js:blue:usb"; + label = "blue:usb"; gpios = <&gpio 8 GPIO_ACTIVE_LOW>; trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>; linux,default-trigger = "usbport"; diff --git a/target/linux/ramips/dts/mt7621_youku_yk-l2.dts b/target/linux/ramips/dts/mt7621_youku_yk-l2.dts index 87ee9b8fa1..fd4395985c 100644 --- a/target/linux/ramips/dts/mt7621_youku_yk-l2.dts +++ b/target/linux/ramips/dts/mt7621_youku_yk-l2.dts @@ -24,18 +24,18 @@ compatible = "gpio-leds"; led_power: power { - label = "yk-l2:blue:power"; + label = "blue:power"; gpios = <&gpio 13 GPIO_ACTIVE_LOW>; default-state = "on"; }; led_wps: wps { - label = "yk-l2:blue:wps"; + label = "blue:wps"; gpios = <&gpio 14 GPIO_ACTIVE_LOW>; }; usb { - label = "yk-l2:blue:usb"; + label = "blue:usb"; gpios = <&gpio 16 GPIO_ACTIVE_LOW>; trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>; linux,default-trigger = "usbport"; diff --git a/target/linux/ramips/dts/mt7621_zbtlink_zbt-wg2626.dts b/target/linux/ramips/dts/mt7621_zbtlink_zbt-wg2626.dts index 32acfe169f..d0d656ba6d 100644 --- a/target/linux/ramips/dts/mt7621_zbtlink_zbt-wg2626.dts +++ b/target/linux/ramips/dts/mt7621_zbtlink_zbt-wg2626.dts @@ -32,7 +32,7 @@ compatible = "gpio-leds"; led_status: status { - label = "zbt-wg2626:green:status"; + label = "green:status"; gpios = <&gpio 24 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7621_zbtlink_zbt-wg3526.dtsi b/target/linux/ramips/dts/mt7621_zbtlink_zbt-wg3526.dtsi index fe1d660060..515d37ceaa 100644 --- a/target/linux/ramips/dts/mt7621_zbtlink_zbt-wg3526.dtsi +++ b/target/linux/ramips/dts/mt7621_zbtlink_zbt-wg3526.dtsi @@ -32,7 +32,7 @@ compatible = "gpio-leds"; led_status: status { - label = "zbt-wg3526:green:status"; + label = "green:status"; gpios = <&gpio 24 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7621_zio_freezio.dts b/target/linux/ramips/dts/mt7621_zio_freezio.dts index 647e77dac6..be7e5dcf98 100644 --- a/target/linux/ramips/dts/mt7621_zio_freezio.dts +++ b/target/linux/ramips/dts/mt7621_zio_freezio.dts @@ -10,7 +10,7 @@ compatible = "gpio-leds"; usb { - label = "freezio:green:usb"; + label = "green:usb"; gpios = <&gpio 27 GPIO_ACTIVE_LOW>; trigger-sources = <&xhci_ehci_port1>; linux,default-trigger = "usbport"; diff --git a/target/linux/ramips/dts/mt7621_zyxel_wap6805.dts b/target/linux/ramips/dts/mt7621_zyxel_wap6805.dts index 1746014b9c..0596dc71d6 100644 --- a/target/linux/ramips/dts/mt7621_zyxel_wap6805.dts +++ b/target/linux/ramips/dts/mt7621_zyxel_wap6805.dts @@ -21,17 +21,17 @@ compatible = "gpio-leds"; led_status_red: status_red { - label = "wap6805:red:status"; + label = "red:status"; gpios = <&gpio 4 GPIO_ACTIVE_HIGH>; }; status_blink { - label = "wap6805:blink:status"; + label = "blink:status"; gpios = <&gpio 7 GPIO_ACTIVE_HIGH>; }; led_status_green: status_green { - label = "wap6805:green:status"; + label = "green:status"; gpios = <&gpio 13 GPIO_ACTIVE_HIGH>; }; }; diff --git a/target/linux/ramips/dts/mt7628an_alfa-network_awusfree1.dts b/target/linux/ramips/dts/mt7628an_alfa-network_awusfree1.dts index 699bedf858..13e22e01cd 100644 --- a/target/linux/ramips/dts/mt7628an_alfa-network_awusfree1.dts +++ b/target/linux/ramips/dts/mt7628an_alfa-network_awusfree1.dts @@ -64,12 +64,12 @@ compatible = "gpio-leds"; led_system: system { - label = "awusfree1:orange:system"; + label = "orange:system"; gpios = <&gpio 43 GPIO_ACTIVE_LOW>; }; wlan { - label = "awusfree1:blue:wlan"; + label = "blue:wlan"; gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7628an_asus_rt-n10p-v3.dts b/target/linux/ramips/dts/mt7628an_asus_rt-n10p-v3.dts index 2bb8d71906..b638c2138f 100644 --- a/target/linux/ramips/dts/mt7628an_asus_rt-n10p-v3.dts +++ b/target/linux/ramips/dts/mt7628an_asus_rt-n10p-v3.dts @@ -5,29 +5,4 @@ / { compatible = "asus,rt-n10p-v3", "mediatek,mt7628an-soc"; model = "Asus RT-N10P V3"; - - leds { - compatible = "gpio-leds"; - - led_power: power { - label = "rt-n10p-v3:green:power"; - gpios = <&gpio 37 GPIO_ACTIVE_LOW>; - }; - - wlan { - label = "rt-n10p-v3:green:wlan"; - gpios = <&gpio 44 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0tpt"; - }; - - wan { - label = "rt-n10p-v3:green:wan"; - gpios = <&gpio 43 GPIO_ACTIVE_LOW>; - }; - - lan { - label = "rt-n10p-v3:green:lan"; - gpios = <&gpio 42 GPIO_ACTIVE_LOW>; - }; - }; }; diff --git a/target/linux/ramips/dts/mt7628an_asus_rt-n11p-b1.dts b/target/linux/ramips/dts/mt7628an_asus_rt-n11p-b1.dts index acaeb174b9..d62d4ad480 100644 --- a/target/linux/ramips/dts/mt7628an_asus_rt-n11p-b1.dts +++ b/target/linux/ramips/dts/mt7628an_asus_rt-n11p-b1.dts @@ -5,29 +5,4 @@ / { compatible = "asus,rt-n11p-b1", "mediatek,mt7628an-soc"; model = "Asus RT-N11P B1"; - - leds { - compatible = "gpio-leds"; - - led_power: power { - label = "rt-n11p-b1:green:power"; - gpios = <&gpio 37 GPIO_ACTIVE_LOW>; - }; - - wlan { - label = "rt-n11p-b1:green:wlan"; - gpios = <&gpio 44 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0tpt"; - }; - - wan { - label = "rt-n11p-b1:green:wan"; - gpios = <&gpio 43 GPIO_ACTIVE_LOW>; - }; - - lan { - label = "rt-n11p-b1:green:lan"; - gpios = <&gpio 42 GPIO_ACTIVE_LOW>; - }; - }; }; diff --git a/target/linux/ramips/dts/mt7628an_asus_rt-n12-vp-b1.dts b/target/linux/ramips/dts/mt7628an_asus_rt-n12-vp-b1.dts index 603a8fa515..8c44c36087 100644 --- a/target/linux/ramips/dts/mt7628an_asus_rt-n12-vp-b1.dts +++ b/target/linux/ramips/dts/mt7628an_asus_rt-n12-vp-b1.dts @@ -5,29 +5,4 @@ / { compatible = "asus,rt-n12-vp-b1", "mediatek,mt7628an-soc"; model = "Asus RT-N12 VP B1"; - - leds { - compatible = "gpio-leds"; - - led_power: power { - label = "rt-n12-vp-b1:green:power"; - gpios = <&gpio 37 GPIO_ACTIVE_LOW>; - }; - - wlan { - label = "rt-n12-vp-b1:green:wlan"; - gpios = <&gpio 44 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0tpt"; - }; - - wan { - label = "rt-n12-vp-b1:green:wan"; - gpios = <&gpio 43 GPIO_ACTIVE_LOW>; - }; - - lan { - label = "rt-n12-vp-b1:green:lan"; - gpios = <&gpio 42 GPIO_ACTIVE_LOW>; - }; - }; }; diff --git a/target/linux/ramips/dts/mt7628an_asus_rt-n1x.dtsi b/target/linux/ramips/dts/mt7628an_asus_rt-n1x.dtsi index c3f7d80688..239bb08230 100644 --- a/target/linux/ramips/dts/mt7628an_asus_rt-n1x.dtsi +++ b/target/linux/ramips/dts/mt7628an_asus_rt-n1x.dtsi @@ -22,6 +22,31 @@ linux,code = <KEY_RESTART>; }; }; + + leds { + compatible = "gpio-leds"; + + led_power: power { + label = "green:power"; + gpios = <&gpio 37 GPIO_ACTIVE_LOW>; + }; + + wlan { + label = "green:wlan"; + gpios = <&gpio 44 GPIO_ACTIVE_LOW>; + linux,default-trigger = "phy0tpt"; + }; + + wan { + label = "green:wan"; + gpios = <&gpio 43 GPIO_ACTIVE_LOW>; + }; + + lan { + label = "green:lan"; + gpios = <&gpio 42 GPIO_ACTIVE_LOW>; + }; + }; }; &spi0 { diff --git a/target/linux/ramips/dts/mt7628an_buffalo_wcr-1166ds.dts b/target/linux/ramips/dts/mt7628an_buffalo_wcr-1166ds.dts index 199b12ebde..cb4c61ecbd 100644 --- a/target/linux/ramips/dts/mt7628an_buffalo_wcr-1166ds.dts +++ b/target/linux/ramips/dts/mt7628an_buffalo_wcr-1166ds.dts @@ -41,42 +41,42 @@ compatible = "gpio-leds"; router_o { - label = "wcr-1166ds:orange:router"; + label = "orange:router"; gpios = <&gpio 37 GPIO_ACTIVE_LOW>; }; router_g { - label = "wcr-1166ds:green:router"; + label = "green:router"; gpios = <&gpio 38 GPIO_ACTIVE_LOW>; }; internet_o { - label = "wcr-1166ds:orange:internet"; + label = "orange:internet"; gpios = <&gpio 39 GPIO_ACTIVE_LOW>; }; internet_g { - label = "wcr-1166ds:green:internet"; + label = "green:internet"; gpios = <&gpio 40 GPIO_ACTIVE_LOW>; }; wireless_o { - label = "wcr-1166ds:orange:wireless"; + label = "orange:wireless"; gpios = <&gpio 41 GPIO_ACTIVE_LOW>; }; wireless_g { - label = "wcr-1166ds:green:wireless"; + label = "green:wireless"; gpios = <&gpio 42 GPIO_ACTIVE_LOW>; }; diag { - label = "wcr-1166ds:orange:diag"; + label = "orange:diag"; gpios = <&gpio 43 GPIO_ACTIVE_LOW>; }; led_power: power { - label = "wcr-1166ds:green:power"; + label = "green:power"; gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7628an_cudy_wr1000.dts b/target/linux/ramips/dts/mt7628an_cudy_wr1000.dts index 6cd48ecf29..adc9988600 100644 --- a/target/linux/ramips/dts/mt7628an_cudy_wr1000.dts +++ b/target/linux/ramips/dts/mt7628an_cudy_wr1000.dts @@ -36,28 +36,28 @@ compatible = "gpio-leds"; lan1 { - label = "wr1000:blue:lan1"; + label = "blue:lan1"; gpios = <&gpio 40 GPIO_ACTIVE_LOW>; }; lan2 { - label = "wr1000:blue:lan2"; + label = "blue:lan2"; gpios = <&gpio 41 GPIO_ACTIVE_LOW>; }; wan { - label = "wr1000:blue:wan"; + label = "blue:wan"; gpios = <&gpio 39 GPIO_ACTIVE_LOW>; }; wlan2g { - label = "wr1000:blue:wlan2g"; + label = "blue:wlan2g"; gpios = <&gpio 44 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; led_wps: wps { - label = "wr1000:blue:wps"; + label = "blue:wps"; gpios = <&gpio 37 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7628an_d-team_pbr-d1.dts b/target/linux/ramips/dts/mt7628an_d-team_pbr-d1.dts index c59a86586f..e5c52322b6 100644 --- a/target/linux/ramips/dts/mt7628an_d-team_pbr-d1.dts +++ b/target/linux/ramips/dts/mt7628an_d-team_pbr-d1.dts @@ -26,14 +26,14 @@ compatible = "gpio-leds"; usb { - label = "pbr-d1:orange:usb"; + label = "orange:usb"; gpios = <&gpio 0 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; }; led_power: power { - label = "pbr-d1:orange:power"; + label = "orange:power"; gpios = <&gpio 14 GPIO_ACTIVE_LOW>; default-state = "on"; }; diff --git a/target/linux/ramips/dts/mt7628an_glinet_gl-mt300n-v2.dts b/target/linux/ramips/dts/mt7628an_glinet_gl-mt300n-v2.dts index 261771df13..4ebe0cf11f 100644 --- a/target/linux/ramips/dts/mt7628an_glinet_gl-mt300n-v2.dts +++ b/target/linux/ramips/dts/mt7628an_glinet_gl-mt300n-v2.dts @@ -23,18 +23,18 @@ compatible = "gpio-leds"; led_power: power { - label = "gl-mt300n-v2:green:power"; + label = "green:power"; default-state = "on"; gpios = <&gpio 42 GPIO_ACTIVE_LOW>; }; wan { - label = "gl-mt300n-v2:green:wan"; + label = "green:wan"; gpios = <&gpio 43 GPIO_ACTIVE_LOW>; }; wlan { - label = "gl-mt300n-v2:red:wlan"; + label = "red:wlan"; gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7628an_glinet_microuter-n300.dts b/target/linux/ramips/dts/mt7628an_glinet_microuter-n300.dts index e4f6a92bc0..09afe7211b 100644 --- a/target/linux/ramips/dts/mt7628an_glinet_microuter-n300.dts +++ b/target/linux/ramips/dts/mt7628an_glinet_microuter-n300.dts @@ -7,14 +7,6 @@ model = "GL.iNet microuter-N300"; }; -&led_power_blue { - label = "microuter-n300:blue:power"; -}; - -&led_wlan_white { - label = "microuter-n300:white:wlan"; -}; - &firmware_part { reg = <0x50000 0xfb0000>; }; diff --git a/target/linux/ramips/dts/mt7628an_glinet_vixmini.dts b/target/linux/ramips/dts/mt7628an_glinet_vixmini.dts index 3488b0e386..02c29d1ba0 100644 --- a/target/linux/ramips/dts/mt7628an_glinet_vixmini.dts +++ b/target/linux/ramips/dts/mt7628an_glinet_vixmini.dts @@ -7,14 +7,6 @@ model = "GL.iNet VIXMINI"; }; -&led_power_blue { - label = "vixmini:blue:power"; -}; - -&led_wlan_white { - label = "vixmini:white:wlan"; -}; - &firmware_part { reg = <0x50000 0x7b0000>; }; diff --git a/target/linux/ramips/dts/mt7628an_glinet_vixmini_microuter.dtsi b/target/linux/ramips/dts/mt7628an_glinet_vixmini_microuter.dtsi index ea43a87372..738968d1f9 100644 --- a/target/linux/ramips/dts/mt7628an_glinet_vixmini_microuter.dtsi +++ b/target/linux/ramips/dts/mt7628an_glinet_vixmini_microuter.dtsi @@ -23,12 +23,12 @@ compatible = "gpio-leds"; led_power_blue: power { - /* Name is set device-specific */ + label = "blue:power"; gpios = <&gpio 42 GPIO_ACTIVE_LOW>; }; - led_wlan_white: wlan { - /* Name is set device-specific */ + wlan { + label = "white:wlan"; gpios = <&gpio 44 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; diff --git a/target/linux/ramips/dts/mt7628an_hilink_hlk-7628n.dts b/target/linux/ramips/dts/mt7628an_hilink_hlk-7628n.dts index 69e033b472..69987b3566 100644 --- a/target/linux/ramips/dts/mt7628an_hilink_hlk-7628n.dts +++ b/target/linux/ramips/dts/mt7628an_hilink_hlk-7628n.dts @@ -23,7 +23,7 @@ compatible = "gpio-leds"; wlan { - label = "hlk-7628n:green:wlan"; + label = "green:wlan"; gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7628an_hiwifi_hc5661a.dts b/target/linux/ramips/dts/mt7628an_hiwifi_hc5661a.dts index 0b2ea26db0..9e4068ce8c 100644 --- a/target/linux/ramips/dts/mt7628an_hiwifi_hc5661a.dts +++ b/target/linux/ramips/dts/mt7628an_hiwifi_hc5661a.dts @@ -8,17 +8,17 @@ compatible = "gpio-leds"; led_system: system { - label = "hc5661a:blue:system"; + label = "blue:system"; gpios = <&gpio 37 GPIO_ACTIVE_HIGH>; }; internet { - label = "hc5661a:blue:internet"; + label = "blue:internet"; gpios = <&gpio 1 GPIO_ACTIVE_HIGH>; }; wlan2g { - label = "hc5661a:blue:wlan2g"; + label = "blue:wlan2g"; gpios = <&gpio 44 GPIO_ACTIVE_HIGH>; linux,default-trigger = "phy0tpt"; }; diff --git a/target/linux/ramips/dts/mt7628an_hiwifi_hc5761a.dts b/target/linux/ramips/dts/mt7628an_hiwifi_hc5761a.dts index de00edb3e0..828e5b8b2d 100644 --- a/target/linux/ramips/dts/mt7628an_hiwifi_hc5761a.dts +++ b/target/linux/ramips/dts/mt7628an_hiwifi_hc5761a.dts @@ -10,23 +10,23 @@ compatible = "gpio-leds"; led_system: system { - label = "hc5761a:blue:system"; + label = "blue:system"; gpios = <&gpio 37 GPIO_ACTIVE_HIGH>; }; internet { - label = "hc5761a:blue:internet"; + label = "blue:internet"; gpios = <&gpio 1 GPIO_ACTIVE_HIGH>; }; wlan2g { - label = "hc5761a:blue:wlan2g"; + label = "blue:wlan2g"; gpios = <&gpio 44 GPIO_ACTIVE_HIGH>; linux,default-trigger = "phy0tpt"; }; wlan5g { - label = "hc5761a:blue:wlan5g"; + label = "blue:wlan5g"; gpios = <&gpio 40 GPIO_ACTIVE_HIGH>; linux,default-trigger = "phy1tpt"; }; diff --git a/target/linux/ramips/dts/mt7628an_hiwifi_hc5861b.dts b/target/linux/ramips/dts/mt7628an_hiwifi_hc5861b.dts index ec986f8401..326c412b0e 100644 --- a/target/linux/ramips/dts/mt7628an_hiwifi_hc5861b.dts +++ b/target/linux/ramips/dts/mt7628an_hiwifi_hc5861b.dts @@ -8,12 +8,12 @@ compatible = "gpio-leds"; led_system: system { - label = "hc5861b:green:system"; + label = "green:system"; gpios = <&gpio 37 GPIO_ACTIVE_LOW>; }; wlan2g { - label = "hc5861b:green:wlan2g"; + label = "green:wlan2g"; gpios = <&gpio 44 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; diff --git a/target/linux/ramips/dts/mt7628an_iptime_a3.dts b/target/linux/ramips/dts/mt7628an_iptime_a3.dts index 767f8ab2a6..d90a075af5 100644 --- a/target/linux/ramips/dts/mt7628an_iptime_a3.dts +++ b/target/linux/ramips/dts/mt7628an_iptime_a3.dts @@ -17,12 +17,12 @@ compatible = "gpio-leds"; led_cpu: cpu { - label = "a3:blue:cpu"; + label = "blue:cpu"; gpios = <&gpio 11 GPIO_ACTIVE_LOW>; }; wlan { - label = "a3:blue:wlan"; + label = "blue:wlan"; gpios = <&gpio 46 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; diff --git a/target/linux/ramips/dts/mt7628an_iptime_a604m.dts b/target/linux/ramips/dts/mt7628an_iptime_a604m.dts index 127a30022f..2f626f1adf 100644 --- a/target/linux/ramips/dts/mt7628an_iptime_a604m.dts +++ b/target/linux/ramips/dts/mt7628an_iptime_a604m.dts @@ -17,18 +17,18 @@ compatible = "gpio-leds"; wlan5g { - label = "a604m:blue:wlan5g"; + label = "blue:wlan5g"; gpios = <&gpio 5 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy1tpt"; }; led_cpu: cpu { - label = "a604m:blue:cpu"; + label = "blue:cpu"; gpios = <&gpio 11 GPIO_ACTIVE_LOW>; }; wlan2g { - label = "a604m:blue:wlan2g"; + label = "blue:wlan2g"; gpios = <&gpio 46 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; diff --git a/target/linux/ramips/dts/mt7628an_jotale_js76x8.dtsi b/target/linux/ramips/dts/mt7628an_jotale_js76x8.dtsi index 9bd1da4443..3fd173914e 100644 --- a/target/linux/ramips/dts/mt7628an_jotale_js76x8.dtsi +++ b/target/linux/ramips/dts/mt7628an_jotale_js76x8.dtsi @@ -23,12 +23,12 @@ compatible = "gpio-leds"; led_system: system { - label = "js76x8:green:system"; + label = "green:system"; gpios = <&gpio 37 GPIO_ACTIVE_LOW>; }; wifi { - label = "js76x8:green:wifi"; + label = "green:wifi"; gpios = <&gpio 44 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; diff --git a/target/linux/ramips/dts/mt7628an_mediatek_linkit-smart-7688.dts b/target/linux/ramips/dts/mt7628an_mediatek_linkit-smart-7688.dts index d77194b023..cbec8c9d40 100644 --- a/target/linux/ramips/dts/mt7628an_mediatek_linkit-smart-7688.dts +++ b/target/linux/ramips/dts/mt7628an_mediatek_linkit-smart-7688.dts @@ -32,7 +32,7 @@ compatible = "gpio-leds"; led_wifi: wifi { - label = "linkit-smart-7688:orange:wifi"; + label = "orange:wifi"; gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7628an_mercury_mac1200r-v2.dts b/target/linux/ramips/dts/mt7628an_mercury_mac1200r-v2.dts index 39e02b23f9..7aa678a1ad 100644 --- a/target/linux/ramips/dts/mt7628an_mercury_mac1200r-v2.dts +++ b/target/linux/ramips/dts/mt7628an_mercury_mac1200r-v2.dts @@ -18,7 +18,7 @@ compatible = "gpio-leds"; led_status: status { - label = "mac1200rv2:green:status"; + label = "green:status"; gpios = <&gpio 11 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7628an_netgear_r6020.dts b/target/linux/ramips/dts/mt7628an_netgear_r6020.dts index f4b80ae45f..6ae7474331 100644 --- a/target/linux/ramips/dts/mt7628an_netgear_r6020.dts +++ b/target/linux/ramips/dts/mt7628an_netgear_r6020.dts @@ -5,48 +5,6 @@ / { compatible = "netgear,r6020", "mediatek,mt7628an-soc"; model = "Netgear R6020"; - - aliases { - led-boot = &led_power; - led-failsafe = &led_power; - led-running = &led_power; - led-upgrade = &led_power; - }; - - leds { - compatible = "gpio-leds"; - - lan { - label = "r6020:green:lan"; - gpios = <&gpio 44 GPIO_ACTIVE_LOW>; - }; - - led_power: power { - label = "r6020:green:power"; - gpios = <&gpio 43 GPIO_ACTIVE_LOW>; - }; - - wlan2g_green { - label = "r6020:green:wlan2g"; - gpios = <&gpio 42 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0tpt"; - }; - - wlan2g_orange { - label = "r6020:orange:wlan2g"; - gpios = <&gpio 41 GPIO_ACTIVE_LOW>; - }; - - wan_green { - label = "r6020:green:wan"; - gpios = <&gpio 40 GPIO_ACTIVE_LOW>; - }; - - wan_orange { - label = "r6020:orange:wan"; - gpios = <&gpio 39 GPIO_ACTIVE_LOW>; - }; - }; }; &state_default { diff --git a/target/linux/ramips/dts/mt7628an_netgear_r6080.dts b/target/linux/ramips/dts/mt7628an_netgear_r6080.dts index f062a9fb35..73cfc47a6c 100644 --- a/target/linux/ramips/dts/mt7628an_netgear_r6080.dts +++ b/target/linux/ramips/dts/mt7628an_netgear_r6080.dts @@ -7,47 +7,8 @@ model = "Netgear R6080"; aliases { - led-boot = &led_power; - led-failsafe = &led_power; - led-running = &led_power; - led-upgrade = &led_power; label-mac-device = ðernet; }; - - leds { - compatible = "gpio-leds"; - - lan { - label = "r6080:green:lan"; - gpios = <&gpio 44 GPIO_ACTIVE_LOW>; - }; - - led_power: power { - label = "r6080:green:power"; - gpios = <&gpio 43 GPIO_ACTIVE_LOW>; - }; - - wlan2g_green { - label = "r6080:green:wlan2g"; - gpios = <&gpio 42 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0tpt"; - }; - - wlan2g_orange { - label = "r6080:orange:wlan2g"; - gpios = <&gpio 41 GPIO_ACTIVE_LOW>; - }; - - wan_green { - label = "r6080:green:wan"; - gpios = <&gpio 40 GPIO_ACTIVE_LOW>; - }; - - wan_orange { - label = "r6080:orange:wan"; - gpios = <&gpio 39 GPIO_ACTIVE_LOW>; - }; - }; }; &state_default { diff --git a/target/linux/ramips/dts/mt7628an_netgear_r6120.dts b/target/linux/ramips/dts/mt7628an_netgear_r6120.dts index ba039983a4..f4d9823cd2 100644 --- a/target/linux/ramips/dts/mt7628an_netgear_r6120.dts +++ b/target/linux/ramips/dts/mt7628an_netgear_r6120.dts @@ -5,48 +5,9 @@ model = "Netgear R6120"; aliases { - led-boot = &led_power; - led-failsafe = &led_power; - led-running = &led_power; - led-upgrade = &led_power; label-mac-device = ðernet; }; - leds { - compatible = "gpio-leds"; - - lan { - label = "r6120:green:lan"; - gpios = <&gpio 44 GPIO_ACTIVE_LOW>; - }; - - led_power: power { - label = "r6120:green:power"; - gpios = <&gpio 43 GPIO_ACTIVE_LOW>; - }; - - wlan2g_green { - label = "r6120:green:wlan2g"; - gpios = <&gpio 42 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0tpt"; - }; - - wlan2g_orange { - label = "r6120:orange:wlan2g"; - gpios = <&gpio 41 GPIO_ACTIVE_LOW>; - }; - - wan_green { - label = "r6120:green:wan"; - gpios = <&gpio 40 GPIO_ACTIVE_LOW>; - }; - - wan_orange { - label = "r6120:orange:wan"; - gpios = <&gpio 39 GPIO_ACTIVE_LOW>; - }; - }; - usb-regulator { compatible = "regulator-fixed"; diff --git a/target/linux/ramips/dts/mt7628an_netgear_r6xxx.dtsi b/target/linux/ramips/dts/mt7628an_netgear_r6xxx.dtsi index 640591c316..c3d7da2f09 100644 --- a/target/linux/ramips/dts/mt7628an_netgear_r6xxx.dtsi +++ b/target/linux/ramips/dts/mt7628an_netgear_r6xxx.dtsi @@ -6,6 +6,13 @@ #include <dt-bindings/input/input.h> / { + aliases { + led-boot = &led_power; + led-failsafe = &led_power; + led-running = &led_power; + led-upgrade = &led_power; + }; + keys { compatible = "gpio-keys"; @@ -15,6 +22,41 @@ linux,code = <KEY_RESTART>; }; }; + + leds { + compatible = "gpio-leds"; + + lan { + label = "green:lan"; + gpios = <&gpio 44 GPIO_ACTIVE_LOW>; + }; + + led_power: power { + label = "green:power"; + gpios = <&gpio 43 GPIO_ACTIVE_LOW>; + }; + + wlan2g_green { + label = "green:wlan2g"; + gpios = <&gpio 42 GPIO_ACTIVE_LOW>; + linux,default-trigger = "phy0tpt"; + }; + + wlan2g_orange { + label = "orange:wlan2g"; + gpios = <&gpio 41 GPIO_ACTIVE_LOW>; + }; + + wan_green { + label = "green:wan"; + gpios = <&gpio 40 GPIO_ACTIVE_LOW>; + }; + + wan_orange { + label = "orange:wan"; + gpios = <&gpio 39 GPIO_ACTIVE_LOW>; + }; + }; }; &spi0 { diff --git a/target/linux/ramips/dts/mt7628an_onion_omega2.dts b/target/linux/ramips/dts/mt7628an_onion_omega2.dts index f9038adc30..a34638bb0e 100644 --- a/target/linux/ramips/dts/mt7628an_onion_omega2.dts +++ b/target/linux/ramips/dts/mt7628an_onion_omega2.dts @@ -8,7 +8,3 @@ &firmware { reg = <0x50000 0xfb0000>; }; - -&system_led { - label = "omega2:amber:system"; -}; diff --git a/target/linux/ramips/dts/mt7628an_onion_omega2.dtsi b/target/linux/ramips/dts/mt7628an_onion_omega2.dtsi index 04187a8353..b6d2df4756 100644 --- a/target/linux/ramips/dts/mt7628an_onion_omega2.dtsi +++ b/target/linux/ramips/dts/mt7628an_onion_omega2.dtsi @@ -7,10 +7,10 @@ compatible = "onion,omega2", "mediatek,mt7628an-soc"; aliases { - led-boot = &system_led; - led-failsafe = &system_led; - led-running = &system_led; - led-upgrade = &system_led; + led-boot = &led_system; + led-failsafe = &led_system; + led-running = &led_system; + led-upgrade = &led_system; }; chosen { @@ -20,7 +20,8 @@ leds { compatible = "gpio-leds"; - system_led: system { + led_system: system { + label = "amber:system"; gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7628an_onion_omega2p.dts b/target/linux/ramips/dts/mt7628an_onion_omega2p.dts index 085766eb68..4ec07dbd91 100644 --- a/target/linux/ramips/dts/mt7628an_onion_omega2p.dts +++ b/target/linux/ramips/dts/mt7628an_onion_omega2p.dts @@ -8,7 +8,3 @@ &firmware { reg = <0x50000 0x1fb0000>; }; - -&system_led { - label = "omega2p:amber:system"; -}; diff --git a/target/linux/ramips/dts/mt7628an_rakwireless_rak633.dts b/target/linux/ramips/dts/mt7628an_rakwireless_rak633.dts index 32b119c51d..63c4901ec2 100644 --- a/target/linux/ramips/dts/mt7628an_rakwireless_rak633.dts +++ b/target/linux/ramips/dts/mt7628an_rakwireless_rak633.dts @@ -13,7 +13,7 @@ compatible = "gpio-leds"; wifi { - label = "rak633:blue:wifi"; + label = "blue:wifi"; gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7628an_ravpower_rp-wd009.dts b/target/linux/ramips/dts/mt7628an_ravpower_rp-wd009.dts index 66ffa77379..95d7750be0 100644 --- a/target/linux/ramips/dts/mt7628an_ravpower_rp-wd009.dts +++ b/target/linux/ramips/dts/mt7628an_ravpower_rp-wd009.dts @@ -24,29 +24,29 @@ compatible = "gpio-leds"; led_globe: globe { - label = "rp-wd009:white:globe"; + label = "white:globe"; gpios = <&gpio 43 GPIO_ACTIVE_LOW>; }; wlan2 { - label = "rp-wd009:white:wlan2"; + label = "white:wlan2"; gpios = <&gpio 44 GPIO_ACTIVE_HIGH>; linux,default-trigger = "phy0tpt"; }; wlan5 { - label = "rp-wd009:white:wlan5"; + label = "white:wlan5"; gpios = <&gpio 18 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy1tpt"; }; sd_white { - label = "rp-wd009:white:sd"; + label = "white:sd"; gpios = <&gpio 41 GPIO_ACTIVE_LOW>; }; sd_red { - label = "rp-wd009:red:sd"; + label = "red:sd"; gpios = <&gpio 3 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7628an_skylab_skw92a.dts b/target/linux/ramips/dts/mt7628an_skylab_skw92a.dts index fec5b1d375..111f70a8d5 100644 --- a/target/linux/ramips/dts/mt7628an_skylab_skw92a.dts +++ b/target/linux/ramips/dts/mt7628an_skylab_skw92a.dts @@ -18,12 +18,12 @@ compatible = "gpio-leds"; led_power: wps { - label = "skw92a:green:wps"; + label = "green:wps"; gpios = <&gpio 37 GPIO_ACTIVE_LOW>; }; wlan { - label = "skw92a:green:wlan"; + label = "green:wlan"; gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7628an_tama_w06.dts b/target/linux/ramips/dts/mt7628an_tama_w06.dts index 8cadd6718f..26e5ab00a5 100644 --- a/target/linux/ramips/dts/mt7628an_tama_w06.dts +++ b/target/linux/ramips/dts/mt7628an_tama_w06.dts @@ -11,17 +11,17 @@ compatible = "gpio-leds"; wps { - label = "w06:green:wps"; + label = "green:wps"; gpios = <&gpio 11 GPIO_ACTIVE_LOW>; }; wan { - label = "w06:green:wan"; + label = "green:wan"; gpios = <&gpio 43 GPIO_ACTIVE_LOW>; }; wireless { - label = "w06:green:wlan"; + label = "green:wlan"; gpios = <&gpio 46 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7628an_totolink_a3.dts b/target/linux/ramips/dts/mt7628an_totolink_a3.dts index 69903f4e67..246dfadddd 100644 --- a/target/linux/ramips/dts/mt7628an_totolink_a3.dts +++ b/target/linux/ramips/dts/mt7628an_totolink_a3.dts @@ -17,12 +17,12 @@ compatible = "gpio-leds"; led_cpu: cpu { - label = "a3:blue:cpu"; + label = "blue:cpu"; gpios = <&gpio 11 GPIO_ACTIVE_LOW>; }; wlan { - label = "a3:blue:wlan"; + label = "blue:wlan"; gpios = <&gpio 46 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; diff --git a/target/linux/ramips/dts/mt7628an_totolink_lr1200.dts b/target/linux/ramips/dts/mt7628an_totolink_lr1200.dts index 826e07a85e..ab5fdd3246 100644 --- a/target/linux/ramips/dts/mt7628an_totolink_lr1200.dts +++ b/target/linux/ramips/dts/mt7628an_totolink_lr1200.dts @@ -20,48 +20,48 @@ compatible = "gpio-leds"; led_sys: sys { - label = "lr1200:blue:sys"; + label = "blue:sys"; gpios = <&gpio 11 GPIO_ACTIVE_LOW>; }; sms { - label = "lr1200:blue:sms"; + label = "blue:sms"; gpios = <&gpio 37 GPIO_ACTIVE_LOW>; }; wifi { - label = "lr1200:blue:wifi"; + label = "blue:wifi"; gpios = <&gpio 44 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; 3g { - label = "lr1200:blue:3g"; + label = "blue:3g"; gpios = <&gpio 4 GPIO_ACTIVE_LOW>; }; 4g { - label = "lr1200:blue:4g"; + label = "blue:4g"; gpios = <&gpio 5 GPIO_ACTIVE_LOW>; }; rssi1 { - label = "lr1200:blue:rssi1"; + label = "blue:rssi1"; gpios = <&gpio 46 GPIO_ACTIVE_LOW>; }; rssi2 { - label = "lr1200:blue:rssi2"; + label = "blue:rssi2"; gpios = <&gpio 3 GPIO_ACTIVE_LOW>; }; rssi3 { - label = "lr1200:blue:rssi3"; + label = "blue:rssi3"; gpios = <&gpio 2 GPIO_ACTIVE_LOW>; }; rssi4 { - label = "lr1200:blue:rssi4"; + label = "blue:rssi4"; gpios = <&gpio 0 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7628an_tplink_archer-c20-v4.dts b/target/linux/ramips/dts/mt7628an_tplink_archer-c20-v4.dts index 4a8d2b440b..f6321bb15f 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_archer-c20-v4.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_archer-c20-v4.dts @@ -15,39 +15,39 @@ compatible = "gpio-leds"; lan { - label = "archer-c20-v4:green:lan"; + label = "green:lan"; gpios = <&gpio 42 GPIO_ACTIVE_LOW>; }; led_power: power { - label = "archer-c20-v4:green:power"; + label = "green:power"; gpios = <&gpio 2 GPIO_ACTIVE_LOW>; }; wan { - label = "archer-c20-v4:green:wan"; + label = "green:wan"; gpios = <&gpio 43 GPIO_ACTIVE_LOW>; }; wan_orange { - label = "archer-c20-v4:orange:wan"; + label = "orange:wan"; gpios = <&gpio 11 GPIO_ACTIVE_LOW>; }; wlan5g { - label = "archer-c20-v4:green:wlan5g"; + label = "green:wlan5g"; gpios = <&gpio 40 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy1tpt"; }; wlan2g { - label = "archer-c20-v4:green:wlan2g"; + label = "green:wlan2g"; gpios = <&gpio 39 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; wps { - label = "archer-c20-v4:green:wps"; + label = "green:wps"; gpios = <&gpio 41 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7628an_tplink_archer-c20-v5.dts b/target/linux/ramips/dts/mt7628an_tplink_archer-c20-v5.dts index 1d39ccbf73..7969bfc733 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_archer-c20-v5.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_archer-c20-v5.dts @@ -33,39 +33,39 @@ compatible = "gpio-leds"; led_power: power { - label = "archer-c20-v5:green:power"; + label = "green:power"; gpios = <&gpio 2 GPIO_ACTIVE_LOW>; }; wlan2g { - label = "archer-c20-v5:green:wlan2g"; + label = "green:wlan2g"; gpios = <&gpio 39 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; wlan5g { - label = "archer-c20-v5:green:wlan5g"; + label = "green:wlan5g"; gpios = <&gpio 40 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy1tpt"; }; lan { - label = "archer-c20-v5:green:lan"; + label = "green:lan"; gpios = <&gpio 42 GPIO_ACTIVE_LOW>; }; wan_green { - label = "archer-c20-v5:green:wan"; + label = "green:wan"; gpios = <&gpio 43 GPIO_ACTIVE_LOW>; }; wan_orange { - label = "archer-c20-v5:orange:wan"; + label = "orange:wan"; gpios = <&gpio 11 GPIO_ACTIVE_LOW>; }; wps { - label = "archer-c20-v5:green:wps"; + label = "green:wps"; gpios = <&gpio 41 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7628an_tplink_archer-c50-v3.dts b/target/linux/ramips/dts/mt7628an_tplink_archer-c50-v3.dts index 2e386a05bf..ea53870eeb 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_archer-c50-v3.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_archer-c50-v3.dts @@ -31,37 +31,37 @@ compatible = "gpio-leds"; lan { - label = "archer-c50-v3:green:lan"; + label = "green:lan"; gpios = <&gpio 41 GPIO_ACTIVE_LOW>; }; led_power: power { - label = "archer-c50-v3:green:power"; + label = "green:power"; gpios = <&gpio 11 GPIO_ACTIVE_LOW>; }; wan { - label = "archer-c50-v3:green:wan"; + label = "green:wan"; gpios = <&gpio 39 GPIO_ACTIVE_LOW>; }; wan_orange { - label = "archer-c50-v3:orange:wan"; + label = "orange:wan"; gpios = <&gpio 40 GPIO_ACTIVE_LOW>; }; wlan { - label = "archer-c50-v3:green:wlan2g"; + label = "green:wlan2g"; gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; wlan5 { - label = "archer-c50-v3:green:wlan5g"; + label = "green:wlan5g"; gpios = <&gpio 42 GPIO_ACTIVE_LOW>; }; wps { - label = "archer-c50-v3:green:wps"; + label = "green:wps"; gpios = <&gpio 43 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7628an_tplink_archer-c50-v4.dts b/target/linux/ramips/dts/mt7628an_tplink_archer-c50-v4.dts index bf9701cfbe..4ca0cd61a5 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_archer-c50-v4.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_archer-c50-v4.dts @@ -33,37 +33,37 @@ compatible = "gpio-leds"; led_power: power { - label = "archer-c50-v4:green:power"; + label = "green:power"; gpios = <&gpio 11 GPIO_ACTIVE_LOW>; }; wlan2 { - label = "archer-c50-v4:green:wlan2g"; + label = "green:wlan2g"; gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; wlan5 { - label = "archer-c50-v4:green:wlan5g"; + label = "green:wlan5g"; gpios = <&gpio 42 GPIO_ACTIVE_LOW>; }; lan { - label = "archer-c50-v4:green:lan"; + label = "green:lan"; gpios = <&gpio 41 GPIO_ACTIVE_LOW>; }; wan { - label = "archer-c50-v4:green:wan"; + label = "green:wan"; gpios = <&gpio 39 GPIO_ACTIVE_LOW>; }; wan_orange { - label = "archer-c50-v4:orange:wan"; + label = "orange:wan"; gpios = <&gpio 40 GPIO_ACTIVE_LOW>; }; wps { - label = "archer-c50-v4:green:wps"; + label = "green:wps"; gpios = <&gpio 43 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7628an_tplink_re200-v2.dts b/target/linux/ramips/dts/mt7628an_tplink_re200-v2.dts index db3cd4051f..a7e5e5110d 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_re200-v2.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_re200-v2.dts @@ -5,65 +5,4 @@ / { compatible = "tplink,re200-v2", "mediatek,mt7628an-soc"; model = "TP-Link RE200 v2"; - - aliases { - led-boot = &led_power; - led-failsafe = &led_power; - led-running = &led_power; - led-upgrade = &led_power; - }; - - leds { - compatible = "gpio-leds"; - - wps { - label = "re200-v2:green:wps"; - gpios = <&gpio 5 GPIO_ACTIVE_LOW>; - }; - - wifi { - label = "re200-v2:green:wifi"; - gpios = <&gpio 4 GPIO_ACTIVE_LOW>; - }; - - lan { - label = "re200-v2:green:lan"; - gpios = <&gpio 39 GPIO_ACTIVE_LOW>; - }; - - led_power: power { - label = "re200-v2:green:power"; - gpios = <&gpio 44 GPIO_ACTIVE_LOW>; - }; - - wifi2g_green { - label = "re200-v2:green:wifi2g"; - gpios = <&gpio 41 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0tpt"; - }; - - wifi5g_green { - label = "re200-v2:green:wifi5g"; - gpios = <&gpio 42 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy1tpt"; - }; - - wifi2g_red { - label = "re200-v2:red:wifi2g"; - gpios = <&gpio 43 GPIO_ACTIVE_LOW>; - }; - - wifi5g_red { - label = "re200-v2:red:wifi5g"; - gpios = <&gpio 40 GPIO_ACTIVE_LOW>; - }; - }; -}; - -&state_default { - gpio { - groups = "p4led_an", "p3led_an", "p2led_an", "p1led_an", - "p0led_an", "wled_an", "i2c", "wdt", "refclk"; - function = "gpio"; - }; }; diff --git a/target/linux/ramips/dts/mt7628an_tplink_re200-v3.dts b/target/linux/ramips/dts/mt7628an_tplink_re200-v3.dts index 589e11fbed..2c4e09ee2e 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_re200-v3.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_re200-v3.dts @@ -5,65 +5,4 @@ / { compatible = "tplink,re200-v3", "mediatek,mt7628an-soc"; model = "TP-Link RE200 v3"; - - aliases { - led-boot = &led_power; - led-failsafe = &led_power; - led-running = &led_power; - led-upgrade = &led_power; - }; - - leds { - compatible = "gpio-leds"; - - wps { - label = "re200-v3:green:wps"; - gpios = <&gpio 5 GPIO_ACTIVE_LOW>; - }; - - wifi { - label = "re200-v3:green:wifi"; - gpios = <&gpio 4 GPIO_ACTIVE_LOW>; - }; - - lan { - label = "re200-v3:green:lan"; - gpios = <&gpio 39 GPIO_ACTIVE_LOW>; - }; - - led_power: power { - label = "re200-v3:green:power"; - gpios = <&gpio 44 GPIO_ACTIVE_LOW>; - }; - - wifi2g_green { - label = "re200-v3:green:wifi2g"; - gpios = <&gpio 41 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0tpt"; - }; - - wifi5g_green { - label = "re200-v3:green:wifi5g"; - gpios = <&gpio 42 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy1tpt"; - }; - - wifi2g_red { - label = "re200-v3:red:wifi2g"; - gpios = <&gpio 43 GPIO_ACTIVE_LOW>; - }; - - wifi5g_red { - label = "re200-v3:red:wifi5g"; - gpios = <&gpio 40 GPIO_ACTIVE_LOW>; - }; - }; -}; - -&state_default { - gpio { - groups = "p4led_an", "p3led_an", "p2led_an", "p1led_an", - "p0led_an", "wled_an", "i2c", "wdt", "refclk"; - function = "gpio"; - }; }; diff --git a/target/linux/ramips/dts/mt7628an_tplink_re200.dtsi b/target/linux/ramips/dts/mt7628an_tplink_re200.dtsi index 2b06fe77a2..95addff3c0 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_re200.dtsi +++ b/target/linux/ramips/dts/mt7628an_tplink_re200.dtsi @@ -8,6 +8,10 @@ / { aliases { label-mac-device = ðernet; + led-boot = &led_power; + led-failsafe = &led_power; + led-running = &led_power; + led-upgrade = &led_power; }; chosen { @@ -29,6 +33,52 @@ linux,code = <KEY_WPS_BUTTON>; }; }; + + leds { + compatible = "gpio-leds"; + + wps { + label = "green:wps"; + gpios = <&gpio 5 GPIO_ACTIVE_LOW>; + }; + + wifi { + label = "green:wifi"; + gpios = <&gpio 4 GPIO_ACTIVE_LOW>; + }; + + lan { + label = "green:lan"; + gpios = <&gpio 39 GPIO_ACTIVE_LOW>; + }; + + led_power: power { + label = "green:power"; + gpios = <&gpio 44 GPIO_ACTIVE_LOW>; + }; + + wifi2g_green { + label = "green:wifi2g"; + gpios = <&gpio 41 GPIO_ACTIVE_LOW>; + linux,default-trigger = "phy0tpt"; + }; + + wifi5g_green { + label = "green:wifi5g"; + gpios = <&gpio 42 GPIO_ACTIVE_LOW>; + linux,default-trigger = "phy1tpt"; + }; + + wifi2g_red { + label = "red:wifi2g"; + gpios = <&gpio 43 GPIO_ACTIVE_LOW>; + }; + + wifi5g_red { + label = "red:wifi5g"; + gpios = <&gpio 40 GPIO_ACTIVE_LOW>; + }; + }; }; &spi0 { @@ -71,6 +121,14 @@ }; }; +&state_default { + gpio { + groups = "p4led_an", "p3led_an", "p2led_an", "p1led_an", + "p0led_an", "wled_an", "i2c", "wdt", "refclk"; + function = "gpio"; + }; +}; + ðernet { mtd-mac-address = <&config 0x2008>; }; diff --git a/target/linux/ramips/dts/mt7628an_tplink_re220-v2.dts b/target/linux/ramips/dts/mt7628an_tplink_re220-v2.dts index 4a73557393..82d385a24d 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_re220-v2.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_re220-v2.dts @@ -5,65 +5,4 @@ / { compatible = "tplink,re220-v2", "mediatek,mt7628an-soc"; model = "TP-Link RE220 v2"; - - aliases { - led-boot = &led_power; - led-failsafe = &led_power; - led-running = &led_power; - led-upgrade = &led_power; - }; - - leds { - compatible = "gpio-leds"; - - wps { - label = "re220-v2:green:wps"; - gpios = <&gpio 5 GPIO_ACTIVE_LOW>; - }; - - wifi { - label = "re220-v2:green:wifi"; - gpios = <&gpio 4 GPIO_ACTIVE_LOW>; - }; - - lan { - label = "re220-v2:green:lan"; - gpios = <&gpio 39 GPIO_ACTIVE_LOW>; - }; - - led_power: power { - label = "re220-v2:green:power"; - gpios = <&gpio 44 GPIO_ACTIVE_LOW>; - }; - - wifi2g_green { - label = "re220-v2:green:wifi2g"; - gpios = <&gpio 41 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0tpt"; - }; - - wifi5g_green { - label = "re220-v2:green:wifi5g"; - gpios = <&gpio 42 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy1tpt"; - }; - - wifi2g_red { - label = "re220-v2:red:wifi2g"; - gpios = <&gpio 43 GPIO_ACTIVE_LOW>; - }; - - wifi5g_red { - label = "re220-v2:red:wifi5g"; - gpios = <&gpio 40 GPIO_ACTIVE_LOW>; - }; - }; -}; - -&state_default { - gpio { - groups = "p4led_an", "p3led_an", "p2led_an", "p1led_an", - "p0led_an", "wled_an", "i2c", "wdt", "refclk"; - function = "gpio"; - }; }; diff --git a/target/linux/ramips/dts/mt7628an_tplink_re305-v1.dts b/target/linux/ramips/dts/mt7628an_tplink_re305-v1.dts index e8d31c2b7f..22e15eb7a1 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_re305-v1.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_re305-v1.dts @@ -37,29 +37,29 @@ compatible = "gpio-leds"; led_power: power { - label = "re305-v1:blue:power"; + label = "blue:power"; gpios = <&gpio 39 GPIO_ACTIVE_LOW>; }; wlan2g { - label = "re305-v1:blue:wlan2g"; + label = "blue:wlan2g"; gpios = <&gpio 41 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; wlan5g { - label = "re305-v1:blue:wlan5g"; + label = "blue:wlan5g"; gpios = <&gpio 40 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy1tpt"; }; rssi1 { - label = "re305-v1:red:rssi"; + label = "red:rssi"; gpios = <&gpio 43 GPIO_ACTIVE_LOW>; }; rssi2 { - label = "re305-v1:blue:rssi"; + label = "blue:rssi"; gpios = <&gpio 42 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7628an_tplink_tl-mr3020-v3.dts b/target/linux/ramips/dts/mt7628an_tplink_tl-mr3020-v3.dts index 3682bb6f28..a45019e2d0 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_tl-mr3020-v3.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_tl-mr3020-v3.dts @@ -44,31 +44,31 @@ compatible = "gpio-leds"; led_power: power { - label = "tl-mr3020-v3:green:power"; + label = "green:power"; gpios = <&gpio 37 GPIO_ACTIVE_LOW>; default-state = "on"; }; wan { - label = "tl-mr3020-v3:green:3g"; + label = "green:3g"; gpios = <&gpio 43 GPIO_ACTIVE_LOW>; trigger-sources = <&ehci_port1>, <&ohci_port1>; linux,default-trigger = "usbport"; }; wlan { - label = "tl-mr3020-v3:green:wlan"; + label = "green:wlan"; gpios = <&gpio 44 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; wps { - label = "tl-mr3020-v3:green:wps"; + label = "green:wps"; gpios = <&gpio 2 GPIO_ACTIVE_LOW>; }; lan { - label = "tl-mr3020-v3:green:lan"; + label = "green:lan"; gpios = <&gpio 3 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7628an_tplink_tl-mr3420-v5.dts b/target/linux/ramips/dts/mt7628an_tplink_tl-mr3420-v5.dts index fb81929b6e..8e602331f3 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_tl-mr3420-v5.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_tl-mr3420-v5.dts @@ -31,39 +31,39 @@ compatible = "gpio-leds"; lan { - label = "tl-mr3420-v5:green:lan"; + label = "green:lan"; gpios = <&gpio 41 GPIO_ACTIVE_LOW>; }; led_power: power { - label = "tl-mr3420-v5:green:power"; + label = "green:power"; gpios = <&gpio 2 GPIO_ACTIVE_LOW>; }; usb { - label = "tl-mr3420-v5:green:usb"; + label = "green:usb"; gpios = <&gpio 3 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; }; wan { - label = "tl-mr3420-v5:green:wan"; + label = "green:wan"; gpios = <&gpio 5 GPIO_ACTIVE_LOW>; }; wan_amber { - label = "tl-mr3420-v5:amber:wan"; + label = "amber:wan"; gpios = <&gpio 4 GPIO_ACTIVE_LOW>; }; wlan { - label = "tl-mr3420-v5:green:wlan"; + label = "green:wlan"; gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; wps { - label = "tl-mr3420-v5:green:wps"; + label = "green:wps"; gpios = <&gpio 37 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7628an_tplink_tl-wa801nd-v5.dts b/target/linux/ramips/dts/mt7628an_tplink_tl-wa801nd-v5.dts index c46d36b910..21c09ec5d9 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_tl-wa801nd-v5.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_tl-wa801nd-v5.dts @@ -31,28 +31,28 @@ compatible = "gpio-leds"; led_power: power { - label = "tl-wa801nd-v5:green:power"; + label = "green:power"; gpios = <&gpio 36 GPIO_ACTIVE_LOW>; }; lan { - label = "tl-wa801nd-v5:green:lan"; + label = "green:lan"; gpios = <&gpio 37 GPIO_ACTIVE_LOW>; }; wlan { - label = "tl-wa801nd-v5:green:wlan"; + label = "green:wlan"; gpios = <&gpio 44 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; wps_red { - label = "tl-wa801nd-v5:red:wps"; + label = "red:wps"; gpios = <&gpio 43 GPIO_ACTIVE_HIGH>; }; wps_green { - label = "tl-wa801nd-v5:green:wps"; + label = "green:wps"; gpios = <&gpio 42 GPIO_ACTIVE_HIGH>; }; }; diff --git a/target/linux/ramips/dts/mt7628an_tplink_tl-wr802n-v4.dts b/target/linux/ramips/dts/mt7628an_tplink_tl-wr802n-v4.dts index 138d8a8ab4..d6077b4c0e 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_tl-wr802n-v4.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_tl-wr802n-v4.dts @@ -27,7 +27,7 @@ compatible = "gpio-leds"; led_power: power { - label = "tl-wr802n-v4:green:power"; + label = "green:power"; gpios = <&gpio 37 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7628an_tplink_tl-wr840n-v4.dts b/target/linux/ramips/dts/mt7628an_tplink_tl-wr840n-v4.dts index 81b1da7cd2..f960a0ae8f 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_tl-wr840n-v4.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_tl-wr840n-v4.dts @@ -25,27 +25,27 @@ compatible = "gpio-leds"; lan { - label = "tl-wr840n-v4:green:lan"; + label = "green:lan"; gpios = <&gpio 41 GPIO_ACTIVE_LOW>; }; led_power: power { - label = "tl-wr840n-v4:green:power"; + label = "green:power"; gpios = <&gpio 36 GPIO_ACTIVE_LOW>; }; wan { - label = "tl-wr840n-v4:green:wan"; + label = "green:wan"; gpios = <&gpio 43 GPIO_ACTIVE_LOW>; }; wlan { - label = "tl-wr840n-v4:green:wlan"; + label = "green:wlan"; gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; wps { - label = "tl-wr840n-v4:green:wps"; + label = "green:wps"; gpios = <&gpio 37 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7628an_tplink_tl-wr840n-v5.dts b/target/linux/ramips/dts/mt7628an_tplink_tl-wr840n-v5.dts index 72b6e71634..1f8f7f4bab 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_tl-wr840n-v5.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_tl-wr840n-v5.dts @@ -33,12 +33,12 @@ compatible = "gpio-leds"; led_power_green: power { - label = "tl-wr840n-v5:green:power"; + label = "green:power"; gpios = <&gpio 41 GPIO_ACTIVE_LOW>; }; orange { - label = "tl-wr840n-v5:orange:power"; + label = "orange:power"; gpios = <&gpio 43 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7628an_tplink_tl-wr841n-v13.dts b/target/linux/ramips/dts/mt7628an_tplink_tl-wr841n-v13.dts index bf37f01d98..c4c83b8549 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_tl-wr841n-v13.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_tl-wr841n-v13.dts @@ -31,47 +31,47 @@ compatible = "gpio-leds"; led_power: power { - label = "tl-wr841n-v13:green:power"; + label = "green:power"; gpios = <&gpio 36 GPIO_ACTIVE_LOW>; }; wps { - label = "tl-wr841n-v13:green:wps"; + label = "green:wps"; gpios = <&gpio 46 GPIO_ACTIVE_LOW>; }; lan1 { - label = "tl-wr841n-v13:green:lan1"; + label = "green:lan1"; gpios = <&gpio 42 GPIO_ACTIVE_LOW>; }; lan2 { - label = "tl-wr841n-v13:green:lan2"; + label = "green:lan2"; gpios = <&gpio 41 GPIO_ACTIVE_LOW>; }; lan3 { - label = "tl-wr841n-v13:green:lan3"; + label = "green:lan3"; gpios = <&gpio 40 GPIO_ACTIVE_LOW>; }; lan4 { - label = "tl-wr841n-v13:green:lan4"; + label = "green:lan4"; gpios = <&gpio 39 GPIO_ACTIVE_LOW>; }; wan_green { - label = "tl-wr841n-v13:green:wan"; + label = "green:wan"; gpios = <&gpio 43 GPIO_ACTIVE_LOW>; }; wan_orange { - label = "tl-wr841n-v13:orange:wan"; + label = "orange:wan"; gpios = <&gpio 11 GPIO_ACTIVE_LOW>; }; wlan { - label = "tl-wr841n-v13:green:wlan"; + label = "green:wlan"; gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7628an_tplink_tl-wr841n-v14.dts b/target/linux/ramips/dts/mt7628an_tplink_tl-wr841n-v14.dts index f47b82a167..530b8c5681 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_tl-wr841n-v14.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_tl-wr841n-v14.dts @@ -35,23 +35,23 @@ compatible = "gpio-leds"; lan { - label = "tl-wr841n-v14:green:lan"; + label = "green:lan"; gpios = <&gpio 39 GPIO_ACTIVE_LOW>; }; wan_green { - label = "tl-wr841n-v14:green:wan"; + label = "green:wan"; gpios = <&gpio 40 GPIO_ACTIVE_LOW>; }; led_wlan: wlan { - label = "tl-wr841n-v14:green:wlan"; + label = "green:wlan"; gpios = <&gpio 41 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; wan_orange { - label = "tl-wr841n-v14:orange:wan"; + label = "orange:wan"; gpios = <&gpio 42 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7628an_tplink_tl-wr842n-v5.dts b/target/linux/ramips/dts/mt7628an_tplink_tl-wr842n-v5.dts index aa0eb332fe..e843672600 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_tl-wr842n-v5.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_tl-wr842n-v5.dts @@ -31,39 +31,39 @@ compatible = "gpio-leds"; lan { - label = "tl-wr842n-v5:green:lan"; + label = "green:lan"; gpios = <&gpio 41 GPIO_ACTIVE_LOW>; }; led_power: power { - label = "tl-wr842n-v5:green:power"; + label = "green:power"; gpios = <&gpio 2 GPIO_ACTIVE_LOW>; }; usb { - label = "tl-wr842n-v5:green:usb"; + label = "green:usb"; gpios = <&gpio 3 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; }; wan { - label = "tl-wr842n-v5:green:wan"; + label = "green:wan"; gpios = <&gpio 5 GPIO_ACTIVE_LOW>; }; wan_amber { - label = "tl-wr842n-v5:amber:wan"; + label = "amber:wan"; gpios = <&gpio 4 GPIO_ACTIVE_LOW>; }; wlan { - label = "tl-wr842n-v5:green:wlan"; + label = "green:wlan"; gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; wps { - label = "tl-wr842n-v5:green:wps"; + label = "green:wps"; gpios = <&gpio 37 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7628an_tplink_tl-wr850n-v2.dts b/target/linux/ramips/dts/mt7628an_tplink_tl-wr850n-v2.dts index d1c2de7acc..1fec73d4dc 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_tl-wr850n-v2.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_tl-wr850n-v2.dts @@ -27,27 +27,27 @@ compatible = "gpio-leds"; led_power: power { - label = "tl-wr850n-v2:green:power"; + label = "green:power"; gpios = <&gpio 36 GPIO_ACTIVE_LOW>; }; wps { - label = "tl-wr850n-v2:green:wps"; + label = "green:wps"; gpios = <&gpio 37 GPIO_ACTIVE_LOW>; }; lan { - label = "tl-wr850n-v2:green:lan"; + label = "green:lan"; gpios = <&gpio 41 GPIO_ACTIVE_LOW>; }; wan { - label = "tl-wr850n-v2:green:wan"; + label = "green:wan"; gpios = <&gpio 43 GPIO_ACTIVE_LOW>; }; wlan { - label = "tl-wr850n-v2:green:wlan"; + label = "green:wlan"; gpios = <&gpio 44 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; diff --git a/target/linux/ramips/dts/mt7628an_tplink_tl-wr902ac-v3.dts b/target/linux/ramips/dts/mt7628an_tplink_tl-wr902ac-v3.dts index b9e20ac86a..bce394747b 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_tl-wr902ac-v3.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_tl-wr902ac-v3.dts @@ -43,34 +43,34 @@ compatible = "gpio-leds"; lan { - label = "tl-wr902ac-v3:green:lan"; + label = "green:lan"; gpios = <&gpio 5 GPIO_ACTIVE_HIGH>; }; led_power: power { - label = "tl-wr902ac-v3:green:power"; + label = "green:power"; gpios = <&gpio 46 GPIO_ACTIVE_LOW>; }; usb { - label = "tl-wr902ac-v3:green:usb"; + label = "green:usb"; gpios = <&gpio 43 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; }; wan { - label = "tl-wr902ac-v3:green:wan"; + label = "green:wan"; gpios = <&gpio 39 GPIO_ACTIVE_LOW>; }; wlan { - label = "tl-wr902ac-v3:green:wlan"; + label = "green:wlan"; gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; wps { - label = "tl-wr902ac-v3:green:wps"; + label = "green:wps"; gpios = <&gpio 4 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7628an_unielec_u7628-01.dtsi b/target/linux/ramips/dts/mt7628an_unielec_u7628-01.dtsi index 69f371a724..4facb036fd 100644 --- a/target/linux/ramips/dts/mt7628an_unielec_u7628-01.dtsi +++ b/target/linux/ramips/dts/mt7628an_unielec_u7628-01.dtsi @@ -65,42 +65,42 @@ compatible = "gpio-leds"; led_power: power { - label = "u7628-01:green:power"; + label = "green:power"; gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; wlan { - label = "u7628-01:green:wlan"; + label = "green:wlan"; gpios = <&gpio 11 GPIO_ACTIVE_LOW>; }; wan { - label = "u7628-01:green:wan"; + label = "green:wan"; gpios = <&gpio 43 GPIO_ACTIVE_LOW>; }; lan1 { - label = "u7628-01:green:lan1"; + label = "green:lan1"; gpios = <&gpio 42 GPIO_ACTIVE_LOW>; }; lan2 { - label = "u7628-01:green:lan2"; + label = "green:lan2"; gpios = <&gpio 41 GPIO_ACTIVE_LOW>; }; lan3 { - label = "u7628-01:green:lan3"; + label = "green:lan3"; gpios = <&gpio 40 GPIO_ACTIVE_LOW>; }; lan4 { - label = "u7628-01:green:lan4"; + label = "green:lan4"; gpios = <&gpio 39 GPIO_ACTIVE_LOW>; }; usb { - label = "u7628-01:green:usb"; + label = "green:usb"; gpios = <&gpio 37 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; diff --git a/target/linux/ramips/dts/mt7628an_vocore_vocore2-lite.dts b/target/linux/ramips/dts/mt7628an_vocore_vocore2-lite.dts index a8d5f8550c..f8bdc27c4c 100644 --- a/target/linux/ramips/dts/mt7628an_vocore_vocore2-lite.dts +++ b/target/linux/ramips/dts/mt7628an_vocore_vocore2-lite.dts @@ -15,7 +15,7 @@ compatible = "gpio-leds"; led_status: status { - label = "vocore2lite:green:status"; + label = "green:status"; gpios = <&gpio 44 GPIO_ACTIVE_HIGH>; }; }; diff --git a/target/linux/ramips/dts/mt7628an_vocore_vocore2.dts b/target/linux/ramips/dts/mt7628an_vocore_vocore2.dts index 1ba767ce4f..f4bb8720d3 100644 --- a/target/linux/ramips/dts/mt7628an_vocore_vocore2.dts +++ b/target/linux/ramips/dts/mt7628an_vocore_vocore2.dts @@ -15,7 +15,7 @@ compatible = "gpio-leds"; led_status: status { - label = "vocore2:fuchsia:status"; + label = "fuchsia:status"; gpios = <&gpio 44 GPIO_ACTIVE_HIGH>; }; }; diff --git a/target/linux/ramips/dts/mt7628an_wavlink_wl-wn570ha1.dts b/target/linux/ramips/dts/mt7628an_wavlink_wl-wn570ha1.dts index aa9957892f..9cea8b43f3 100644 --- a/target/linux/ramips/dts/mt7628an_wavlink_wl-wn570ha1.dts +++ b/target/linux/ramips/dts/mt7628an_wavlink_wl-wn570ha1.dts @@ -21,33 +21,33 @@ compatible = "gpio-leds"; power { - label = "wl-wn570ha1:green:power"; + label = "green:power"; gpios = <&gpio 37 GPIO_ACTIVE_LOW>; default-state = "keep"; }; wan { - label = "wl-wn570ha1:green:wan"; + label = "green:wan"; gpios = <&gpio 43 GPIO_ACTIVE_LOW>; }; wifi-high { - label = "wl-wn570ha1:green:wifi-high"; + label = "green:wifi-high"; gpios = <&gpio 11 GPIO_ACTIVE_LOW>; }; wifi-med { - label = "wl-wn570ha1:green:wifi-med"; + label = "green:wifi-med"; gpios = <&gpio 5 GPIO_ACTIVE_LOW>; }; wifi-low { - label = "wl-wn570ha1:green:wifi-low"; + label = "green:wifi-low"; gpios = <&gpio 4 GPIO_ACTIVE_LOW>; }; wifi { - label = "wl-wn570ha1:green:wifi"; + label = "green:wifi"; gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7628an_wavlink_wl-wn575a3.dts b/target/linux/ramips/dts/mt7628an_wavlink_wl-wn575a3.dts index 6316539f28..d6d418f1b9 100644 --- a/target/linux/ramips/dts/mt7628an_wavlink_wl-wn575a3.dts +++ b/target/linux/ramips/dts/mt7628an_wavlink_wl-wn575a3.dts @@ -27,22 +27,22 @@ compatible = "gpio-leds"; wifi-high { - label = "wl-wn575a3:green:wifi-high"; + label = "green:wifi-high"; gpios = <&gpio 37 GPIO_ACTIVE_LOW>; }; wifi-med { - label = "wl-wn575a3:green:wifi-med"; + label = "green:wifi-med"; gpios = <&gpio 11 GPIO_ACTIVE_LOW>; }; wifi-low { - label = "wl-wn575a3:green:wifi-low"; + label = "green:wifi-low"; gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; wps { - label = "wl-wn575a3:green:wps"; + label = "green:wps"; gpios = <&gpio 4 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7628an_wavlink_wl-wn577a2.dts b/target/linux/ramips/dts/mt7628an_wavlink_wl-wn577a2.dts index 2f93ebd3e6..b5f8ff03a8 100644 --- a/target/linux/ramips/dts/mt7628an_wavlink_wl-wn577a2.dts +++ b/target/linux/ramips/dts/mt7628an_wavlink_wl-wn577a2.dts @@ -36,17 +36,17 @@ compatible = "gpio-leds"; lan { - label = "wl-wn577a2:green:lan"; + label = "green:lan"; gpios = <&gpio 40 GPIO_ACTIVE_LOW>; }; wan { - label = "wl-wn577a2:green:wan"; + label = "green:wan"; gpios = <&gpio 39 GPIO_ACTIVE_LOW>; }; led_wps: wps { - label = "wl-wn577a2:green:wps"; + label = "green:wps"; gpios = <&gpio 4 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7628an_widora_neo.dtsi b/target/linux/ramips/dts/mt7628an_widora_neo.dtsi index 252ffd71f5..4c60ad95aa 100644 --- a/target/linux/ramips/dts/mt7628an_widora_neo.dtsi +++ b/target/linux/ramips/dts/mt7628an_widora_neo.dtsi @@ -21,7 +21,7 @@ compatible = "gpio-leds"; led_wifi: wifi { - label = "widora:orange:wifi"; + label = "orange:wifi"; gpios = <&wgpio 0 GPIO_ACTIVE_HIGH>; default-state = "on"; }; diff --git a/target/linux/ramips/dts/mt7628an_wiznet_wizfi630s.dts b/target/linux/ramips/dts/mt7628an_wiznet_wizfi630s.dts index 7cd9bef62b..670edaa78d 100644 --- a/target/linux/ramips/dts/mt7628an_wiznet_wizfi630s.dts +++ b/target/linux/ramips/dts/mt7628an_wiznet_wizfi630s.dts @@ -26,22 +26,22 @@ compatible = "gpio-leds"; led_run: run { - label = "wizfi630s:green:run"; + label = "green:run"; gpios = <&gpio 5 GPIO_ACTIVE_LOW>; }; ledwps { - label = "wizfi630s:green:wps"; + label = "green:wps"; gpios = <&gpio 42 GPIO_ACTIVE_LOW>; }; leduart1 { - label = "wizfi630s:green:uart1"; + label = "green:uart1"; gpios = <&gpio 0 GPIO_ACTIVE_LOW>; }; leduart2 { - label = "wizfi630s:green:uart2"; + label = "green:uart2"; gpios = <&gpio 3 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2p.dts b/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2p.dts index 54799d812c..88ec3f0c30 100644 --- a/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2p.dts +++ b/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2p.dts @@ -15,7 +15,7 @@ compatible = "gpio-leds"; led_indicator: indicator { - label = "wrtnode:blue:indicator"; + label = "blue:indicator"; gpios = <&gpio 41 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2r.dts b/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2r.dts index 92bea362e3..511354ae5e 100644 --- a/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2r.dts +++ b/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2r.dts @@ -18,7 +18,7 @@ pinctrl-0 = <&led_pins>; led_indicator: indicator { - label = "wrtnode:blue:indicator"; + label = "blue:indicator"; gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7628an_xiaomi_mir4a-100m.dts b/target/linux/ramips/dts/mt7628an_xiaomi_mir4a-100m.dts index a89ed49a70..727c27d573 100644 --- a/target/linux/ramips/dts/mt7628an_xiaomi_mir4a-100m.dts +++ b/target/linux/ramips/dts/mt7628an_xiaomi_mir4a-100m.dts @@ -24,12 +24,12 @@ compatible = "gpio-leds"; power_blue: power_blue { - label = "mir4a-100m:blue:power"; + label = "blue:power"; gpios = <&gpio 11 GPIO_ACTIVE_LOW>; }; power_yellow: power_yellow { - label = "mir4a-100m:yellow:power"; + label = "yellow:power"; gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7628an_xiaomi_miwifi-nano.dts b/target/linux/ramips/dts/mt7628an_xiaomi_miwifi-nano.dts index dbb4571d7b..ae6a72ebc3 100644 --- a/target/linux/ramips/dts/mt7628an_xiaomi_miwifi-nano.dts +++ b/target/linux/ramips/dts/mt7628an_xiaomi_miwifi-nano.dts @@ -23,17 +23,17 @@ compatible = "gpio-leds"; led_status_blue: status_blue { - label = "miwifi-nano:blue:status"; + label = "blue:status"; gpios = <&gpio 11 GPIO_ACTIVE_LOW>; }; led_status_red: status_red { - label = "miwifi-nano:red:status"; + label = "red:status"; gpios = <&gpio 37 GPIO_ACTIVE_LOW>; }; led_status_amber: status_amber { - label = "miwifi-nano:amber:status"; + label = "amber:status"; gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7628an_zbtlink_zbt-we1226.dts b/target/linux/ramips/dts/mt7628an_zbtlink_zbt-we1226.dts index 7f4f290822..ac2a01eaba 100644 --- a/target/linux/ramips/dts/mt7628an_zbtlink_zbt-we1226.dts +++ b/target/linux/ramips/dts/mt7628an_zbtlink_zbt-we1226.dts @@ -32,22 +32,22 @@ compatible = "gpio-leds"; wan { - label = "zbt-we1226:green:wan"; + label = "green:wan"; gpios = <&gpio 39 GPIO_ACTIVE_LOW>; }; lan1 { - label = "zbt-we1226:green:lan1"; + label = "green:lan1"; gpios = <&gpio 43 GPIO_ACTIVE_LOW>; }; lan2 { - label = "zbt-we1226:green:lan2"; + label = "green:lan2"; gpios = <&gpio 42 GPIO_ACTIVE_LOW>; }; led_wlan: wlan { - label = "zbt-we1226:green:wlan"; + label = "green:wlan"; gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/mt7628an_zyxel_keenetic-extra-ii.dts b/target/linux/ramips/dts/mt7628an_zyxel_keenetic-extra-ii.dts index efb5161957..47e4b429a9 100644 --- a/target/linux/ramips/dts/mt7628an_zyxel_keenetic-extra-ii.dts +++ b/target/linux/ramips/dts/mt7628an_zyxel_keenetic-extra-ii.dts @@ -44,23 +44,23 @@ compatible = "gpio-leds"; led_power: power { - label = "keenetic-extra-ii:green:power"; + label = "green:power"; gpios = <&gpio 11 GPIO_ACTIVE_LOW>; default-state = "keep"; }; internet { - label = "keenetic-extra-ii:green:internet"; + label = "green:internet"; gpios = <&gpio 44 GPIO_ACTIVE_LOW>; }; wifi { - label = "keenetic-extra-ii:green:wifi"; + label = "green:wifi"; gpios = <&gpio 37 GPIO_ACTIVE_LOW>; }; usb { - label = "keenetic-extra-ii:green:usb"; + label = "green:usb"; gpios = <&gpio 1 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; diff --git a/target/linux/ramips/dts/rt2880_airlink101_ar670w.dts b/target/linux/ramips/dts/rt2880_airlink101_ar670w.dts index 0c04b24111..213868db86 100644 --- a/target/linux/ramips/dts/rt2880_airlink101_ar670w.dts +++ b/target/linux/ramips/dts/rt2880_airlink101_ar670w.dts @@ -48,12 +48,12 @@ compatible = "gpio-leds"; led_power: power { - label = "ar670w:green:power"; + label = "green:power"; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; }; wpsblue { - label = "ar670w:blue:wps"; + label = "blue:wps"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt2880_airlink101_ar725w.dts b/target/linux/ramips/dts/rt2880_airlink101_ar725w.dts index 9673b21ba9..fb3eeda8aa 100644 --- a/target/linux/ramips/dts/rt2880_airlink101_ar725w.dts +++ b/target/linux/ramips/dts/rt2880_airlink101_ar725w.dts @@ -53,17 +53,17 @@ compatible = "gpio-leds"; led_power: power { - label = "ar725w:green:power"; + label = "green:power"; gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; }; wpsred { - label = "ar725w:red:wps"; + label = "red:wps"; gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; }; wpsblue { - label = "ar725w:blue:wps"; + label = "blue:wps"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt2880_asus_rt-n15.dts b/target/linux/ramips/dts/rt2880_asus_rt-n15.dts index af7f2929a3..713c64cb56 100644 --- a/target/linux/ramips/dts/rt2880_asus_rt-n15.dts +++ b/target/linux/ramips/dts/rt2880_asus_rt-n15.dts @@ -80,7 +80,7 @@ compatible = "gpio-leds"; led_power: power { - label = "rt-n15:blue:power"; + label = "blue:power"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt2880_belkin_f5d8235-v1.dts b/target/linux/ramips/dts/rt2880_belkin_f5d8235-v1.dts index c099f2b0ca..bc146cf677 100644 --- a/target/linux/ramips/dts/rt2880_belkin_f5d8235-v1.dts +++ b/target/linux/ramips/dts/rt2880_belkin_f5d8235-v1.dts @@ -119,69 +119,69 @@ compatible = "gpio-leds"; internet { - label = "f5d8235-v1:blue:internet"; + label = "blue:internet"; gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; }; internet2 { - label = "f5d8235-v1:amber:internet"; + label = "amber:internet"; gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; }; modem { - label = "f5d8235-v1:blue:modem"; + label = "blue:modem"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; modem2 { - label = "f5d8235-v1:amber:modem"; + label = "amber:modem"; gpios = <&gpio0 21 GPIO_ACTIVE_LOW>; }; router { - label = "f5d8235-v1:blue:router"; + label = "blue:router"; gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>; }; storage { - label = "f5d8235-v1:blue:storage"; + label = "blue:storage"; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; }; storage2 { - label = "f5d8235-v1:amber:storage"; + label = "amber:storage"; gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; }; security { - label = "f5d8235-v1:blue:security"; + label = "blue:security"; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; }; security2 { - label = "f5d8235-v1:amber:security"; + label = "amber:security"; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; }; led_wired_blue: wired { - label = "f5d8235-v1:blue:wired"; + label = "blue:wired"; gpios = <&gpio0 5 GPIO_ACTIVE_LOW>; }; wired2 { - label = "f5d8235-v1:amber:wired"; + label = "amber:wired"; gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; }; wireless { - label = "f5d8235-v1:blue:wireless"; + label = "blue:wireless"; gpios = <&gpio0 6 GPIO_ACTIVE_LOW>; }; wireless2 { - label = "f5d8235-v1:amber:wireless"; + label = "amber:wireless"; gpios = <&gpio0 19 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt2880_buffalo_wli-tx4-ag300n.dts b/target/linux/ramips/dts/rt2880_buffalo_wli-tx4-ag300n.dts index 51a508f60f..3ec9140b18 100644 --- a/target/linux/ramips/dts/rt2880_buffalo_wli-tx4-ag300n.dts +++ b/target/linux/ramips/dts/rt2880_buffalo_wli-tx4-ag300n.dts @@ -80,17 +80,17 @@ compatible = "gpio-leds"; diag { - label = "wli-tx4-ag300n:red:diag"; + label = "red:diag"; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; }; led_power: power { - label = "wli-tx4-ag300n:blue:power"; + label = "blue:power"; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; }; security { - label = "wli-tx4-ag300n:blue:security"; + label = "blue:security"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt2880_buffalo_wzr-agl300nh.dts b/target/linux/ramips/dts/rt2880_buffalo_wzr-agl300nh.dts index 13f933b639..9c3a07059f 100644 --- a/target/linux/ramips/dts/rt2880_buffalo_wzr-agl300nh.dts +++ b/target/linux/ramips/dts/rt2880_buffalo_wzr-agl300nh.dts @@ -86,22 +86,22 @@ compatible = "gpio-leds"; led_router: router { - label = "wzr-agl300nh:green:router"; + label = "green:router"; gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; }; diag { - label = "wzr-agl300nh:red:diag"; + label = "red:diag"; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; }; security_g { - label = "wzr-agl300nh:orange:security_g"; + label = "orange:security_g"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; }; security_n { - label = "wzr-agl300nh:orange:security_n"; + label = "orange:security_n"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt2880_dlink_dap-1522-a1.dts b/target/linux/ramips/dts/rt2880_dlink_dap-1522-a1.dts index acb723eff7..c01424a1f0 100644 --- a/target/linux/ramips/dts/rt2880_dlink_dap-1522-a1.dts +++ b/target/linux/ramips/dts/rt2880_dlink_dap-1522-a1.dts @@ -86,22 +86,22 @@ compatible = "gpio-leds"; wps { - label = "dap-1522-a1:blue:wps"; + label = "blue:wps"; gpios = <&gpio2 17 GPIO_ACTIVE_LOW>; }; ap { - label = "dap-1522-a1:blue:ap"; + label = "blue:ap"; gpios = <&gpio2 18 GPIO_ACTIVE_LOW>; }; sta { - label = "dap-1522-a1:red:sta"; + label = "red:sta"; gpios = <&gpio2 19 GPIO_ACTIVE_LOW>; }; led_status: status { - label = "dap-1522-a1:blue:status"; + label = "blue:status"; gpios = <&gpio2 20 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt2880_ralink_v11st-fe.dts b/target/linux/ramips/dts/rt2880_ralink_v11st-fe.dts index b9a3fb88c7..792a2e429f 100644 --- a/target/linux/ramips/dts/rt2880_ralink_v11st-fe.dts +++ b/target/linux/ramips/dts/rt2880_ralink_v11st-fe.dts @@ -65,7 +65,7 @@ compatible = "gpio-leds"; led_status: status { - label = "v11st-fe:green:status"; + label = "green:status"; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3050_allnet_all0256n.dtsi b/target/linux/ramips/dts/rt3050_allnet_all0256n.dtsi index 40018e5e3f..27d0eb3e4f 100644 --- a/target/linux/ramips/dts/rt3050_allnet_all0256n.dtsi +++ b/target/linux/ramips/dts/rt3050_allnet_all0256n.dtsi @@ -10,17 +10,17 @@ compatible = "gpio-leds"; rssilow { - label = "all0256n:green:rssilow"; + label = "green:rssilow"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; rssimed { - label = "all0256n:green:rssimed"; + label = "green:rssimed"; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; }; rssihigh { - label = "all0256n:green:rssihigh"; + label = "green:rssihigh"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3050_alphanetworks_asl26555.dtsi b/target/linux/ramips/dts/rt3050_alphanetworks_asl26555.dtsi index be57cd8e57..b476fd4fa4 100644 --- a/target/linux/ramips/dts/rt3050_alphanetworks_asl26555.dtsi +++ b/target/linux/ramips/dts/rt3050_alphanetworks_asl26555.dtsi @@ -34,44 +34,44 @@ compatible = "gpio-leds"; eth { - label = "asl26555:green:eth"; + label = "green:eth"; gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; }; wan-red { - label = "asl26555:red:wan"; + label = "red:wan"; gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>; }; wan-green { - label = "asl26555:green:wan"; + label = "green:wan"; gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>; }; wlan { - label = "asl26555:green:wlan"; + label = "green:wlan"; gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; }; led_power_green: power-green { - label = "asl26555:green:power"; + label = "green:power"; gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>; }; power-red { - label = "asl26555:red:power"; + label = "red:power"; gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>; }; 3g-green { - label = "asl26555:green:3g"; + label = "green:3g"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; trigger-sources = <&otg_port1>; linux,default-trigger = "usbport"; }; 3g-red { - label = "asl26555:red:3g"; + label = "red:3g"; gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3050_arcwireless_freestation5.dts b/target/linux/ramips/dts/rt3050_arcwireless_freestation5.dts index d0385bf0b7..44b2ad4185 100644 --- a/target/linux/ramips/dts/rt3050_arcwireless_freestation5.dts +++ b/target/linux/ramips/dts/rt3050_arcwireless_freestation5.dts @@ -70,17 +70,17 @@ * not present in the Freestation5 device. */ wifi { - label = "freestation5:unknown:wifi"; + label = "unknown:wifi"; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; }; powerg { - label = "freestation5:unknown:powerg"; + label = "unknown:powerg"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; usb { - label = "freestation5:unknown:usb"; + label = "unknown:usb"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3050_asus_rt-n10-plus.dts b/target/linux/ramips/dts/rt3050_asus_rt-n10-plus.dts index 7d28f0b7f6..5c1975595f 100644 --- a/target/linux/ramips/dts/rt3050_asus_rt-n10-plus.dts +++ b/target/linux/ramips/dts/rt3050_asus_rt-n10-plus.dts @@ -55,7 +55,7 @@ compatible = "gpio-leds"; led_wps: wps { - label = "rt-n10-plus:green:wps"; + label = "green:wps"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3050_asus_wl-330n.dts b/target/linux/ramips/dts/rt3050_asus_wl-330n.dts index d3cd092eb9..cc6cd38246 100644 --- a/target/linux/ramips/dts/rt3050_asus_wl-330n.dts +++ b/target/linux/ramips/dts/rt3050_asus_wl-330n.dts @@ -18,12 +18,12 @@ compatible = "gpio-leds"; link { - label = "wl-330n:blue:link"; + label = "blue:link"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; led_power: power { - label = "wl-330n:blue:power"; + label = "blue:power"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3050_asus_wl-330n3g.dts b/target/linux/ramips/dts/rt3050_asus_wl-330n3g.dts index b0f148e94e..c2513c5dd5 100644 --- a/target/linux/ramips/dts/rt3050_asus_wl-330n3g.dts +++ b/target/linux/ramips/dts/rt3050_asus_wl-330n3g.dts @@ -18,17 +18,17 @@ compatible = "gpio-leds"; 3g { - label = "wl-330n3g:blue:3g"; + label = "blue:3g"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; 3g2 { - label = "wl-330n3g:red:3g"; + label = "red:3g"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; led_power: power { - label = "wl-330n3g:blue:power"; + label = "blue:power"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3050_dlink_dcs-930.dts b/target/linux/ramips/dts/rt3050_dlink_dcs-930.dts index fa4fd6258f..ff01fe2709 100644 --- a/target/linux/ramips/dts/rt3050_dlink_dcs-930.dts +++ b/target/linux/ramips/dts/rt3050_dlink_dcs-930.dts @@ -55,17 +55,17 @@ compatible = "gpio-leds"; wifi { - label = "dcs-930:red:alert"; + label = "red:alert"; gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; }; led_status: status { - label = "dcs-930:green:status"; + label = "green:status"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; wps { - label = "dcs-930:blue:wps"; + label = "blue:wps"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3050_dlink_dir-300-b1.dts b/target/linux/ramips/dts/rt3050_dlink_dir-300-b1.dts index b6ada35495..7699dcaabb 100644 --- a/target/linux/ramips/dts/rt3050_dlink_dir-300-b1.dts +++ b/target/linux/ramips/dts/rt3050_dlink_dir-300-b1.dts @@ -72,27 +72,27 @@ compatible = "gpio-leds"; status { - label = "dir-300-b1:amber:status"; + label = "amber:status"; gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; }; led_status_green: status2 { - label = "dir-300-b1:green:status"; + label = "green:status"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; wan { - label = "dir-300-b1:amber:wan"; + label = "amber:wan"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; wan2 { - label = "dir-300-b1:green:wan"; + label = "green:wan"; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; }; wps { - label = "dir-300-b1:blue:wps"; + label = "blue:wps"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3050_dlink_dir-600-b1.dts b/target/linux/ramips/dts/rt3050_dlink_dir-600-b1.dts index 65a5ea638f..21f0a73212 100644 --- a/target/linux/ramips/dts/rt3050_dlink_dir-600-b1.dts +++ b/target/linux/ramips/dts/rt3050_dlink_dir-600-b1.dts @@ -72,27 +72,27 @@ compatible = "gpio-leds"; status { - label = "dir-600-b1:amber:status"; + label = "amber:status"; gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; }; led_status_green: status2 { - label = "dir-600-b1:green:status"; + label = "green:status"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; wan { - label = "dir-600-b1:amber:wan"; + label = "amber:wan"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; wan2 { - label = "dir-600-b1:green:wan"; + label = "green:wan"; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; }; wps { - label = "dir-600-b1:blue:wps"; + label = "blue:wps"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3050_dlink_dir-615-d.dts b/target/linux/ramips/dts/rt3050_dlink_dir-615-d.dts index cfe77941fd..e84c9d9cb7 100644 --- a/target/linux/ramips/dts/rt3050_dlink_dir-615-d.dts +++ b/target/linux/ramips/dts/rt3050_dlink_dir-615-d.dts @@ -73,28 +73,28 @@ compatible = "gpio-leds"; status_amber { - label = "dir-615-d:amber:status"; + label = "amber:status"; gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; }; led_status_green: status_green { - label = "dir-615-d:green:status"; + label = "green:status"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; default-state = "on"; }; wan_amber { - label = "dir-615-d:amber:wan"; + label = "amber:wan"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; wan_green { - label = "dir-615-d:green:wan"; + label = "green:wan"; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; }; wps { - label = "dir-615-d:blue:wps"; + label = "blue:wps"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3050_dlink_dir-620-a1.dts b/target/linux/ramips/dts/rt3050_dlink_dir-620-a1.dts index e23e6f8995..c134803f67 100644 --- a/target/linux/ramips/dts/rt3050_dlink_dir-620-a1.dts +++ b/target/linux/ramips/dts/rt3050_dlink_dir-620-a1.dts @@ -72,32 +72,32 @@ compatible = "gpio-leds"; status { - label = "dir-620-a1:amber:status"; + label = "amber:status"; gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; }; led_status_green: status2 { - label = "dir-620-a1:green:status"; + label = "green:status"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; wan { - label = "dir-620-a1:amber:wan"; + label = "amber:wan"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; wan2 { - label = "dir-620-a1:green:wan"; + label = "green:wan"; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; }; wps { - label = "dir-620-a1:blue:wps"; + label = "blue:wps"; gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>; }; wps2 { - label = "dir-620-a1:amber:wps"; + label = "amber:wps"; gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>; }; }; diff --git a/target/linux/ramips/dts/rt3050_edimax_3g-6200n.dts b/target/linux/ramips/dts/rt3050_edimax_3g-6200n.dts index 45b80743bd..a185e5d5bb 100644 --- a/target/linux/ramips/dts/rt3050_edimax_3g-6200n.dts +++ b/target/linux/ramips/dts/rt3050_edimax_3g-6200n.dts @@ -61,17 +61,17 @@ compatible = "gpio-leds"; led_power: power { - label = "3g-6200n:green:power"; + label = "green:power"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; wlan { - label = "3g-6200n:amber:wlan"; + label = "amber:wlan"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; 3g { - label = "3g-6200n:blue:3g"; + label = "blue:3g"; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; trigger-sources = <&otg_port1>; linux,default-trigger = "usbport"; diff --git a/target/linux/ramips/dts/rt3050_edimax_3g-6200nl.dts b/target/linux/ramips/dts/rt3050_edimax_3g-6200nl.dts index fd965e85dc..41768078f5 100644 --- a/target/linux/ramips/dts/rt3050_edimax_3g-6200nl.dts +++ b/target/linux/ramips/dts/rt3050_edimax_3g-6200nl.dts @@ -61,12 +61,12 @@ compatible = "gpio-leds"; led_internet: internet { - label = "3g-6200nl:green:internet"; + label = "green:internet"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; wlan { - label = "3g-6200nl:green:wlan"; + label = "green:wlan"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3050_huawei_d105.dts b/target/linux/ramips/dts/rt3050_huawei_d105.dts index 2dc57392ea..2784b0c580 100644 --- a/target/linux/ramips/dts/rt3050_huawei_d105.dts +++ b/target/linux/ramips/dts/rt3050_huawei_d105.dts @@ -55,12 +55,12 @@ compatible = "gpio-leds"; led_power: power { - label = "d105:red:power"; + label = "red:power"; gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; }; usb { - label = "d105:green:usb"; + label = "green:usb"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; trigger-sources = <&otg_port1>; linux,default-trigger = "usbport"; diff --git a/target/linux/ramips/dts/rt3050_jcg_jhr-n805r.dts b/target/linux/ramips/dts/rt3050_jcg_jhr-n805r.dts index 4a14003147..581edc6dfc 100644 --- a/target/linux/ramips/dts/rt3050_jcg_jhr-n805r.dts +++ b/target/linux/ramips/dts/rt3050_jcg_jhr-n805r.dts @@ -18,7 +18,7 @@ compatible = "gpio-leds"; led_system: system { - label = "jhr-n805r:blue:system"; + label = "blue:system"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3050_netcore_nw718.dts b/target/linux/ramips/dts/rt3050_netcore_nw718.dts index 116864a443..124a2ba13c 100644 --- a/target/linux/ramips/dts/rt3050_netcore_nw718.dts +++ b/target/linux/ramips/dts/rt3050_netcore_nw718.dts @@ -18,19 +18,19 @@ compatible = "gpio-leds"; led_cpu: cpu { - label = "nw718:amber:cpu"; + label = "amber:cpu"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; usb { - label = "nw718:amber:usb"; + label = "amber:usb"; gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; trigger-sources = <&otg_port1>; linux,default-trigger = "usbport"; }; wps { - label = "nw718:amber:wps"; + label = "amber:wps"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3050_sparklan_wcr-150gn.dts b/target/linux/ramips/dts/rt3050_sparklan_wcr-150gn.dts index 73ed778ae8..e457491906 100644 --- a/target/linux/ramips/dts/rt3050_sparklan_wcr-150gn.dts +++ b/target/linux/ramips/dts/rt3050_sparklan_wcr-150gn.dts @@ -55,14 +55,14 @@ compatible = "gpio-leds"; user { - label = "wcr-150gn:amber:user"; + label = "amber:user"; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; trigger-sources = <&otg_port1>; linux,default-trigger = "usbport"; }; led_power: power { - label = "wcr-150gn:amber:power"; + label = "amber:power"; gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3050_teltonika_rut5xx.dts b/target/linux/ramips/dts/rt3050_teltonika_rut5xx.dts index 13f2141b72..742edbb11d 100644 --- a/target/linux/ramips/dts/rt3050_teltonika_rut5xx.dts +++ b/target/linux/ramips/dts/rt3050_teltonika_rut5xx.dts @@ -18,7 +18,7 @@ compatible = "gpio-leds"; led_status: status { - label = "rut5xx:green:status"; + label = "green:status"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3050_tenda_w150m.dts b/target/linux/ramips/dts/rt3050_tenda_w150m.dts index 7ba3a6a810..2826993a9a 100644 --- a/target/linux/ramips/dts/rt3050_tenda_w150m.dts +++ b/target/linux/ramips/dts/rt3050_tenda_w150m.dts @@ -55,32 +55,32 @@ compatible = "gpio-leds"; 3grouter { - label = "w150m:blue:3grouter"; + label = "blue:3grouter"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; }; led_ap: ap { - label = "w150m:blue:ap"; + label = "blue:ap"; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; }; wisprouter { - label = "w150m:blue:wisprouter"; + label = "blue:wisprouter"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; wirelessrouter { - label = "w150m:blue:wirelessrouter"; + label = "blue:wirelessrouter"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; 3g { - label = "w150m:blue:3g"; + label = "blue:3g"; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; }; wpsreset { - label = "w150m:blue:wpsreset"; + label = "blue:wpsreset"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3050_trendnet_tew-638apb-v2.dts b/target/linux/ramips/dts/rt3050_trendnet_tew-638apb-v2.dts index 80eb9c09e4..7df592bebd 100644 --- a/target/linux/ramips/dts/rt3050_trendnet_tew-638apb-v2.dts +++ b/target/linux/ramips/dts/rt3050_trendnet_tew-638apb-v2.dts @@ -72,12 +72,12 @@ compatible = "gpio-leds"; wps { - label = "tew-638apb-v2:orange:wps"; + label = "orange:wps"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; }; led_wps_green: wps2 { - label = "tew-638apb-v2:green:wps"; + label = "green:wps"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3052_accton_wr6202.dts b/target/linux/ramips/dts/rt3052_accton_wr6202.dts index fa9d28ec16..fac721cd76 100644 --- a/target/linux/ramips/dts/rt3052_accton_wr6202.dts +++ b/target/linux/ramips/dts/rt3052_accton_wr6202.dts @@ -15,12 +15,12 @@ compatible = "gpio-leds"; wps { - label = "wr6202:blue:wps"; + label = "blue:wps"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; 3g { - label = "wr6202:blue:3g"; + label = "blue:3g"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3052_alfa-network_w502u.dts b/target/linux/ramips/dts/rt3052_alfa-network_w502u.dts index 1a43f61959..d88df8ca25 100644 --- a/target/linux/ramips/dts/rt3052_alfa-network_w502u.dts +++ b/target/linux/ramips/dts/rt3052_alfa-network_w502u.dts @@ -59,14 +59,14 @@ compatible = "gpio-leds"; usb { - label = "w502u:blue:usb"; + label = "blue:usb"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; trigger-sources = <&otg_port1>; linux,default-trigger = "usbport"; }; led_wps: wps { - label = "w502u:blue:wps"; + label = "blue:wps"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3052_argus_atp-52b.dts b/target/linux/ramips/dts/rt3052_argus_atp-52b.dts index 84341ea9e0..39afaa582e 100644 --- a/target/linux/ramips/dts/rt3052_argus_atp-52b.dts +++ b/target/linux/ramips/dts/rt3052_argus_atp-52b.dts @@ -53,12 +53,12 @@ compatible = "gpio-leds"; led_run: run { - label = "atp-52b:green:run"; + label = "green:run"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; net { - label = "atp-52b:amber:net"; + label = "amber:net"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3052_asiarf_awapn2403.dts b/target/linux/ramips/dts/rt3052_asiarf_awapn2403.dts index 33e04bbb04..5d73043425 100644 --- a/target/linux/ramips/dts/rt3052_asiarf_awapn2403.dts +++ b/target/linux/ramips/dts/rt3052_asiarf_awapn2403.dts @@ -18,7 +18,7 @@ compatible = "gpio-leds"; led_wps: wps { - label = "awapn2403:green:wps"; + label = "green:wps"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3052_asus_rt-n13u.dts b/target/linux/ramips/dts/rt3052_asus_rt-n13u.dts index 0d0b70e4fc..a67a839dcc 100644 --- a/target/linux/ramips/dts/rt3052_asus_rt-n13u.dts +++ b/target/linux/ramips/dts/rt3052_asus_rt-n13u.dts @@ -55,12 +55,12 @@ compatible = "gpio-leds"; led_power: power { - label = "rt-n13u:blue:power"; + label = "blue:power"; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; }; wifi { - label = "rt-n13u:blue:wifi"; + label = "blue:wifi"; gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3052_aximcom_mr-102n.dts b/target/linux/ramips/dts/rt3052_aximcom_mr-102n.dts index d9e9554f06..2d5f07746f 100644 --- a/target/linux/ramips/dts/rt3052_aximcom_mr-102n.dts +++ b/target/linux/ramips/dts/rt3052_aximcom_mr-102n.dts @@ -65,19 +65,19 @@ compatible = "gpio-leds"; usb { - label = "mr-102n:green:usb"; + label = "green:usb"; gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; trigger-sources = <&otg_port1>; linux,default-trigger = "usbport"; }; led_status: status { - label = "mr-102n:amber:status"; + label = "amber:status"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; wlan { - label = "mr-102n:green:wlan"; + label = "green:wlan"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3052_aztech_hw550-3g.dts b/target/linux/ramips/dts/rt3052_aztech_hw550-3g.dts index 1ba30c9152..f58a519b11 100644 --- a/target/linux/ramips/dts/rt3052_aztech_hw550-3g.dts +++ b/target/linux/ramips/dts/rt3052_aztech_hw550-3g.dts @@ -55,24 +55,24 @@ compatible = "gpio-leds"; usb { - label = "hw550-3g:green:usb"; + label = "green:usb"; gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; trigger-sources = <&otg_port1>; linux,default-trigger = "usbport"; }; 3g { - label = "hw550-3g:green:3g"; + label = "green:3g"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; }; led_status: status { - label = "hw550-3g:green:status"; + label = "green:status"; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; }; wps { - label = "hw550-3g:green:wps"; + label = "green:wps"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3052_belkin_f5d8235-v2.dts b/target/linux/ramips/dts/rt3052_belkin_f5d8235-v2.dts index faf1fe222e..a9db2882f3 100644 --- a/target/linux/ramips/dts/rt3052_belkin_f5d8235-v2.dts +++ b/target/linux/ramips/dts/rt3052_belkin_f5d8235-v2.dts @@ -59,49 +59,49 @@ compatible = "gpio-leds"; internet { - label = "f5d8235-v2:blue:internet"; + label = "blue:internet"; gpios = <&gpio0 5 GPIO_ACTIVE_LOW>; }; internet2 { - label = "f5d8235-v2:amber:internet"; + label = "amber:internet"; gpios = <&gpio0 6 GPIO_ACTIVE_LOW>; }; modem { - label = "f5d8235-v2:blue:modem"; + label = "blue:modem"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; }; modem2 { - label = "f5d8235-v2:amber:modem"; + label = "amber:modem"; gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; }; led_router: router { - label = "f5d8235-v2:blue:router"; + label = "blue:router"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; storage { - label = "f5d8235-v2:blue:storage"; + label = "blue:storage"; gpios = <&gpio0 23 GPIO_ACTIVE_LOW>; trigger-sources = <&otg_port1>; linux,default-trigger = "usbport"; }; storage2 { - label = "f5d8235-v2:amber:storage"; + label = "amber:storage"; gpios = <&gpio0 22 GPIO_ACTIVE_LOW>; }; security { - label = "f5d8235-v2:blue:security"; + label = "blue:security"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; security2 { - label = "f5d8235-v2:amber:security"; + label = "amber:security"; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3052_buffalo_whr-g300n.dts b/target/linux/ramips/dts/rt3052_buffalo_whr-g300n.dts index 73f03f8a44..ca6259d303 100644 --- a/target/linux/ramips/dts/rt3052_buffalo_whr-g300n.dts +++ b/target/linux/ramips/dts/rt3052_buffalo_whr-g300n.dts @@ -60,17 +60,17 @@ compatible = "gpio-leds"; led_diag: diag { - label = "whr-g300n:red:diag"; + label = "red:diag"; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; }; router { - label = "whr-g300n:green:router"; + label = "green:router"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; security { - label = "whr-g300n:amber:security"; + label = "amber:security"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3052_dlink_dap-1350.dts b/target/linux/ramips/dts/rt3052_dlink_dap-1350.dts index 11c48e8e83..a2584e005e 100644 --- a/target/linux/ramips/dts/rt3052_dlink_dap-1350.dts +++ b/target/linux/ramips/dts/rt3052_dlink_dap-1350.dts @@ -65,17 +65,17 @@ compatible = "gpio-leds"; led_power_blue: power { - label = "dap-1350:blue:power"; + label = "blue:power"; gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; }; power2 { - label = "dap-1350:red:power"; + label = "red:power"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; wps { - label = "dap-1350:blue:wps"; + label = "blue:wps"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3052_engenius_esr-9753.dts b/target/linux/ramips/dts/rt3052_engenius_esr-9753.dts index 1f076eaab2..4566e7a166 100644 --- a/target/linux/ramips/dts/rt3052_engenius_esr-9753.dts +++ b/target/linux/ramips/dts/rt3052_engenius_esr-9753.dts @@ -55,12 +55,12 @@ compatible = "gpio-leds"; led_power: power { - label = "esr-9753:orange:power"; + label = "orange:power"; gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; }; wps { - label = "esr-9753:orange:wps"; + label = "orange:wps"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3052_fon_fonera-20n.dts b/target/linux/ramips/dts/rt3052_fon_fonera-20n.dts index 6f1ba34721..9d89c6e2f9 100644 --- a/target/linux/ramips/dts/rt3052_fon_fonera-20n.dts +++ b/target/linux/ramips/dts/rt3052_fon_fonera-20n.dts @@ -55,17 +55,17 @@ compatible = "gpio-leds"; wifi { - label = "fonera-20n:orange:wifi"; + label = "orange:wifi"; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; }; led_power: power { - label = "fonera-20n:green:power"; + label = "green:power"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; usb { - label = "fonera-20n:orange:usb"; + label = "orange:usb"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; trigger-sources = <&otg_port1>; linux,default-trigger = "usbport"; diff --git a/target/linux/ramips/dts/rt3052_hauppauge_broadway.dts b/target/linux/ramips/dts/rt3052_hauppauge_broadway.dts index 55db04ff01..6734f5b336 100644 --- a/target/linux/ramips/dts/rt3052_hauppauge_broadway.dts +++ b/target/linux/ramips/dts/rt3052_hauppauge_broadway.dts @@ -48,14 +48,14 @@ compatible = "gpio-leds"; diskmounted { - label = "broadway:red:diskmounted"; + label = "red:diskmounted"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; trigger-sources = <&otg_port1>; linux,default-trigger = "usbport"; }; wps_active { - label = "broadway:red:wps_active"; + label = "red:wps_active"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3052_huawei_hg255d.dts b/target/linux/ramips/dts/rt3052_huawei_hg255d.dts index 18894f6006..92ea59bc4c 100644 --- a/target/linux/ramips/dts/rt3052_huawei_hg255d.dts +++ b/target/linux/ramips/dts/rt3052_huawei_hg255d.dts @@ -61,34 +61,34 @@ compatible = "gpio-leds"; led_power: power { - label = "hg255d:green:power"; + label = "green:power"; gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; }; internet { - label = "hg255d:green:internet"; + label = "green:internet"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; wifi { - label = "hg255d:green:wlan"; + label = "green:wlan"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; usb { - label = "hg255d:green:usb"; + label = "green:usb"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; trigger-sources = <&otg_port1>; linux,default-trigger = "usbport"; }; wps { - label = "hg255d:green:wps"; + label = "green:wps"; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; }; voice { - label = "hg255d:green:voice"; + label = "green:voice"; gpios = <&gpio0 5 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3052_jcg_jhr-n825r.dts b/target/linux/ramips/dts/rt3052_jcg_jhr-n825r.dts index 29ea1301f6..7b71af402f 100644 --- a/target/linux/ramips/dts/rt3052_jcg_jhr-n825r.dts +++ b/target/linux/ramips/dts/rt3052_jcg_jhr-n825r.dts @@ -54,7 +54,7 @@ leds { compatible = "gpio-leds"; led_system: system { - label = "jhr-n825r:red:power"; + label = "red:power"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3052_jcg_jhr-n926r.dts b/target/linux/ramips/dts/rt3052_jcg_jhr-n926r.dts index 05f20e3178..543144394f 100644 --- a/target/linux/ramips/dts/rt3052_jcg_jhr-n926r.dts +++ b/target/linux/ramips/dts/rt3052_jcg_jhr-n926r.dts @@ -55,22 +55,22 @@ compatible = "gpio-leds"; wlan1 { - label = "jhr-n926r:red:wlan"; + label = "red:wlan"; gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; }; wlan2 { - label = "jhr-n926r:yellow:wlan"; + label = "yellow:wlan"; gpios = <&gpio0 19 GPIO_ACTIVE_LOW>; }; wlan3 { - label = "jhr-n926r:green:wlan"; + label = "green:wlan"; gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; }; led_system: system { - label = "jhr-n926r:blue:system"; + label = "blue:system"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3052_mofinetwork_mofi3500-3gn.dts b/target/linux/ramips/dts/rt3052_mofinetwork_mofi3500-3gn.dts index 6f08f8257b..245f01c797 100644 --- a/target/linux/ramips/dts/rt3052_mofinetwork_mofi3500-3gn.dts +++ b/target/linux/ramips/dts/rt3052_mofinetwork_mofi3500-3gn.dts @@ -55,24 +55,24 @@ compatible = "gpio-leds"; usb { - label = "mofi3500-3gn:green:usb"; + label = "green:usb"; gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; trigger-sources = <&otg_port1>; linux,default-trigger = "usbport"; }; 3g { - label = "mofi3500-3gn:green:3g"; + label = "green:3g"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; }; led_status: status { - label = "mofi3500-3gn:green:status"; + label = "green:status"; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; }; wps { - label = "mofi3500-3gn:green:wps"; + label = "green:wps"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3052_netgear_wnce2001.dts b/target/linux/ramips/dts/rt3052_netgear_wnce2001.dts index 5bac21c610..e5d70bd803 100644 --- a/target/linux/ramips/dts/rt3052_netgear_wnce2001.dts +++ b/target/linux/ramips/dts/rt3052_netgear_wnce2001.dts @@ -22,22 +22,22 @@ compatible = "gpio-leds"; led_power_green: power-green { - label = "wnce2001:green:power"; + label = "green:power"; gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; }; power-red { - label = "wnce2001:red:power"; + label = "red:power"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; wlan-green { - label = "wnce2001:green:wlan"; + label = "green:wlan"; gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; }; wlan-red { - label = "wnce2001:red:wlan"; + label = "red:wlan"; gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>; }; }; diff --git a/target/linux/ramips/dts/rt3052_nexaira_bc2.dts b/target/linux/ramips/dts/rt3052_nexaira_bc2.dts index 19f3fe680b..d3d5afe64b 100644 --- a/target/linux/ramips/dts/rt3052_nexaira_bc2.dts +++ b/target/linux/ramips/dts/rt3052_nexaira_bc2.dts @@ -48,7 +48,7 @@ compatible = "gpio-leds"; usb { - label = "bc2:blue:usb"; + label = "blue:usb"; gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; trigger-sources = <&otg_port1>; linux,default-trigger = "usbport"; diff --git a/target/linux/ramips/dts/rt3052_omnima_miniembwifi.dts b/target/linux/ramips/dts/rt3052_omnima_miniembwifi.dts index f971bee991..bc3dd5ee56 100644 --- a/target/linux/ramips/dts/rt3052_omnima_miniembwifi.dts +++ b/target/linux/ramips/dts/rt3052_omnima_miniembwifi.dts @@ -18,12 +18,12 @@ compatible = "gpio-leds"; led_status: status { - label = "miniembwifi:green:status"; + label = "green:status"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; wlan { - label = "miniembwifi:green:wlan"; + label = "green:wlan"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3052_petatel_psr-680w.dts b/target/linux/ramips/dts/rt3052_petatel_psr-680w.dts index fc65e0e9b6..b17097cb45 100644 --- a/target/linux/ramips/dts/rt3052_petatel_psr-680w.dts +++ b/target/linux/ramips/dts/rt3052_petatel_psr-680w.dts @@ -59,7 +59,7 @@ compatible = "gpio-leds"; led_wan: wan { - label = "psr-680w:red:wan"; + label = "red:wan"; gpios = <&gpio0 19 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3052_planex_mzk-w300nh2.dts b/target/linux/ramips/dts/rt3052_planex_mzk-w300nh2.dts index 38d81f1bc3..ff199f890b 100644 --- a/target/linux/ramips/dts/rt3052_planex_mzk-w300nh2.dts +++ b/target/linux/ramips/dts/rt3052_planex_mzk-w300nh2.dts @@ -61,17 +61,17 @@ compatible = "gpio-leds"; led_power: power { - label = "mzk-w300nh2:green:power"; + label = "green:power"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; wlan { - label = "mzk-w300nh2:amber:wlan"; + label = "amber:wlan"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; wps { - label = "mzk-w300nh2:amber:wps"; + label = "amber:wps"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3052_poray_ip2202.dts b/target/linux/ramips/dts/rt3052_poray_ip2202.dts index 9a3522174d..f3dab80073 100644 --- a/target/linux/ramips/dts/rt3052_poray_ip2202.dts +++ b/target/linux/ramips/dts/rt3052_poray_ip2202.dts @@ -55,12 +55,12 @@ compatible = "gpio-leds"; led_run: run { - label = "ip2202:green:run"; + label = "green:run"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; net { - label = "ip2202:amber:net"; + label = "amber:net"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3052_prolink_pwh2004.dts b/target/linux/ramips/dts/rt3052_prolink_pwh2004.dts index ee4fdd60c4..312007c68f 100644 --- a/target/linux/ramips/dts/rt3052_prolink_pwh2004.dts +++ b/target/linux/ramips/dts/rt3052_prolink_pwh2004.dts @@ -55,12 +55,12 @@ compatible = "gpio-leds"; wifi { - label = "pwh2004:red:wifi"; + label = "red:wifi"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; led_power: power { - label = "pwh2004:green:power"; + label = "green:power"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3052_ralink_v22rw-2x2.dts b/target/linux/ramips/dts/rt3052_ralink_v22rw-2x2.dts index b14e695222..2689febf7f 100644 --- a/target/linux/ramips/dts/rt3052_ralink_v22rw-2x2.dts +++ b/target/linux/ramips/dts/rt3052_ralink_v22rw-2x2.dts @@ -55,12 +55,12 @@ compatible = "gpio-leds"; led_security: security { - label = "v22rw-2x2:green:security"; + label = "green:security"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; wps { - label = "v22rw-2x2:red:wps"; + label = "red:wps"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3052_sitecom_wl-351.dts b/target/linux/ramips/dts/rt3052_sitecom_wl-351.dts index e519f65df8..f4aa24ec5a 100644 --- a/target/linux/ramips/dts/rt3052_sitecom_wl-351.dts +++ b/target/linux/ramips/dts/rt3052_sitecom_wl-351.dts @@ -55,17 +55,17 @@ compatible = "gpio-leds"; led_power: power { - label = "wl-351:amber:power"; + label = "amber:power"; gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; }; unpopulated { - label = "wl-351:amber:unpopulated"; + label = "amber:unpopulated"; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; }; unpopulated2 { - label = "wl-351:blue:unpopulated"; + label = "blue:unpopulated"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3052_skyline_sl-r7205.dts b/target/linux/ramips/dts/rt3052_skyline_sl-r7205.dts index c23824deee..89e6c9ed71 100644 --- a/target/linux/ramips/dts/rt3052_skyline_sl-r7205.dts +++ b/target/linux/ramips/dts/rt3052_skyline_sl-r7205.dts @@ -55,7 +55,7 @@ compatible = "gpio-leds"; led_wifi: wifi { - label = "sl-r7205:green:wifi"; + label = "green:wifi"; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3052_tenda_3g300m.dts b/target/linux/ramips/dts/rt3052_tenda_3g300m.dts index 30beae8483..dcebe64af4 100644 --- a/target/linux/ramips/dts/rt3052_tenda_3g300m.dts +++ b/target/linux/ramips/dts/rt3052_tenda_3g300m.dts @@ -18,34 +18,34 @@ compatible = "gpio-leds"; 3grouter { - label = "3g300m:blue:3grouter"; + label = "blue:3grouter"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; }; led_ap: ap { - label = "3g300m:blue:ap"; + label = "blue:ap"; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; }; wisprouter { - label = "3g300m:blue:wisprouter"; + label = "blue:wisprouter"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; wirelessrouter { - label = "3g300m:blue:wirelessrouter"; + label = "blue:wirelessrouter"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; 3g { - label = "3g300m:blue:3g"; + label = "blue:3g"; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; trigger-sources = <&otg_port1>; linux,default-trigger = "usbport"; }; wpsreset { - label = "3g300m:blue:wpsreset"; + label = "blue:wpsreset"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3052_tenda_w306r-v2.dts b/target/linux/ramips/dts/rt3052_tenda_w306r-v2.dts index f683015ea0..f6c1b2d2b5 100644 --- a/target/linux/ramips/dts/rt3052_tenda_w306r-v2.dts +++ b/target/linux/ramips/dts/rt3052_tenda_w306r-v2.dts @@ -55,12 +55,12 @@ compatible = "gpio-leds"; led_sys: sys { - label = "w306r-v20:green:sys"; + label = "green:sys"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; wps { - label = "w306r-v20:green:wps"; + label = "green:wps"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3052_unbranded_wr512-3gn.dtsi b/target/linux/ramips/dts/rt3052_unbranded_wr512-3gn.dtsi index f62c18b0e2..dad0da16d5 100644 --- a/target/linux/ramips/dts/rt3052_unbranded_wr512-3gn.dtsi +++ b/target/linux/ramips/dts/rt3052_unbranded_wr512-3gn.dtsi @@ -17,27 +17,27 @@ compatible = "gpio-leds"; 3g { - label = "wr512-3gn:green:3g"; + label = "green:3g"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; gateway { - label = "wr512-3gn:green:gateway"; + label = "green:gateway"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; }; ap { - label = "wr512-3gn:green:ap"; + label = "green:ap"; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; }; led_wps: wps { - label = "wr512-3gn:green:wps"; + label = "green:wps"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; station { - label = "wr512-3gn:green:station"; + label = "green:station"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3052_unbranded_xdx-rn502j.dts b/target/linux/ramips/dts/rt3052_unbranded_xdx-rn502j.dts index 88cec02756..d94da95029 100644 --- a/target/linux/ramips/dts/rt3052_unbranded_xdx-rn502j.dts +++ b/target/linux/ramips/dts/rt3052_unbranded_xdx-rn502j.dts @@ -55,12 +55,12 @@ compatible = "gpio-leds"; wifi { - label = "xdxrn502j:green:wifi"; + label = "green:wifi"; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; }; led_power: power { - label = "xdxrn502j:green:power"; + label = "green:power"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3052_upvel_ur-326n4g.dts b/target/linux/ramips/dts/rt3052_upvel_ur-326n4g.dts index 509094d9b6..fc71437b48 100644 --- a/target/linux/ramips/dts/rt3052_upvel_ur-326n4g.dts +++ b/target/linux/ramips/dts/rt3052_upvel_ur-326n4g.dts @@ -55,27 +55,27 @@ compatible = "gpio-leds"; 3g { - label = "ur-326n4g:green:3g"; + label = "green:3g"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; gateway { - label = "ur-326n4g:green:gateway"; + label = "green:gateway"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; }; ap { - label = "ur-326n4g:green:ap"; + label = "green:ap"; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; }; led_wps: wps { - label = "ur-326n4g:green:wps"; + label = "green:wps"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; station { - label = "ur-326n4g:green:station"; + label = "green:station"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3052_upvel_ur-336un.dts b/target/linux/ramips/dts/rt3052_upvel_ur-336un.dts index 6c6461dcd6..2c00ca8945 100644 --- a/target/linux/ramips/dts/rt3052_upvel_ur-336un.dts +++ b/target/linux/ramips/dts/rt3052_upvel_ur-336un.dts @@ -55,27 +55,27 @@ compatible = "gpio-leds"; 3g { - label = "ur-336un:green:3g"; + label = "green:3g"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; gateway { - label = "ur-336un:green:gateway"; + label = "green:gateway"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; }; ap { - label = "ur-336un:green:ap"; + label = "green:ap"; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; }; led_wps: wps { - label = "ur-336un:green:wps"; + label = "green:wps"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; station { - label = "ur-336un:green:station"; + label = "green:station"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3052_zyxel_keenetic.dts b/target/linux/ramips/dts/rt3052_zyxel_keenetic.dts index 556e703cc4..6c65d34f16 100644 --- a/target/linux/ramips/dts/rt3052_zyxel_keenetic.dts +++ b/target/linux/ramips/dts/rt3052_zyxel_keenetic.dts @@ -55,19 +55,19 @@ compatible = "gpio-leds"; led_power: power { - label = "kn:green:power"; + label = "green:power"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; usb { - label = "kn:green:usb"; + label = "green:usb"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; trigger-sources = <&otg_port1>; linux,default-trigger = "usbport"; }; wps { - label = "kn:green:wps"; + label = "green:wps"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3052_zyxel_nbg-419n.dts b/target/linux/ramips/dts/rt3052_zyxel_nbg-419n.dts index 5da800cb38..db4f8d4a31 100644 --- a/target/linux/ramips/dts/rt3052_zyxel_nbg-419n.dts +++ b/target/linux/ramips/dts/rt3052_zyxel_nbg-419n.dts @@ -55,12 +55,12 @@ compatible = "gpio-leds"; led_power: power { - label = "nbg-419n:green:power"; + label = "green:power"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; wps { - label = "nbg-419n:green:wps"; + label = "green:wps"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3352_allnet_all5002.dts b/target/linux/ramips/dts/rt3352_allnet_all5002.dts index b59d3f0012..b5bdd3cd81 100644 --- a/target/linux/ramips/dts/rt3352_allnet_all5002.dts +++ b/target/linux/ramips/dts/rt3352_allnet_all5002.dts @@ -32,12 +32,12 @@ compatible = "gpio-leds"; ld1 { - label = "all5002:green:ld1"; + label = "green:ld1"; gpios = <&pcf0 0 GPIO_ACTIVE_LOW>; }; ld2 { - label = "all5002:green:ld2"; + label = "green:ld2"; gpios = <&pcf0 1 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3352_dlink_dir-615-h1.dts b/target/linux/ramips/dts/rt3352_dlink_dir-615-h1.dts index 727ba6b7ea..2233c9018c 100644 --- a/target/linux/ramips/dts/rt3352_dlink_dir-615-h1.dts +++ b/target/linux/ramips/dts/rt3352_dlink_dir-615-h1.dts @@ -19,28 +19,28 @@ compatible = "gpio-leds"; status { - label = "dir-615-h1:amber:status"; + label = "amber:status"; gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; }; led_status_green: status2 { - label = "dir-615-h1:green:status"; + label = "green:status"; gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>; default-state = "on"; }; wan { - label = "dir-615-h1:amber:wan"; + label = "amber:wan"; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; }; wan2 { - label = "dir-615-h1:green:wan"; + label = "green:wan"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; wps { - label = "dir-615-h1:blue:wps"; + label = "blue:wps"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3352_dlink_dir-620-d1.dts b/target/linux/ramips/dts/rt3352_dlink_dir-620-d1.dts index 36125ef5c9..50b762ce5a 100644 --- a/target/linux/ramips/dts/rt3352_dlink_dir-620-d1.dts +++ b/target/linux/ramips/dts/rt3352_dlink_dir-620-d1.dts @@ -18,12 +18,12 @@ compatible = "gpio-leds"; led_status: status { - label = "dir-620-d1:green:status"; + label = "green:status"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; wifi { - label = "dir-620-d1:green:wifi"; + label = "green:wifi"; gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3352_zyxel_nbg-419n-v2.dts b/target/linux/ramips/dts/rt3352_zyxel_nbg-419n-v2.dts index 0c71410cbb..84bb645c5a 100644 --- a/target/linux/ramips/dts/rt3352_zyxel_nbg-419n-v2.dts +++ b/target/linux/ramips/dts/rt3352_zyxel_nbg-419n-v2.dts @@ -18,17 +18,17 @@ compatible = "gpio-leds"; led_power: power { - label = "nbg-419n2:green:power"; + label = "green:power"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; wps { - label = "nbg-419n2:green:wps"; + label = "green:wps"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; usb { - label = "nbg-419n2:green:usb"; + label = "green:usb"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; diff --git a/target/linux/ramips/dts/rt3662_asus_rt-n56u.dts b/target/linux/ramips/dts/rt3662_asus_rt-n56u.dts index ca3da99b19..98426b86f0 100644 --- a/target/linux/ramips/dts/rt3662_asus_rt-n56u.dts +++ b/target/linux/ramips/dts/rt3662_asus_rt-n56u.dts @@ -78,22 +78,22 @@ compatible = "gpio-leds"; led_power: power { - label = "rt-n56u:blue:power"; + label = "blue:power"; gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; }; lan { - label = "rt-n56u:blue:lan"; + label = "blue:lan"; gpios = <&gpio0 19 GPIO_ACTIVE_LOW>; }; wan { - label = "rt-n56u:blue:wan"; + label = "blue:wan"; gpios = <&gpio1 3 GPIO_ACTIVE_LOW>; }; usb { - label = "rt-n56u:blue:usb"; + label = "blue:usb"; gpios = <&gpio1 0 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3662_dlink_dir-645.dts b/target/linux/ramips/dts/rt3662_dlink_dir-645.dts index 451576eed9..778ee3c1e7 100644 --- a/target/linux/ramips/dts/rt3662_dlink_dir-645.dts +++ b/target/linux/ramips/dts/rt3662_dlink_dir-645.dts @@ -42,12 +42,12 @@ compatible = "gpio-leds"; inet { - label = "dir-645:green:inet"; + label = "green:inet"; gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; }; led_wps: wps { - label = "dir-645:green:wps"; + label = "green:wps"; gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>; }; }; diff --git a/target/linux/ramips/dts/rt3662_edimax_br-6475nd.dts b/target/linux/ramips/dts/rt3662_edimax_br-6475nd.dts index 85c98599e2..c0e3193818 100644 --- a/target/linux/ramips/dts/rt3662_edimax_br-6475nd.dts +++ b/target/linux/ramips/dts/rt3662_edimax_br-6475nd.dts @@ -36,17 +36,17 @@ compatible = "gpio-leds"; led_power: power { - label = "br-6475nd:green:power"; + label = "green:power"; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; }; wlan { - label = "br-6475nd:amber:wlan"; + label = "amber:wlan"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; }; wlan_5ghz { - label = "br-6475nd:amber:wlan_5ghz"; + label = "amber:wlan_5ghz"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3662_omnima_hpm.dts b/target/linux/ramips/dts/rt3662_omnima_hpm.dts index c542079e21..c0f30ec6c7 100644 --- a/target/linux/ramips/dts/rt3662_omnima_hpm.dts +++ b/target/linux/ramips/dts/rt3662_omnima_hpm.dts @@ -33,34 +33,34 @@ compatible = "gpio-leds"; power { - label = "hpm:orange:power"; + label = "orange:power"; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; default-state = "on"; }; led_status: status { - label = "hpm:green:status"; + label = "green:status"; gpios = <&gpio0 21 GPIO_ACTIVE_LOW>; default-state = "on"; }; eth { - label = "hpm:green:eth"; + label = "green:eth"; gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; }; eth2 { - label = "hpm:red:eth"; + label = "red:eth"; gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; }; wifi { - label = "hpm:green:wifi"; + label = "green:wifi"; gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; }; wifi2 { - label = "hpm:red:wifi"; + label = "red:wifi"; gpios = <&gpio0 19 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3662_samsung_cy-swr1100.dts b/target/linux/ramips/dts/rt3662_samsung_cy-swr1100.dts index bd14699de5..ad417856b3 100644 --- a/target/linux/ramips/dts/rt3662_samsung_cy-swr1100.dts +++ b/target/linux/ramips/dts/rt3662_samsung_cy-swr1100.dts @@ -89,19 +89,19 @@ compatible = "gpio-leds"; wps { - label = "cy-swr1100:blue:wps"; + label = "blue:wps"; gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; }; usb { - label = "cy-swr1100:blue:usb"; + label = "blue:usb"; gpios = <&gpio1 1 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; }; led_power: power { - label = "cy-swr1100:blue:power"; + label = "blue:power"; gpios = <&gpio1 2 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3883_belkin_f9k1109v1.dts b/target/linux/ramips/dts/rt3883_belkin_f9k1109v1.dts index 6705486b1f..78c9bb4b6d 100644 --- a/target/linux/ramips/dts/rt3883_belkin_f9k1109v1.dts +++ b/target/linux/ramips/dts/rt3883_belkin_f9k1109v1.dts @@ -17,36 +17,36 @@ compatible = "gpio-leds"; led_status_amber: internet_amber { - label = "f9k1109v1:amber:internet"; + label = "amber:internet"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; led_status_blue: internet_blue { - label = "f9k1109v1:blue:internet"; + label = "blue:internet"; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; }; usb1 { - label = "f9k1109v1:green:usb1"; + label = "green:usb1"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; }; usb2 { - label = "f9k1109v1:green:usb2"; + label = "green:usb2"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port2>, <&ehci_port2>; linux,default-trigger = "usbport"; }; wps_amber { - label = "f9k1109v1:amber:wps"; + label = "amber:wps"; gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; }; wps_blue { - label = "f9k1109v1:blue:wps"; + label = "blue:wps"; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3883_sitecom_wlr-6000.dts b/target/linux/ramips/dts/rt3883_sitecom_wlr-6000.dts index ffa99b5946..ccf9917dac 100644 --- a/target/linux/ramips/dts/rt3883_sitecom_wlr-6000.dts +++ b/target/linux/ramips/dts/rt3883_sitecom_wlr-6000.dts @@ -29,12 +29,12 @@ compatible = "gpio-leds"; led_power: power { - label = "wlr-6000:red:power"; + label = "red:power"; gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; }; ops { - label = "wlr-6000:white:ops"; + label = "white:ops"; gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3883_trendnet_tew-691gr.dts b/target/linux/ramips/dts/rt3883_trendnet_tew-691gr.dts index 855d908c8c..03e504a6d1 100644 --- a/target/linux/ramips/dts/rt3883_trendnet_tew-691gr.dts +++ b/target/linux/ramips/dts/rt3883_trendnet_tew-691gr.dts @@ -77,7 +77,7 @@ compatible = "gpio-leds"; led_wps: wps { - label = "tew-691gr:green:wps"; + label = "green:wps"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt3883_trendnet_tew-692gr.dts b/target/linux/ramips/dts/rt3883_trendnet_tew-692gr.dts index 1f85242b7b..95a2bb75f3 100644 --- a/target/linux/ramips/dts/rt3883_trendnet_tew-692gr.dts +++ b/target/linux/ramips/dts/rt3883_trendnet_tew-692gr.dts @@ -71,12 +71,12 @@ compatible = "gpio-leds"; wps { - label = "tew-692gr:orange:wps"; + label = "orange:wps"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; led_wps_green: wps2 { - label = "tew-692gr:green:wps"; + label = "green:wps"; gpios = <&gpio1 4 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt5350_7links_px-4885.dtsi b/target/linux/ramips/dts/rt5350_7links_px-4885.dtsi index a4a520cdcb..a15d140f3e 100644 --- a/target/linux/ramips/dts/rt5350_7links_px-4885.dtsi +++ b/target/linux/ramips/dts/rt5350_7links_px-4885.dtsi @@ -28,12 +28,12 @@ compatible = "gpio-leds"; led_wifi: wifi { - label = "px-4885:orange:wifi"; + label = "orange:wifi"; gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; }; storage { - label = "px-4885:blue:storage"; + label = "blue:storage"; gpios = <&gpio0 19 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; diff --git a/target/linux/ramips/dts/rt5350_airlive_air3gii.dts b/target/linux/ramips/dts/rt5350_airlive_air3gii.dts index f68694b924..edd347b6e0 100644 --- a/target/linux/ramips/dts/rt5350_airlive_air3gii.dts +++ b/target/linux/ramips/dts/rt5350_airlive_air3gii.dts @@ -11,12 +11,12 @@ compatible = "gpio-leds"; wlan { - label = "air3gii:green:wlan"; + label = "green:wlan"; gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>; }; mobile { - label = "air3gii:green:mobile"; + label = "green:mobile"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; diff --git a/target/linux/ramips/dts/rt5350_allnet_all5003.dts b/target/linux/ramips/dts/rt5350_allnet_all5003.dts index 818e64834b..4c3d441847 100644 --- a/target/linux/ramips/dts/rt5350_allnet_all5003.dts +++ b/target/linux/ramips/dts/rt5350_allnet_all5003.dts @@ -32,12 +32,12 @@ compatible = "gpio-leds"; ld1 { - label = "all5003:green:ld1"; + label = "green:ld1"; gpios = <&pcf0 0 GPIO_ACTIVE_LOW>; }; ld2 { - label = "all5003:green:ld2"; + label = "green:ld2"; gpios = <&pcf0 1 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt5350_asiarf_awm002-evb.dtsi b/target/linux/ramips/dts/rt5350_asiarf_awm002-evb.dtsi index 840db54670..07e088652c 100644 --- a/target/linux/ramips/dts/rt5350_asiarf_awm002-evb.dtsi +++ b/target/linux/ramips/dts/rt5350_asiarf_awm002-evb.dtsi @@ -10,17 +10,17 @@ compatible = "gpio-leds"; tx { - label = "awm002-evb:green:tx"; + label = "green:tx"; gpios = <&gpio0 15 GPIO_ACTIVE_LOW>; }; rx { - label = "awm002-evb:green:rx"; + label = "green:rx"; gpios = <&gpio0 16 GPIO_ACTIVE_LOW>; }; wps { - label = "awm002-evb:green:wps"; + label = "green:wps"; gpios = <&gpio0 21 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt5350_belkin_f7c027.dts b/target/linux/ramips/dts/rt5350_belkin_f7c027.dts index fd73038dc2..e3691b75bd 100644 --- a/target/linux/ramips/dts/rt5350_belkin_f7c027.dts +++ b/target/linux/ramips/dts/rt5350_belkin_f7c027.dts @@ -18,22 +18,22 @@ compatible = "gpio-leds"; status { - label = "f7c027:blue:status"; + label = "blue:status"; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; }; power { - label = "f7c027:blue:power"; + label = "blue:power"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; led_status_orange: orange { - label = "f7c027:orange:status"; + label = "orange:status"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; }; relay { - label = "f7c027:device:relay"; + label = "device:relay"; gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>; }; }; diff --git a/target/linux/ramips/dts/rt5350_dlink_dcs-930l-b1.dts b/target/linux/ramips/dts/rt5350_dlink_dcs-930l-b1.dts index 83f63f8727..fcff567885 100644 --- a/target/linux/ramips/dts/rt5350_dlink_dcs-930l-b1.dts +++ b/target/linux/ramips/dts/rt5350_dlink_dcs-930l-b1.dts @@ -18,12 +18,12 @@ compatible = "gpio-leds"; led_power: power { - label = "dcs-930l-b1:red:power"; + label = "red:power"; gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; }; wps { - label = "dcs-930l-b1:blue:wps"; + label = "blue:wps"; gpios = <&gpio0 19 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt5350_dlink_dir-300-b7.dts b/target/linux/ramips/dts/rt5350_dlink_dir-300-b7.dts index 17fecfba1b..bcc02f3cda 100644 --- a/target/linux/ramips/dts/rt5350_dlink_dir-300-b7.dts +++ b/target/linux/ramips/dts/rt5350_dlink_dir-300-b7.dts @@ -18,12 +18,12 @@ compatible = "gpio-leds"; led_status: status { - label = "dir-300-b7:green:status"; + label = "green:status"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; wps { - label = "dir-300-b7:blue:wps"; + label = "blue:wps"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt5350_dlink_dir-320-b1.dts b/target/linux/ramips/dts/rt5350_dlink_dir-320-b1.dts index f530f418aa..bc3e431982 100644 --- a/target/linux/ramips/dts/rt5350_dlink_dir-320-b1.dts +++ b/target/linux/ramips/dts/rt5350_dlink_dir-320-b1.dts @@ -18,17 +18,17 @@ compatible = "gpio-leds"; led_status: status { - label = "dir-320-b1:green:status"; + label = "green:status"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; usb { - label = "dir-320-b1:green:usb"; + label = "green:usb"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; wps { - label = "dir-320-b1:green:wps"; + label = "green:wps"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt5350_dlink_dir-610-a1.dts b/target/linux/ramips/dts/rt5350_dlink_dir-610-a1.dts index bb9950a5f0..5bd87190a5 100644 --- a/target/linux/ramips/dts/rt5350_dlink_dir-610-a1.dts +++ b/target/linux/ramips/dts/rt5350_dlink_dir-610-a1.dts @@ -18,12 +18,12 @@ compatible = "gpio-leds"; led_status: status { - label = "dir-610-a1:green:status"; + label = "green:status"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; wps { - label = "dir-610-a1:green:wps"; + label = "green:wps"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt5350_dlink_dwr-512-b.dts b/target/linux/ramips/dts/rt5350_dlink_dwr-512-b.dts index 9bea682b43..48fb1d4ffd 100644 --- a/target/linux/ramips/dts/rt5350_dlink_dwr-512-b.dts +++ b/target/linux/ramips/dts/rt5350_dlink_dwr-512-b.dts @@ -35,27 +35,27 @@ compatible = "gpio-leds"; sms { - label = "dwr-512-b:green:sms"; + label = "green:sms"; gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>; }; led_status: status { - label = "dwr-512-b:green:status"; + label = "green:status"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; 2g { - label = "dwr-512-b:green:2g"; + label = "green:2g"; gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; }; 3g { - label = "dwr-512-b:green:3g"; + label = "green:3g"; gpios = <&gpio0 19 GPIO_ACTIVE_LOW>; }; sstrengthr { - label = "dwr-512-b:red:sigstrength"; + label = "red:sigstrength"; gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; }; sstrengthg { - label = "dwr-512-b:green:sigstrength"; + label = "green:sigstrength"; gpios = <&gpio0 21 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt5350_hame_mpr-a1.dts b/target/linux/ramips/dts/rt5350_hame_mpr-a1.dts index ad169f6729..2635134348 100644 --- a/target/linux/ramips/dts/rt5350_hame_mpr-a1.dts +++ b/target/linux/ramips/dts/rt5350_hame_mpr-a1.dts @@ -18,12 +18,12 @@ compatible = "gpio-leds"; led_system: system { - label = "mpr-a1:blue:system"; + label = "blue:system"; gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; }; power { - label = "mpr-a1:red:power"; + label = "red:power"; gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt5350_hame_mpr-a2.dts b/target/linux/ramips/dts/rt5350_hame_mpr-a2.dts index 3c17bb6310..500f6ebd01 100644 --- a/target/linux/ramips/dts/rt5350_hame_mpr-a2.dts +++ b/target/linux/ramips/dts/rt5350_hame_mpr-a2.dts @@ -18,12 +18,12 @@ compatible = "gpio-leds"; led_system: system { - label = "mpr-a2:blue:system"; + label = "blue:system"; gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; }; power { - label = "mpr-a2:red:power"; + label = "red:power"; gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt5350_hootoo_ht-tm02.dts b/target/linux/ramips/dts/rt5350_hootoo_ht-tm02.dts index dc6fab8c14..a4c8c83f82 100644 --- a/target/linux/ramips/dts/rt5350_hootoo_ht-tm02.dts +++ b/target/linux/ramips/dts/rt5350_hootoo_ht-tm02.dts @@ -18,12 +18,12 @@ compatible = "gpio-leds"; led_wlan: wlan { - label = "ht-tm02:blue:wlan"; + label = "blue:wlan"; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; }; lan { - label = "ht-tm02:green:lan"; + label = "green:lan"; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt5350_intenso_memory2move.dts b/target/linux/ramips/dts/rt5350_intenso_memory2move.dts index 14a1a78268..769aec6a50 100644 --- a/target/linux/ramips/dts/rt5350_intenso_memory2move.dts +++ b/target/linux/ramips/dts/rt5350_intenso_memory2move.dts @@ -22,12 +22,12 @@ compatible = "gpio-leds"; led_wifi: wifi { - label = "memory2move:blue:wifi"; + label = "blue:wifi"; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; }; wan { - label = "memory2move:green:wan"; + label = "green:wan"; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt5350_omnima_miniembplug.dts b/target/linux/ramips/dts/rt5350_omnima_miniembplug.dts index 24e7cdbc87..102132628e 100644 --- a/target/linux/ramips/dts/rt5350_omnima_miniembplug.dts +++ b/target/linux/ramips/dts/rt5350_omnima_miniembplug.dts @@ -11,12 +11,12 @@ compatible = "gpio-leds"; wlan { - label = "miniembplug:red:wlan"; + label = "red:wlan"; gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>; }; mobile { - label = "miniembplug:green:mobile"; + label = "green:mobile"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; diff --git a/target/linux/ramips/dts/rt5350_planex_mzk-dp150n.dts b/target/linux/ramips/dts/rt5350_planex_mzk-dp150n.dts index f683a05efb..c7e899580c 100644 --- a/target/linux/ramips/dts/rt5350_planex_mzk-dp150n.dts +++ b/target/linux/ramips/dts/rt5350_planex_mzk-dp150n.dts @@ -18,7 +18,7 @@ compatible = "gpio-leds"; led_power: power { - label = "mzk-dp150n:green:power"; + label = "green:power"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt5350_poray_m3.dts b/target/linux/ramips/dts/rt5350_poray_m3.dts index 3b7f34cf49..1fc4959639 100644 --- a/target/linux/ramips/dts/rt5350_poray_m3.dts +++ b/target/linux/ramips/dts/rt5350_poray_m3.dts @@ -18,7 +18,7 @@ compatible = "gpio-leds"; led_status: status { - label = "m3:blue:status"; + label = "blue:status"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt5350_poray_m4.dtsi b/target/linux/ramips/dts/rt5350_poray_m4.dtsi index 2413de2889..c4ca6ab6cd 100644 --- a/target/linux/ramips/dts/rt5350_poray_m4.dtsi +++ b/target/linux/ramips/dts/rt5350_poray_m4.dtsi @@ -17,7 +17,7 @@ compatible = "gpio-leds"; led_status: status { - label = "m4:blue:status"; + label = "blue:status"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt5350_poray_x5.dts b/target/linux/ramips/dts/rt5350_poray_x5.dts index dbbf59a923..bbc1c14e65 100644 --- a/target/linux/ramips/dts/rt5350_poray_x5.dts +++ b/target/linux/ramips/dts/rt5350_poray_x5.dts @@ -18,22 +18,22 @@ compatible = "gpio-leds"; led_power: power { - label = "x5:green:power"; + label = "green:power"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; 20 { - label = "x5:green:20"; + label = "green:20"; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; }; 50 { - label = "x5:green:50"; + label = "green:50"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; }; 80 { - label = "x5:green:80"; + label = "green:80"; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt5350_poray_x8.dts b/target/linux/ramips/dts/rt5350_poray_x8.dts index 1ba0a77a4f..b36dd46f57 100644 --- a/target/linux/ramips/dts/rt5350_poray_x8.dts +++ b/target/linux/ramips/dts/rt5350_poray_x8.dts @@ -18,7 +18,7 @@ compatible = "gpio-leds"; led_power: power { - label = "x8:green:power"; + label = "green:power"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt5350_tenda_3g150b.dts b/target/linux/ramips/dts/rt5350_tenda_3g150b.dts index affa5b4cfc..9bfa793646 100644 --- a/target/linux/ramips/dts/rt5350_tenda_3g150b.dts +++ b/target/linux/ramips/dts/rt5350_tenda_3g150b.dts @@ -18,12 +18,12 @@ compatible = "gpio-leds"; led_ap: ap { - label = "3g150b:blue:ap"; + label = "blue:ap"; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; }; 3g { - label = "3g150b:blue:3g"; + label = "blue:3g"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; diff --git a/target/linux/ramips/dts/rt5350_trendnet_tew-714tru.dts b/target/linux/ramips/dts/rt5350_trendnet_tew-714tru.dts index fdd72f354d..11765f10c6 100644 --- a/target/linux/ramips/dts/rt5350_trendnet_tew-714tru.dts +++ b/target/linux/ramips/dts/rt5350_trendnet_tew-714tru.dts @@ -11,14 +11,14 @@ compatible = "gpio-leds"; usb { - label = "tew-714tru:red:usb"; + label = "red:usb"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; }; wifi { - label = "tew-714tru:green:wifi"; + label = "green:wifi"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt5350_unbranded_a5-v11.dts b/target/linux/ramips/dts/rt5350_unbranded_a5-v11.dts index 7f07b3f431..42e6dcfb4e 100644 --- a/target/linux/ramips/dts/rt5350_unbranded_a5-v11.dts +++ b/target/linux/ramips/dts/rt5350_unbranded_a5-v11.dts @@ -19,12 +19,12 @@ compatible = "gpio-leds"; system { - label = "a5-v11:blue:system"; + label = "blue:system"; gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; }; led_power: power { - label = "a5-v11:red:power"; + label = "red:power"; gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt5350_vocore_vocore.dtsi b/target/linux/ramips/dts/rt5350_vocore_vocore.dtsi index 791b69448a..a905e023cb 100644 --- a/target/linux/ramips/dts/rt5350_vocore_vocore.dtsi +++ b/target/linux/ramips/dts/rt5350_vocore_vocore.dtsi @@ -144,13 +144,13 @@ led_status: status { /* UARTF_RXD */ - label = "vocore:green:status"; + label = "green:status"; gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>; }; eth { /* UARTF_DTR_N */ - label = "vocore:orange:eth"; + label = "orange:eth"; gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>; }; }; diff --git a/target/linux/ramips/dts/rt5350_wiznet_wizfi630a.dts b/target/linux/ramips/dts/rt5350_wiznet_wizfi630a.dts index 0ed1de286b..9a2c0a606c 100644 --- a/target/linux/ramips/dts/rt5350_wiznet_wizfi630a.dts +++ b/target/linux/ramips/dts/rt5350_wiznet_wizfi630a.dts @@ -22,22 +22,22 @@ compatible = "gpio-leds"; led_run: run { - label = "wizfi630a::run"; + label = ":run"; gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; }; wps { - label = "wizfi630a::wps"; + label = ":wps"; gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; }; uart1 { - label = "wizfi630a::uart1"; + label = ":uart1"; gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; }; uart2 { - label = "wizfi630a::uart2"; + label = ":uart2"; gpios = <&gpio0 21 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt5350_zorlik_zl5900v2.dts b/target/linux/ramips/dts/rt5350_zorlik_zl5900v2.dts index 04b2ce7408..0879c11206 100644 --- a/target/linux/ramips/dts/rt5350_zorlik_zl5900v2.dts +++ b/target/linux/ramips/dts/rt5350_zorlik_zl5900v2.dts @@ -18,12 +18,12 @@ compatible = "gpio-leds"; lan { - label = "zl5900v2:green:lan"; + label = "green:lan"; gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>; }; led_power: power { - label = "zl5900v2:blue:power"; + label = "blue:power"; gpios = <&gpio0 17 GPIO_ACTIVE_HIGH>; }; }; diff --git a/target/linux/ramips/dts/rt5350_zyxel_keenetic-lite-b.dts b/target/linux/ramips/dts/rt5350_zyxel_keenetic-lite-b.dts index ad5b07f886..bc16e2c5c1 100644 --- a/target/linux/ramips/dts/rt5350_zyxel_keenetic-lite-b.dts +++ b/target/linux/ramips/dts/rt5350_zyxel_keenetic-lite-b.dts @@ -20,12 +20,12 @@ compatible = "gpio-leds"; led_power: power { - label = "keenetic-lite-b:green:power"; + label = "green:power"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; wps { - label = "keenetic-lite-b:green:wps"; + label = "green:wps"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/dts/rt5350_zyxel_keenetic-start.dts b/target/linux/ramips/dts/rt5350_zyxel_keenetic-start.dts index e5e2ac998a..eb7d7ed46b 100644 --- a/target/linux/ramips/dts/rt5350_zyxel_keenetic-start.dts +++ b/target/linux/ramips/dts/rt5350_zyxel_keenetic-start.dts @@ -21,12 +21,12 @@ compatible = "gpio-leds"; led_power: power { - label = "zyxel:green:power"; + label = "green:power"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; internet { - label = "zyxel:green:internet"; + label = "green:internet"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; }; diff --git a/target/linux/ramips/mt7620/base-files/etc/board.d/01_leds b/target/linux/ramips/mt7620/base-files/etc/board.d/01_leds index ec86ed4b3f..519d643a8c 100755 --- a/target/linux/ramips/mt7620/base-files/etc/board.d/01_leds +++ b/target/linux/ramips/mt7620/base-files/etc/board.d/01_leds @@ -7,9 +7,7 @@ set_wifi_led() { ucidef_set_led_netdev "wifi_led" "wifi" "${1}" "${2:-wlan0}" } - board=$(board_name) -boardname="${board##*,}" board_config_update @@ -18,220 +16,215 @@ led_wlan="$(get_dt_led wlan)" case $board in aigale,ai-br100) - ucidef_set_led_netdev "wan" "wan" "$boardname:blue:wan" "eth0.2" - set_wifi_led "$boardname:blue:wlan" + ucidef_set_led_netdev "wan" "wan" "blue:wan" "eth0.2" + set_wifi_led "blue:wlan" ;; alfa-network,ac1200rm) - set_wifi_led "$boardname:green:wlan2g" "wlan1" + set_wifi_led "green:wlan2g" "wlan1" ;; alfa-network,r36m-e4g) - ucidef_set_led_netdev "4g" "4g" "$boardname:orange:4g" "wwan0" - ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x8" - ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x10" + ucidef_set_led_netdev "4g" "4g" "orange:4g" "wwan0" + ucidef_set_led_switch "lan" "lan" "green:lan" "switch0" "0x8" + ucidef_set_led_switch "wan" "wan" "green:wan" "switch0" "0x10" ;; alfa-network,tube-e4g) - ucidef_set_led_netdev "4g" "4g" "$boardname:green:4g" "wwan0" - ucidef_set_led_netdev "lan" "lan" "$boardname:blue:lan" "eth0" + ucidef_set_led_netdev "4g" "4g" "green:4g" "wwan0" + ucidef_set_led_netdev "lan" "lan" "blue:lan" "eth0" ;; asus,rp-n53) - ucidef_set_led_netdev "eth" "Network" "$boardname:white:back" "eth0" - set_wifi_led "$boardname:blue:wifi" + ucidef_set_led_netdev "eth" "Network" "white:back" "eth0" + set_wifi_led "blue:wifi" ;; asus,rt-n12p) - ucidef_set_led_netdev "lan" "lan" "$boardname:green:lan" eth0.1 - ucidef_set_led_netdev "wan" "wan" "$boardname:green:wan" eth0.2 - set_wifi_led "$boardname:green:air" + ucidef_set_led_netdev "lan" "lan" "green:lan" eth0.1 + ucidef_set_led_netdev "wan" "wan" "green:wan" eth0.2 + set_wifi_led "green:air" ;; asus,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" "blue:lan" eth0.1 + ucidef_set_led_netdev "wan" "wan" "blue:wan" eth0.2 + set_wifi_led "blue:air" ;; bdcom,wap2100-sk) - set_wifi_led "$boardname:green:wlan2g" + set_wifi_led "green:wlan2g" ;; comfast,cf-wr800n) - ucidef_set_led_netdev "lan" "lan" "$boardname:white:ethernet" eth0.1 - set_wifi_led "$boardname:white:wifi" + ucidef_set_led_netdev "lan" "lan" "white:ethernet" eth0.1 + set_wifi_led "white:wifi" ;; dlink,dir-810l|\ trendnet,tew-810dr) - ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x10" + ucidef_set_led_switch "wan" "wan" "green:wan" "switch0" "0x10" ;; dlink,dwr-116-a1|\ head-weblink,hdrm200|\ ohyeah,oy-0001|\ planex,mzk-ex300np|\ +zbtlink,zbt-we826-16m|\ +zbtlink,zbt-we826-32m|\ zbtlink,zbt-wr8305rt|\ zyxel,keenetic-omni|\ zyxel,keenetic-omni-ii|\ zyxel,keenetic-viva) - set_wifi_led "$boardname:green:wifi" + set_wifi_led "green:wifi" ;; dlink,dwr-118-a1) - ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x1f" - ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x20" - set_wifi_led "$boardname:green:wlan2g" "wlan1" + ucidef_set_led_switch "lan" "lan" "green:lan" "switch0" "0x1f" + ucidef_set_led_switch "wan" "wan" "green:wan" "switch0" "0x20" + set_wifi_led "green:wlan2g" "wlan1" ;; dlink,dwr-118-a2) - ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x1e" - ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x01" - set_wifi_led "$boardname:green:wlan2g" "wlan1" + ucidef_set_led_switch "lan" "lan" "green:lan" "switch0" "0x1e" + ucidef_set_led_switch "wan" "wan" "green:wan" "switch0" "0x01" + set_wifi_led "green:wlan2g" "wlan1" ;; dlink,dwr-921-c1|\ dlink,dwr-922-e2) - set_wifi_led "$boardname:green:wifi" - ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x0f" - ucidef_set_led_netdev "signalstrength" "signalstrength" "$boardname:green:sigstrength" "wwan0" "link" - ucidef_set_led_netdev "4g" "4g" "$boardname:green:4g" "wwan0" "tx rx" + ucidef_set_led_switch "lan" "lan" "green:lan" "switch0" "0x0f" + ucidef_set_led_netdev "signalstrength" "signalstrength" "green:sigstrength" "wwan0" "link" + ucidef_set_led_netdev "4g" "4g" "green:4g" "wwan0" "tx rx" + set_wifi_led "green:wifi" ;; dlink,dwr-960) - ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x2e" - ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x01" + ucidef_set_led_switch "lan" "lan" "green:lan" "switch0" "0x2e" + ucidef_set_led_switch "wan" "wan" "green:wan" "switch0" "0x01" ;; dovado,tiny-ac) - set_wifi_led "$boardname:orange:wifi" + set_wifi_led "orange:wifi" ;; edimax,br-6478ac-v2|\ edimax,ew-7478apc) - set_wifi_led "$boardname:blue:wlan" + set_wifi_led "blue:wlan" ;; edimax,ew-7476rpc|\ edimax,ew-7478ac) - ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x20" + ucidef_set_led_switch "lan" "lan" "green:lan" "switch0" "0x20" ;; elecom,wrh-300cr) - set_wifi_led "$boardname:green:wlan" - ucidef_set_led_netdev "lan" "lan" "$boardname:green:ethernet" "eth0" + ucidef_set_led_netdev "lan" "lan" "green:ethernet" "eth0" + set_wifi_led "green:wlan" ;; engenius,esr600) - ucidef_set_led_netdev "wlan5g" "5.0GHz" "$boardname:blue:wlan5g" "wlan0" - ucidef_set_led_netdev "wlan2g" "2.4GHz" "$boardname:blue:wlan2g" "wlan1" + ucidef_set_led_netdev "wlan5g" "5.0GHz" "blue:wlan5g" "wlan0" + ucidef_set_led_netdev "wlan2g" "2.4GHz" "blue:wlan2g" "wlan1" ;; glinet,gl-mt300a|\ glinet,gl-mt300n|\ glinet,gl-mt750) - set_wifi_led "$boardname:wlan" + set_wifi_led "wlan" ;; hiwifi,hc5661|\ hiwifi,hc5761) - ucidef_set_led_switch "internet" "internet" "$boardname:blue:internet" "switch0" "0x01" + ucidef_set_led_switch "internet" "internet" "blue:internet" "switch0" "0x01" ;; hiwifi,hc5861) - ucidef_set_led_switch "internet" "internet" "$boardname:blue:internet" "switch0" "0x20" + ucidef_set_led_switch "internet" "internet" "blue:internet" "switch0" "0x20" ;; hnet,c108) - ucidef_set_led_netdev "lan" "lan" "$boardname:green:lan" "eth0" - ucidef_set_led_netdev "modem" "modem" "$boardname:green:modem" "wwan0" + ucidef_set_led_netdev "lan" "lan" "green:lan" "eth0" + ucidef_set_led_netdev "modem" "modem" "green:modem" "wwan0" ;; iodata,wn-ac1167gr|\ iodata,wn-ac733gr3) - ucidef_set_led_wlan "wlan5g" "WLAN5G" "$boardname:green:wlan5g" "phy0radio" - ucidef_set_led_wlan "wlan2g" "WLAN2G" "$boardname:green:wlan2g" "phy1radio" + ucidef_set_led_wlan "wlan5g" "WLAN5G" "green:wlan5g" "phy0radio" + ucidef_set_led_wlan "wlan2g" "WLAN2G" "green:wlan2g" "phy1radio" ;; kimax,u25awf-h1) - set_wifi_led "u25awf:red:wifi" - ucidef_set_led_netdev "eth" "eth" "u25awf:green:lan" "eth0" + ucidef_set_led_netdev "eth" "eth" "green:lan" "eth0" + set_wifi_led "red:wifi" ;; kimax,u35wf) - set_wifi_led "$boardname:blue:wifi" - ucidef_set_led_netdev "eth" "ETH" "$boardname:green:eth" "eth0" + ucidef_set_led_netdev "eth" "ETH" "green:eth" "eth0" + set_wifi_led "blue:wifi" ;; kingston,mlw221|\ kingston,mlwg2|\ sanlinking,d240) - set_wifi_led "$boardname:blue:wifi" + set_wifi_led "blue:wifi" ;; lava,lr-25g001) - ucidef_set_led_netdev "wlan2g" "WiFi 2.4GHz" "$boardname:green:wlan2g" "wlan1" - ucidef_set_led_netdev "wlan5g" "WiFi 5GHz" "$boardname:green:wlan5g" "wlan0" + ucidef_set_led_netdev "wlan2g" "WiFi 2.4GHz" "green:wlan2g" "wlan1" + ucidef_set_led_netdev "wlan5g" "WiFi 5GHz" "green:wlan5g" "wlan0" ;; lenovo,newifi-y1) - 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" + ucidef_set_led_netdev "wifi" "WIFI" "blue:wifi" "wlan1" + ucidef_set_led_netdev "wifi5g" "WIFI5G" "blue:wifi5g" "wlan0" + ucidef_set_led_switch "lan" "LAN" "blue:lan" "switch0" "0x03" ;; lenovo,newifi-y1s) - 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" + ucidef_set_led_netdev "wifi" "WIFI" "yellow:wifi" "wlan1" + ucidef_set_led_netdev "wifi5g" "WIFI5G" "blue:wifi" "wlan0" + ucidef_set_led_netdev "wan" "WAN" "blue:internet" "eth0.2" "tx rx" ;; netgear,ex2700|\ netgear,wn3000rp-v3) - set_wifi_led "$boardname:green:router" + set_wifi_led "green:router" ;; netgear,ex3700|\ netgear,ex6130) - ucidef_set_led_netdev "wlan5g" "ROUTER (green)" "$boardname:green:router" "wlan0" - ucidef_set_led_netdev "wlan2g" "DEVICE (green)" "$boardname:green:device" "wlan1" + ucidef_set_led_netdev "wlan5g" "ROUTER (green)" "green:router" "wlan0" + ucidef_set_led_netdev "wlan2g" "DEVICE (green)" "green:device" "wlan1" ;; netgear,jwnr2010-v5) - ucidef_set_led_switch "lan1" "lan1" "$boardname:green:lan1" "switch0" "0x08" - ucidef_set_led_switch "lan2" "lan2" "$boardname:green:lan2" "switch0" "0x04" - ucidef_set_led_switch "lan3" "lan3" "$boardname:green:lan3" "switch0" "0x02" - ucidef_set_led_switch "lan4" "lan4" "$boardname:green:lan4" "switch0" "0x01" - ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x10" + ucidef_set_led_switch "lan1" "lan1" "green:lan1" "switch0" "0x08" + ucidef_set_led_switch "lan2" "lan2" "green:lan2" "switch0" "0x04" + ucidef_set_led_switch "lan3" "lan3" "green:lan3" "switch0" "0x02" + ucidef_set_led_switch "lan4" "lan4" "green:lan4" "switch0" "0x01" + ucidef_set_led_switch "wan" "wan" "green:wan" "switch0" "0x10" ;; phicomm,psg1208) - set_wifi_led "$boardname:white:wlan2g" + set_wifi_led "white:wlan2g" ;; planex,mzk-ex750np|\ zbtlink,zbt-we826-e) - set_wifi_led "$boardname:red:wifi" + set_wifi_led "red:wifi" ;; ravpower,rp-wd03) - ucidef_set_led_netdev "internet" "internet" "$boardname:green:wifi" "eth0" + ucidef_set_led_netdev "internet" "internet" "green:wifi" "eth0" ;; tplink,archer-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,archer-c20-v1) - ucidef_set_led_switch "lan" "lan" "$boardname:blue:lan" "switch0" "0x1e" - ucidef_set_led_switch "wan" "wan" "$boardname:blue:wan" "switch0" "0x01" + ucidef_set_led_switch "lan" "lan" "green:lan" "switch1" "0x1e" + ucidef_set_led_switch "wan" "wan" "green:wan" "switch1" "0x01" ;; +tplink,archer-c20-v1|\ tplink,archer-c20i) - ucidef_set_led_switch "lan" "lan" "$boardname:blue:lan" "switch0" "0x1e" - ucidef_set_led_switch "wan" "wan" "$boardname:blue:wan" "switch0" "0x01" + ucidef_set_led_switch "lan" "lan" "blue:lan" "switch0" "0x1e" + ucidef_set_led_switch "wan" "wan" "blue:wan" "switch0" "0x01" ;; tplink,archer-c50-v1) - ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x1e" - ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x01" + ucidef_set_led_switch "lan" "lan" "green:lan" "switch0" "0x1e" + ucidef_set_led_switch "wan" "wan" "green:wan" "switch0" "0x01" ;; tplink,archer-mr200) - ucidef_set_led_netdev "lan" "lan" "$boardname:white:lan" "eth0.1" - ucidef_set_led_netdev "wan" "wan" "$boardname:white:wan" "usb0" + ucidef_set_led_netdev "lan" "lan" "white:lan" "eth0.1" + ucidef_set_led_netdev "wan" "wan" "white:wan" "usb0" ;; tplink,re200-v1) - ucidef_set_led_netdev "lan" "lan" "$boardname:green:lan" "eth0" + ucidef_set_led_netdev "lan" "lan" "green:lan" "eth0" ;; youku,yk1) - set_wifi_led "$boardname:blue:air" - ucidef_set_led_switch "wan" "wan" "$boardname:blue:wan" "switch0" "0x10" + ucidef_set_led_switch "wan" "wan" "blue:wan" "switch0" "0x10" + set_wifi_led "blue:air" ;; zbtlink,zbt-ape522ii) - ucidef_set_led_netdev "wlan2g4" "wlan1-link" "$boardname:green:wlan2g4" "wlan1" - ucidef_set_led_netdev "sys1" "wlan1" "$boardname:green:sys1" "wlan1" "tx rx" - ucidef_set_led_netdev "sys2" "wlan0" "$boardname:green:sys2" "wlan0" "tx rx" + ucidef_set_led_netdev "wlan2g4" "wlan1-link" "green:wlan2g4" "wlan1" + ucidef_set_led_netdev "sys1" "wlan1" "green:sys1" "wlan1" "tx rx" + ucidef_set_led_netdev "sys2" "wlan0" "green:sys2" "wlan0" "tx rx" ;; zbtlink,zbt-wa05) - set_wifi_led "$boardname:blue:air" - ;; -zbtlink,zbt-we826-16m|\ -zbtlink,zbt-we826-32m) - set_wifi_led "zbt-we826:green:wifi" + set_wifi_led "blue:air" ;; zbtlink,zbt-we1026-5g-16m) - ucidef_set_led_netdev "lan" "LAN" "we1026-5g:green:lan" "eth0" - set_wifi_led "we1026-5g:green:wifi" + ucidef_set_led_netdev "lan" "LAN" "green:lan" "eth0" + set_wifi_led "green:wifi" ;; zbtlink,zbt-we1026-h-32m) - set_wifi_led "we1026-h:green:wifi" - ucidef_set_led_switch "lan" "lan" "we1026-h:green:lan" "switch0" "0x8" - ucidef_set_led_switch "wan" "wan" "we1026-h:green:wan" "switch0" "0x10" + ucidef_set_led_switch "lan" "lan" "green:lan" "switch0" "0x8" + ucidef_set_led_switch "wan" "wan" "green:wan" "switch0" "0x10" + set_wifi_led "green:wifi" ;; zbtlink,zbt-we2026) - set_wifi_led "$boardname:green:wlan" + set_wifi_led "green:wlan" ;; esac diff --git a/target/linux/ramips/mt7620/base-files/etc/uci-defaults/04_led_migration b/target/linux/ramips/mt7620/base-files/etc/uci-defaults/04_led_migration deleted file mode 100644 index 0f2e08cf7f..0000000000 --- a/target/linux/ramips/mt7620/base-files/etc/uci-defaults/04_led_migration +++ /dev/null @@ -1,50 +0,0 @@ -. /lib/functions.sh -. /lib/functions/migrations.sh - -board=$(board_name) - -case "$board" in -lenovo,newifi-y1) - migrate_leds "^y1:=newifi-y1:" - ;; -lenovo,newifi-y1s) - migrate_leds "^y1s:=newifi-y1s:" - ;; -netgear,wn3000rp-v3) - migrate_leds "^wn3000rpv3:=wn3000rp-v3:" - ;; -ravpower,rp-wd03) - migrate_leds "^wd03:=rp-wd03:" - ;; -tplink,archer-c2-v1) - migrate_leds "^c2-v1:=archer-c2-v1:" - ;; -tplink,archer-c20-v1) - migrate_leds "^c20-v1:=archer-c20-v1:" - ;; -tplink,archer-c20i) - migrate_leds "^c20i:=archer-c20i:" - ;; -tplink,archer-c50-v1) - migrate_leds "^c50:=archer-c50-v1:" - ;; -tplink,archer-mr200) - migrate_leds "^mr200:=archer-mr200:" - ;; -youku,yk1) - migrate_leds "^youku-yk1:=yk1:" - ;; -zyxel,keenetic-omni) - migrate_leds "^kn_rc:=keenetic-omni:" - ;; -zyxel,keenetic-omni-ii) - migrate_leds "^kn_rc:=keenetic-omni-ii:" - ;; -zyxel,keenetic-viva) - migrate_leds "^kng_rc:=keenetic-viva:" - ;; -esac - -migrations_apply system - -exit 0 diff --git a/target/linux/ramips/mt7621/base-files/etc/board.d/01_leds b/target/linux/ramips/mt7621/base-files/etc/board.d/01_leds index 8c3be541b0..052b4ed5bb 100755 --- a/target/linux/ramips/mt7621/base-files/etc/board.d/01_leds +++ b/target/linux/ramips/mt7621/base-files/etc/board.d/01_leds @@ -7,9 +7,7 @@ set_wifi_led() { ucidef_set_led_netdev "wifi_led" "wifi" "${1}" "${2:-wlan0}" } - board=$(board_name) -boardname="${board##*,}" board_config_update @@ -18,51 +16,52 @@ led_wlan="$(get_dt_led wlan)" case $board in d-team,newifi-d2) - ucidef_set_led_netdev "internet" "internet" "$boardname:amber:internet" "wan" - 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_netdev "internet" "internet" "amber:internet" "wan" + ucidef_set_led_netdev "wlan2g" "WiFi 2.4GHz" "blue:wlan2g" "wlan0" + ucidef_set_led_netdev "wlan5g" "WiFi 5GHz" "blue:wlan5g" "wlan1" ;; d-team,pbr-m1|\ -gehua,ghl-r-001) - ucidef_set_led_netdev "internet" "internet" "$boardname:blue:internet" "wan" +gehua,ghl-r-001|\ +xzwifi,creativebox-v1) + ucidef_set_led_netdev "internet" "internet" "blue:internet" "wan" ;; dlink,dir-1960-a1|\ dlink,dir-2660-a1) - ucidef_set_led_netdev "wan" "wan" "$boardname:white:net" "wan" + ucidef_set_led_netdev "wan" "wan" "white:net" "wan" ;; dlink,dir-860l-b1|\ dlink,dir-867-a1|\ dlink,dir-878-a1|\ dlink,dir-882-a1) - ucidef_set_led_netdev "wan" "wan" "$boardname:green:net" "wan" + ucidef_set_led_netdev "wan" "wan" "green:net" "wan" ;; gnubee,gb-pc1|\ gnubee,gb-pc2) - ucidef_set_led_netdev "lan1" "lan1" "$boardname:green:lan1" "lan1" - ucidef_set_led_netdev "lan2" "lan2" "$boardname:green:lan2" "lan2" + ucidef_set_led_netdev "lan1" "lan1" "green:lan1" "lan1" + ucidef_set_led_netdev "lan2" "lan2" "green:lan2" "lan2" ;; linksys,ea7300-v1|\ linksys,ea7300-v2|\ linksys,ea7500-v2) - ucidef_set_led_netdev "lan1" "lan1 link" "$boardname:green:lan1" "lan1" "link" - ucidef_set_led_netdev "lan2" "lan2 link" "$boardname:green:lan2" "lan2" "link" - ucidef_set_led_netdev "lan3" "lan3 link" "$boardname:green:lan3" "lan3" "link" - ucidef_set_led_netdev "lan4" "lan4 link" "$boardname:green:lan4" "lan4" "link" - ucidef_set_led_netdev "wan" "wan link" "$boardname:green:wan" "wan" "link" + ucidef_set_led_netdev "lan1" "lan1 link" "green:lan1" "lan1" "link" + ucidef_set_led_netdev "lan2" "lan2 link" "green:lan2" "lan2" "link" + ucidef_set_led_netdev "lan3" "lan3 link" "green:lan3" "lan3" "link" + ucidef_set_led_netdev "lan4" "lan4 link" "green:lan4" "lan4" "link" + ucidef_set_led_netdev "wan" "wan link" "green:wan" "wan" "link" ;; mikrotik,routerboard-760igs) - ucidef_set_led_netdev "sfp" "SFP" "$boardname:blue:sfp" "sfp" + ucidef_set_led_netdev "sfp" "SFP" "blue:sfp" "sfp" ;; mikrotik,routerboard-m11g) ucidef_set_rssimon "wlan0" "200000" "1" - ucidef_set_led_rssi "rssilow" "RSSILOW" "$boardname:green:rssi0" "wlan0" "1" "100" - ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "$boardname:green:rssi1" "wlan0" "20" "100" - ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "$boardname:green:rssi2" "wlan0" "40" "100" - ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "$boardname:green:rssi3" "wlan0" "60" "100" - ucidef_set_led_rssi "rssiveryhigh" "RSSIVERYHIGH" "$boardname:green:rssi4" "wlan0" "80" "100" + ucidef_set_led_rssi "rssilow" "RSSILOW" "green:rssi0" "wlan0" "1" "100" + ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "green:rssi1" "wlan0" "20" "100" + ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "green:rssi2" "wlan0" "40" "100" + ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "green:rssi3" "wlan0" "60" "100" + ucidef_set_led_rssi "rssiveryhigh" "RSSIVERYHIGH" "green:rssi4" "wlan0" "80" "100" ;; mtc,wr1201) - ucidef_set_led_netdev "eth_link" "LAN link" "$boardname:green:eth_link" "br-lan" + ucidef_set_led_netdev "eth_link" "LAN link" "green:eth_link" "br-lan" ;; netgear,r6220|\ netgear,r6260|\ @@ -70,38 +69,35 @@ netgear,r6350|\ netgear,r6850|\ netgear,wac124|\ netgear,wndr3700-v5) - ucidef_set_led_netdev "wan" "wan" "$boardname:green:wan" "wan" + ucidef_set_led_netdev "wan" "wan" "green:wan" "wan" ;; netgear,r6700-v2|\ netgear,r6800) - ucidef_set_led_netdev "wan" "WAN" "$boardname:white:wan" "wan" - ucidef_set_led_netdev "lan1" "LAN1" "$boardname:white:lan1" "lan1" - ucidef_set_led_netdev "lan2" "LAN2" "$boardname:white:lan2" "lan2" - ucidef_set_led_netdev "lan3" "LAN3" "$boardname:white:lan3" "lan3" - ucidef_set_led_netdev "lan4" "LAN4" "$boardname:white:lan4" "lan4" + ucidef_set_led_netdev "wan" "WAN" "white:wan" "wan" + ucidef_set_led_netdev "lan1" "LAN1" "white:lan1" "lan1" + ucidef_set_led_netdev "lan2" "LAN2" "white:lan2" "lan2" + ucidef_set_led_netdev "lan3" "LAN3" "white:lan3" "lan3" + ucidef_set_led_netdev "lan4" "LAN4" "white:lan4" "lan4" ;; tplink,re350-v1) - ucidef_set_led_netdev "wifi2g" "Wifi 2.4G" "$boardname:blue:wifi2G" "wlan0" - ucidef_set_led_netdev "wifi5g" "Wifi 5G" "$boardname:blue:wifi5G" "wlan1" - ucidef_set_led_netdev "eth_act" "LAN act" "$boardname:green:eth_act" "lan" "tx rx" - ucidef_set_led_netdev "eth_link" "LAN link" "$boardname:green:eth_link" "lan" "link" + ucidef_set_led_netdev "wifi2g" "Wifi 2.4G" "blue:wifi2G" "wlan0" + ucidef_set_led_netdev "wifi5g" "Wifi 5G" "blue:wifi5G" "wlan1" + ucidef_set_led_netdev "eth_act" "LAN act" "green:eth_act" "lan" "tx rx" + ucidef_set_led_netdev "eth_link" "LAN link" "green:eth_link" "lan" "link" ;; tplink,re500-v1|\ tplink,re650-v1) - ucidef_set_led_netdev "eth_act" "LAN act" "$boardname:green:eth_act" "lan" "tx rx" - ucidef_set_led_netdev "eth_link" "LAN link" "$boardname:green:eth_link" "lan" "link" - ;; -xzwifi,creativebox-v1) - ucidef_set_led_netdev "internet" "internet" "$boardname:blue:internet" "wan" + ucidef_set_led_netdev "eth_act" "LAN act" "green:eth_act" "lan" "tx rx" + ucidef_set_led_netdev "eth_link" "LAN link" "green:eth_link" "lan" "link" ;; xiaomi,mi-router-ac2100) - ucidef_set_led_netdev "wan-blue" "WAN (blue)" "$boardname:blue:wan" "wan" + ucidef_set_led_netdev "wan-blue" "WAN (blue)" "blue:wan" "wan" ;; xiaomi,redmi-router-ac2100) - ucidef_set_led_netdev "wan" "wan" "$boardname:white:wan" "wan" + ucidef_set_led_netdev "wan" "wan" "white:wan" "wan" ;; youhua,wr1200js) - ucidef_set_led_netdev "internet" "INTERNET" "$boardname:green:wan" "wan" + ucidef_set_led_netdev "internet" "INTERNET" "green:wan" "wan" ;; esac diff --git a/target/linux/ramips/mt7621/base-files/etc/uci-defaults/04_led_migration b/target/linux/ramips/mt7621/base-files/etc/uci-defaults/04_led_migration deleted file mode 100644 index 4b298654b6..0000000000 --- a/target/linux/ramips/mt7621/base-files/etc/uci-defaults/04_led_migration +++ /dev/null @@ -1,27 +0,0 @@ -. /lib/functions.sh -. /lib/functions/migrations.sh - -board=$(board_name) -boardonly="${board##*,}" - -case "$board" in -asus,rt-ac65p) - migrate_leds "^rt-ac85p:=rt-ac65p:" - ;; -mikrotik,routerboard-750gr3) - migrate_leds "^rb750gr3:=$boardonly:" - ;; -mikrotik,routerboard-m11g) - migrate_leds "^rbm11g:=$boardonly:" - ;; -mikrotik,routerboard-m33g) - migrate_leds "^rbm33g:=$boardonly:" - ;; -netgear,wndr3700-v5) - migrate_leds "^wndr3700v5:=$boardonly:" - ;; -esac - -migrations_apply system - -exit 0 diff --git a/target/linux/ramips/mt76x8/base-files/etc/board.d/01_leds b/target/linux/ramips/mt76x8/base-files/etc/board.d/01_leds index 52be48e1ef..3108688da3 100755 --- a/target/linux/ramips/mt76x8/base-files/etc/board.d/01_leds +++ b/target/linux/ramips/mt76x8/base-files/etc/board.d/01_leds @@ -7,9 +7,7 @@ set_wifi_led() { ucidef_set_led_netdev "wifi_led" "wifi" "${1}" "${2:-wlan0}" } - board=$(board_name) -boardname="${board##*,}" board_config_update @@ -18,7 +16,7 @@ led_wlan="$(get_dt_led wlan)" case $board in alfa-network,awusfree1) - set_wifi_led "$boardname:blue:wlan" + set_wifi_led "blue:wlan" ;; asus,rt-n10p-v3|\ asus,rt-n11p-b1|\ @@ -26,119 +24,112 @@ asus,rt-n12-vp-b1|\ netgear,r6020|\ netgear,r6080|\ netgear,r6120) - ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0xf" - ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x10" + ucidef_set_led_switch "lan" "lan" "green:lan" "switch0" "0xf" + ucidef_set_led_switch "wan" "wan" "green:wan" "switch0" "0x10" ;; cudy,wr1000) - ucidef_set_led_switch "wan" "wan" "$boardname:blue:wan" "switch0" "0x10" - ucidef_set_led_switch "lan1" "lan1" "$boardname:blue:lan1" "switch0" "0x08" - ucidef_set_led_switch "lan2" "lan2" "$boardname:blue:lan2" "switch0" "0x04" + ucidef_set_led_switch "wan" "wan" "blue:wan" "switch0" "0x10" + ucidef_set_led_switch "lan1" "lan1" "blue:lan1" "switch0" "0x08" + ucidef_set_led_switch "lan2" "lan2" "blue:lan2" "switch0" "0x04" ;; glinet,gl-mt300n-v2) - set_wifi_led "$boardname:red:wlan" - ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x1" + set_wifi_led "red:wlan" + ucidef_set_led_switch "wan" "wan" "green:wan" "switch0" "0x1" ;; hilink,hlk-7628n|\ skylab,skw92a) - set_wifi_led "$boardname:green:wlan" + set_wifi_led "green:wlan" ;; hiwifi,hc5661a|\ hiwifi,hc5761a) - ucidef_set_led_switch "internet" "internet" "$boardname:blue:internet" "switch0" "0x10" + ucidef_set_led_switch "internet" "internet" "blue:internet" "switch0" "0x10" ;; mediatek,linkit-smart-7688) - ucidef_set_led_wlan "wifi" "wifi" "linkit-smart-7688:orange:wifi" "phy0tpt" + ucidef_set_led_wlan "wifi" "wifi" "orange:wifi" "phy0tpt" ;; rakwireless,rak633) - set_wifi_led "$boardname:blue:wifi" + set_wifi_led "blue:wifi" ;; tama,w06) - ucidef_set_led_netdev "wan" "WAN" "$boardname:green:wan" "eth0" - ucidef_set_led_wlan "wlan" "WLAN" "$boardname:green:wlan" "phy0tpt" + ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth0" + ucidef_set_led_wlan "wlan" "WLAN" "green:wlan" "phy0tpt" ;; tplink,archer-c20-v4|\ -tplink,archer-c20-v5) - ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x1e" - ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x01" +tplink,archer-c20-v5|\ +tplink,tl-wr841n-v14|\ +tplink,tl-wr850n-v2) + ucidef_set_led_switch "lan" "lan" "green:lan" "switch0" "0x1e" + ucidef_set_led_switch "wan" "wan" "green:wan" "switch0" "0x01" ;; tplink,archer-c50-v3|\ tplink,archer-c50-v4) - 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 "wlan2g" "wlan2g" "$boardname:green:wlan2g" "phy0tpt" - ucidef_set_led_wlan "wlan5g" "wlan5g" "$boardname:green:wlan5g" "phy1tpt" + ucidef_set_led_switch "lan" "lan" "green:lan" "switch0" "0x1e" + ucidef_set_led_switch "wan" "wan" "green:wan" "switch0" "0x01" + ucidef_set_led_wlan "wlan2g" "wlan2g" "green:wlan2g" "phy0tpt" + ucidef_set_led_wlan "wlan5g" "wlan5g" "green:wlan5g" "phy1tpt" ;; tplink,re200-v2|\ tplink,re200-v3|\ tplink,re220-v2|\ tplink,tl-mr3020-v3|\ tplink,tl-wa801nd-v5) - ucidef_set_led_netdev "lan" "lan" "$boardname:green:lan" "eth0" + ucidef_set_led_netdev "lan" "lan" "green:lan" "eth0" ;; tplink,tl-mr3420-v5|\ +tplink,tl-wr840n-v4|\ tplink,tl-wr842n-v5) - 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-wr840n-v4) - 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" + ucidef_set_led_wlan "wlan2g" "wlan2g" "green:wlan" "phy0tpt" + ucidef_set_led_switch "lan" "lan" "green:lan" "switch0" "0x1e" + ucidef_set_led_switch "wan" "wan" "green:wan" "switch0" "0x01" ;; tplink,tl-wr841n-v13) - ucidef_set_led_wlan "wlan2g" "wlan2g" "$boardname:green:wlan" "phy0tpt" - ucidef_set_led_switch "lan1" "lan1" "$boardname:green:lan1" "switch0" "0x2" - ucidef_set_led_switch "lan2" "lan2" "$boardname:green:lan2" "switch0" "0x4" - ucidef_set_led_switch "lan3" "lan3" "$boardname:green:lan3" "switch0" "0x8" - ucidef_set_led_switch "lan4" "lan4" "$boardname:green:lan4" "switch0" "0x10" - ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x01" - ;; -tplink,tl-wr841n-v14|\ -tplink,tl-wr850n-v2) - 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 "wlan2g" "wlan2g" "green:wlan" "phy0tpt" + ucidef_set_led_switch "lan1" "lan1" "green:lan1" "switch0" "0x2" + ucidef_set_led_switch "lan2" "lan2" "green:lan2" "switch0" "0x4" + ucidef_set_led_switch "lan3" "lan3" "green:lan3" "switch0" "0x8" + ucidef_set_led_switch "lan4" "lan4" "green:lan4" "switch0" "0x10" + ucidef_set_led_switch "wan" "wan" "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" "0x10" - ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x10" + ucidef_set_led_wlan "wlan2g" "wlan2g" "green:wlan" "phy0tpt" + ucidef_set_led_switch "lan" "lan" "green:lan" "switch0" "0x10" + ucidef_set_led_switch "wan" "wan" "green:wan" "switch0" "0x10" ;; unielec,u7628-01-16m) - ucidef_set_led_switch "lan1" "lan1" "u7628-01:green:lan1" "switch0" "0x2" - ucidef_set_led_switch "lan2" "lan2" "u7628-01:green:lan2" "switch0" "0x4" - 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_wifi_led "u7628-01:green:wlan" + ucidef_set_led_switch "lan1" "lan1" "green:lan1" "switch0" "0x2" + ucidef_set_led_switch "lan2" "lan2" "green:lan2" "switch0" "0x4" + ucidef_set_led_switch "lan3" "lan3" "green:lan3" "switch0" "0x8" + ucidef_set_led_switch "lan4" "lan4" "green:lan4" "switch0" "0x10" + ucidef_set_led_switch "wan" "wan" "green:wan" "switch0" "0x01" + set_wifi_led "green:wlan" ;; wavlink,wl-wn570ha1) - ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x01" + ucidef_set_led_switch "wan" "wan" "green:wan" "switch0" "0x01" ucidef_set_rssimon "wlan0" "200000" "1" - ucidef_set_led_rssi "wifi-low" "wifi-low" "$boardname:green:wifi-low" "wlan0" "1" "49" - ucidef_set_led_rssi "wifi-med" "wifi-med" "$boardname:green:wifi-med" "wlan0" "50" "84" - ucidef_set_led_rssi "wifi-high" "wifi-high" "$boardname:green:wifi-high" "wlan0" "85" "100" - set_wifi_led "$boardname:green:wifi" + ucidef_set_led_rssi "wifi-low" "wifi-low" "green:wifi-low" "wlan0" "1" "49" + ucidef_set_led_rssi "wifi-med" "wifi-med" "green:wifi-med" "wlan0" "50" "84" + ucidef_set_led_rssi "wifi-high" "wifi-high" "green:wifi-high" "wlan0" "85" "100" + set_wifi_led "green:wifi" ;; wavlink,wl-wn575a3) ucidef_set_rssimon "wlan1" "200000" "1" - ucidef_set_led_rssi "wifi-low" "wifi-low" "$boardname:green:wifi-low" "wlan1" "1" "49" - ucidef_set_led_rssi "wifi-med" "wifi-med" "$boardname:green:wifi-med" "wlan1" "50" "84" - ucidef_set_led_rssi "wifi-high" "wifi-high" "$boardname:green:wifi-high" "wlan1" "85" "100" + ucidef_set_led_rssi "wifi-low" "wifi-low" "green:wifi-low" "wlan1" "1" "49" + ucidef_set_led_rssi "wifi-med" "wifi-med" "green:wifi-med" "wlan1" "50" "84" + ucidef_set_led_rssi "wifi-high" "wifi-high" "green:wifi-high" "wlan1" "85" "100" ;; wavlink,wl-wn577a2) - ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x8" - ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x10" + ucidef_set_led_switch "lan" "lan" "green:lan" "switch0" "0x8" + ucidef_set_led_switch "wan" "wan" "green:wan" "switch0" "0x10" ;; zbtlink,zbt-we1226) - set_wifi_led "$boardname:green:wlan" - ucidef_set_led_switch "lan1" "LAN1" "$boardname:green:lan1" "switch0" "0x01" - ucidef_set_led_switch "lan2" "LAN2" "$boardname:green:lan2" "switch0" "0x02" - ucidef_set_led_switch "wan" "WAN" "$boardname:green:wan" "switch0" "0x10" + set_wifi_led "green:wlan" + ucidef_set_led_switch "lan1" "LAN1" "green:lan1" "switch0" "0x01" + ucidef_set_led_switch "lan2" "LAN2" "green:lan2" "switch0" "0x02" + ucidef_set_led_switch "wan" "WAN" "green:wan" "switch0" "0x10" ;; zyxel,keenetic-extra-ii) - set_wifi_led "$boardname:green:wifi" - ucidef_set_led_switch "internet" "internet" "$boardname:green:internet" "switch0" "0x01" + set_wifi_led "green:wifi" + ucidef_set_led_switch "internet" "internet" "green:internet" "switch0" "0x01" ;; esac diff --git a/target/linux/ramips/mt76x8/base-files/etc/uci-defaults/04_led_migration b/target/linux/ramips/mt76x8/base-files/etc/uci-defaults/04_led_migration deleted file mode 100644 index 44815b2ddc..0000000000 --- a/target/linux/ramips/mt76x8/base-files/etc/uci-defaults/04_led_migration +++ /dev/null @@ -1,20 +0,0 @@ -. /lib/functions.sh -. /lib/functions/migrations.sh - -board=$(board_name) - -case "$board" in -tplink,archer-c20-v4) - migrate_leds "^c20-v4:=archer-c20-v4:" - ;; -tplink,archer-c50-v3) - migrate_leds "^c50-v3:=archer-c50-v3:" - ;; -tplink,archer-c50-v4) - migrate_leds "^c50-v4:=archer-c50-v4:" - ;; -esac - -migrations_apply system - -exit 0 diff --git a/target/linux/ramips/rt288x/base-files/etc/board.d/01_leds b/target/linux/ramips/rt288x/base-files/etc/board.d/01_leds index a042ecfbda..2a3cf53c99 100755 --- a/target/linux/ramips/rt288x/base-files/etc/board.d/01_leds +++ b/target/linux/ramips/rt288x/base-files/etc/board.d/01_leds @@ -7,9 +7,7 @@ set_wifi_led() { ucidef_set_led_netdev "wifi_led" "wifi" "${1}" "${2:-wlan0}" } - board=$(board_name) -boardname="${board##*,}" board_config_update @@ -22,7 +20,7 @@ airlink101,ar725w) set_wifi_led "rt2800soc-phy0::radio" ;; belkin,f5d8235-v1) - set_wifi_led "$boardname:blue:wireless" + set_wifi_led "blue:wireless" ;; ralink,v11st-fe) set_wifi_led "rt2800pci-phy0::radio" diff --git a/target/linux/ramips/rt305x/base-files/etc/board.d/01_leds b/target/linux/ramips/rt305x/base-files/etc/board.d/01_leds index 8260b09821..3f6b70341c 100755 --- a/target/linux/ramips/rt305x/base-files/etc/board.d/01_leds +++ b/target/linux/ramips/rt305x/base-files/etc/board.d/01_leds @@ -7,9 +7,7 @@ set_wifi_led() { ucidef_set_led_netdev "wifi_led" "wifi" "${1}" "${2:-wlan0}" } - board=$(board_name) -boardname="${board##*,}" board_config_update @@ -18,14 +16,15 @@ led_wlan="$(get_dt_led wlan)" case $board in 7links,px-4885-4m|\ -7links,px-4885-8m) - set_wifi_led "px-4885:orange:wifi" +7links,px-4885-8m|\ +fon,fonera-20n) + set_wifi_led "orange:wifi" ;; airlive,air3gii|\ aximcom,mr-102n|\ edimax,3g-6200nl|\ netgear,wnce2001) - set_wifi_led "$boardname:green:wlan" + set_wifi_led "green:wlan" ;; alfa-network,w502u|\ dlink,dir-300-b1|\ @@ -49,61 +48,58 @@ zyxel,nbg-419n-v2) allnet,all0256n-4m|\ allnet,all0256n-8m) ucidef_set_rssimon "wlan0" "200000" "1" - ucidef_set_led_rssi "rssilow" "RSSILOW" "all0256n:green:rssilow" "wlan0" "1" "40" "0" "6" - ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "all0256n:green:rssimed" "wlan0" "30" "80" "-29" "5" - ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "all0256n:green:rssihigh" "wlan0" "70" "100" "-69" "8" + ucidef_set_led_rssi "rssilow" "RSSILOW" "green:rssilow" "wlan0" "1" "40" "0" "6" + ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "green:rssimed" "wlan0" "30" "80" "-29" "5" + ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "green:rssihigh" "wlan0" "70" "100" "-69" "8" set_wifi_led "rt2800pci-phy0::radio" ;; alphanetworks,asl26555-8m|\ alphanetworks,asl26555-16m) - ucidef_set_led_netdev "eth" "ETH" "asl26555:green:eth" "eth0" - set_wifi_led "asl26555:green:wlan" + ucidef_set_led_netdev "eth" "ETH" "green:eth" "eth0" + set_wifi_led "green:wlan" ;; asiarf,awapn2403) set_wifi_led "rt2800soc-phy0::radio" ;; dlink,dcs-930l-b1) - ucidef_set_led_netdev "wifi" "WiFi" "$boardname:blue:wps" + ucidef_set_led_netdev "wifi" "WiFi" "blue:wps" ;; dlink,dir-615-d) - ucidef_set_led_netdev "wan" "WAN (green)" "$boardname:green:wan" "eth0.2" + ucidef_set_led_netdev "wan" "WAN (green)" "green:wan" "eth0.2" set_wifi_led "rt2800soc-phy0::radio" ;; dlink,dir-620-d1|\ trendnet,tew-714tru) - set_wifi_led "$boardname:green:wifi" + set_wifi_led "green:wifi" ;; edimax,3g-6200n|\ planex,mzk-w300nh2) - set_wifi_led "$boardname:amber:wlan" - ;; -fon,fonera-20n) - set_wifi_led "$boardname:orange:wifi" + set_wifi_led "amber:wlan" ;; hauppauge,broadway) - set_wifi_led "$boardname:red:wps_active" + set_wifi_led "red:wps_active" ;; hootoo,ht-tm02) - ucidef_set_led_netdev "eth" "Ethernet" "$boardname:green:lan" "eth0" - set_wifi_led "$boardname:blue:wlan" + ucidef_set_led_netdev "eth" "Ethernet" "green:lan" "eth0" + set_wifi_led "blue:wlan" ;; huawei,hg255d) - set_wifi_led "$boardname:green:wlan" - ucidef_set_led_netdev "internet" "internet" "$boardname:green:internet" "eth0.2" + set_wifi_led "green:wlan" + ucidef_set_led_netdev "internet" "internet" "green:internet" "eth0.2" ;; intenso,memory2move) - set_wifi_led "$boardname:blue:wifi" - ucidef_set_led_netdev "eth" "Ethernet" "$boardname:green:wan" "eth0" + set_wifi_led "blue:wifi" + ucidef_set_led_netdev "eth" "Ethernet" "green:wan" "eth0" ;; omnima,miniembplug) - set_wifi_led "$boardname:red:wlan" + set_wifi_led "red:wlan" ;; vocore,vocore-8m|\ vocore,vocore-16m) - ucidef_set_led_netdev "eth" "ETH" "vocore:orange:eth" "eth0" + ucidef_set_led_netdev "eth" "ETH" "orange:eth" "eth0" ;; zorlik,zl5900v2) - ucidef_set_led_netdev "lan" "lan" "$boardname:green:lan" eth0 + ucidef_set_led_netdev "lan" "lan" "green:lan" "eth0" ;; esac diff --git a/target/linux/ramips/rt305x/base-files/etc/uci-defaults/04_led_migration b/target/linux/ramips/rt305x/base-files/etc/uci-defaults/04_led_migration deleted file mode 100644 index 1009154cac..0000000000 --- a/target/linux/ramips/rt305x/base-files/etc/uci-defaults/04_led_migration +++ /dev/null @@ -1,17 +0,0 @@ -. /lib/functions.sh -. /lib/functions/migrations.sh - -board=$(board_name) - -case "$board" in -fon,fonera-20n) - migrate_leds "^fonera20n:=fonera-20n:" - ;; -intenso,memory2move) - migrate_leds "^m2m:=memory2move:" - ;; -esac - -migrations_apply system - -exit 0 diff --git a/target/linux/ramips/rt3883/base-files/etc/board.d/01_leds b/target/linux/ramips/rt3883/base-files/etc/board.d/01_leds index 1a72112c6f..d06d47336b 100755 --- a/target/linux/ramips/rt3883/base-files/etc/board.d/01_leds +++ b/target/linux/ramips/rt3883/base-files/etc/board.d/01_leds @@ -7,9 +7,7 @@ set_wifi_led() { ucidef_set_led_netdev "wifi_led" "wifi" "${1}" "${2:-wlan0}" } - board=$(board_name) -boardname="${board##*,}" board_config_update @@ -18,14 +16,14 @@ led_wlan="$(get_dt_led wlan)" case $board in belkin,f9k1109v1) - ucidef_set_led_netdev "lan" "lan" "$boardname:blue:wps" "eth0" + ucidef_set_led_netdev "lan" "lan" "blue:wps" "eth0" ;; edimax,br-6475nd) - set_wifi_led "$boardname:amber:wlan" + set_wifi_led "amber:wlan" ;; omnima,hpm) - ucidef_set_led_netdev "eth" "ETH" "$boardname:green:eth" "eth0" - set_wifi_led "$boardname:green:wifi" + ucidef_set_led_netdev "eth" "ETH" "green:eth" "eth0" + set_wifi_led "green:wifi" ;; esac |