Skip to content

Commit

Permalink
ARM: dts: at91: sama5d2 Xplained: add user push button
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ludovic Desroches authored and Nicolas Ferre committed Mar 2, 2016
1 parent ff96496 commit c7e48d4
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions arch/arm/boot/dts/at91-sama5d2_xplained.dts
Original file line number Diff line number Diff line change
Expand Up @@ -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>,
Expand Down Expand Up @@ -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>;
};
};
};

0 comments on commit c7e48d4

Please sign in to comment.