Message ID | E1ky0tK-0005Js-78@rmk-PC.armlinux.org.uk |
---|---|
State | Accepted |
Commit | 8900d0d59b63766c4ed10462eb921c4bd595e4c7 |
Headers | show |
Series | arm64: dts: lx2160a-clearfog-itx: add power button support | expand |
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.
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 {
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(+)