-
Notifications
You must be signed in to change notification settings - Fork 0
/
screen.dts
70 lines (61 loc) · 2.93 KB
/
screen.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
/dts-v1/;
/plugin/;
/ {
compatible = "allwinner,sun8i-h3";
fragment@0 {
target = <&spi1>;
__overlay__ {
status = "okay";
};
};
fragment@1 {
target = <&spi1>;
__overlay__ {
/* needed to avoid dtc warning */
#address-cells = <1>;
#size-cells = <0>;
ili9486: ili9486@0 {
compatible = "ilitek,ili9486";
reg = <0>;
spi-max-frequency = <16000000>;
rotate = <90>;
fps = <30>;
buswidth = <8>;
regwidth = <16>;
bgr = <0>;
reset-gpios = <&pio 0 2 1>; /* PA2 */
dc-gpios = <&pio 0 18 0>; /* PA18 */
//debug = <0>;
init = <0x10000b0 0x00
0x1000011
0x20000ff
0x100003a 0x55
0x1000036 0x28
0x10000c2 0x44
0x10000c5 0x00 0x00 0x00 0x00
0x10000e0 0x0f 0x1f 0x1c 0x0c 0x0f 0x08 0x48 0x98 0x37 0x0a 0x13 0x04 0x11 0x0d 0x00
0x10000e1 0x0f 0x32 0x2e 0x0b 0x0d 0x05 0x47 0x75 0x37 0x06 0x10 0x03 0x24 0x20 0x00
0x10000e2 0x0f 0x32 0x2e 0x0b 0x0d 0x05 0x47 0x75 0x37 0x06 0x10 0x03 0x24 0x20 0x00
0x1000036 0x28
0x1000011
0x1000029>;
};
xpt2046: xpt2046@1 {
compatible = "ti,ads7846";
reg = <1>;
spi-max-frequency = <2000000>;
interrupts = <0 7 2>; /* high-to-low edge triggered */
interrupt-parent = <&pio>;
pendown-gpio = <&pio 0 7 0>;
ti,keep-vref-on = <1>;
ti,x-min = /bits/ 16 <200>;
ti,x-max = /bits/ 16 <3900>;
ti,y-min = /bits/ 16 <200>;
ti,y-max = /bits/ 16 <3900>;
ti,x-plate-ohms = /bits/ 16 <60>;
ti,pressure-max = /bits/ 16 <255>;
ti,swap-xy = <1>;
};
};
};
};