mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-31 08:25:29 +00:00
ath79: fix LEDs for GL.inet GL-AR150
Since the wireless LED was used for boot and set up with a DT trigger, the WiFi indication hasn't worked on ath79 at all. In addition, a look into the manual revealed that the OEM configuration is as follows: LED 1 (green): power LED 2 (green): configurable LED 3 (red): wireless So, let's just keep the WiFi trigger and convert the rest to its "intended" use. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de> (cherry picked from commit 705fe43522c756962589b360141d4c398363ce1c)
This commit is contained in:
parent
21454a772b
commit
e36bdd5dc5
@ -74,10 +74,6 @@ etactica,eg200)
|
|||||||
ucidef_set_led_oneshot "modbus" "Modbus" "$boardname:red:modbus" "100" "33"
|
ucidef_set_led_oneshot "modbus" "Modbus" "$boardname:red:modbus" "100" "33"
|
||||||
ucidef_set_led_default "etactica" "etactica" "$boardname:red:etactica" "ignore"
|
ucidef_set_led_default "etactica" "etactica" "$boardname:red:etactica" "ignore"
|
||||||
;;
|
;;
|
||||||
glinet,gl-ar150)
|
|
||||||
ucidef_set_led_netdev "wan" "WAN" "$boardname:green:wan" "eth1"
|
|
||||||
ucidef_set_led_switch "lan" "LAN" "$boardname:green:lan" "switch0" "0x02"
|
|
||||||
;;
|
|
||||||
glinet,gl-ar300m-nand|\
|
glinet,gl-ar300m-nand|\
|
||||||
glinet,gl-ar300m-nor)
|
glinet,gl-ar300m-nor)
|
||||||
ucidef_set_led_netdev "lan" "LAN" "gl-ar300m:green:lan" "eth0"
|
ucidef_set_led_netdev "lan" "LAN" "gl-ar300m:green:lan" "eth0"
|
||||||
|
@ -12,28 +12,30 @@
|
|||||||
|
|
||||||
aliases {
|
aliases {
|
||||||
serial0 = &uart;
|
serial0 = &uart;
|
||||||
led-boot = &wlan;
|
led-boot = &led_power;
|
||||||
led-failsafe = &wlan;
|
led-failsafe = &led_power;
|
||||||
led-upgrade = &wlan;
|
led-running = &led_power;
|
||||||
|
led-upgrade = &led_power;
|
||||||
};
|
};
|
||||||
|
|
||||||
leds {
|
leds {
|
||||||
compatible = "gpio-leds";
|
compatible = "gpio-leds";
|
||||||
|
|
||||||
wlan: wlan {
|
wlan {
|
||||||
label = "gl-ar150:orange:wlan";
|
label = "gl-ar150:orange:wlan";
|
||||||
gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
|
gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
|
||||||
linux,default-trigger = "phy0tpt";
|
linux,default-trigger = "phy0tpt";
|
||||||
};
|
};
|
||||||
|
|
||||||
lan {
|
configurable {
|
||||||
label = "gl-ar150:green:lan";
|
label = "gl-ar150:green:configurable";
|
||||||
gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
|
gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
|
||||||
};
|
};
|
||||||
|
|
||||||
wan {
|
led_power: power {
|
||||||
label = "gl-ar150:green:wan";
|
label = "gl-ar150:green:power";
|
||||||
gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
|
gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
|
||||||
|
default-state = "on";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user