-
Notifications
You must be signed in to change notification settings - Fork 0
/
hypertouch40.dts
102 lines (101 loc) · 2.72 KB
/
hypertouch40.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
99
100
101
102
/dts-v1/;
/plugin/;
/ {
compatible = "brcm,bcm2708";
fragment@0 {
target = <&fb>;
__overlay__ {
pinctrl-names = "default";
pinctrl-0 = <0x1>;
};
};
fragment@1 {
target = <&gpio>;
__overlay__ {
dpi18_pins {
brcm,pins = <0 1 2 3 4 5 6 7 8 9 12 13 14 15 16 17 20 21 22 23 24 25>;
brcm,function = <0x6>;
brcm,pull = <0x0>;
phandle = <0x1>;
};
};
};
fragment@2 {
target-path = "/soc";
__overlay__ {
backlight: backlight {
compatible = "al3050_bl";
bl-gpios = <&gpio 19 0>;
clk-gpios = <&gpio 27 0>;
mosi-gpios = <&gpio 26 0>;
cs-gpios = <&gpio 18 0>;
fb = <0xdeadbeef>;
};
};
};
fragment@3 {
target-path = "/";
__overlay__ {
i2c_gpio: i2c@0 {
compatible = "i2c-gpio";
gpios = <&gpio 10 0 /* sda */
&gpio 11 0 /* scl */
>;
i2c-gpio,delay-us = <4>; /* ~100 kHz */
#address-cells = <1>;
#size-cells = <0>;
};
};
};
fragment@4 {
target = <&i2c_gpio>;
__overlay__ {
/* needed to avoid dtc warning */
#address-cells = <1>;
#size-cells = <0>;
ft6236: ft6236@14 {
compatible = "goodix,gt911";
reg = <0x14>;
interrupt-parent = <&gpio>;
interrupts = <27 2>;
touchscreen-size-x = <480>;
touchscreen-size-y = <800>;
touchscreen-x-mm = <51>;
touchscreen-y-mm = <85>;
};
};
};
fragment@5 {
target = <&ft6236>;
__overlay__ {
touchscreen-swapped-x-y;
};
};
fragment@6 {
target = <&ft6236>;
__dormant__ {
touchscreen-inverted-x;
};
};
fragment@7 {
target = <&ft6236>;
__overlay__ {
touchscreen-inverted-y;
};
};
__symbols__ {
dpi18_pins = "/fragment@1/__overlay__/dpi18_pins";
};
__local_fixups__ {
fragment@0 {
__overlay__ {
pinctrl-0 = <0x0>;
};
};
};
__overrides__ {
touchscreen-inverted-x = <0>,"+6";
touchscreen-inverted-y = <0>,"-7";
touchscreen-swapped-x-y = <0>,"-5";
};
};