From c7e48d44b77f8140867742c4d14513a42fba561a Mon Sep 17 00:00:00 2001 From: Ludovic Desroches Date: Mon, 22 Jun 2015 10:01:20 +0200 Subject: [PATCH] ARM: dts: at91: sama5d2 Xplained: add user push button Add the push button named "PB USER" with code 0x104. Associated pinctrl node is also added. Signed-off-by: Ludovic Desroches Acked-by: Alexandre Belloni Signed-off-by: Nicolas Ferre --- arch/arm/boot/dts/at91-sama5d2_xplained.dts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/arch/arm/boot/dts/at91-sama5d2_xplained.dts b/arch/arm/boot/dts/at91-sama5d2_xplained.dts index 382ccfb4a2b6..d20d4033d64c 100644 --- a/arch/arm/boot/dts/at91-sama5d2_xplained.dts +++ b/arch/arm/boot/dts/at91-sama5d2_xplained.dts @@ -302,6 +302,11 @@ pinctrl_i2c1_default: i2c1_default { bias-disable; }; + pinctrl_key_gpio_default: key_gpio_default { + pinmux = ; + bias-pull-up; + }; + pinctrl_macb0_default: macb0_default { pinmux = , , @@ -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>; + }; + }; }; -- 2.45.2