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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
| | diff --git a/arch/arm64/boot/dts/rockchip/rk3566-pinenote.dtsi b/arch/arm64/boot/dts/rockchip/rk3566-pinenote.dtsi
index 59ac178881b3..ec7183330b40 100644
--- a/arch/arm64/boot/dts/rockchip/rk3566-pinenote.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3566-pinenote.dtsi
@@ -51,11 +51,11 @@ battery_cell: battery-cell {
ocv-capacity-celsius = <20>;
ocv-capacity-table-0 = <4168000 100>,
- <4109000 95>, <4066000 90>, <4023000 85>, <3985000 80>,
- <3954000 75>, <3924000 70>, <3897000 65>, <3866000 60>,
- <3826000 55>, <3804000 50>, <3789000 45>, <3777000 40>,
- <3770000 35>, <3763000 30>, <3750000 25>, <3732000 20>,
- <3710000 15>, <3680000 10>, <3670000 5>, <3500000 0>;
+ <4109000 95>, <4066000 90>, <4023000 85>, <3985000 80>,
+ <3954000 75>, <3924000 70>, <3897000 65>, <3866000 60>,
+ <3826000 55>, <3804000 50>, <3789000 45>, <3777000 40>,
+ <3770000 35>, <3763000 30>, <3750000 25>, <3732000 20>,
+ <3710000 15>, <3680000 10>, <3670000 5>, <3500000 0>;
};
bt_sco_codec: bt-sco-codec {
@@ -63,26 +63,26 @@ bt_sco_codec: bt-sco-codec {
#sound-dai-cells = <1>;
};
- bt-sound {
- compatible = "simple-audio-card";
- #address-cells = <1>;
- #size-cells = <0>;
- simple-audio-card,name = "PineNote Bluetooth";
-
- simple-audio-card,dai-link@0 {
- format = "i2s";
- frame-master = <&bt_link0_cpu>;
- bitclock-master = <&bt_link0_cpu>;
-
- bt_link0_cpu: cpu {
- sound-dai = <&i2s2_2ch>;
- };
-
- bt_link0_codec: codec {
- sound-dai = <&bt_sco_codec 0>;
- };
- };
- };
+ // bt-sound {
+ // compatible = "simple-audio-card";
+ // #address-cells = <1>;
+ // #size-cells = <0>;
+ // simple-audio-card,name = "PineNote Bluetooth";
+//
+ // simple-audio-card,dai-link@0 {
+ // format = "i2s";
+ // frame-master = <&bt_link0_cpu>;
+ // bitclock-master = <&bt_link0_cpu>;
+//
+ // bt_link0_cpu: cpu {
+ // sound-dai = <&i2s2_2ch>;
+ // };
+//
+ // bt_link0_codec: codec {
+ // sound-dai = <&bt_sco_codec 0>;
+ // };
+ // };
+ // };
dmic_codec: dmic-codec {
compatible = "dmic-codec";
@@ -95,15 +95,15 @@ gpio-keys {
pinctrl-0 = <&hall_int_l>;
pinctrl-names = "default";
- cover {
- label = "cover";
- gpios = <&gpio0 RK_PC7 GPIO_ACTIVE_LOW>;
- linux,input-type = <EV_SW>;
- linux,code = <SW_MACHINE_COVER>;
- linux,can-disable;
- wakeup-event-action = <EV_ACT_DEASSERTED>;
- wakeup-source;
- };
+ /* cover { */
+ /* label = "cover"; */
+ /* gpios = <&gpio0 RK_PC7 GPIO_ACTIVE_LOW>; */
+ /* linux,input-type = <EV_SW>; */
+ /* linux,code = <SW_MACHINE_COVER>; */
+ /* linux,can-disable; */
+ /* wakeup-event-action = <EV_ACT_DEASSERTED>; */
+ /* wakeup-source; */
+ /* }; */
};
gpio-leds {
@@ -166,13 +166,13 @@ sound {
simple-audio-card,name = "PineNote";
simple-audio-card,aux-devs = <&spk_amp>;
simple-audio-card,widgets = "Headphone", "Headphones",
- "Speaker", "Internal Speakers";
+ "Speaker", "Internal Speakers";
simple-audio-card,routing = "Headphones", "HPOL",
- "Headphones", "HPOR",
- "Internal Speakers", "Speaker Amp OUTL",
- "Internal Speakers", "Speaker Amp OUTR",
- "Speaker Amp INL", "HPOL",
- "Speaker Amp INR", "HPOR";
+ "Headphones", "HPOR",
+ "Internal Speakers", "Speaker Amp OUTL",
+ "Internal Speakers", "Speaker Amp OUTR",
+ "Speaker Amp INL", "HPOL",
+ "Speaker Amp INR", "HPOR";
simple-audio-card,pin-switches = "Internal Speakers";
#address-cells = <1>;
#size-cells = <0>;
@@ -340,7 +340,7 @@ &eink {
&gpu {
mali-supply = <&vdd_gpu_npu>;
- // status = "okay";
+ status = "okay";
};
&i2c0 {
@@ -669,19 +669,31 @@ accelerometer@18 {
st,drdy-int-pin = <1>;
vdd-supply = <&vcc_3v3>;
vddio-supply = <&vcc_3v3>;
- };
-
- touchscreen@24 {
- compatible = "cypress,tt21000";
- hid-descr-addr = <0x1>;
- reg = <0x24>;
- interrupt-parent = <&gpio0>;
- interrupts = <RK_PA6 IRQ_TYPE_LEVEL_LOW>;
- pinctrl-0 = <&ts_int_l>, <&ts_rst_l>;
- pinctrl-names = "default";
- reset-gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>;
- vdd-supply = <&vcc_3v3_pmu>;
- };
+ mount-matrix = "-1", "0", "0",
+ "0", "1", "0",
+ "0", "0", "1";
+ };
+
+ // from pgwipeouts dtsi
+ touchscreen@24 {
+ compatible = "cypress,tma448";
+// compatible = "cypress,tt21000";
+ hid-descr-addr = <0x1>;
+ reg = <0x24>;
+ interrupt-parent = <&gpio0>;
+ interrupts = <RK_PA6 IRQ_TYPE_LEVEL_LOW>;
+ pinctrl-0 = <&ts_int_l>, <&ts_rst_l>;
+ pinctrl-names = "default";
+ reset-gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>;
+ vdd-supply = <&vcc_3v3_pmu>;
+ touchscreen-max-pressure = <46>;
+ touchscreen-min-x = <10>;
+ touchscreen-min-y = <5>;
+ touchscreen-size-x = <1863>;
+ touchscreen-size-y = <1399>;
+ touchscreen-x-mm = <1864>;
+ touchscreen-y-mm = <1400>;
+ };
};
&i2s1_8ch {
|