diff options
author | Vanessa Maegima <vanessa.maegima@nxp.com> | 2016-08-30 22:23:03 +0200 |
---|---|---|
committer | Shawn Guo <shawnguo@kernel.org> | 2016-09-05 04:21:15 +0200 |
commit | d142a20700ca73430bcacfa6f8df3331142049d9 (patch) | |
tree | 83d543680c73c03c7e2ea32e4cb44367685adbfe /arch/arm/boot/dts/imx7s-warp.dts | |
parent | ARM: dts: imx7s-warp: Enable I2C2 device support (diff) | |
download | linux-d142a20700ca73430bcacfa6f8df3331142049d9.tar.xz linux-d142a20700ca73430bcacfa6f8df3331142049d9.zip |
ARM: dts: imx7s-warp: Add User Button support
Add User Button at GPIO7_1.
Tested by evtest.
Signed-off-by: Vanessa Maegima <vanessa.maegima@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Diffstat (limited to 'arch/arm/boot/dts/imx7s-warp.dts')
-rw-r--r-- | arch/arm/boot/dts/imx7s-warp.dts | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/imx7s-warp.dts b/arch/arm/boot/dts/imx7s-warp.dts index b35d1014cd5a..df74f0c9f102 100644 --- a/arch/arm/boot/dts/imx7s-warp.dts +++ b/arch/arm/boot/dts/imx7s-warp.dts @@ -54,6 +54,19 @@ reg = <0x80000000 0x20000000>; }; + gpio-keys { + compatible = "gpio-keys"; + pinctrl-0 = <&pinctrl_gpio>; + autorepeat; + + back { + label = "Back"; + gpios = <&gpio7 1 GPIO_ACTIVE_HIGH>; + linux,code = <KEY_BACK>; + wakeup-source; + }; + }; + reg_brcm: regulator-brcm { compatible = "regulator-fixed"; enable-active-high; @@ -280,6 +293,12 @@ >; }; + pinctrl_gpio: gpiogrp { + fsl,pins = < + MX7D_PAD_ENET1_RGMII_RD1__GPIO7_IO1 0x14 + >; + }; + pinctrl_i2c1: i2c1grp { fsl,pins = < MX7D_PAD_I2C1_SDA__I2C1_SDA 0x4000007f |