summaryrefslogtreecommitdiffstats
path: root/arch/mips/dts
diff options
context:
space:
mode:
authorAntony Pavlov <antonynpavlov@gmail.com>2015-09-23 01:34:12 +0300
committerSascha Hauer <s.hauer@pengutronix.de>2015-09-23 10:28:03 +0200
commitf25a09ded6e89a2d6bb8e19f0c077c346e7c26e5 (patch)
tree1bf737c1bc9f99ee9d3f4b0dfce1438d9ec2383a /arch/mips/dts
parent57ce131be91f35af76b8d449a50dbf9d40253c4d (diff)
downloadbarebox-f25a09ded6e89a2d6bb8e19f0c077c346e7c26e5.tar.gz
barebox-f25a09ded6e89a2d6bb8e19f0c077c346e7c26e5.tar.xz
MIPS: dts: tplink-mr3020.dts: enable gpio & leds
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/mips/dts')
-rw-r--r--arch/mips/dts/tplink-mr3020.dts33
1 files changed, 33 insertions, 0 deletions
diff --git a/arch/mips/dts/tplink-mr3020.dts b/arch/mips/dts/tplink-mr3020.dts
index e155de31bb..804d2908f0 100644
--- a/arch/mips/dts/tplink-mr3020.dts
+++ b/arch/mips/dts/tplink-mr3020.dts
@@ -1,6 +1,7 @@
/dts-v1/;
#include "ar9331.dtsi"
+#include <dt-bindings/gpio/gpio.h>
/ {
model = "TP-LINK MR3020";
@@ -13,12 +14,44 @@
aliases {
spiflash = &spiflash;
};
+
+ leds {
+ compatible = "gpio-leds";
+
+ wlan {
+ label = "tp-link:green:wlan";
+ gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
+ default-state = "off";
+ };
+
+ lan {
+ label = "tp-link:green:lan";
+ gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
+ default-state = "off";
+ };
+
+ wps {
+ label = "tp-link:green:wps";
+ gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
+ default-state = "off";
+ };
+
+ led3g {
+ label = "tp-link:green:3g";
+ gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
+ default-state = "off";
+ };
+ };
};
&serial0 {
status = "okay";
};
+&gpio {
+ status = "okay";
+};
+
&spi {
num-chipselects = <1>;
status = "okay";