diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2021-01-08 23:09:58 +0000 |
---|---|---|
committer | Shawn Guo <shawnguo@kernel.org> | 2021-01-18 08:13:00 +0800 |
commit | 8900d0d59b63766c4ed10462eb921c4bd595e4c7 (patch) | |
tree | 9266f3d81fc3a75ba4b9541f0409fc820766f3c9 /arch/arm64 | |
parent | ad1abc8a03fdbc05b3390962b15287d4e7c5db22 (diff) | |
download | linux-stable-8900d0d59b63766c4ed10462eb921c4bd595e4c7.tar.gz linux-stable-8900d0d59b63766c4ed10462eb921c4bd595e4c7.tar.bz2 linux-stable-8900d0d59b63766c4ed10462eb921c4bd595e4c7.zip |
arm64: dts: lx2160a-clearfog-itx: add power button support
Add support for the power button.
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Diffstat (limited to 'arch/arm64')
-rw-r--r-- | arch/arm64/boot/dts/freescale/fsl-lx2160a-clearfog-itx.dtsi | 12 |
1 files changed, 12 insertions, 0 deletions
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 { |