ipq40xx: update ASUS RT-AC58U leds DTS nodes
- use color, function, function-enumerator properties. - removes the label properties from LED nodes. - add panic-indicator to the blue power/status LED. Note: yes this brings the combined LAN/"switch" LED sort of back, though I fully admit, it's a bit jank. Do you know a better option? then please tell/make a PR! Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
This commit is contained in:
parent
4f7835cbf0
commit
3f442c1eb9
@ -20,8 +20,8 @@ asus,rt-ac42u)
|
|||||||
ucidef_set_led_netdev "wan" "WAN" "blue:wan" "wan"
|
ucidef_set_led_netdev "wan" "WAN" "blue:wan" "wan"
|
||||||
;;
|
;;
|
||||||
asus,rt-ac58u)
|
asus,rt-ac58u)
|
||||||
ucidef_set_led_netdev "wan" "WAN" "blue:wan" "eth1"
|
ucidef_set_led_netdev "wan" "WAN" "blue:wan" "wan"
|
||||||
ucidef_set_led_switch "lan" "LAN" "blue:lan" "switch0" "0x1e"
|
ucidef_set_led_netdev "lan" "LAN" "blue:lan" "br-lan"
|
||||||
;;
|
;;
|
||||||
avm,fritzbox-4040)
|
avm,fritzbox-4040)
|
||||||
ucidef_set_led_wlan "wlan" "WLAN" "green:wlan" "phy0tpt" "phy1tpt"
|
ucidef_set_led_wlan "wlan" "WLAN" "green:wlan" "phy0tpt" "phy1tpt"
|
||||||
|
@ -6,6 +6,9 @@ case "$board" in
|
|||||||
asus,map-ac2200)
|
asus,map-ac2200)
|
||||||
migrate_leds ':chan=-'
|
migrate_leds ':chan=-'
|
||||||
;;
|
;;
|
||||||
|
asus,rt-ac58u)
|
||||||
|
migrate_leds ":status=:power" ":wlan2G=:wlan-2" ":wlan5G=:wlan-5"
|
||||||
|
;;
|
||||||
engenius,emr3500)
|
engenius,emr3500)
|
||||||
migrate_leds "emr3500:="
|
migrate_leds "emr3500:="
|
||||||
;;
|
;;
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
#include <dt-bindings/gpio/gpio.h>
|
#include <dt-bindings/gpio/gpio.h>
|
||||||
#include <dt-bindings/input/input.h>
|
#include <dt-bindings/input/input.h>
|
||||||
#include <dt-bindings/soc/qcom,tcsr.h>
|
#include <dt-bindings/soc/qcom,tcsr.h>
|
||||||
|
#include <dt-bindings/leds/common.h>
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
model = "ASUS RT-AC58U";
|
model = "ASUS RT-AC58U";
|
||||||
@ -101,37 +102,50 @@
|
|||||||
leds {
|
leds {
|
||||||
compatible = "gpio-leds";
|
compatible = "gpio-leds";
|
||||||
|
|
||||||
led_power: status {
|
led_power: led-0 {
|
||||||
label = "blue:status";
|
color = <LED_COLOR_ID_BLUE>;
|
||||||
|
function = LED_FUNCTION_POWER;
|
||||||
gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
|
gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
|
||||||
|
panic-indicator;
|
||||||
};
|
};
|
||||||
|
|
||||||
wan {
|
led-1 {
|
||||||
label = "blue:wan";
|
color = <LED_COLOR_ID_BLUE>;
|
||||||
|
function = LED_FUNCTION_WAN;
|
||||||
gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
|
gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
|
||||||
|
/*
|
||||||
|
* linux,default-trigger = "90000.mdio-1:04:link";
|
||||||
|
* sadly still lacks rx+tx
|
||||||
|
*/
|
||||||
};
|
};
|
||||||
|
|
||||||
wlan2G {
|
led-2 {
|
||||||
label = "blue:wlan2G";
|
color = <LED_COLOR_ID_BLUE>;
|
||||||
|
function = LED_FUNCTION_WLAN;
|
||||||
|
function-enumerator = <2>;
|
||||||
gpios = <&tlmm 58 GPIO_ACTIVE_HIGH>;
|
gpios = <&tlmm 58 GPIO_ACTIVE_HIGH>;
|
||||||
linux,default-trigger = "phy0tpt";
|
linux,default-trigger = "phy0tpt";
|
||||||
};
|
};
|
||||||
|
|
||||||
wlan5G {
|
led-3 {
|
||||||
label = "blue:wlan5G";
|
color = <LED_COLOR_ID_BLUE>;
|
||||||
|
function = LED_FUNCTION_WLAN;
|
||||||
|
function-enumerator = <5>;
|
||||||
gpios = <&tlmm 5 GPIO_ACTIVE_HIGH>;
|
gpios = <&tlmm 5 GPIO_ACTIVE_HIGH>;
|
||||||
linux,default-trigger = "phy1tpt";
|
linux,default-trigger = "phy1tpt";
|
||||||
};
|
};
|
||||||
|
|
||||||
usb {
|
led-4 {
|
||||||
label = "blue:usb";
|
color = <LED_COLOR_ID_BLUE>;
|
||||||
|
function = LED_FUNCTION_USB;
|
||||||
gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
|
gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
|
||||||
trigger-sources = <&usb3_port1>, <&usb3_port2>;
|
trigger-sources = <&usb3_port1>, <&usb3_port2>;
|
||||||
linux,default-trigger = "usbport";
|
linux,default-trigger = "usbport";
|
||||||
};
|
};
|
||||||
|
|
||||||
lan {
|
led-5 {
|
||||||
label = "blue:lan";
|
color = <LED_COLOR_ID_BLUE>;
|
||||||
|
function = LED_FUNCTION_LAN;
|
||||||
gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
|
gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user