ramips: add button support and make LEDs known to userspace for DIR-860L B1
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net> Reviewed-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
fa9811814a
commit
103ed00cfb
3 changed files with 16 additions and 0 deletions
|
@ -136,6 +136,9 @@ mzk-750dhp|\
|
|||
mzk-dp150n)
|
||||
ucidef_set_led_default "power" "power" "$board:green:power" "1"
|
||||
;;
|
||||
dir-860l-b1)
|
||||
ucidef_set_led_netdev "wan" "wan" "$board:green:net" "eth0.2"
|
||||
;;
|
||||
ex2700)
|
||||
ucidef_set_led_default "power_r" "POWER (red)" "$board:red:power" "0"
|
||||
set_wifi_led "$board:green:router"
|
||||
|
|
|
@ -19,6 +19,7 @@ get_status_led() {
|
|||
asl26555|\
|
||||
br-6425|\
|
||||
br-6475nd|\
|
||||
dir-860l-b1|\
|
||||
e1700|\
|
||||
fonera20n|\
|
||||
mzk-750dhp|\
|
||||
|
|
|
@ -44,6 +44,18 @@
|
|||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
poll-interval = <20>;
|
||||
|
||||
reset {
|
||||
label = "reset";
|
||||
gpios = <&gpio0 7 1>;
|
||||
linux,code = <0x198>;
|
||||
};
|
||||
|
||||
wps {
|
||||
label = "wps";
|
||||
gpios = <&gpio0 18 1>;
|
||||
linux,code = <0x211>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue