-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwaveshare.dts
98 lines (79 loc) · 2.05 KB
/
waveshare.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
/dts-v1/;
/ {
compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
fragment@0 {
target = <0xffffffff>;
__overlay__ {
pinctrl-names = "default";
pinctrl-0 = <0x1>;
my_pins {
brcm,pins = <0x6 0x10 0x14 0x15 0x13 0x5 0x1a 0xd>;
brcm,function = <0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0>;
brcm,pull = <0x2 0x2 0x2 0x2 0x2 0x2 0x2 0x2>;
linux,phandle = <0x1>;
phandle = <0x1>;
};
};
};
fragment@1 {
target-path = [2f 00];
__overlay__ {
tfthat_keys {
compatible = "gpio-keys";
#address-cells = <0x1>;
#size-cells = <0x0>;
autorepeat;
button@21 {
label = "key1";
linux,code = <0x2>;
gpios = <0xffffffff 0x15 0x1>;
};
button@20 {
label = "key2";
linux,code = <0x3>;
gpios = <0xffffffff 0x14 0x1>;
};
button@16 {
label = "key3";
linux,code = <0x4>;
gpios = <0xffffffff 0x10 0x1>;
};
button@6 {
label = "up";
linux,code = <0x67>;
gpios = <0xffffffff 0x6 0x1>;
};
button@19 {
label = "joystick down";
linux,code = <0x6c>;
gpios = <0xffffffff 0x13 0x1>;
};
button@5 {
label = "joystick left";
linux,code = <0x69>;
gpios = <0xffffffff 0x5 0x1>;
};
button@26 {
label = "joystick right";
linux,code = <0x6a>;
gpios = <0xffffffff 0x1a 0x1>;
};
button@13 {
label = "joystick press";
linux,code = <0x1c>;
gpios = <0xffffffff 0xd 0x1>;
};
};
};
};
__fixups__ {
gpio = "/fragment@0:target:0", "/fragment@1/__overlay__/tfthat_keys/button@21:gpios:0", "/fragment@1/__overlay__/tfthat_keys/button@20:gpios:0", "/fragment@1/__overlay__/tfthat_keys/button@16:gpios:0", "/fragment@1/__overlay__/tfthat_keys/button@6:gpios:0", "/fragment@1/__overlay__/tfthat_keys/button@19:gpios:0", "/fragment@1/__overlay__/tfthat_keys/button@5:gpios:0", "/fragment@1/__overlay__/tfthat_keys/button@26:gpios:0", "/fragment@1/__overlay__/tfthat_keys/button@13:gpios:0";
};
__local_fixups__ {
fragment@0 {
__overlay__ {
pinctrl-0 = <0x0>;
};
};
};
};