diff options
author | Ludovic Desroches <ludovic.desroches@atmel.com> | 2015-06-22 11:01:20 +0300 |
---|---|---|
committer | Nicolas Ferre <nicolas.ferre@atmel.com> | 2016-03-02 18:55:32 +0300 |
commit | c7e48d44b77f8140867742c4d14513a42fba561a (patch) | |
tree | a15c68b0649abbf5047e9f86640d2425109983de | |
parent | ff964962a0fecc1effc836711defea3954718ce6 (diff) | |
download | linux-c7e48d44b77f8140867742c4d14513a42fba561a.tar.xz |
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 <ludovic.desroches@atmel.com>
Acked-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
-rw-r--r-- | arch/arm/boot/dts/at91-sama5d2_xplained.dts | 18 |
1 files changed, 18 insertions, 0 deletions
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 @@ 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 @@ }; }; }; + + 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>; + }; + }; }; |