* [PATCH] ARM: dts: da850-lcdk: add gpio-keys
@ 2016-12-19 9:53 Bartosz Golaszewski
2017-01-02 10:38 ` Sekhar Nori
0 siblings, 1 reply; 2+ messages in thread
From: Bartosz Golaszewski @ 2016-12-19 9:53 UTC (permalink / raw)
To: Sekhar Nori, Kevin Hilman, Michael Turquette, Rob Herring,
Frank Rowand, Mark Rutland, Russell King
Cc: arm-soc, linux-devicetree, LKML, Bartosz Golaszewski
Add a gpio-keys node for two user buttons present on the board.
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
---
arch/arm/boot/dts/da850-lcdk.dts | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/arch/arm/boot/dts/da850-lcdk.dts b/arch/arm/boot/dts/da850-lcdk.dts
index 397c77a..628f4de 100644
--- a/arch/arm/boot/dts/da850-lcdk.dts
+++ b/arch/arm/boot/dts/da850-lcdk.dts
@@ -6,6 +6,7 @@
/dts-v1/;
#include "da850.dtsi"
#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
/ {
model = "DA850/AM1808/OMAP-L138 LCDK";
@@ -90,6 +91,23 @@
};
};
};
+
+ gpio-keys {
+ compatible = "gpio-keys";
+ autorepeat;
+
+ user1 {
+ label = "GPIO Key USER1";
+ linux,code = <BTN_0>;
+ gpios = <&gpio 36 GPIO_ACTIVE_LOW>;
+ };
+
+ user2 {
+ label = "GPIO Key USER2";
+ linux,code = <BTN_1>;
+ gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
+ };
+ };
};
&pmx_core {
--
2.9.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ARM: dts: da850-lcdk: add gpio-keys
2016-12-19 9:53 [PATCH] ARM: dts: da850-lcdk: add gpio-keys Bartosz Golaszewski
@ 2017-01-02 10:38 ` Sekhar Nori
0 siblings, 0 replies; 2+ messages in thread
From: Sekhar Nori @ 2017-01-02 10:38 UTC (permalink / raw)
To: Bartosz Golaszewski, Kevin Hilman, Michael Turquette, Rob Herring,
Frank Rowand, Mark Rutland, Russell King
Cc: arm-soc, linux-devicetree, LKML
On Monday 19 December 2016 03:23 PM, Bartosz Golaszewski wrote:
> Add a gpio-keys node for two user buttons present on the board.
>
> Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Applied to v4.11/dt
Thanks,
Sekhar
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-01-02 10:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-19 9:53 [PATCH] ARM: dts: da850-lcdk: add gpio-keys Bartosz Golaszewski
2017-01-02 10:38 ` Sekhar Nori
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).