devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] arm64: dts: lx2160a-clearfog-itx: add power button support
@ 2021-01-08 23:09 Russell King
  2021-01-18  0:13 ` Shawn Guo
  0 siblings, 1 reply; 2+ messages in thread
From: Russell King @ 2021-01-08 23:09 UTC (permalink / raw)
  To: Shawn Guo; +Cc: Li Yang, Rob Herring, linux-arm-kernel, devicetree

Add support for the power button.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
---
I see Rabeeh has added a similar (identical) patch to the one I've been
carrying in my tree since 14 September 2019 to the lx2160a_build
repository, so let's mainline this.

 .../boot/dts/freescale/fsl-lx2160a-clearfog-itx.dtsi | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/arch/arm64/boot/dts/freescale/fsl-lx2160a-clearfog-itx.dtsi b/arch/arm64/boot/dts/freescale/fsl-lx2160a-clearfog-itx.dtsi
index f3741a32e868..2b63235ca627 100644
--- a/arch/arm64/boot/dts/freescale/fsl-lx2160a-clearfog-itx.dtsi
+++ b/arch/arm64/boot/dts/freescale/fsl-lx2160a-clearfog-itx.dtsi
@@ -8,6 +8,7 @@
 /dts-v1/;
 
 #include "fsl-lx2160a-cex7.dtsi"
+#include <dt-bindings/input/linux-event-codes.h>
 
 / {
 	aliases {
@@ -18,6 +19,17 @@
 	chosen {
 		stdout-path = "serial0:115200n8";
 	};
+
+	gpio-keys {
+		compatible = "gpio-keys";
+
+		key {
+			label = "power";
+			linux,can-disable;
+			linux,code = <KEY_POWER>;
+			gpios = <&gpio2 6 GPIO_ACTIVE_LOW>;
+		};
+	};
 };
 
 &emdio2 {
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] arm64: dts: lx2160a-clearfog-itx: add power button support
  2021-01-08 23:09 [PATCH] arm64: dts: lx2160a-clearfog-itx: add power button support Russell King
@ 2021-01-18  0:13 ` Shawn Guo
  0 siblings, 0 replies; 2+ messages in thread
From: Shawn Guo @ 2021-01-18  0:13 UTC (permalink / raw)
  To: Russell King; +Cc: Li Yang, Rob Herring, linux-arm-kernel, devicetree

On Fri, Jan 08, 2021 at 11:09:58PM +0000, Russell King wrote:
> Add support for the power button.
> 
> Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>

Applied, thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-01-18  0:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-08 23:09 [PATCH] arm64: dts: lx2160a-clearfog-itx: add power button support Russell King
2021-01-18  0:13 ` Shawn Guo

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).