projects
/
openwrt
/
staging
/
jogo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa98118
)
ramips: add button support and make LEDs known to userspace for DIR-860L B1
author
Matthias Schiffer
<
[email protected]
>
Thu, 30 Jun 2016 13:18:03 +0000
(15:18 +0200)
committer
Matthias Schiffer
<
[email protected]
>
Thu, 30 Jun 2016 15:12:38 +0000
(17:12 +0200)
Signed-off-by: Matthias Schiffer <
[email protected]
>
Reviewed-by: Jo-Philipp Wich <
[email protected]
>
target/linux/ramips/base-files/etc/board.d/01_leds
patch
|
blob
|
history
target/linux/ramips/base-files/etc/diag.sh
patch
|
blob
|
history
target/linux/ramips/dts/DIR-860L-B1.dts
patch
|
blob
|
history
diff --git
a/target/linux/ramips/base-files/etc/board.d/01_leds
b/target/linux/ramips/base-files/etc/board.d/01_leds
index 460253c9ff29ee55f1da4073555eab63e7affad6..0e30ba076dfed0dd60fe79aaa8b5984b8151dc3e 100755
(executable)
--- a/
target/linux/ramips/base-files/etc/board.d/01_leds
+++ b/
target/linux/ramips/base-files/etc/board.d/01_leds
@@
-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"
diff --git
a/target/linux/ramips/base-files/etc/diag.sh
b/target/linux/ramips/base-files/etc/diag.sh
index 0c5abb2861a5bad070afdd6b85eedc82e7dbd41e..e9d623d106733af5844881b5e5b9697248780357 100644
(file)
--- a/
target/linux/ramips/base-files/etc/diag.sh
+++ b/
target/linux/ramips/base-files/etc/diag.sh
@@
-19,6
+19,7
@@
get_status_led() {
asl26555|\
br-6425|\
br-6475nd|\
+ dir-860l-b1|\
e1700|\
fonera20n|\
mzk-750dhp|\
diff --git
a/target/linux/ramips/dts/DIR-860L-B1.dts
b/target/linux/ramips/dts/DIR-860L-B1.dts
index b6336d87d355aa4d097f162324263fa3c44c8219..579df585c71a5a33de1c9fa2cd32599f588313cf 100644
(file)
--- a/
target/linux/ramips/dts/DIR-860L-B1.dts
+++ b/
target/linux/ramips/dts/DIR-860L-B1.dts
@@
-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>;
+ };
};
};