|
@@ -0,0 +1,56 @@
|
|
|
+From: Matthias Schiffer <mschiffer@universe-factory.net>
|
|
|
+Date: Thu, 30 Jun 2016 15:18:03 +0200
|
|
|
+Subject: ramips: add button support and make LEDs known to userspace for DIR-860L B1
|
|
|
+
|
|
|
+Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
|
|
|
+
|
|
|
+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 5327d00..5fb28a5 100755
|
|
|
+--- a/target/linux/ramips/base-files/etc/board.d/01_leds
|
|
|
++++ b/target/linux/ramips/base-files/etc/board.d/01_leds
|
|
|
+@@ -114,6 +114,9 @@ case $board in
|
|
|
+ esr-9753)
|
|
|
+ set_wifi_led "rt2800pci-phy0::radio"
|
|
|
+ ;;
|
|
|
++ dir-860l-b1)
|
|
|
++ ucidef_set_led_netdev "wan" "wan" "d-link:green:net" "eth0.2"
|
|
|
++ ;;
|
|
|
+ ex2700)
|
|
|
+ ucidef_set_led_default "power_r" "POWER (red)" "ex2700:red:power" "0"
|
|
|
+ set_wifi_led "ex2700:green:router"
|
|
|
+diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh
|
|
|
+index 6474ebd..37360a4 100644
|
|
|
+--- a/target/linux/ramips/base-files/etc/diag.sh
|
|
|
++++ b/target/linux/ramips/base-files/etc/diag.sh
|
|
|
+@@ -54,6 +54,9 @@ get_status_led() {
|
|
|
+ dir-645)
|
|
|
+ status_led="d-link:green:wps"
|
|
|
+ ;;
|
|
|
++ dir-860l-b1)
|
|
|
++ status_led="d-link:green:power"
|
|
|
++ ;;
|
|
|
+ dap-1350)
|
|
|
+ status_led="d-link:blue:power"
|
|
|
+ ;;
|
|
|
+diff --git a/target/linux/ramips/dts/DIR-860L-B1.dts b/target/linux/ramips/dts/DIR-860L-B1.dts
|
|
|
+index 2582b3d..c0bcc86 100644
|
|
|
+--- a/target/linux/ramips/dts/DIR-860L-B1.dts
|
|
|
++++ b/target/linux/ramips/dts/DIR-860L-B1.dts
|
|
|
+@@ -124,5 +124,17 @@
|
|
|
+ #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>;
|
|
|
++ };
|
|
|
+ };
|
|
|
+ };
|