summaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/dts/dra7-evm.dts
diff options
context:
space:
mode:
authorGrygorii Strashko <grygorii.strashko@ti.com>2015-08-27 18:20:46 +0300
committerTony Lindgren <tony@atomide.com>2015-10-12 15:00:37 -0700
commita96e8808854cceefab45a7b71152ccebf3ba6cdf (patch)
treed45997d3df474eabb69a320ce8459dc06fd3d4b5 /arch/arm/boot/dts/dra7-evm.dts
parent4fbdc6ab836f54e7559a637d9db44be7535c0889 (diff)
downloadlinux-a96e8808854cceefab45a7b71152ccebf3ba6cdf.tar.gz
linux-a96e8808854cceefab45a7b71152ccebf3ba6cdf.tar.bz2
linux-a96e8808854cceefab45a7b71152ccebf3ba6cdf.zip
ARM: dts: dra7-evm: add gpio leds support
dra7-evm has 4 user gpio leds connected to PCF8575 GPIO pcf_lcd: gpio@20 expander pins [4,5,6,7], so add corresponding DT nodes. Do not enable any triggers by default as not all of them are proved to work on -RT. Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/boot/dts/dra7-evm.dts')
-rw-r--r--arch/arm/boot/dts/dra7-evm.dts27
1 files changed, 27 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/dra7-evm.dts b/arch/arm/boot/dts/dra7-evm.dts
index d40418c8d5a3..9b4ce227f3fd 100644
--- a/arch/arm/boot/dts/dra7-evm.dts
+++ b/arch/arm/boot/dts/dra7-evm.dts
@@ -99,6 +99,33 @@
clocks = <&atl_clkin2_ck>;
};
};
+
+ leds {
+ compatible = "gpio-leds";
+ led@0 {
+ label = "dra7:usr1";
+ gpios = <&pcf_lcd 4 GPIO_ACTIVE_LOW>;
+ default-state = "off";
+ };
+
+ led@1 {
+ label = "dra7:usr2";
+ gpios = <&pcf_lcd 5 GPIO_ACTIVE_LOW>;
+ default-state = "off";
+ };
+
+ led@2 {
+ label = "dra7:usr3";
+ gpios = <&pcf_lcd 6 GPIO_ACTIVE_LOW>;
+ default-state = "off";
+ };
+
+ led@3 {
+ label = "dra7:usr4";
+ gpios = <&pcf_lcd 7 GPIO_ACTIVE_LOW>;
+ default-state = "off";
+ };
+ };
};
&dra7_pmx_core {