Debian Codegraph @

scripts/dtc/include-prefixes/arm64/mediatek/mt8183-kukui-kodama.dtsi

raw
1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
2 /*
3 * Copyright 2021 Google LLC
4 */
5
6 /dts-v1/;
7 #include "mt8183-kukui.dtsi"
8 #include "mt8183-kukui-audio-ts3a227e-max98357a.dtsi"
9
10 / {
11 ppvarn_lcd: ppvarn-lcd {
12 compatible = "regulator-fixed";
13 regulator-name = "ppvarn_lcd";
14 pinctrl-names = "default";
15 pinctrl-0 = <&ppvarn_lcd_en>;
16
17 enable-active-high;
18
19 gpio = <&pio 66 GPIO_ACTIVE_HIGH>;
20 };
21
22 ppvarp_lcd: ppvarp-lcd {
23 compatible = "regulator-fixed";
24 regulator-name = "ppvarp_lcd";
25 pinctrl-names = "default";
26 pinctrl-0 = <&ppvarp_lcd_en>;
27
28 enable-active-high;
29
30 gpio = <&pio 166 GPIO_ACTIVE_HIGH>;
31 };
32
33 pp1800_lcd: pp1800-lcd {
34 compatible = "regulator-fixed";
35 regulator-name = "pp1800_lcd";
36 pinctrl-names = "default";
37 pinctrl-0 = <&pp1800_lcd_en>;
38
39 enable-active-high;
40
41 gpio = <&pio 36 GPIO_ACTIVE_HIGH>;
42 };
43 };
44
45 &dsi0 {
46 #address-cells = <1>;
47 #size-cells = <0>;
48 status = "okay";
49
50 panel: panel@0 {
51 /* compatible will be set in board dts */
52 reg = <0>;
53 enable-gpios = <&pio 45 0>;
54 pinctrl-names = "default";
55 pinctrl-0 = <&panel_pins_default>;
56 avdd-supply = <&ppvarn_lcd>;
57 avee-supply = <&ppvarp_lcd>;
58 pp1800-supply = <&pp1800_lcd>;
59 backlight = <&backlight_lcd0>;
60 rotation = <270>;
61 port {
62 panel_in: endpoint {
63 remote-endpoint = <&dsi_out>;
64 };
65 };
66 };
67 };
68
69 &dsi_out {
70 remote-endpoint = <&panel_in>;
71 };
72
73 &i2c0 {
74 status = "okay";
75
76 touchscreen: touchscreen@10 {
77 compatible = "hid-over-i2c";
78 reg = <0x10>;
79 interrupts-extended = <&pio 155 IRQ_TYPE_LEVEL_LOW>;
80 pinctrl-names = "default";
81 pinctrl-0 = <&touch_default>;
82
83 post-power-on-delay-ms = <10>;
84 hid-descr-addr = <0x0001>;
85 };
86 };
87
88 &i2c2 {
89 pinctrl-names = "default";
90 pinctrl-0 = <&i2c2_pins>;
91 status = "okay";
92 clock-frequency = <400000>;
93 vbus-supply = <&mt6358_vcamio_reg>;
94
95 eeprom@58 {
96 compatible = "atmel,24c64";
97 reg = <0x58>;
98 pagesize = <32>;
99 vcc-supply = <&mt6358_vcamio_reg>;
100 };
101 };
102
103 &i2c4 {
104 pinctrl-names = "default";
105 pinctrl-0 = <&i2c4_pins>;
106 status = "okay";
107 clock-frequency = <400000>;
108 vbus-supply = <&mt6358_vcn18_reg>;
109
110 eeprom@50 {
111 compatible = "atmel,24c64";
112 reg = <0x50>;
113 pagesize = <32>;
114 vcc-supply = <&mt6358_vcn18_reg>;
115 };
116 };
117
118 &mt6358_vcama2_reg {
119 regulator-min-microvolt = <2800000>;
120 regulator-max-microvolt = <2800000>;
121 };
122
123 &pio {
124 /* 192 lines */
125 gpio-line-names =
126 "SPI_AP_EC_CS_L",
127 "SPI_AP_EC_MOSI",
128 "SPI_AP_EC_CLK",
129 "I2S3_DO",
130 "USB_PD_INT_ODL",
131 "",
132 "",
133 "",
134 "",
135 "IT6505_HPD_L",
136 "I2S3_TDM_D3",
137 "SOC_I2C6_1V8_SCL",
138 "SOC_I2C6_1V8_SDA",
139 "DPI_D0",
140 "DPI_D1",
141 "DPI_D2",
142 "DPI_D3",
143 "DPI_D4",
144 "DPI_D5",
145 "DPI_D6",
146 "DPI_D7",
147 "DPI_D8",
148 "DPI_D9",
149 "DPI_D10",
150 "DPI_D11",
151 "DPI_HSYNC",
152 "DPI_VSYNC",
153 "DPI_DE",
154 "DPI_CK",
155 "AP_MSDC1_CLK",
156 "AP_MSDC1_DAT3",
157 "AP_MSDC1_CMD",
158 "AP_MSDC1_DAT0",
159 "AP_MSDC1_DAT2",
160 "AP_MSDC1_DAT1",
161 "",
162 "",
163 "",
164 "",
165 "",
166 "",
167 "OTG_EN",
168 "DRVBUS",
169 "DISP_PWM",
170 "DSI_TE",
171 "LCM_RST_1V8",
172 "AP_CTS_WIFI_RTS",
173 "AP_RTS_WIFI_CTS",
174 "SOC_I2C5_1V8_SCL",
175 "SOC_I2C5_1V8_SDA",
176 "SOC_I2C3_1V8_SCL",
177 "SOC_I2C3_1V8_SDA",
178 "",
179 "",
180 "",
181 "",
182 "",
183 "",
184 "",
185 "",
186 "",
187 "",
188 "",
189 "",
190 "",
191 "",
192 "",
193 "",
194 "",
195 "",
196 "",
197 "",
198 "",
199 "",
200 "",
201 "",
202 "",
203 "",
204 "",
205 "",
206 "",
207 "SOC_I2C1_1V8_SDA",
208 "SOC_I2C0_1V8_SDA",
209 "SOC_I2C0_1V8_SCL",
210 "SOC_I2C1_1V8_SCL",
211 "AP_SPI_H1_MISO",
212 "AP_SPI_H1_CS_L",
213 "AP_SPI_H1_MOSI",
214 "AP_SPI_H1_CLK",
215 "I2S5_BCK",
216 "I2S5_LRCK",
217 "I2S5_DO",
218 "BOOTBLOCK_EN_L",
219 "MT8183_KPCOL0",
220 "SPI_AP_EC_MISO",
221 "UART_DBG_TX_AP_RX",
222 "UART_AP_TX_DBG_RX",
223 "I2S2_MCK",
224 "I2S2_BCK",
225 "CLK_5M_WCAM",
226 "CLK_2M_UCAM",
227 "I2S2_LRCK",
228 "I2S2_DI",
229 "SOC_I2C2_1V8_SCL",
230 "SOC_I2C2_1V8_SDA",
231 "SOC_I2C4_1V8_SCL",
232 "SOC_I2C4_1V8_SDA",
233 "",
234 "SCL8",
235 "SDA8",
236 "FCAM_PWDN_L",
237 "",
238 "",
239 "",
240 "",
241 "",
242 "",
243 "",
244 "",
245 "",
246 "",
247 "",
248 "",
249 "",
250 "",
251 "",
252 "",
253 "",
254 "",
255 "",
256 "",
257 "",
258 "",
259 "",
260 "",
261 "",
262 "I2S_PMIC",
263 "I2S_PMIC",
264 "I2S_PMIC",
265 "I2S_PMIC",
266 "I2S_PMIC",
267 "I2S_PMIC",
268 "I2S_PMIC",
269 "I2S_PMIC",
270 "",
271 "",
272 "",
273 "",
274 "",
275 "",
276 /*
277 * AP_FLASH_WP_L is crossystem ABI. Rev1 schematics
278 * call it BIOS_FLASH_WP_R_L.
279 */
280 "AP_FLASH_WP_L",
281 "EC_AP_INT_ODL",
282 "IT6505_INT_ODL",
283 "H1_INT_OD_L",
284 "",
285 "",
286 "",
287 "",
288 "",
289 "",
290 "",
291 "AP_SPI_FLASH_MISO",
292 "AP_SPI_FLASH_CS_L",
293 "AP_SPI_FLASH_MOSI",
294 "AP_SPI_FLASH_CLK",
295 "DA7219_IRQ",
296 "",
297 "",
298 "",
299 "",
300 "",
301 "",
302 "",
303 "",
304 "",
305 "",
306 "",
307 "",
308 "",
309 "",
310 "",
311 "",
312 "",
313 "",
314 "",
315 "",
316 "",
317 "",
318 "",
319 "",
320 "",
321 "";
322
323 ppvarp_lcd_en: ppvarp-lcd-en-pins {
324 pins1 {
325 pinmux = <PINMUX_GPIO66__FUNC_GPIO66>;
326 output-low;
327 };
328 };
329
330 ppvarn_lcd_en: ppvarn-lcd-en-pins {
331 pins1 {
332 pinmux = <PINMUX_GPIO166__FUNC_GPIO166>;
333 output-low;
334 };
335 };
336
337 pp1800_lcd_en: pp1800-lcd-en-pins {
338 pins1 {
339 pinmux = <PINMUX_GPIO36__FUNC_GPIO36>;
340 output-low;
341 };
342 };
343
344 touch_default: touch-pins {
345 pins-intn {
346 pinmux = <PINMUX_GPIO155__FUNC_GPIO155>;
347 input-enable;
348 bias-pull-up;
349 };
350
351 touch_pin_reset: pins-rst {
352 pinmux = <PINMUX_GPIO156__FUNC_GPIO156>;
353
354 /*
355 * The touchscreen driver doesn't currently support driving
356 * this reset line. By specifying output-high here
357 * we're relying on the fact that this pin has a default
358 * pulldown at boot (which makes sure the controller was in
359 * reset if it was powered) and then we set it high here
360 * to take it out of reset. Better would be if the touchscreen
361 * driver could control this and we could remove
362 * "output-high" here.
363 */
364 output-high;
365 };
366 };
367 };
368
369 &cros_ec {
370 cbas {
371 compatible = "google,cros-cbas";
372 };
373
374 keyboard-controller {
375 compatible = "google,cros-ec-keyb-switches";
376 };
377 };
378
379 &qca_wifi {
380 qcom,ath10k-calibration-variant = "GO_KODAMA";
381 };
382
383 &i2c_tunnel {
384 google,remote-bus = <2>;
385 };