diff options
author | Max Krummenacher <max.krummenacher@toradex.com> | 2019-04-16 14:05:59 +0200 |
---|---|---|
committer | Max Krummenacher <max.krummenacher@toradex.com> | 2019-04-17 09:48:59 +0200 |
commit | b7158e5e4de0d35980b74a0d91f21b79bf933a44 (patch) | |
tree | 3ad1d2ad730a5d945e9604d157e7fa910f7bfc52 | |
parent | f4c799cd48448a8d880212cc2e06f362f423df91 (diff) |
ARM: dts: imx8: apalis-imx8qm: add gpio-keys node
This implements wake-up from WAKE1_MICO pin.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
-rw-r--r-- | arch/arm64/boot/dts/freescale/fsl-imx8qm-apalis.dts | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/arch/arm64/boot/dts/freescale/fsl-imx8qm-apalis.dts b/arch/arm64/boot/dts/freescale/fsl-imx8qm-apalis.dts index d9293e2f1788..3e589ab32422 100644 --- a/arch/arm64/boot/dts/freescale/fsl-imx8qm-apalis.dts +++ b/arch/arm64/boot/dts/freescale/fsl-imx8qm-apalis.dts @@ -32,6 +32,19 @@ status = "okay"; }; + gpio-keys { + compatible = "gpio-keys"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_gpio_keys>; + wakeup { + label = "Wake-Up"; + gpios = <&gpio2 20 GPIO_ACTIVE_LOW>; + linux,code = <KEY_WAKEUP>; + debounce-interval = <10>; + gpio-key,wakeup; + }; + }; + pcie_sata_refclk: clock-generator { compatible = "fixed-clock"; #clock-cells = <0>; @@ -160,7 +173,7 @@ &iomuxc { pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_cam1_gpios>, <&pinctrl_gpio34>, <&pinctrl_gpio56>, <&pinctrl_sata1_act>, <&pinctrl_wake1_mico>; + pinctrl-0 = <&pinctrl_cam1_gpios>, <&pinctrl_gpio34>, <&pinctrl_gpio56>, <&pinctrl_sata1_act>; apalis-imx8qm { pinctrl_sgtl5000: sgtl5000grp { @@ -211,7 +224,7 @@ >; }; - pinctrl_wake1_mico: wake1micogrp { + pinctrl_gpio_keys: gpio-keys { fsl,pins = < /* Apalis WAKE1_MICO */ SC_P_SPI3_CS0_LSIO_GPIO2_IO20 0x06000021 |