]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: dts: at91: sama5d2 Xplained: add user push button
authorLudovic Desroches <ludovic.desroches@atmel.com>
Mon, 22 Jun 2015 08:01:20 +0000 (10:01 +0200)
committerNicolas Ferre <nicolas.ferre@atmel.com>
Wed, 2 Mar 2016 15:55:32 +0000 (16:55 +0100)
Add the push button named "PB USER" with code 0x104. Associated pinctrl node is
also added.

Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Acked-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
arch/arm/boot/dts/at91-sama5d2_xplained.dts

index 382ccfb4a2b6da25af7448780b60bdfe84b59110..d20d4033d64c9a0ebbc0e7cd2c34a0ac7554019d 100644 (file)
@@ -302,6 +302,11 @@ pinctrl_i2c1_default: i2c1_default {
                                        bias-disable;
                                };
 
+                               pinctrl_key_gpio_default: key_gpio_default {
+                                       pinmux = <PIN_PB9__GPIO>;
+                                       bias-pull-up;
+                               };
+
                                pinctrl_macb0_default: macb0_default {
                                        pinmux = <PIN_PB14__GTXCK>,
                                                 <PIN_PB15__GTXEN>,
@@ -400,4 +405,17 @@ pinctrl_usba_vbus: usba_vbus {
                        };
                };
        };
+
+       gpio_keys {
+               compatible = "gpio-keys";
+
+               pinctrl-names = "default";
+               pinctrl-0 = <&pinctrl_key_gpio_default>;
+
+               bp1 {
+                       label = "PB_USER";
+                       gpios = <&pioA 41 GPIO_ACTIVE_LOW>;
+                       linux,code = <0x104>;
+               };
+       };
 };