4 #include <dt-bindings/board/am335x-bbw-bbb-base.h>
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/pinctrl/am33xx.h>
9 compatible = "ti,beaglebone", "ti,beaglebone-black";
12 part-number = "gpio-keypad-ao2";
15 // resources this cape uses
23 target = <&am33xx_pinmux>;
25 keypad_pins: pinmux_gpio_pins{
26 pinctrl-single,pins = <
27 BONE_P8_07 (PIN_INPUT_PULLUP | MUX_MODE7)
28 BONE_P8_08 (PIN_INPUT_PULLUP | MUX_MODE7)
29 BONE_P8_09 (PIN_INPUT_PULLUP | MUX_MODE7)
30 BONE_P8_10 (PIN_INPUT_PULLUP | MUX_MODE7)
40 compatible = "gpio-keys";
41 pinctrl-names = "default";
42 pinctrl-0 = <&keypad_pins>;
45 label = "GPIO Key UP";
47 gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
48 debounce_interval = <50>;
51 label = "GPIO Key LEFT";
53 gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
54 debounce_interval = <50>;
57 label = "GPIO Key RIGHT";
59 gpios = <&gpio2 5 GPIO_ACTIVE_LOW>;
60 debounce_interval = <50>;
63 label = "GPIO Key DOWN";
65 gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
66 debounce_interval = <50>;