ARM: dts: imx7s-warp: Add User Button support
authorVanessa Maegima <vanessa.maegima@nxp.com>
Tue, 30 Aug 2016 20:23:03 +0000 (17:23 -0300)
committerShawn Guo <shawnguo@kernel.org>
Mon, 5 Sep 2016 02:21:15 +0000 (10:21 +0800)
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>
arch/arm/boot/dts/imx7s-warp.dts

index b35d1014cd5abd7b2dd3695a831f3e79a7dcc2bb..df74f0c9f102896961579237bf3df6e113ac34dd 100644 (file)
                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;
                >;
        };
 
+       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