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
15 gpio_button_0: gpio_button_0 {
16 pins = "PG9","PG10","PG11";
28 * Use "gpio-keys" for EINT capable pins, "gpio-keys-polled" for other pins
29 * add "poll-interval" property if using "gpio-keys-polled"
32 compatible = "gpio-keys";
34 compatible = "gpio-keys-polled";
35 poll-interval = <100>;
38 pinctrl-names = "default";
39 pinctrl-0 = <&gpio_button_0>;
43 linux,code = <103>; /* KEY_UP, see include/uapi/linux/input-event-codes.h */
44 gpios = <&pio 6 9 1>; /* PG9 GPIO_ACTIVE_LOW */
48 label = "button-down";
49 linux,code = <108>; /* KEY_DOWN, see include/uapi/linux/input-event-codes.h */
50 gpios = <&pio 6 10 1>; /* PG10 GPIO_ACTIVE_LOW */
54 label = "button-enter";
55 linux,code = <28>; /* KEY_DOWN, see include/uapi/linux/input-event-codes.h */
56 gpios = <&pio 6 11 1>; /* PG11 GPIO_ACTIVE_LOW */