5 compatible = "allwinner,sun4i-a10", "allwinner,sun7i-a20", "allwinner,sun50i-a64", "allwinner,sun50i-h5";
8 * This fragment is needed only for the internal pull-up activation,
9 * external pull-up resistor is highly recommended if using long wires
11 * if you connect vcc to keyboard board, remote this fragment!
17 gpio_button_0: gpio_button_0 {
18 pins = "PE11","PE10","PE9", "PE8";
30 * Use "gpio-keys" for EINT capable pins, "gpio-keys-polled" for other pins
31 * add "poll-interval" property if using "gpio-keys-polled"
34 compatible = "gpio-keys";
36 compatible = "gpio-keys-polled";
37 poll-interval = <100>;
40 pinctrl-names = "default";
41 pinctrl-0 = <&gpio_button_0>;
45 linux,code = <79>; /* KEY_KP1, see include/uapi/linux/input-event-codes.h */
46 gpios = <&pio 4 11 0>; /* PE11 GPIO_ACTIVE_HIGH */
51 linux,code = <80>; /* KEY_KP2, see include/uapi/linux/input-event-codes.h */
52 gpios = <&pio 4 10 0>; /* PE10 GPIO_ACTIVE_HIGH */
57 linux,code = <81>; /* KEY_KP3, see include/uapi/linux/input-event-codes.h */
58 gpios = <&pio 4 9 0>; /* PE9 GPIO_ACTIVE_HIGH */
63 linux,code = <82>; /* KEY_KP0, see include/uapi/linux/input-event-codes.h */
64 gpios = <&pio 4 8 0>; /* PE8 GPIO_ACTIVE_HIGH */