ARM: dts: imx53: Add power GPIOs on M53Menlo
authorMarek Vasut <marex@denx.de>
Wed, 15 May 2019 22:45:58 +0000 (00:45 +0200)
committerShawn Guo <shawnguo@kernel.org>
Mon, 20 May 2019 01:09:24 +0000 (09:09 +0800)
Add GPIO power button and GPIO poweroff, which is present on new hardware.
These let the system power itself off on shutdown.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Shawn Guo <shawnguo@kernel.org>
Cc: Fabio Estevam <festevam@gmail.com>
Cc: NXP Linux Team <linux-imx@nxp.com>
To: linux-arm-kernel@lists.infradead.org
Reviewed-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx53-m53menlo.dts

index 10a738a..1a8cdef 100644 (file)
        model = "MENLO M53 EMBEDDED DEVICE";
        compatible = "menlo,m53menlo", "fsl,imx53";
 
+       gpio-keys {
+               compatible = "gpio-keys";
+               pinctrl-0 = <&pinctrl_power_button>;
+               pinctrl-names = "default";
+
+               power-button {
+                       label = "Power button";
+                       gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
+                       linux,code = <KEY_POWER>;
+               };
+       };
+
+       gpio-poweroff {
+               compatible = "gpio-poweroff";
+               pinctrl-0 = <&pinctrl_power_out>;
+               pinctrl-names = "default";
+               gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
+       };
+
        leds {
                compatible = "gpio-leds";
                pinctrl-names = "default";
                        >;
                };
 
+               pinctrl_power_button: powerbutgrp {
+                       fsl,pins = <
+                               MX53_PAD_SD2_DATA2__GPIO1_13            0x1e4
+                       >;
+               };
+
+               pinctrl_power_out: poweroutgrp {
+                       fsl,pins = <
+                               MX53_PAD_SD2_DATA0__GPIO1_15            0x1e4
+                       >;
+               };
+
                pinctrl_uart1: uart1grp {
                        fsl,pins = <
                                MX53_PAD_PATA_DIOW__UART1_TXD_MUX       0x1e4