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";
42 pinctrl-names = "default";
43 pinctrl-0 = <&keypad_pins>;
46 label = "GPIO Key UP";
48 gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
49 debounce_interval = <50>;
52 label = "GPIO Key LEFT";
54 gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
55 debounce_interval = <50>;
58 label = "GPIO Key RIGHT";
60 gpios = <&gpio2 5 GPIO_ACTIVE_LOW>;
61 debounce_interval = <50>;
64 label = "GPIO Key DOWN";
66 gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
67 debounce_interval = <50>;