/
EPSON-B184.dts
69 lines (60 loc) · 1.65 KB
/
EPSON-B184.dts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/dts-v1/;
/plugin/;
/ {
compatible = "allwinner,sun4i-a10", "allwinner,sun7i-a20", "allwinner,sun50i-a64", "allwinner,sun50i-h5";
/*
* This fragment is needed only for the internal pull-up activation,
* external pull-up resistor is highly recommended if using long wires
*
* if you connect vcc to keyboard board, remote this fragment!
*/
fragment@0 {
target = <&pio>;
__overlay__ {
gpio_button_0: gpio_button_0 {
pins = "PE11","PE10","PE9", "PE8";
function = "gpio_in";
/* bias-pull-down; */
};
};
};
fragment@1 {
target-path = "/";
__overlay__ {
EPSON-B184 {
/*
* Use "gpio-keys" for EINT capable pins, "gpio-keys-polled" for other pins
* add "poll-interval" property if using "gpio-keys-polled"
*/
/*
compatible = "gpio-keys";
*/
compatible = "gpio-keys-polled";
poll-interval = <100>;
autorepeat;
pinctrl-names = "default";
pinctrl-0 = <&gpio_button_0>;
kp_1 {
label = "Keypad 1";
linux,code = <79>; /* KEY_KP1, see include/uapi/linux/input-event-codes.h */
gpios = <&pio 4 11 0>; /* PE11 GPIO_ACTIVE_HIGH */
};
kp_2 {
label = "Keypad 2";
linux,code = <80>; /* KEY_KP2, see include/uapi/linux/input-event-codes.h */
gpios = <&pio 4 10 0>; /* PE10 GPIO_ACTIVE_HIGH */
};
kp_3 {
label = "Keypad 3";
linux,code = <81>; /* KEY_KP3, see include/uapi/linux/input-event-codes.h */
gpios = <&pio 4 9 0>; /* PE9 GPIO_ACTIVE_HIGH */
};
kp_0 {
label = "Keypad 0";
linux,code = <82>; /* KEY_KP0, see include/uapi/linux/input-event-codes.h */
gpios = <&pio 4 8 0>; /* PE8 GPIO_ACTIVE_HIGH */
};
};
};
};
};