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
25 target = <&am33xx_pinmux>;
27 keypad_pins: pinmux_gpio_pins{
28 pinctrl-single,pins = <
29 BONE_P8_07 (PIN_INPUT_PULLUP | MUX_MODE7)
30 BONE_P8_08 (PIN_INPUT_PULLUP | MUX_MODE7)
31 BONE_P8_09 (PIN_INPUT_PULLUP | MUX_MODE7)
32 BONE_P8_10 (PIN_INPUT_PULLUP | MUX_MODE7)
33 BONE_P8_26 (PIN_INPUT_PULLUP | MUX_MODE7)
34 BONE_P9_15 (PIN_INPUT_PULLUP | MUX_MODE7)
44 compatible = "gpio-keys";
46 pinctrl-names = "default";
47 pinctrl-0 = <&keypad_pins>;
50 label = "GPIO Key UP";
52 gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
53 debounce_interval = <50>;
56 label = "GPIO Key LEFT";
58 gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
59 debounce_interval = <50>;
62 label = "GPIO Key RIGHT";
64 gpios = <&gpio2 5 GPIO_ACTIVE_LOW>;
65 debounce_interval = <50>;
68 label = "GPIO Key DOWN";
70 gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
71 debounce_interval = <50>;
74 label = "GPIO Key ENTER";
76 gpios = <&gpio1 29 GPIO_ACTIVE_LOW>;
77 debounce_interval = <50>;
80 label = "GPIO Key ESC";
82 gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
83 debounce_interval = <50>;