Debian Codegraph @

scripts/dtc/include-prefixes/arm64/qcom/msm8916-acer-a1-724.dts

raw
1 // SPDX-License-Identifier: GPL-2.0-only
2
3 /dts-v1/;
4
5 #include "msm8916-pm8916.dtsi"
6 #include "msm8916-modem-qdsp6.dtsi"
7
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/input/input.h>
10 #include <dt-bindings/interrupt-controller/irq.h>
11 #include <dt-bindings/leds/common.h>
12
13 /*
14 * NOTE: The original firmware from Acer can only boot 32-bit kernels.
15 * To boot this device tree using arm64 it is necessary to flash 64-bit
16 * TZ/HYP firmware (e.g. taken from the DragonBoard 410c).
17 * See https://wiki.postmarketos.org/wiki/Acer_Iconia_Talk_S_(acer-a1-724)
18 * for suggested installation instructions.
19 */
20
21 / {
22 model = "Acer Iconia Talk S A1-724";
23 compatible = "acer,a1-724", "qcom,msm8916";
24 chassis-type = "tablet";
25
26 aliases {
27 mmc0 = &sdhc_1; /* eMMC */
28 mmc1 = &sdhc_2; /* SD card */
29 serial0 = &blsp_uart2;
30 };
31
32 chosen {
33 stdout-path = "serial0";
34 };
35
36 gpio-keys {
37 compatible = "gpio-keys";
38
39 pinctrl-names = "default";
40 pinctrl-0 = <&gpio_keys_default>;
41
42 label = "GPIO Buttons";
43
44 button-volume-up {
45 label = "Volume Up";
46 gpios = <&tlmm 107 GPIO_ACTIVE_LOW>;
47 linux,code = <KEY_VOLUMEUP>;
48 };
49 };
50
51 usb_id: usb-id {
52 compatible = "linux,extcon-usb-gpio";
53 id-gpios = <&tlmm 110 GPIO_ACTIVE_HIGH>;
54 pinctrl-names = "default";
55 pinctrl-0 = <&usb_id_default>;
56 };
57 };
58
59 &blsp_i2c2 {
60 status = "okay";
61
62 accelerometer@10 {
63 compatible = "bosch,bmc150_accel";
64 reg = <0x10>;
65 interrupt-parent = <&tlmm>;
66 interrupts = <115 IRQ_TYPE_EDGE_RISING>;
67
68 vdd-supply = <&pm8916_l17>;
69 vddio-supply = <&pm8916_l6>;
70
71 pinctrl-names = "default";
72 pinctrl-0 = <&accel_int_default>;
73
74 mount-matrix = "0", "-1", "0",
75 "-1", "0", "0",
76 "0", "0", "1";
77 };
78
79 magnetometer@12 {
80 compatible = "bosch,bmc150_magn";
81 reg = <0x12>;
82
83 vdd-supply = <&pm8916_l17>;
84 vddio-supply = <&pm8916_l6>;
85 };
86 };
87
88 &blsp_i2c4 {
89 status = "okay";
90
91 led-controller@30 {
92 compatible = "kinetic,ktd2026";
93 reg = <0x30>;
94 #address-cells = <1>;
95 #size-cells = <0>;
96
97 led@0 {
98 reg = <0>;
99 function = LED_FUNCTION_STATUS;
100 color = <LED_COLOR_ID_RED>;
101 };
102
103 led@1 {
104 reg = <1>;
105 function = LED_FUNCTION_STATUS;
106 color = <LED_COLOR_ID_GREEN>;
107 };
108 };
109 };
110
111 &blsp_i2c5 {
112 status = "okay";
113
114 touchscreen@38 {
115 /* Actually ft5446 */
116 compatible = "edt,edt-ft5406";
117 reg = <0x38>;
118
119 interrupt-parent = <&tlmm>;
120 interrupts = <13 IRQ_TYPE_LEVEL_LOW>;
121
122 reset-gpios = <&tlmm 12 GPIO_ACTIVE_LOW>;
123
124 vcc-supply = <&pm8916_l16>;
125 iovcc-supply = <&pm8916_l6>;
126
127 touchscreen-size-x = <720>;
128 touchscreen-size-y = <1280>;
129
130 pinctrl-names = "default";
131 pinctrl-0 = <&touchscreen_default>;
132 };
133 };
134
135 &blsp_uart2 {
136 pinctrl-0 = <&blsp_uart2_console_default>;
137 pinctrl-1 = <&blsp_uart2_console_sleep>;
138 pinctrl-names = "default", "sleep";
139 status = "okay";
140 };
141
142 &mpss_mem {
143 reg = <0x0 0x86800000 0x0 0x4500000>;
144 };
145
146 &pm8916_codec {
147 qcom,micbias-lvl = <2800>;
148 qcom,mbhc-vthreshold-low = <150 237 450 500 590>;
149 qcom,mbhc-vthreshold-high = <150 237 450 500 590>;
150 qcom,hphl-jack-type-normally-open;
151 };
152
153 &pm8916_resin {
154 linux,code = <KEY_VOLUMEDOWN>;
155 status = "okay";
156 };
157
158 &pm8916_rpm_regulators {
159 pm8916_l16: l16 {
160 regulator-min-microvolt = <2900000>;
161 regulator-max-microvolt = <2900000>;
162 };
163
164 pm8916_l17: l17 {
165 regulator-min-microvolt = <2850000>;
166 regulator-max-microvolt = <2850000>;
167 };
168 };
169
170 &pm8916_vib {
171 status = "okay";
172 };
173
174 &sdhc_1 {
175 status = "okay";
176 };
177
178 &sdhc_2 {
179 pinctrl-names = "default", "sleep";
180 pinctrl-0 = <&sdc2_default &sdc2_cd_default>;
181 pinctrl-1 = <&sdc2_sleep &sdc2_cd_default>;
182
183 cd-gpios = <&tlmm 38 GPIO_ACTIVE_HIGH>;
184
185 status = "okay";
186 };
187
188 &sound {
189 model = "acer-a1-724";
190 audio-routing =
191 "DMIC1", "MIC BIAS External1",
192 "DMIC1", "Digital Mic1",
193 "AMIC2", "MIC BIAS Internal2",
194 "DMIC2", "MIC BIAS External1",
195 "DMIC2", "Digital Mic2";
196
197 pinctrl-0 = <&cdc_pdm_default &sec_mi2s_default &pri_mi2s_mclk_default &cdc_dmic_default>;
198 pinctrl-1 = <&cdc_pdm_sleep &sec_mi2s_sleep &pri_mi2s_mclk_sleep &cdc_dmic_sleep>;
199 pinctrl-names = "default", "sleep";
200 };
201
202 &usb {
203 extcon = <&usb_id>, <&usb_id>;
204 status = "okay";
205 };
206
207 &usb_hs_phy {
208 extcon = <&usb_id>;
209 };
210
211 &venus {
212 status = "okay";
213 };
214
215 &venus_mem {
216 status = "okay";
217 };
218
219 &wcnss {
220 status = "okay";
221 };
222
223 &wcnss_iris {
224 compatible = "qcom,wcn3620";
225 };
226
227 &wcnss_mem {
228 status = "okay";
229 };
230
231 &tlmm {
232 accel_int_default: accel-int-default-state {
233 pins = "gpio115";
234 function = "gpio";
235
236 drive-strength = <2>;
237 bias-disable;
238 };
239
240 gpio_keys_default: gpio-keys-default-state {
241 pins = "gpio107";
242 function = "gpio";
243
244 drive-strength = <2>;
245 bias-pull-up;
246 };
247
248 sdc2_cd_default: sdc2-cd-default-state {
249 pins = "gpio38";
250 function = "gpio";
251 drive-strength = <2>;
252 bias-disable;
253 };
254
255 touchscreen_default: touchscreen-default-state {
256 reset-pins {
257 pins = "gpio12";
258 function = "gpio";
259 drive-strength = <2>;
260 bias-disable;
261 };
262
263 touchscreen-pins {
264 pins = "gpio13";
265 function = "gpio";
266 drive-strength = <2>;
267 bias-pull-up;
268 };
269 };
270
271 usb_id_default: usb-id-default-state {
272 pins = "gpio110";
273 function = "gpio";
274
275 drive-strength = <8>;
276 bias-pull-up;
277 };
278 };