Debian Codegraph @

scripts/dtc/include-prefixes/arm64/mediatek/mt8192-asurada.dtsi

raw
1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
2 /*
3 * Copyright (C) 2020 MediaTek Inc.
4 * Author: Seiya Wang <[email protected]>
5 */
6 /dts-v1/;
7 #include "mt8192.dtsi"
8 #include "mt6359.dtsi"
9 #include <dt-bindings/gpio/gpio.h>
10 #include <dt-bindings/spmi/spmi.h>
11
12 / {
13 aliases {
14 i2c0 = &i2c0;
15 i2c1 = &i2c1;
16 i2c2 = &i2c2;
17 i2c3 = &i2c3;
18 i2c7 = &i2c7;
19 mmc0 = &mmc0;
20 mmc1 = &mmc1;
21 serial0 = &uart0;
22 };
23
24 chosen {
25 stdout-path = "serial0:115200n8";
26 };
27
28 memory@40000000 {
29 device_type = "memory";
30 reg = <0 0x40000000 0 0x80000000>;
31 };
32
33 backlight_lcd0: backlight-lcd0 {
34 compatible = "pwm-backlight";
35 pwms = <&pwm0 0 500000>;
36 power-supply = <&ppvar_sys>;
37 enable-gpios = <&pio 152 0>;
38 brightness-levels = <0 1023>;
39 num-interpolated-steps = <1023>;
40 default-brightness-level = <576>;
41 };
42
43 dmic_codec: dmic-codec {
44 compatible = "dmic-codec";
45 num-channels = <2>;
46 wakeup-delay-ms = <50>;
47 };
48
49 pp1000_dpbrdg: regulator-1v0-dpbrdg {
50 compatible = "regulator-fixed";
51 regulator-name = "pp1000_dpbrdg";
52 pinctrl-names = "default";
53 pinctrl-0 = <&pp1000_dpbrdg_en_pins>;
54 regulator-min-microvolt = <1000000>;
55 regulator-max-microvolt = <1000000>;
56 enable-active-high;
57 regulator-boot-on;
58 gpio = <&pio 19 GPIO_ACTIVE_HIGH>;
59 vin-supply = <&mt6359_vs2_buck_reg>;
60 };
61
62 pp1000_mipibrdg: regulator-1v0-mipibrdg {
63 compatible = "regulator-fixed";
64 regulator-name = "pp1000_mipibrdg";
65 pinctrl-names = "default";
66 pinctrl-0 = <&pp1000_mipibrdg_en_pins>;
67 regulator-min-microvolt = <1000000>;
68 regulator-max-microvolt = <1000000>;
69 enable-active-high;
70 regulator-boot-on;
71 gpio = <&pio 129 GPIO_ACTIVE_HIGH>;
72 vin-supply = <&mt6359_vs2_buck_reg>;
73 };
74
75 pp1800_dpbrdg: regulator-1v8-dpbrdg {
76 compatible = "regulator-fixed";
77 regulator-name = "pp1800_dpbrdg";
78 pinctrl-names = "default";
79 pinctrl-0 = <&pp1800_dpbrdg_en_pins>;
80 enable-active-high;
81 regulator-boot-on;
82 gpio = <&pio 126 GPIO_ACTIVE_HIGH>;
83 vin-supply = <&mt6359_vio18_ldo_reg>;
84 };
85
86 /* system wide LDO 1.8V power rail */
87 pp1800_ldo_g: regulator-1v8-g {
88 compatible = "regulator-fixed";
89 regulator-name = "pp1800_ldo_g";
90 regulator-always-on;
91 regulator-boot-on;
92 regulator-min-microvolt = <1800000>;
93 regulator-max-microvolt = <1800000>;
94 vin-supply = <&pp3300_g>;
95 };
96
97 pp1800_mipibrdg: regulator-1v8-mipibrdg {
98 compatible = "regulator-fixed";
99 regulator-name = "pp1800_mipibrdg";
100 pinctrl-names = "default";
101 pinctrl-0 = <&pp1800_mipibrdg_en_pins>;
102 enable-active-high;
103 regulator-boot-on;
104 gpio = <&pio 128 GPIO_ACTIVE_HIGH>;
105 vin-supply = <&mt6359_vio18_ldo_reg>;
106 };
107
108 pp3300_dpbrdg: regulator-3v3-dpbrdg {
109 compatible = "regulator-fixed";
110 regulator-name = "pp3300_dpbrdg";
111 pinctrl-names = "default";
112 pinctrl-0 = <&pp3300_dpbrdg_en_pins>;
113 enable-active-high;
114 regulator-boot-on;
115 gpio = <&pio 26 GPIO_ACTIVE_HIGH>;
116 vin-supply = <&pp3300_g>;
117 };
118
119 /* system wide switching 3.3V power rail */
120 pp3300_g: regulator-3v3-g {
121 compatible = "regulator-fixed";
122 regulator-name = "pp3300_g";
123 regulator-always-on;
124 regulator-boot-on;
125 regulator-min-microvolt = <3300000>;
126 regulator-max-microvolt = <3300000>;
127 vin-supply = <&ppvar_sys>;
128 };
129
130 /* system wide LDO 3.3V power rail */
131 pp3300_ldo_z: regulator-3v3-z {
132 compatible = "regulator-fixed";
133 regulator-name = "pp3300_ldo_z";
134 regulator-always-on;
135 regulator-boot-on;
136 regulator-min-microvolt = <3300000>;
137 regulator-max-microvolt = <3300000>;
138 vin-supply = <&ppvar_sys>;
139 };
140
141 pp3300_mipibrdg: regulator-3v3-mipibrdg {
142 compatible = "regulator-fixed";
143 regulator-name = "pp3300_mipibrdg";
144 pinctrl-names = "default";
145 pinctrl-0 = <&pp3300_mipibrdg_en_pins>;
146 enable-active-high;
147 regulator-boot-on;
148 gpio = <&pio 127 GPIO_ACTIVE_HIGH>;
149 vin-supply = <&pp3300_g>;
150 off-on-delay-us = <500000>;
151 };
152
153 /* separately switched 3.3V power rail */
154 pp3300_u: regulator-3v3-u {
155 compatible = "regulator-fixed";
156 regulator-name = "pp3300_u";
157 regulator-always-on;
158 regulator-boot-on;
159 regulator-min-microvolt = <3300000>;
160 regulator-max-microvolt = <3300000>;
161 /* enable pin wired to GPIO controlled by EC */
162 vin-supply = <&pp3300_g>;
163 };
164
165 pp3300_wlan: regulator-3v3-wlan {
166 compatible = "regulator-fixed";
167 regulator-name = "pp3300_wlan";
168 regulator-always-on;
169 regulator-boot-on;
170 regulator-min-microvolt = <3300000>;
171 regulator-max-microvolt = <3300000>;
172 pinctrl-names = "default";
173 pinctrl-0 = <&pp3300_wlan_pins>;
174 enable-active-high;
175 gpio = <&pio 143 GPIO_ACTIVE_HIGH>;
176 };
177
178 /* system wide switching 5.0V power rail */
179 pp5000_a: regulator-5v0-a {
180 compatible = "regulator-fixed";
181 regulator-name = "pp5000_a";
182 regulator-always-on;
183 regulator-boot-on;
184 regulator-min-microvolt = <5000000>;
185 regulator-max-microvolt = <5000000>;
186 vin-supply = <&ppvar_sys>;
187 };
188
189 /* system wide semi-regulated power rail from battery or USB */
190 ppvar_sys: regulator-var-sys {
191 compatible = "regulator-fixed";
192 regulator-name = "ppvar_sys";
193 regulator-always-on;
194 regulator-boot-on;
195 };
196
197 reserved_memory: reserved-memory {
198 #address-cells = <2>;
199 #size-cells = <2>;
200 ranges;
201
202 afe_dma_mem: audio-dma-pool {
203 compatible = "shared-dma-pool";
204 size = <0 0x100000>;
205 alignment = <0 0x10>;
206 no-map;
207 };
208
209 scp_mem_reserved: scp@50000000 {
210 compatible = "shared-dma-pool";
211 reg = <0 0x50000000 0 0x2900000>;
212 no-map;
213 };
214
215 wifi_restricted_dma_region: wifi@c0000000 {
216 compatible = "restricted-dma-pool";
217 reg = <0 0xc0000000 0 0x4000000>;
218 };
219 };
220
221 rt1015p: audio-codec {
222 compatible = "realtek,rt1015p";
223 pinctrl-names = "default";
224 pinctrl-0 = <&rt1015p_pins>;
225 sdb-gpios = <&pio 147 GPIO_ACTIVE_HIGH>;
226 #sound-dai-cells = <0>;
227 };
228
229 sound: sound {
230 mediatek,platform = <&afe>;
231 pinctrl-names = "aud_clk_mosi_off",
232 "aud_clk_mosi_on",
233 "aud_dat_mosi_off",
234 "aud_dat_mosi_on",
235 "aud_dat_miso_off",
236 "aud_dat_miso_on",
237 "vow_dat_miso_off",
238 "vow_dat_miso_on",
239 "vow_clk_miso_off",
240 "vow_clk_miso_on",
241 "aud_nle_mosi_off",
242 "aud_nle_mosi_on",
243 "aud_dat_miso2_off",
244 "aud_dat_miso2_on",
245 "aud_gpio_i2s3_off",
246 "aud_gpio_i2s3_on",
247 "aud_gpio_i2s8_off",
248 "aud_gpio_i2s8_on",
249 "aud_gpio_i2s9_off",
250 "aud_gpio_i2s9_on",
251 "aud_dat_mosi_ch34_off",
252 "aud_dat_mosi_ch34_on",
253 "aud_dat_miso_ch34_off",
254 "aud_dat_miso_ch34_on",
255 "aud_gpio_tdm_off",
256 "aud_gpio_tdm_on";
257 pinctrl-0 = <&aud_clk_mosi_off_pins>;
258 pinctrl-1 = <&aud_clk_mosi_on_pins>;
259 pinctrl-2 = <&aud_dat_mosi_off_pins>;
260 pinctrl-3 = <&aud_dat_mosi_on_pins>;
261 pinctrl-4 = <&aud_dat_miso_off_pins>;
262 pinctrl-5 = <&aud_dat_miso_on_pins>;
263 pinctrl-6 = <&vow_dat_miso_off_pins>;
264 pinctrl-7 = <&vow_dat_miso_on_pins>;
265 pinctrl-8 = <&vow_clk_miso_off_pins>;
266 pinctrl-9 = <&vow_clk_miso_on_pins>;
267 pinctrl-10 = <&aud_nle_mosi_off_pins>;
268 pinctrl-11 = <&aud_nle_mosi_on_pins>;
269 pinctrl-12 = <&aud_dat_miso2_off_pins>;
270 pinctrl-13 = <&aud_dat_miso2_on_pins>;
271 pinctrl-14 = <&aud_gpio_i2s3_off_pins>;
272 pinctrl-15 = <&aud_gpio_i2s3_on_pins>;
273 pinctrl-16 = <&aud_gpio_i2s8_off_pins>;
274 pinctrl-17 = <&aud_gpio_i2s8_on_pins>;
275 pinctrl-18 = <&aud_gpio_i2s9_off_pins>;
276 pinctrl-19 = <&aud_gpio_i2s9_on_pins>;
277 pinctrl-20 = <&aud_dat_mosi_ch34_off_pins>;
278 pinctrl-21 = <&aud_dat_mosi_ch34_on_pins>;
279 pinctrl-22 = <&aud_dat_miso_ch34_off_pins>;
280 pinctrl-23 = <&aud_dat_miso_ch34_on_pins>;
281 pinctrl-24 = <&aud_gpio_tdm_off_pins>;
282 pinctrl-25 = <&aud_gpio_tdm_on_pins>;
283 };
284 };
285
286 &afe {
287 memory-region = <&afe_dma_mem>;
288 };
289
290 &dsi0 {
291 status = "okay";
292 };
293
294 &dsi_out {
295 remote-endpoint = <&anx7625_in>;
296 };
297
298 &gic {
299 mediatek,broken-save-restore-fw;
300 };
301
302 &gpu {
303 mali-supply = <&mt6315_7_vbuck1>;
304 status = "okay";
305 };
306
307 &i2c0 {
308 status = "okay";
309
310 clock-frequency = <400000>;
311 pinctrl-names = "default";
312 pinctrl-0 = <&i2c0_pins>;
313
314 touchscreen: touchscreen@10 {
315 reg = <0x10>;
316 interrupts-extended = <&pio 21 IRQ_TYPE_LEVEL_LOW>;
317 pinctrl-names = "default";
318 pinctrl-0 = <&touchscreen_pins>;
319 };
320 };
321
322 &i2c1 {
323 status = "okay";
324
325 clock-frequency = <400000>;
326 pinctrl-names = "default";
327 pinctrl-0 = <&i2c1_pins>;
328
329 rt5682: audio-codec@1a {
330 /* Realtek RT5682i or RT5682s, sharing the same configuration */
331 reg = <0x1a>;
332 interrupts-extended = <&pio 18 IRQ_TYPE_LEVEL_LOW>;
333 realtek,jd-src = <1>;
334 #sound-dai-cells = <1>;
335
336 AVDD-supply = <&mt6359_vio18_ldo_reg>;
337 DBVDD-supply = <&mt6359_vio18_ldo_reg>;
338 LDO1-IN-supply = <&mt6359_vio18_ldo_reg>;
339 MICVDD-supply = <&pp3300_g>;
340 };
341 };
342
343 &i2c2 {
344 status = "okay";
345
346 clock-frequency = <400000>;
347 pinctrl-names = "default";
348 pinctrl-0 = <&i2c2_pins>;
349
350 trackpad: trackpad@15 {
351 compatible = "elan,ekth3000";
352 reg = <0x15>;
353 pinctrl-names = "default";
354 pinctrl-0 = <&trackpad_pins>;
355 interrupts-extended = <&pio 15 IRQ_TYPE_LEVEL_LOW>;
356 vcc-supply = <&pp3300_u>;
357 wakeup-source;
358 };
359 };
360
361 &i2c3 {
362 status = "okay";
363
364 clock-frequency = <400000>;
365 pinctrl-names = "default";
366 pinctrl-0 = <&i2c3_pins>;
367
368 anx_bridge: anx7625@58 {
369 compatible = "analogix,anx7625";
370 reg = <0x58>;
371 pinctrl-names = "default";
372 pinctrl-0 = <&anx7625_pins>;
373 enable-gpios = <&pio 41 GPIO_ACTIVE_HIGH>;
374 reset-gpios = <&pio 42 GPIO_ACTIVE_HIGH>;
375 vdd10-supply = <&pp1000_mipibrdg>;
376 vdd18-supply = <&pp1800_mipibrdg>;
377 vdd33-supply = <&pp3300_mipibrdg>;
378
379 ports {
380 #address-cells = <1>;
381 #size-cells = <0>;
382
383 port@0 {
384 reg = <0>;
385
386 anx7625_in: endpoint {
387 remote-endpoint = <&dsi_out>;
388 };
389 };
390
391 port@1 {
392 reg = <1>;
393
394 anx7625_out: endpoint {
395 remote-endpoint = <&panel_in>;
396 };
397 };
398 };
399
400 aux-bus {
401 panel: panel {
402 compatible = "edp-panel";
403 power-supply = <&pp3300_mipibrdg>;
404 backlight = <&backlight_lcd0>;
405
406 port {
407 panel_in: endpoint {
408 remote-endpoint = <&anx7625_out>;
409 };
410 };
411 };
412 };
413 };
414 };
415
416 &i2c7 {
417 status = "okay";
418
419 clock-frequency = <400000>;
420 pinctrl-names = "default";
421 pinctrl-0 = <&i2c7_pins>;
422 };
423
424 &mfg0 {
425 domain-supply = <&mt6315_7_vbuck1>;
426 };
427
428 &mfg1 {
429 domain-supply = <&mt6359_vsram_others_ldo_reg>;
430 };
431
432 &mipi_tx0 {
433 status = "okay";
434 };
435
436 &mmc0 {
437 status = "okay";
438
439 pinctrl-names = "default", "state_uhs";
440 pinctrl-0 = <&mmc0_default_pins>;
441 pinctrl-1 = <&mmc0_uhs_pins>;
442 bus-width = <8>;
443 max-frequency = <200000000>;
444 vmmc-supply = <&mt6359_vemc_1_ldo_reg>;
445 vqmmc-supply = <&mt6359_vufs_ldo_reg>;
446 cap-mmc-highspeed;
447 mmc-hs200-1_8v;
448 mmc-hs400-1_8v;
449 supports-cqe;
450 cap-mmc-hw-reset;
451 mmc-hs400-enhanced-strobe;
452 hs400-ds-delay = <0x12814>;
453 no-sdio;
454 no-sd;
455 non-removable;
456 };
457
458 &mmc1 {
459 status = "okay";
460
461 pinctrl-names = "default", "state_uhs";
462 pinctrl-0 = <&mmc1_default_pins>;
463 pinctrl-1 = <&mmc1_uhs_pins>;
464 bus-width = <4>;
465 max-frequency = <200000000>;
466 cd-gpios = <&pio 17 GPIO_ACTIVE_LOW>;
467 vmmc-supply = <&mt6360_ldo5_reg>;
468 vqmmc-supply = <&mt6360_ldo3_reg>;
469 cap-sd-highspeed;
470 sd-uhs-sdr50;
471 sd-uhs-sdr104;
472 no-sdio;
473 no-mmc;
474 };
475
476 /* for CORE */
477 &mt6359_vgpu11_buck_reg {
478 regulator-always-on;
479 };
480
481 &mt6359_vgpu11_sshub_buck_reg {
482 regulator-always-on;
483 regulator-min-microvolt = <575000>;
484 regulator-max-microvolt = <575000>;
485 };
486
487 &mt6359_vrf12_ldo_reg {
488 regulator-always-on;
489 };
490
491 &mt6359_vsram_others_ldo_reg {
492 regulator-min-microvolt = <750000>;
493 regulator-max-microvolt = <800000>;
494 regulator-coupled-with = <&mt6315_7_vbuck1>;
495 regulator-coupled-max-spread = <10000>;
496 };
497
498 &mt6359_vufs_ldo_reg {
499 regulator-always-on;
500 };
501
502 &mt6359codec {
503 mediatek,dmic-mode = <1>; /* one-wire */
504 mediatek,mic-type-0 = <2>; /* DMIC */
505 mediatek,mic-type-2 = <2>; /* DMIC */
506 };
507
508 &nor_flash {
509 status = "okay";
510
511 pinctrl-names = "default";
512 pinctrl-0 = <&nor_flash_pins>;
513 assigned-clocks = <&topckgen CLK_TOP_SFLASH_SEL>;
514 assigned-clock-parents = <&topckgen CLK_TOP_UNIVPLL_D6_D8>;
515
516 flash@0 {
517 compatible = "winbond,w25q64jwm", "jedec,spi-nor";
518 reg = <0>;
519 spi-max-frequency = <52000000>;
520 spi-rx-bus-width = <2>;
521 spi-tx-bus-width = <2>;
522 };
523 };
524
525 &pcie {
526 pinctrl-names = "default";
527 pinctrl-0 = <&pcie_pins>;
528
529 pcie0: pcie@0,0 {
530 device_type = "pci";
531 reg = <0x0000 0 0 0 0>;
532 num-lanes = <1>;
533 bus-range = <0x1 0x1>;
534
535 #address-cells = <3>;
536 #size-cells = <2>;
537 ranges;
538
539 wifi: wifi@0,0 {
540 reg = <0x10000 0 0 0 0x100000>,
541 <0x10000 0 0x100000 0 0x100000>;
542 memory-region = <&wifi_restricted_dma_region>;
543 };
544 };
545 };
546
547 &pio {
548 /* 220 lines */
549 gpio-line-names = "I2S_DP_LRCK",
550 "IS_DP_BCLK",
551 "I2S_DP_MCLK",
552 "I2S_DP_DATAOUT",
553 "SAR0_INT_ODL",
554 "EC_AP_INT_ODL",
555 "EDPBRDG_INT_ODL",
556 "DPBRDG_INT_ODL",
557 "DPBRDG_PWREN",
558 "DPBRDG_RST_ODL",
559 "I2S_HP_MCLK",
560 "I2S_HP_BCK",
561 "I2S_HP_LRCK",
562 "I2S_HP_DATAIN",
563 /*
564 * AP_FLASH_WP_L is crossystem ABI. Schematics
565 * call it AP_FLASH_WP_ODL.
566 */
567 "AP_FLASH_WP_L",
568 "TRACKPAD_INT_ODL",
569 "EC_AP_HPD_OD",
570 "SD_CD_ODL",
571 "HP_INT_ODL_ALC",
572 "EN_PP1000_DPBRDG",
573 "AP_GPIO20",
574 "TOUCH_INT_L_1V8",
575 "UART_BT_WAKE_ODL",
576 "AP_GPIO23",
577 "AP_SPI_FLASH_CS_L",
578 "AP_SPI_FLASH_CLK",
579 "EN_PP3300_DPBRDG_DX",
580 "AP_SPI_FLASH_MOSI",
581 "AP_SPI_FLASH_MISO",
582 "I2S_HP_DATAOUT",
583 "AP_GPIO30",
584 "I2S_SPKR_MCLK",
585 "I2S_SPKR_BCLK",
586 "I2S_SPKR_LRCK",
587 "I2S_SPKR_DATAIN",
588 "I2S_SPKR_DATAOUT",
589 "AP_SPI_H1_TPM_CLK",
590 "AP_SPI_H1_TPM_CS_L",
591 "AP_SPI_H1_TPM_MISO",
592 "AP_SPI_H1_TPM_MOSI",
593 "BL_PWM",
594 "EDPBRDG_PWREN",
595 "EDPBRDG_RST_ODL",
596 "EN_PP3300_HUB",
597 "HUB_RST_L",
598 "",
599 "",
600 "",
601 "",
602 "",
603 "",
604 "SD_CLK",
605 "SD_CMD",
606 "SD_DATA3",
607 "SD_DATA0",
608 "SD_DATA2",
609 "SD_DATA1",
610 "",
611 "",
612 "",
613 "",
614 "",
615 "",
616 "PCIE_WAKE_ODL",
617 "PCIE_RST_L",
618 "PCIE_CLKREQ_ODL",
619 "",
620 "",
621 "",
622 "",
623 "",
624 "",
625 "",
626 "",
627 "",
628 "",
629 "",
630 "",
631 "",
632 "",
633 "",
634 "",
635 "",
636 "",
637 "",
638 "",
639 "",
640 "",
641 "",
642 "SPMI_SCL",
643 "SPMI_SDA",
644 "AP_GOOD",
645 "UART_DBG_TX_AP_RX",
646 "UART_AP_TX_DBG_RX",
647 "UART_AP_TX_BT_RX",
648 "UART_BT_TX_AP_RX",
649 "MIPI_DPI_D0_R",
650 "MIPI_DPI_D1_R",
651 "MIPI_DPI_D2_R",
652 "MIPI_DPI_D3_R",
653 "MIPI_DPI_D4_R",
654 "MIPI_DPI_D5_R",
655 "MIPI_DPI_D6_R",
656 "MIPI_DPI_D7_R",
657 "MIPI_DPI_D8_R",
658 "MIPI_DPI_D9_R",
659 "MIPI_DPI_D10_R",
660 "",
661 "",
662 "MIPI_DPI_DE_R",
663 "MIPI_DPI_D11_R",
664 "MIPI_DPI_VSYNC_R",
665 "MIPI_DPI_CLK_R",
666 "MIPI_DPI_HSYNC_R",
667 "PCM_BT_DATAIN",
668 "PCM_BT_SYNC",
669 "PCM_BT_DATAOUT",
670 "PCM_BT_CLK",
671 "AP_I2C_AUDIO_SCL",
672 "AP_I2C_AUDIO_SDA",
673 "SCP_I2C_SCL",
674 "SCP_I2C_SDA",
675 "AP_I2C_WLAN_SCL",
676 "AP_I2C_WLAN_SDA",
677 "AP_I2C_DPBRDG_SCL",
678 "AP_I2C_DPBRDG_SDA",
679 "EN_PP1800_DPBRDG_DX",
680 "EN_PP3300_EDP_DX",
681 "EN_PP1800_EDPBRDG_DX",
682 "EN_PP1000_EDPBRDG",
683 "SCP_JTAG0_TDO",
684 "SCP_JTAG0_TDI",
685 "SCP_JTAG0_TMS",
686 "SCP_JTAG0_TCK",
687 "SCP_JTAG0_TRSTN",
688 "EN_PP3000_VMC_PMU",
689 "EN_PP3300_DISPLAY_DX",
690 "TOUCH_RST_L_1V8",
691 "TOUCH_REPORT_DISABLE",
692 "",
693 "",
694 "AP_I2C_TRACKPAD_SCL_1V8",
695 "AP_I2C_TRACKPAD_SDA_1V8",
696 "EN_PP3300_WLAN",
697 "BT_KILL_L",
698 "WIFI_KILL_L",
699 "SET_VMC_VOLT_AT_1V8",
700 "EN_SPK",
701 "AP_WARM_RST_REQ",
702 "",
703 "",
704 "EN_PP3000_SD_S3",
705 "AP_EDP_BKLTEN",
706 "",
707 "",
708 "",
709 "AP_SPI_EC_CLK",
710 "AP_SPI_EC_CS_L",
711 "AP_SPI_EC_MISO",
712 "AP_SPI_EC_MOSI",
713 "AP_I2C_EDPBRDG_SCL",
714 "AP_I2C_EDPBRDG_SDA",
715 "MT6315_PROC_INT",
716 "MT6315_GPU_INT",
717 "UART_SERVO_TX_SCP_RX",
718 "UART_SCP_TX_SERVO_RX",
719 "BT_RTS_AP_CTS",
720 "AP_RTS_BT_CTS",
721 "UART_AP_WAKE_BT_ODL",
722 "WLAN_ALERT_ODL",
723 "EC_IN_RW_ODL",
724 "H1_AP_INT_ODL",
725 "",
726 "",
727 "",
728 "",
729 "",
730 "",
731 "",
732 "",
733 "",
734 "",
735 "",
736 "MSDC0_CMD",
737 "MSDC0_DAT0",
738 "MSDC0_DAT2",
739 "MSDC0_DAT4",
740 "MSDC0_DAT6",
741 "MSDC0_DAT1",
742 "MSDC0_DAT5",
743 "MSDC0_DAT7",
744 "MSDC0_DSL",
745 "MSDC0_CLK",
746 "MSDC0_DAT3",
747 "MSDC0_RST_L",
748 "SCP_VREQ_VAO",
749 "AUD_DAT_MOSI2",
750 "AUD_NLE_MOSI1",
751 "AUD_NLE_MOSI0",
752 "AUD_DAT_MISO2",
753 "AP_I2C_SAR_SDA",
754 "AP_I2C_SAR_SCL",
755 "AP_I2C_PWR_SCL",
756 "AP_I2C_PWR_SDA",
757 "AP_I2C_TS_SCL_1V8",
758 "AP_I2C_TS_SDA_1V8",
759 "SRCLKENA0",
760 "SRCLKENA1",
761 "AP_EC_WATCHDOG_L",
762 "PWRAP_SPI0_MI",
763 "PWRAP_SPI0_CSN",
764 "PWRAP_SPI0_MO",
765 "PWRAP_SPI0_CK",
766 "AP_RTC_CLK32K",
767 "AUD_CLK_MOSI",
768 "AUD_SYNC_MOSI",
769 "AUD_DAT_MOSI0",
770 "AUD_DAT_MOSI1",
771 "AUD_DAT_MISO0",
772 "AUD_DAT_MISO1";
773
774 anx7625_pins: anx7625-default-pins {
775 pins-out {
776 pinmux = <PINMUX_GPIO41__FUNC_GPIO41>,
777 <PINMUX_GPIO42__FUNC_GPIO42>;
778 output-low;
779 };
780
781 pins-in {
782 pinmux = <PINMUX_GPIO6__FUNC_GPIO6>;
783 input-enable;
784 bias-pull-up;
785 };
786 };
787
788 aud_clk_mosi_off_pins: aud-clk-mosi-off-pins {
789 pins-mosi-off {
790 pinmux = <PINMUX_GPIO214__FUNC_GPIO214>,
791 <PINMUX_GPIO215__FUNC_GPIO215>;
792 };
793 };
794
795 aud_clk_mosi_on_pins: aud-clk-mosi-on-pins {
796 pins-mosi-on {
797 pinmux = <PINMUX_GPIO214__FUNC_AUD_CLK_MOSI>,
798 <PINMUX_GPIO215__FUNC_AUD_SYNC_MOSI>;
799 drive-strength = <10>;
800 };
801 };
802
803 aud_dat_miso_ch34_off_pins: aud-dat-miso-ch34-off-pins {
804 pins-miso-off {
805 pinmux = <PINMUX_GPIO199__FUNC_GPIO199>;
806 };
807 };
808
809 aud_dat_miso_ch34_on_pins: aud-dat-miso-ch34-on-pins {
810 pins-miso-on {
811 pinmux = <PINMUX_GPIO199__FUNC_AUD_DAT_MISO2>;
812 };
813 };
814
815 aud_dat_miso_off_pins: aud-dat-miso-off-pins {
816 pins-miso-off {
817 pinmux = <PINMUX_GPIO218__FUNC_GPIO218>,
818 <PINMUX_GPIO219__FUNC_GPIO219>;
819 };
820 };
821
822 aud_dat_miso_on_pins: aud-dat-miso-on-pins {
823 pins-miso-on {
824 pinmux = <PINMUX_GPIO218__FUNC_AUD_DAT_MISO0>,
825 <PINMUX_GPIO219__FUNC_AUD_DAT_MISO1>;
826 drive-strength = <10>;
827 };
828 };
829
830 aud_dat_miso2_off_pins: aud-dat-miso2-off-pins {
831 pins-miso-off {
832 pinmux = <PINMUX_GPIO199__FUNC_GPIO199>;
833 };
834 };
835
836 aud_dat_miso2_on_pins: aud-dat-miso2-on-pins {
837 pins-miso-on {
838 pinmux = <PINMUX_GPIO199__FUNC_AUD_DAT_MISO2>;
839 };
840 };
841
842 aud_dat_mosi_ch34_off_pins: aud-dat-mosi-ch34-off-pins {
843 pins-mosi-off {
844 pinmux = <PINMUX_GPIO196__FUNC_GPIO196>;
845 };
846 };
847
848 aud_dat_mosi_ch34_on_pins: aud-dat-mosi-ch34-on-pins {
849 pins-mosi-on {
850 pinmux = <PINMUX_GPIO196__FUNC_AUD_DAT_MOSI2>;
851 };
852 };
853
854 aud_dat_mosi_off_pins: aud-dat-mosi-off-pins {
855 pins-mosi-off {
856 pinmux = <PINMUX_GPIO216__FUNC_GPIO216>,
857 <PINMUX_GPIO217__FUNC_GPIO217>;
858 };
859 };
860
861 aud_dat_mosi_on_pins: aud-dat-mosi-on-pins {
862 pins-mosi-on {
863 pinmux = <PINMUX_GPIO216__FUNC_AUD_DAT_MOSI0>,
864 <PINMUX_GPIO217__FUNC_AUD_DAT_MOSI1>;
865 drive-strength = <10>;
866 };
867 };
868
869 aud_gpio_i2s3_off_pins: aud-gpio-i2s3-off-pins {
870 pins-i2s3-off {
871 pinmux = <PINMUX_GPIO32__FUNC_GPIO32>,
872 <PINMUX_GPIO33__FUNC_GPIO33>,
873 <PINMUX_GPIO35__FUNC_GPIO35>;
874 };
875 };
876
877 aud_gpio_i2s3_on_pins: aud-gpio-i2s3-on-pins {
878 pins-i2s3-on {
879 pinmux = <PINMUX_GPIO32__FUNC_I2S3_BCK>,
880 <PINMUX_GPIO33__FUNC_I2S3_LRCK>,
881 <PINMUX_GPIO35__FUNC_I2S3_DO>;
882 };
883 };
884
885 aud_gpio_i2s8_off_pins: aud-gpio-i2s8-off-pins {
886 pins-i2s8-off {
887 pinmux = <PINMUX_GPIO10__FUNC_GPIO10>,
888 <PINMUX_GPIO11__FUNC_GPIO11>,
889 <PINMUX_GPIO12__FUNC_GPIO12>,
890 <PINMUX_GPIO13__FUNC_GPIO13>;
891 };
892 };
893
894 aud_gpio_i2s8_on_pins: aud-gpio-i2s8-on-pins {
895 pins-i2s8-on {
896 pinmux = <PINMUX_GPIO10__FUNC_I2S8_MCK>,
897 <PINMUX_GPIO11__FUNC_I2S8_BCK>,
898 <PINMUX_GPIO12__FUNC_I2S8_LRCK>,
899 <PINMUX_GPIO13__FUNC_I2S8_DI>;
900 };
901 };
902
903 aud_gpio_i2s9_off_pins: aud-gpio-i2s9-off-pins {
904 pins-i2s9-off {
905 pinmux = <PINMUX_GPIO29__FUNC_GPIO29>;
906 };
907 };
908
909 aud_gpio_i2s9_on_pins: aud-gpio-i2s9-on-pins {
910 pins-i2s9-on {
911 pinmux = <PINMUX_GPIO29__FUNC_I2S9_DO>;
912 };
913 };
914
915 aud_gpio_tdm_off_pins: aud-gpio-tdm-off-pins {
916 pins-tdm-off {
917 pinmux = <PINMUX_GPIO0__FUNC_GPIO0>,
918 <PINMUX_GPIO1__FUNC_GPIO1>,
919 <PINMUX_GPIO2__FUNC_GPIO2>,
920 <PINMUX_GPIO3__FUNC_GPIO3>;
921 };
922 };
923
924 aud_gpio_tdm_on_pins: aud-gpio-tdm-on-pins {
925 pins-tdm-on {
926 pinmux = <PINMUX_GPIO0__FUNC_TDM_LRCK>,
927 <PINMUX_GPIO1__FUNC_TDM_BCK>,
928 <PINMUX_GPIO2__FUNC_TDM_MCK>,
929 <PINMUX_GPIO3__FUNC_TDM_DATA0>;
930 };
931 };
932
933 aud_nle_mosi_off_pins: aud-nle-mosi-off-pins {
934 pins-nle-mosi-off {
935 pinmux = <PINMUX_GPIO197__FUNC_GPIO197>,
936 <PINMUX_GPIO198__FUNC_GPIO198>;
937 };
938 };
939
940 aud_nle_mosi_on_pins: aud-nle-mosi-on-pins {
941 pins-nle-mosi-on {
942 pinmux = <PINMUX_GPIO197__FUNC_AUD_NLE_MOSI1>,
943 <PINMUX_GPIO198__FUNC_AUD_NLE_MOSI0>;
944 };
945 };
946
947 cr50_int: cr50-irq-default-pins {
948 pins-gsc-ap-int-odl {
949 pinmux = <PINMUX_GPIO171__FUNC_GPIO171>;
950 input-enable;
951 };
952 };
953
954 cros_ec_int: cros-ec-irq-default-pins {
955 pins-ec-ap-int-odl {
956 pinmux = <PINMUX_GPIO5__FUNC_GPIO5>;
957 input-enable;
958 bias-pull-up;
959 };
960 };
961
962 i2c0_pins: i2c0-default-pins {
963 pins-bus {
964 pinmux = <PINMUX_GPIO204__FUNC_SCL0>,
965 <PINMUX_GPIO205__FUNC_SDA0>;
966 bias-pull-up = <MTK_PULL_SET_RSEL_011>;
967 drive-strength-microamp = <1000>;
968 };
969 };
970
971 i2c1_pins: i2c1-default-pins {
972 pins-bus {
973 pinmux = <PINMUX_GPIO118__FUNC_SCL1>,
974 <PINMUX_GPIO119__FUNC_SDA1>;
975 bias-pull-up = <MTK_PULL_SET_RSEL_011>;
976 drive-strength-microamp = <1000>;
977 };
978 };
979
980 i2c2_pins: i2c2-default-pins {
981 pins-bus {
982 pinmux = <PINMUX_GPIO141__FUNC_SCL2>,
983 <PINMUX_GPIO142__FUNC_SDA2>;
984 bias-pull-up = <MTK_PULL_SET_RSEL_011>;
985 };
986 };
987
988 i2c3_pins: i2c3-default-pins {
989 pins-bus {
990 pinmux = <PINMUX_GPIO160__FUNC_SCL3>,
991 <PINMUX_GPIO161__FUNC_SDA3>;
992 bias-disable;
993 drive-strength-microamp = <1000>;
994 };
995 };
996
997 i2c7_pins: i2c7-default-pins {
998 pins-bus {
999 pinmux = <PINMUX_GPIO124__FUNC_SCL7>,
1000 <PINMUX_GPIO125__FUNC_SDA7>;
1001 bias-disable;
1002 drive-strength-microamp = <1000>;
1003 };
1004 };
1005
1006 mmc0_default_pins: mmc0-default-pins {
1007 pins-cmd-dat {
1008 pinmux = <PINMUX_GPIO184__FUNC_MSDC0_DAT0>,
1009 <PINMUX_GPIO188__FUNC_MSDC0_DAT1>,
1010 <PINMUX_GPIO185__FUNC_MSDC0_DAT2>,
1011 <PINMUX_GPIO193__FUNC_MSDC0_DAT3>,
1012 <PINMUX_GPIO186__FUNC_MSDC0_DAT4>,
1013 <PINMUX_GPIO189__FUNC_MSDC0_DAT5>,
1014 <PINMUX_GPIO187__FUNC_MSDC0_DAT6>,
1015 <PINMUX_GPIO190__FUNC_MSDC0_DAT7>,
1016 <PINMUX_GPIO183__FUNC_MSDC0_CMD>;
1017 input-enable;
1018 drive-strength = <8>;
1019 bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
1020 };
1021
1022 pins-clk {
1023 pinmux = <PINMUX_GPIO192__FUNC_MSDC0_CLK>;
1024 drive-strength = <8>;
1025 bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
1026 };
1027
1028 pins-rst {
1029 pinmux = <PINMUX_GPIO194__FUNC_MSDC0_RSTB>;
1030 drive-strength = <8>;
1031 bias-pull-down = <MTK_PUPD_SET_R1R0_01>;
1032 };
1033 };
1034
1035 mmc0_uhs_pins: mmc0-uhs-pins {
1036 pins-cmd-dat {
1037 pinmux = <PINMUX_GPIO184__FUNC_MSDC0_DAT0>,
1038 <PINMUX_GPIO188__FUNC_MSDC0_DAT1>,
1039 <PINMUX_GPIO185__FUNC_MSDC0_DAT2>,
1040 <PINMUX_GPIO193__FUNC_MSDC0_DAT3>,
1041 <PINMUX_GPIO186__FUNC_MSDC0_DAT4>,
1042 <PINMUX_GPIO189__FUNC_MSDC0_DAT5>,
1043 <PINMUX_GPIO187__FUNC_MSDC0_DAT6>,
1044 <PINMUX_GPIO190__FUNC_MSDC0_DAT7>,
1045 <PINMUX_GPIO183__FUNC_MSDC0_CMD>;
1046 input-enable;
1047 drive-strength = <10>;
1048 bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
1049 };
1050
1051 pins-clk {
1052 pinmux = <PINMUX_GPIO192__FUNC_MSDC0_CLK>;
1053 drive-strength = <10>;
1054 bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
1055 };
1056
1057 pins-rst {
1058 pinmux = <PINMUX_GPIO194__FUNC_MSDC0_RSTB>;
1059 drive-strength = <8>;
1060 bias-pull-down = <MTK_PUPD_SET_R1R0_01>;
1061 };
1062
1063 pins-ds {
1064 pinmux = <PINMUX_GPIO191__FUNC_MSDC0_DSL>;
1065 drive-strength = <10>;
1066 bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
1067 };
1068 };
1069
1070 mmc1_default_pins: mmc1-default-pins {
1071 pins-cmd-dat {
1072 pinmux = <PINMUX_GPIO54__FUNC_MSDC1_DAT0>,
1073 <PINMUX_GPIO56__FUNC_MSDC1_DAT1>,
1074 <PINMUX_GPIO55__FUNC_MSDC1_DAT2>,
1075 <PINMUX_GPIO53__FUNC_MSDC1_DAT3>,
1076 <PINMUX_GPIO52__FUNC_MSDC1_CMD>;
1077 input-enable;
1078 drive-strength = <8>;
1079 bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
1080 };
1081
1082 pins-clk {
1083 pinmux = <PINMUX_GPIO51__FUNC_MSDC1_CLK>;
1084 drive-strength = <8>;
1085 bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
1086 };
1087
1088 pins-insert {
1089 pinmux = <PINMUX_GPIO17__FUNC_GPIO17>;
1090 input-enable;
1091 bias-pull-up;
1092 };
1093 };
1094
1095 mmc1_uhs_pins: mmc1-uhs-pins {
1096 pins-cmd-dat {
1097 pinmux = <PINMUX_GPIO54__FUNC_MSDC1_DAT0>,
1098 <PINMUX_GPIO56__FUNC_MSDC1_DAT1>,
1099 <PINMUX_GPIO55__FUNC_MSDC1_DAT2>,
1100 <PINMUX_GPIO53__FUNC_MSDC1_DAT3>,
1101 <PINMUX_GPIO52__FUNC_MSDC1_CMD>;
1102 input-enable;
1103 drive-strength = <8>;
1104 bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
1105 };
1106
1107 pins-clk {
1108 pinmux = <PINMUX_GPIO51__FUNC_MSDC1_CLK>;
1109 input-enable;
1110 drive-strength = <8>;
1111 bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
1112 };
1113 };
1114
1115 nor_flash_pins: nor-flash-default-pins {
1116 pins-cs-io1 {
1117 pinmux = <PINMUX_GPIO24__FUNC_SPINOR_CS>,
1118 <PINMUX_GPIO28__FUNC_SPINOR_IO1>;
1119 input-enable;
1120 bias-pull-up;
1121 drive-strength = <10>;
1122 };
1123
1124 pins-io0 {
1125 pinmux = <PINMUX_GPIO27__FUNC_SPINOR_IO0>;
1126 bias-pull-up;
1127 drive-strength = <10>;
1128 };
1129
1130 pins-clk {
1131 pinmux = <PINMUX_GPIO25__FUNC_SPINOR_CK>;
1132 input-enable;
1133 bias-pull-up;
1134 drive-strength = <10>;
1135 };
1136 };
1137
1138 pcie_pins: pcie-default-pins {
1139 pins-pcie-wake {
1140 pinmux = <PINMUX_GPIO63__FUNC_PCIE_WAKE_N>;
1141 bias-pull-up;
1142 };
1143
1144 pins-pcie-pereset {
1145 pinmux = <PINMUX_GPIO64__FUNC_PCIE_PERESET_N>;
1146 };
1147
1148 pins-pcie-clkreq {
1149 pinmux = <PINMUX_GPIO65__FUNC_PCIE_CLKREQ_N>;
1150 bias-pull-up;
1151 };
1152
1153 pins-wifi-kill {
1154 pinmux = <PINMUX_GPIO145__FUNC_GPIO145>; /* WIFI_KILL_L */
1155 output-high;
1156 };
1157 };
1158
1159 pp1000_dpbrdg_en_pins: pp1000-dpbrdg-en-pins {
1160 pins-en {
1161 pinmux = <PINMUX_GPIO19__FUNC_GPIO19>;
1162 output-low;
1163 };
1164 };
1165
1166 pp1000_mipibrdg_en_pins: pp1000-mipibrdg-en-pins {
1167 pins-en {
1168 pinmux = <PINMUX_GPIO129__FUNC_GPIO129>;
1169 output-low;
1170 };
1171 };
1172
1173 pp1800_dpbrdg_en_pins: pp1800-dpbrdg-en-pins {
1174 pins-en {
1175 pinmux = <PINMUX_GPIO126__FUNC_GPIO126>;
1176 output-low;
1177 };
1178 };
1179
1180 pp1800_mipibrdg_en_pins: pp1800-mipibrd-en-pins {
1181 pins-en {
1182 pinmux = <PINMUX_GPIO128__FUNC_GPIO128>;
1183 output-low;
1184 };
1185 };
1186
1187 pp3300_dpbrdg_en_pins: pp3300-dpbrdg-en-pins {
1188 pins-en {
1189 pinmux = <PINMUX_GPIO26__FUNC_GPIO26>;
1190 output-low;
1191 };
1192 };
1193
1194 pp3300_mipibrdg_en_pins: pp3300-mipibrdg-en-pins {
1195 pins-en {
1196 pinmux = <PINMUX_GPIO127__FUNC_GPIO127>;
1197 output-low;
1198 };
1199 };
1200
1201 pp3300_wlan_pins: pp3300-wlan-pins {
1202 pins-pcie-en-pp3300-wlan {
1203 pinmux = <PINMUX_GPIO143__FUNC_GPIO143>;
1204 output-high;
1205 };
1206 };
1207
1208 pwm0_pins: pwm0-default-pins {
1209 pins-pwm {
1210 pinmux = <PINMUX_GPIO40__FUNC_DISP_PWM>;
1211 };
1212
1213 pins-inhibit {
1214 pinmux = <PINMUX_GPIO152__FUNC_GPIO152>;
1215 output-high;
1216 };
1217 };
1218
1219 rt1015p_pins: rt1015p-default-pins {
1220 pins {
1221 pinmux = <PINMUX_GPIO147__FUNC_GPIO147>;
1222 output-low;
1223 };
1224 };
1225
1226 scp_pins: scp-pins {
1227 pins-vreq-vao {
1228 pinmux = <PINMUX_GPIO195__FUNC_SCP_VREQ_VAO>;
1229 };
1230 };
1231
1232 spi1_pins: spi1-default-pins {
1233 pins-cs-mosi-clk {
1234 pinmux = <PINMUX_GPIO157__FUNC_SPI1_A_CSB>,
1235 <PINMUX_GPIO159__FUNC_SPI1_A_MO>,
1236 <PINMUX_GPIO156__FUNC_SPI1_A_CLK>;
1237 bias-disable;
1238 };
1239
1240 pins-miso {
1241 pinmux = <PINMUX_GPIO158__FUNC_SPI1_A_MI>;
1242 bias-pull-down;
1243 };
1244 };
1245
1246 spi5_pins: spi5-default-pins {
1247 pins-bus {
1248 pinmux = <PINMUX_GPIO38__FUNC_SPI5_A_MI>,
1249 <PINMUX_GPIO37__FUNC_GPIO37>,
1250 <PINMUX_GPIO39__FUNC_SPI5_A_MO>,
1251 <PINMUX_GPIO36__FUNC_SPI5_A_CLK>;
1252 bias-disable;
1253 };
1254 };
1255
1256 trackpad_pins: trackpad-default-pins {
1257 pins-int-n {
1258 pinmux = <PINMUX_GPIO15__FUNC_GPIO15>;
1259 input-enable;
1260 bias-pull-up = <MTK_PUPD_SET_R1R0_11>;
1261 };
1262 };
1263
1264 touchscreen_pins: touchscreen-default-pins {
1265 pins-irq {
1266 pinmux = <PINMUX_GPIO21__FUNC_GPIO21>;
1267 input-enable;
1268 bias-pull-up;
1269 };
1270
1271 pins-reset {
1272 pinmux = <PINMUX_GPIO137__FUNC_GPIO137>;
1273 output-high;
1274 };
1275
1276 pins-report-sw {
1277 pinmux = <PINMUX_GPIO138__FUNC_GPIO138>;
1278 output-low;
1279 };
1280 };
1281
1282 vow_clk_miso_off_pins: vow-clk-miso-off-pins {
1283 pins-miso-off {
1284 pinmux = <PINMUX_GPIO219__FUNC_GPIO219>;
1285 };
1286 };
1287
1288 vow_clk_miso_on_pins: vow-clk-miso-on-pins {
1289 pins-miso-on {
1290 pinmux = <PINMUX_GPIO219__FUNC_VOW_CLK_MISO>;
1291 };
1292 };
1293
1294 vow_dat_miso_off_pins: vow-dat-miso-off-pins {
1295 pins-miso-off {
1296 pinmux = <PINMUX_GPIO218__FUNC_GPIO218>;
1297 };
1298 };
1299
1300 vow_dat_miso_on_pins: vow-dat-miso-on-pins {
1301 pins-miso-on {
1302 pinmux = <PINMUX_GPIO218__FUNC_VOW_DAT_MISO>;
1303 };
1304 };
1305 };
1306
1307 &pmic {
1308 interrupts-extended = <&pio 214 IRQ_TYPE_LEVEL_HIGH>;
1309 };
1310
1311 &pwm0 {
1312 status = "okay";
1313
1314 pinctrl-names = "default";
1315 pinctrl-0 = <&pwm0_pins>;
1316 };
1317
1318 &scp {
1319 status = "okay";
1320
1321 firmware-name = "mediatek/mt8192/scp.img";
1322 memory-region = <&scp_mem_reserved>;
1323 pinctrl-names = "default";
1324 pinctrl-0 = <&scp_pins>;
1325
1326 cros-ec-rpmsg {
1327 compatible = "google,cros-ec-rpmsg";
1328 mediatek,rpmsg-name = "cros-ec-rpmsg";
1329 };
1330 };
1331
1332 &spi1 {
1333 status = "okay";
1334
1335 mediatek,pad-select = <0>;
1336 pinctrl-names = "default";
1337 pinctrl-0 = <&spi1_pins>;
1338
1339 cros_ec: ec@0 {
1340 compatible = "google,cros-ec-spi";
1341 reg = <0>;
1342 interrupts-extended = <&pio 5 IRQ_TYPE_LEVEL_LOW>;
1343 spi-max-frequency = <3000000>;
1344 pinctrl-names = "default";
1345 pinctrl-0 = <&cros_ec_int>;
1346 wakeup-source;
1347
1348 #address-cells = <1>;
1349 #size-cells = <0>;
1350
1351 cros_ec_pwm: pwm {
1352 compatible = "google,cros-ec-pwm";
1353 #pwm-cells = <1>;
1354
1355 status = "disabled";
1356 };
1357
1358 i2c_tunnel: i2c-tunnel {
1359 compatible = "google,cros-ec-i2c-tunnel";
1360 google,remote-bus = <0>;
1361 #address-cells = <1>;
1362 #size-cells = <0>;
1363 };
1364
1365 mt6360_ldo3_reg: regulator@0 {
1366 compatible = "google,cros-ec-regulator";
1367 reg = <0>;
1368 regulator-min-microvolt = <1800000>;
1369 regulator-max-microvolt = <3300000>;
1370 };
1371
1372 mt6360_ldo5_reg: regulator@1 {
1373 compatible = "google,cros-ec-regulator";
1374 reg = <1>;
1375 regulator-min-microvolt = <3300000>;
1376 regulator-max-microvolt = <3300000>;
1377 };
1378
1379 typec {
1380 compatible = "google,cros-ec-typec";
1381 #address-cells = <1>;
1382 #size-cells = <0>;
1383
1384 usb_c0: connector@0 {
1385 compatible = "usb-c-connector";
1386 reg = <0>;
1387 label = "left";
1388 power-role = "dual";
1389 data-role = "host";
1390 try-power-role = "source";
1391 };
1392
1393 usb_c1: connector@1 {
1394 compatible = "usb-c-connector";
1395 reg = <1>;
1396 label = "right";
1397 power-role = "dual";
1398 data-role = "host";
1399 try-power-role = "source";
1400 };
1401 };
1402 };
1403 };
1404
1405 &spi5 {
1406 status = "okay";
1407
1408 cs-gpios = <&pio 37 GPIO_ACTIVE_LOW>;
1409 mediatek,pad-select = <0>;
1410 pinctrl-names = "default";
1411 pinctrl-0 = <&spi5_pins>;
1412
1413 tpm@0 {
1414 compatible = "google,cr50";
1415 reg = <0>;
1416 interrupts-extended = <&pio 171 IRQ_TYPE_EDGE_RISING>;
1417 spi-max-frequency = <1000000>;
1418 pinctrl-names = "default";
1419 pinctrl-0 = <&cr50_int>;
1420 };
1421 };
1422
1423 &spmi {
1424 #address-cells = <2>;
1425 #size-cells = <0>;
1426
1427 mt6315_6: pmic@6 {
1428 compatible = "mediatek,mt6315-regulator";
1429 reg = <0x6 SPMI_USID>;
1430
1431 regulators {
1432 mt6315_6_vbuck1: vbuck1 {
1433 regulator-name = "Vbcpu";
1434 regulator-min-microvolt = <400000>;
1435 regulator-max-microvolt = <1193750>;
1436 regulator-enable-ramp-delay = <256>;
1437 regulator-allowed-modes = <0 1 2>;
1438 regulator-always-on;
1439 };
1440
1441 mt6315_6_vbuck3: vbuck3 {
1442 regulator-name = "Vlcpu";
1443 regulator-min-microvolt = <400000>;
1444 regulator-max-microvolt = <1193750>;
1445 regulator-enable-ramp-delay = <256>;
1446 regulator-allowed-modes = <0 1 2>;
1447 regulator-always-on;
1448 };
1449 };
1450 };
1451
1452 mt6315_7: pmic@7 {
1453 compatible = "mediatek,mt6315-regulator";
1454 reg = <0x7 SPMI_USID>;
1455
1456 regulators {
1457 mt6315_7_vbuck1: vbuck1 {
1458 regulator-name = "Vgpu";
1459 regulator-min-microvolt = <400000>;
1460 regulator-max-microvolt = <800000>;
1461 regulator-enable-ramp-delay = <256>;
1462 regulator-allowed-modes = <0 1 2>;
1463 regulator-coupled-with = <&mt6359_vsram_others_ldo_reg>;
1464 regulator-coupled-max-spread = <10000>;
1465 };
1466 };
1467 };
1468 };
1469
1470 &uart0 {
1471 status = "okay";
1472 };
1473
1474 &xhci {
1475 status = "okay";
1476
1477 wakeup-source;
1478 vusb33-supply = <&pp3300_g>;
1479 vbus-supply = <&pp5000_a>;
1480 };
1481
1482 #include <arm/cros-ec-keyboard.dtsi>
1483 #include <arm/cros-ec-sbs.dtsi>