Commit ab9a1366 authored by Peter Robinson's avatar Peter Robinson Committed by Tony Lindgren

ARM: dts: pandaboard: add gpio user button

The PandaBoard has a user button connected to GPIO. On the ES this is connected
to GPIO 113, on all the other Panda editons this is GPIO 121.
Signed-off-by: default avatarPeter Robinson <pbrobinson@gmail.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 8008b6f3
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
* it under the terms of the GNU General Public License version 2 as * it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation. * published by the Free Software Foundation.
*/ */
#include <dt-bindings/input/input.h>
#include "elpida_ecb240abacn.dtsi" #include "elpida_ecb240abacn.dtsi"
/ { / {
...@@ -43,6 +44,21 @@ mmc { ...@@ -43,6 +44,21 @@ mmc {
}; };
}; };
gpio_keys: gpio_keys {
compatible = "gpio-keys";
pinctrl-names = "default";
pinctrl-0 = <
&button_pins
>;
buttonS2 {
label = "button S2";
gpios = <&gpio4 25 GPIO_ACTIVE_LOW>; /* gpio_121 */
linux,code = <BTN_0>;
wakeup-source;
};
};
sound: sound { sound: sound {
compatible = "ti,abe-twl6040"; compatible = "ti,abe-twl6040";
ti,model = "PandaBoard"; ti,model = "PandaBoard";
...@@ -357,6 +373,12 @@ OMAP4_IOPAD(0x150, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc5_dat2.sdmmc5_dat2 */ ...@@ -357,6 +373,12 @@ OMAP4_IOPAD(0x150, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc5_dat2.sdmmc5_dat2 */
OMAP4_IOPAD(0x152, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc5_dat3.sdmmc5_dat3 */ OMAP4_IOPAD(0x152, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc5_dat3.sdmmc5_dat3 */
>; >;
}; };
button_pins: pinmux_button_pins {
pinctrl-single,pins = <
OMAP4_IOPAD(0x114, PIN_INPUT_PULLUP | MUX_MODE3) /* gpio_121 */
>;
};
}; };
&omap4_pmx_wkup { &omap4_pmx_wkup {
......
...@@ -46,6 +46,12 @@ led_gpio_pins: gpio_led_pmx { ...@@ -46,6 +46,12 @@ led_gpio_pins: gpio_led_pmx {
OMAP4_IOPAD(0x0f6, PIN_OUTPUT | MUX_MODE3) /* gpio_110 */ OMAP4_IOPAD(0x0f6, PIN_OUTPUT | MUX_MODE3) /* gpio_110 */
>; >;
}; };
button_pins: pinmux_button_pins {
pinctrl-single,pins = <
OMAP4_IOPAD(0x11b, PIN_INPUT_PULLUP | MUX_MODE3) /* gpio_113 */
>;
};
}; };
&led_wkgpio_pins { &led_wkgpio_pins {
...@@ -68,6 +74,12 @@ mmc { ...@@ -68,6 +74,12 @@ mmc {
}; };
}; };
&gpio_keys {
buttonS2 {
gpios = <&gpio4 17 GPIO_ACTIVE_LOW>; /* gpio_113 */
};
};
&gpio1 { &gpio1 {
ti,no-reset-on-init; ti,no-reset-on-init;
}; };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment