From: Ludovic Desroches Date: Mon, 22 Jun 2015 08:01:20 +0000 (+0200) Subject: ARM: dts: at91: sama5d2 Xplained: add user push button X-Git-Tag: v4.6-rc1~26^2^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c7e48d44b77f8140867742c4d14513a42fba561a;p=platform%2Fkernel%2Flinux-exynos.git 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 --- diff --git a/arch/arm/boot/dts/at91-sama5d2_xplained.dts b/arch/arm/boot/dts/at91-sama5d2_xplained.dts index 382ccfb..d20d403 100644 --- a/arch/arm/boot/dts/at91-sama5d2_xplained.dts +++ b/arch/arm/boot/dts/at91-sama5d2_xplained.dts @@ -302,6 +302,11 @@ bias-disable; }; + pinctrl_key_gpio_default: key_gpio_default { + pinmux = ; + bias-pull-up; + }; + pinctrl_macb0_default: macb0_default { pinmux = , , @@ -400,4 +405,17 @@ }; }; }; + + 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>; + }; + }; };