1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
3 * Copyright (C) 2020 MediaTek Inc.
4 * Author: Seiya Wang <seiya.wang@mediatek.com>
9 #include <dt-bindings/gpio/gpio.h>
10 #include <dt-bindings/spmi/spmi.h>
25 stdout-path = "serial0:115200n8";
29 device_type = "memory";
30 reg = <0 0x40000000 0 0x80000000>;
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>;
43 dmic_codec: dmic-codec {
44 compatible = "dmic-codec";
46 wakeup-delay-ms = <50>;
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>;
58 gpio = <&pio 19 GPIO_ACTIVE_HIGH>;
59 vin-supply = <&mt6359_vs2_buck_reg>;
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>;
71 gpio = <&pio 129 GPIO_ACTIVE_HIGH>;
72 vin-supply = <&mt6359_vs2_buck_reg>;
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>;
82 gpio = <&pio 126 GPIO_ACTIVE_HIGH>;
83 vin-supply = <&mt6359_vio18_ldo_reg>;
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";
92 regulator-min-microvolt = <1800000>;
93 regulator-max-microvolt = <1800000>;
94 vin-supply = <&pp3300_g>;
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>;
104 gpio = <&pio 128 GPIO_ACTIVE_HIGH>;
105 vin-supply = <&mt6359_vio18_ldo_reg>;
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>;
115 gpio = <&pio 26 GPIO_ACTIVE_HIGH>;
116 vin-supply = <&pp3300_g>;
119 /* system wide switching 3.3V power rail */
120 pp3300_g: regulator-3v3-g {
121 compatible = "regulator-fixed";
122 regulator-name = "pp3300_g";
125 regulator-min-microvolt = <3300000>;
126 regulator-max-microvolt = <3300000>;
127 vin-supply = <&ppvar_sys>;
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";
136 regulator-min-microvolt = <3300000>;
137 regulator-max-microvolt = <3300000>;
138 vin-supply = <&ppvar_sys>;
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>;
148 gpio = <&pio 127 GPIO_ACTIVE_HIGH>;
149 vin-supply = <&pp3300_g>;
152 /* separately switched 3.3V power rail */
153 pp3300_u: regulator-3v3-u {
154 compatible = "regulator-fixed";
155 regulator-name = "pp3300_u";
158 regulator-min-microvolt = <3300000>;
159 regulator-max-microvolt = <3300000>;
160 /* enable pin wired to GPIO controlled by EC */
161 vin-supply = <&pp3300_g>;
164 pp3300_wlan: regulator-3v3-wlan {
165 compatible = "regulator-fixed";
166 regulator-name = "pp3300_wlan";
169 regulator-min-microvolt = <3300000>;
170 regulator-max-microvolt = <3300000>;
171 pinctrl-names = "default";
172 pinctrl-0 = <&pp3300_wlan_pins>;
174 gpio = <&pio 143 GPIO_ACTIVE_HIGH>;
177 /* system wide switching 5.0V power rail */
178 pp5000_a: regulator-5v0-a {
179 compatible = "regulator-fixed";
180 regulator-name = "pp5000_a";
183 regulator-min-microvolt = <5000000>;
184 regulator-max-microvolt = <5000000>;
185 vin-supply = <&ppvar_sys>;
188 /* system wide semi-regulated power rail from battery or USB */
189 ppvar_sys: regulator-var-sys {
190 compatible = "regulator-fixed";
191 regulator-name = "ppvar_sys";
196 reserved_memory: reserved-memory {
197 #address-cells = <2>;
201 scp_mem_reserved: scp@50000000 {
202 compatible = "shared-dma-pool";
203 reg = <0 0x50000000 0 0x2900000>;
207 wifi_restricted_dma_region: wifi@c0000000 {
208 compatible = "restricted-dma-pool";
209 reg = <0 0xc0000000 0 0x4000000>;
214 mediatek,platform = <&afe>;
215 pinctrl-names = "aud_clk_mosi_off",
235 "aud_dat_mosi_ch34_off",
236 "aud_dat_mosi_ch34_on",
237 "aud_dat_miso_ch34_off",
238 "aud_dat_miso_ch34_on",
241 pinctrl-0 = <&aud_clk_mosi_off_pins>;
242 pinctrl-1 = <&aud_clk_mosi_on_pins>;
243 pinctrl-2 = <&aud_dat_mosi_off_pins>;
244 pinctrl-3 = <&aud_dat_mosi_on_pins>;
245 pinctrl-4 = <&aud_dat_miso_off_pins>;
246 pinctrl-5 = <&aud_dat_miso_on_pins>;
247 pinctrl-6 = <&vow_dat_miso_off_pins>;
248 pinctrl-7 = <&vow_dat_miso_on_pins>;
249 pinctrl-8 = <&vow_clk_miso_off_pins>;
250 pinctrl-9 = <&vow_clk_miso_on_pins>;
251 pinctrl-10 = <&aud_nle_mosi_off_pins>;
252 pinctrl-11 = <&aud_nle_mosi_on_pins>;
253 pinctrl-12 = <&aud_dat_miso2_off_pins>;
254 pinctrl-13 = <&aud_dat_miso2_on_pins>;
255 pinctrl-14 = <&aud_gpio_i2s3_off_pins>;
256 pinctrl-15 = <&aud_gpio_i2s3_on_pins>;
257 pinctrl-16 = <&aud_gpio_i2s8_off_pins>;
258 pinctrl-17 = <&aud_gpio_i2s8_on_pins>;
259 pinctrl-18 = <&aud_gpio_i2s9_off_pins>;
260 pinctrl-19 = <&aud_gpio_i2s9_on_pins>;
261 pinctrl-20 = <&aud_dat_mosi_ch34_off_pins>;
262 pinctrl-21 = <&aud_dat_mosi_ch34_on_pins>;
263 pinctrl-22 = <&aud_dat_miso_ch34_off_pins>;
264 pinctrl-23 = <&aud_dat_miso_ch34_on_pins>;
265 pinctrl-24 = <&aud_gpio_tdm_off_pins>;
266 pinctrl-25 = <&aud_gpio_tdm_on_pins>;
275 remote-endpoint = <&anx7625_in>;
281 clock-frequency = <400000>;
282 pinctrl-names = "default";
283 pinctrl-0 = <&i2c0_pins>;
285 touchscreen: touchscreen@10 {
287 interrupts-extended = <&pio 21 IRQ_TYPE_LEVEL_LOW>;
288 pinctrl-names = "default";
289 pinctrl-0 = <&touchscreen_pins>;
296 clock-frequency = <400000>;
297 pinctrl-names = "default";
298 pinctrl-0 = <&i2c1_pins>;
304 clock-frequency = <400000>;
305 clock-stretch-ns = <12600>;
306 pinctrl-names = "default";
307 pinctrl-0 = <&i2c2_pins>;
310 compatible = "elan,ekth3000";
312 interrupts-extended = <&pio 15 IRQ_TYPE_LEVEL_LOW>;
313 pinctrl-names = "default";
314 pinctrl-0 = <&trackpad_pins>;
315 vcc-supply = <&pp3300_u>;
323 clock-frequency = <400000>;
324 pinctrl-names = "default";
325 pinctrl-0 = <&i2c3_pins>;
327 anx_bridge: anx7625@58 {
328 compatible = "analogix,anx7625";
330 pinctrl-names = "default";
331 pinctrl-0 = <&anx7625_pins>;
332 enable-gpios = <&pio 41 GPIO_ACTIVE_HIGH>;
333 reset-gpios = <&pio 42 GPIO_ACTIVE_HIGH>;
334 vdd10-supply = <&pp1000_mipibrdg>;
335 vdd18-supply = <&pp1800_mipibrdg>;
336 vdd33-supply = <&pp3300_mipibrdg>;
339 #address-cells = <1>;
345 anx7625_in: endpoint {
346 remote-endpoint = <&dsi_out>;
353 anx7625_out: endpoint {
354 remote-endpoint = <&panel_in>;
361 compatible = "edp-panel";
362 power-supply = <&pp3300_mipibrdg>;
363 backlight = <&backlight_lcd0>;
367 remote-endpoint = <&anx7625_out>;
378 clock-frequency = <400000>;
379 pinctrl-names = "default";
380 pinctrl-0 = <&i2c7_pins>;
384 domain-supply = <&mt6315_7_vbuck1>;
394 pinctrl-names = "default", "state_uhs";
395 pinctrl-0 = <&mmc0_default_pins>;
396 pinctrl-1 = <&mmc0_uhs_pins>;
398 max-frequency = <200000000>;
399 vmmc-supply = <&mt6359_vemc_1_ldo_reg>;
400 vqmmc-supply = <&mt6359_vufs_ldo_reg>;
406 mmc-hs400-enhanced-strobe;
407 hs400-ds-delay = <0x12814>;
416 pinctrl-names = "default", "state_uhs";
417 pinctrl-0 = <&mmc1_default_pins>;
418 pinctrl-1 = <&mmc1_uhs_pins>;
420 max-frequency = <200000000>;
421 cd-gpios = <&pio 17 GPIO_ACTIVE_LOW>;
422 vmmc-supply = <&mt6360_ldo5_reg>;
423 vqmmc-supply = <&mt6360_ldo3_reg>;
432 &mt6359_vgpu11_buck_reg {
436 &mt6359_vgpu11_sshub_buck_reg {
438 regulator-min-microvolt = <575000>;
439 regulator-max-microvolt = <575000>;
442 &mt6359_vrf12_ldo_reg {
446 &mt6359_vufs_ldo_reg {
451 mediatek,dmic-mode = <1>; /* one-wire */
452 mediatek,mic-type-0 = <2>; /* DMIC */
453 mediatek,mic-type-2 = <2>; /* DMIC */
459 pinctrl-names = "default";
460 pinctrl-0 = <&nor_flash_pins>;
461 assigned-clocks = <&topckgen CLK_TOP_SFLASH_SEL>;
462 assigned-clock-parents = <&topckgen CLK_TOP_UNIVPLL_D6_D8>;
465 compatible = "winbond,w25q64jwm", "jedec,spi-nor";
467 spi-max-frequency = <52000000>;
468 spi-rx-bus-width = <2>;
469 spi-tx-bus-width = <2>;
474 pinctrl-names = "default";
475 pinctrl-0 = <&pcie_pins>;
479 reg = <0x0000 0 0 0 0>;
481 bus-range = <0x1 0x1>;
483 #address-cells = <3>;
488 reg = <0x10000 0 0 0 0x100000>,
489 <0x10000 0 0x100000 0 0x100000>;
490 memory-region = <&wifi_restricted_dma_region>;
497 gpio-line-names = "I2S_DP_LRCK",
512 * AP_FLASH_WP_L is crossystem ABI. Schematics
513 * call it AP_FLASH_WP_ODL.
527 "EN_PP3300_DPBRDG_DX",
538 "AP_SPI_H1_TPM_CS_L",
539 "AP_SPI_H1_TPM_MISO",
540 "AP_SPI_H1_TPM_MOSI",
627 "EN_PP1800_DPBRDG_DX",
629 "EN_PP1800_EDPBRDG_DX",
637 "EN_PP3300_DISPLAY_DX",
639 "TOUCH_REPORT_DISABLE",
642 "AP_I2C_TRACKPAD_SCL_1V8",
643 "AP_I2C_TRACKPAD_SDA_1V8",
647 "SET_VMC_VOLT_AT_1V8",
661 "AP_I2C_EDPBRDG_SCL",
662 "AP_I2C_EDPBRDG_SDA",
665 "UART_SERVO_TX_SCP_RX",
666 "UART_SCP_TX_SERVO_RX",
669 "UART_AP_WAKE_BT_ODL",
722 anx7625_pins: anx7625-default-pins {
724 pinmux = <PINMUX_GPIO41__FUNC_GPIO41>,
725 <PINMUX_GPIO42__FUNC_GPIO42>;
730 pinmux = <PINMUX_GPIO6__FUNC_GPIO6>;
736 aud_clk_mosi_off_pins: aud-clk-mosi-off-pins {
738 pinmux = <PINMUX_GPIO214__FUNC_GPIO214>,
739 <PINMUX_GPIO215__FUNC_GPIO215>;
743 aud_clk_mosi_on_pins: aud-clk-mosi-on-pins {
745 pinmux = <PINMUX_GPIO214__FUNC_AUD_CLK_MOSI>,
746 <PINMUX_GPIO215__FUNC_AUD_SYNC_MOSI>;
747 drive-strength = <10>;
751 aud_dat_miso_ch34_off_pins: aud-dat-miso-ch34-off-pins {
753 pinmux = <PINMUX_GPIO199__FUNC_GPIO199>;
757 aud_dat_miso_ch34_on_pins: aud-dat-miso-ch34-on-pins {
759 pinmux = <PINMUX_GPIO199__FUNC_AUD_DAT_MISO2>;
763 aud_dat_miso_off_pins: aud-dat-miso-off-pins {
765 pinmux = <PINMUX_GPIO218__FUNC_GPIO218>,
766 <PINMUX_GPIO219__FUNC_GPIO219>;
770 aud_dat_miso_on_pins: aud-dat-miso-on-pins {
772 pinmux = <PINMUX_GPIO218__FUNC_AUD_DAT_MISO0>,
773 <PINMUX_GPIO219__FUNC_AUD_DAT_MISO1>;
774 drive-strength = <10>;
778 aud_dat_miso2_off_pins: aud-dat-miso2-off-pins {
780 pinmux = <PINMUX_GPIO199__FUNC_GPIO199>;
784 aud_dat_miso2_on_pins: aud-dat-miso2-on-pins {
786 pinmux = <PINMUX_GPIO199__FUNC_AUD_DAT_MISO2>;
790 aud_dat_mosi_ch34_off_pins: aud-dat-mosi-ch34-off-pins {
792 pinmux = <PINMUX_GPIO196__FUNC_GPIO196>;
796 aud_dat_mosi_ch34_on_pins: aud-dat-mosi-ch34-on-pins {
798 pinmux = <PINMUX_GPIO196__FUNC_AUD_DAT_MOSI2>;
802 aud_dat_mosi_off_pins: aud-dat-mosi-off-pins {
804 pinmux = <PINMUX_GPIO216__FUNC_GPIO216>,
805 <PINMUX_GPIO217__FUNC_GPIO217>;
809 aud_dat_mosi_on_pins: aud-dat-mosi-on-pins {
811 pinmux = <PINMUX_GPIO216__FUNC_AUD_DAT_MOSI0>,
812 <PINMUX_GPIO217__FUNC_AUD_DAT_MOSI1>;
813 drive-strength = <10>;
817 aud_gpio_i2s3_off_pins: aud-gpio-i2s3-off-pins {
819 pinmux = <PINMUX_GPIO32__FUNC_GPIO32>,
820 <PINMUX_GPIO33__FUNC_GPIO33>,
821 <PINMUX_GPIO35__FUNC_GPIO35>;
825 aud_gpio_i2s3_on_pins: aud-gpio-i2s3-on-pins {
827 pinmux = <PINMUX_GPIO32__FUNC_I2S3_BCK>,
828 <PINMUX_GPIO33__FUNC_I2S3_LRCK>,
829 <PINMUX_GPIO35__FUNC_I2S3_DO>;
833 aud_gpio_i2s8_off_pins: aud-gpio-i2s8-off-pins {
835 pinmux = <PINMUX_GPIO10__FUNC_GPIO10>,
836 <PINMUX_GPIO11__FUNC_GPIO11>,
837 <PINMUX_GPIO12__FUNC_GPIO12>,
838 <PINMUX_GPIO13__FUNC_GPIO13>;
842 aud_gpio_i2s8_on_pins: aud-gpio-i2s8-on-pins {
844 pinmux = <PINMUX_GPIO10__FUNC_I2S8_MCK>,
845 <PINMUX_GPIO11__FUNC_I2S8_BCK>,
846 <PINMUX_GPIO12__FUNC_I2S8_LRCK>,
847 <PINMUX_GPIO13__FUNC_I2S8_DI>;
851 aud_gpio_i2s9_off_pins: aud-gpio-i2s9-off-pins {
853 pinmux = <PINMUX_GPIO29__FUNC_GPIO29>;
857 aud_gpio_i2s9_on_pins: aud-gpio-i2s9-on-pins {
859 pinmux = <PINMUX_GPIO29__FUNC_I2S9_DO>;
863 aud_gpio_tdm_off_pins: aud-gpio-tdm-off-pins {
865 pinmux = <PINMUX_GPIO0__FUNC_GPIO0>,
866 <PINMUX_GPIO1__FUNC_GPIO1>,
867 <PINMUX_GPIO2__FUNC_GPIO2>,
868 <PINMUX_GPIO3__FUNC_GPIO3>;
872 aud_gpio_tdm_on_pins: aud-gpio-tdm-on-pins {
874 pinmux = <PINMUX_GPIO0__FUNC_TDM_LRCK>,
875 <PINMUX_GPIO1__FUNC_TDM_BCK>,
876 <PINMUX_GPIO2__FUNC_TDM_MCK>,
877 <PINMUX_GPIO3__FUNC_TDM_DATA0>;
881 aud_nle_mosi_off_pins: aud-nle-mosi-off-pins {
883 pinmux = <PINMUX_GPIO197__FUNC_GPIO197>,
884 <PINMUX_GPIO198__FUNC_GPIO198>;
888 aud_nle_mosi_on_pins: aud-nle-mosi-on-pins {
890 pinmux = <PINMUX_GPIO197__FUNC_AUD_NLE_MOSI1>,
891 <PINMUX_GPIO198__FUNC_AUD_NLE_MOSI0>;
895 cr50_int: cr50-irq-default-pins {
896 pins-gsc-ap-int-odl {
897 pinmux = <PINMUX_GPIO171__FUNC_GPIO171>;
902 cros_ec_int: cros-ec-irq-default-pins {
904 pinmux = <PINMUX_GPIO5__FUNC_GPIO5>;
910 i2c0_pins: i2c0-default-pins {
912 pinmux = <PINMUX_GPIO204__FUNC_SCL0>,
913 <PINMUX_GPIO205__FUNC_SDA0>;
914 bias-pull-up = <MTK_PULL_SET_RSEL_011>;
915 drive-strength-microamp = <1000>;
919 i2c1_pins: i2c1-default-pins {
921 pinmux = <PINMUX_GPIO118__FUNC_SCL1>,
922 <PINMUX_GPIO119__FUNC_SDA1>;
923 bias-pull-up = <MTK_PULL_SET_RSEL_011>;
924 drive-strength-microamp = <1000>;
928 i2c2_pins: i2c2-default-pins {
930 pinmux = <PINMUX_GPIO141__FUNC_SCL2>,
931 <PINMUX_GPIO142__FUNC_SDA2>;
932 bias-pull-up = <MTK_PULL_SET_RSEL_011>;
936 i2c3_pins: i2c3-default-pins {
938 pinmux = <PINMUX_GPIO160__FUNC_SCL3>,
939 <PINMUX_GPIO161__FUNC_SDA3>;
941 drive-strength-microamp = <1000>;
945 i2c7_pins: i2c7-default-pins {
947 pinmux = <PINMUX_GPIO124__FUNC_SCL7>,
948 <PINMUX_GPIO125__FUNC_SDA7>;
950 drive-strength-microamp = <1000>;
954 mmc0_default_pins: mmc0-default-pins {
956 pinmux = <PINMUX_GPIO184__FUNC_MSDC0_DAT0>,
957 <PINMUX_GPIO188__FUNC_MSDC0_DAT1>,
958 <PINMUX_GPIO185__FUNC_MSDC0_DAT2>,
959 <PINMUX_GPIO193__FUNC_MSDC0_DAT3>,
960 <PINMUX_GPIO186__FUNC_MSDC0_DAT4>,
961 <PINMUX_GPIO189__FUNC_MSDC0_DAT5>,
962 <PINMUX_GPIO187__FUNC_MSDC0_DAT6>,
963 <PINMUX_GPIO190__FUNC_MSDC0_DAT7>,
964 <PINMUX_GPIO183__FUNC_MSDC0_CMD>;
966 drive-strength = <8>;
967 bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
971 pinmux = <PINMUX_GPIO192__FUNC_MSDC0_CLK>;
972 drive-strength = <8>;
973 bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
977 pinmux = <PINMUX_GPIO194__FUNC_MSDC0_RSTB>;
978 drive-strength = <8>;
979 bias-pull-down = <MTK_PUPD_SET_R1R0_01>;
983 mmc0_uhs_pins: mmc0-uhs-pins {
985 pinmux = <PINMUX_GPIO184__FUNC_MSDC0_DAT0>,
986 <PINMUX_GPIO188__FUNC_MSDC0_DAT1>,
987 <PINMUX_GPIO185__FUNC_MSDC0_DAT2>,
988 <PINMUX_GPIO193__FUNC_MSDC0_DAT3>,
989 <PINMUX_GPIO186__FUNC_MSDC0_DAT4>,
990 <PINMUX_GPIO189__FUNC_MSDC0_DAT5>,
991 <PINMUX_GPIO187__FUNC_MSDC0_DAT6>,
992 <PINMUX_GPIO190__FUNC_MSDC0_DAT7>,
993 <PINMUX_GPIO183__FUNC_MSDC0_CMD>;
995 drive-strength = <10>;
996 bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
1000 pinmux = <PINMUX_GPIO192__FUNC_MSDC0_CLK>;
1001 drive-strength = <10>;
1002 bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
1006 pinmux = <PINMUX_GPIO194__FUNC_MSDC0_RSTB>;
1007 drive-strength = <8>;
1008 bias-pull-down = <MTK_PUPD_SET_R1R0_01>;
1012 pinmux = <PINMUX_GPIO191__FUNC_MSDC0_DSL>;
1013 drive-strength = <10>;
1014 bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
1018 mmc1_default_pins: mmc1-default-pins {
1020 pinmux = <PINMUX_GPIO54__FUNC_MSDC1_DAT0>,
1021 <PINMUX_GPIO56__FUNC_MSDC1_DAT1>,
1022 <PINMUX_GPIO55__FUNC_MSDC1_DAT2>,
1023 <PINMUX_GPIO53__FUNC_MSDC1_DAT3>,
1024 <PINMUX_GPIO52__FUNC_MSDC1_CMD>;
1026 drive-strength = <8>;
1027 bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
1031 pinmux = <PINMUX_GPIO51__FUNC_MSDC1_CLK>;
1032 drive-strength = <8>;
1033 bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
1037 pinmux = <PINMUX_GPIO17__FUNC_GPIO17>;
1043 mmc1_uhs_pins: mmc1-uhs-pins {
1045 pinmux = <PINMUX_GPIO54__FUNC_MSDC1_DAT0>,
1046 <PINMUX_GPIO56__FUNC_MSDC1_DAT1>,
1047 <PINMUX_GPIO55__FUNC_MSDC1_DAT2>,
1048 <PINMUX_GPIO53__FUNC_MSDC1_DAT3>,
1049 <PINMUX_GPIO52__FUNC_MSDC1_CMD>;
1051 drive-strength = <8>;
1052 bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
1056 pinmux = <PINMUX_GPIO51__FUNC_MSDC1_CLK>;
1058 drive-strength = <8>;
1059 bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
1063 nor_flash_pins: nor-flash-default-pins {
1065 pinmux = <PINMUX_GPIO24__FUNC_SPINOR_CS>,
1066 <PINMUX_GPIO28__FUNC_SPINOR_IO1>;
1069 drive-strength = <10>;
1073 pinmux = <PINMUX_GPIO27__FUNC_SPINOR_IO0>;
1075 drive-strength = <10>;
1079 pinmux = <PINMUX_GPIO25__FUNC_SPINOR_CK>;
1082 drive-strength = <10>;
1086 pcie_pins: pcie-default-pins {
1088 pinmux = <PINMUX_GPIO63__FUNC_PCIE_WAKE_N>;
1093 pinmux = <PINMUX_GPIO64__FUNC_PCIE_PERESET_N>;
1097 pinmux = <PINMUX_GPIO65__FUNC_PCIE_CLKREQ_N>;
1102 pinmux = <PINMUX_GPIO145__FUNC_GPIO145>; /* WIFI_KILL_L */
1107 pp1000_dpbrdg_en_pins: pp1000-dpbrdg-en-pins {
1109 pinmux = <PINMUX_GPIO19__FUNC_GPIO19>;
1114 pp1000_mipibrdg_en_pins: pp1000-mipibrdg-en-pins {
1116 pinmux = <PINMUX_GPIO129__FUNC_GPIO129>;
1121 pp1800_dpbrdg_en_pins: pp1800-dpbrdg-en-pins {
1123 pinmux = <PINMUX_GPIO126__FUNC_GPIO126>;
1128 pp1800_mipibrdg_en_pins: pp1800-mipibrd-en-pins {
1130 pinmux = <PINMUX_GPIO128__FUNC_GPIO128>;
1135 pp3300_dpbrdg_en_pins: pp3300-dpbrdg-en-pins {
1137 pinmux = <PINMUX_GPIO26__FUNC_GPIO26>;
1142 pp3300_mipibrdg_en_pins: pp3300-mipibrdg-en-pins {
1144 pinmux = <PINMUX_GPIO127__FUNC_GPIO127>;
1149 pp3300_wlan_pins: pp3300-wlan-pins {
1150 pins-pcie-en-pp3300-wlan {
1151 pinmux = <PINMUX_GPIO143__FUNC_GPIO143>;
1156 pwm0_pins: pwm0-default-pins {
1158 pinmux = <PINMUX_GPIO40__FUNC_DISP_PWM>;
1162 pinmux = <PINMUX_GPIO152__FUNC_GPIO152>;
1167 scp_pins: scp-pins {
1169 pinmux = <PINMUX_GPIO195__FUNC_SCP_VREQ_VAO>;
1173 spi1_pins: spi1-default-pins {
1175 pinmux = <PINMUX_GPIO157__FUNC_SPI1_A_CSB>,
1176 <PINMUX_GPIO159__FUNC_SPI1_A_MO>,
1177 <PINMUX_GPIO156__FUNC_SPI1_A_CLK>;
1182 pinmux = <PINMUX_GPIO158__FUNC_SPI1_A_MI>;
1187 spi5_pins: spi5-default-pins {
1189 pinmux = <PINMUX_GPIO38__FUNC_SPI5_A_MI>,
1190 <PINMUX_GPIO37__FUNC_GPIO37>,
1191 <PINMUX_GPIO39__FUNC_SPI5_A_MO>,
1192 <PINMUX_GPIO36__FUNC_SPI5_A_CLK>;
1197 trackpad_pins: trackpad-default-pins {
1199 pinmux = <PINMUX_GPIO15__FUNC_GPIO15>;
1201 bias-pull-up = <MTK_PUPD_SET_R1R0_11>;
1205 touchscreen_pins: touchscreen-default-pins {
1207 pinmux = <PINMUX_GPIO21__FUNC_GPIO21>;
1213 pinmux = <PINMUX_GPIO137__FUNC_GPIO137>;
1218 pinmux = <PINMUX_GPIO138__FUNC_GPIO138>;
1223 vow_clk_miso_off_pins: vow-clk-miso-off-pins {
1225 pinmux = <PINMUX_GPIO219__FUNC_GPIO219>;
1229 vow_clk_miso_on_pins: vow-clk-miso-on-pins {
1231 pinmux = <PINMUX_GPIO219__FUNC_VOW_CLK_MISO>;
1235 vow_dat_miso_off_pins: vow-dat-miso-off-pins {
1237 pinmux = <PINMUX_GPIO218__FUNC_GPIO218>;
1241 vow_dat_miso_on_pins: vow-dat-miso-on-pins {
1243 pinmux = <PINMUX_GPIO218__FUNC_VOW_DAT_MISO>;
1249 interrupts-extended = <&pio 214 IRQ_TYPE_LEVEL_HIGH>;
1255 pinctrl-names = "default";
1256 pinctrl-0 = <&pwm0_pins>;
1262 firmware-name = "mediatek/mt8192/scp.img";
1263 memory-region = <&scp_mem_reserved>;
1264 pinctrl-names = "default";
1265 pinctrl-0 = <&scp_pins>;
1268 compatible = "google,cros-ec-rpmsg";
1269 mediatek,rpmsg-name = "cros-ec-rpmsg";
1276 mediatek,pad-select = <0>;
1277 pinctrl-names = "default";
1278 pinctrl-0 = <&spi1_pins>;
1281 compatible = "google,cros-ec-spi";
1283 interrupts-extended = <&pio 5 IRQ_TYPE_LEVEL_LOW>;
1284 spi-max-frequency = <3000000>;
1285 pinctrl-names = "default";
1286 pinctrl-0 = <&cros_ec_int>;
1288 #address-cells = <1>;
1291 base_detection: cbas {
1292 compatible = "google,cros-cbas";
1296 compatible = "google,cros-ec-pwm";
1299 status = "disabled";
1302 i2c_tunnel: i2c-tunnel {
1303 compatible = "google,cros-ec-i2c-tunnel";
1304 google,remote-bus = <0>;
1305 #address-cells = <1>;
1309 mt6360_ldo3_reg: regulator@0 {
1310 compatible = "google,cros-ec-regulator";
1312 regulator-min-microvolt = <1800000>;
1313 regulator-max-microvolt = <3300000>;
1316 mt6360_ldo5_reg: regulator@1 {
1317 compatible = "google,cros-ec-regulator";
1319 regulator-min-microvolt = <3300000>;
1320 regulator-max-microvolt = <3300000>;
1324 compatible = "google,cros-ec-typec";
1325 #address-cells = <1>;
1328 usb_c0: connector@0 {
1329 compatible = "usb-c-connector";
1332 power-role = "dual";
1334 try-power-role = "source";
1337 usb_c1: connector@1 {
1338 compatible = "usb-c-connector";
1341 power-role = "dual";
1343 try-power-role = "source";
1352 cs-gpios = <&pio 37 GPIO_ACTIVE_LOW>;
1353 mediatek,pad-select = <0>;
1354 pinctrl-names = "default";
1355 pinctrl-0 = <&spi5_pins>;
1358 compatible = "google,cr50";
1360 interrupts-extended = <&pio 171 IRQ_TYPE_EDGE_RISING>;
1361 spi-max-frequency = <1000000>;
1362 pinctrl-names = "default";
1363 pinctrl-0 = <&cr50_int>;
1368 #address-cells = <2>;
1372 compatible = "mediatek,mt6315-regulator";
1373 reg = <0x6 SPMI_USID>;
1376 mt6315_6_vbuck1: vbuck1 {
1377 regulator-compatible = "vbuck1";
1378 regulator-name = "Vbcpu";
1379 regulator-min-microvolt = <300000>;
1380 regulator-max-microvolt = <1193750>;
1381 regulator-enable-ramp-delay = <256>;
1382 regulator-allowed-modes = <0 1 2>;
1383 regulator-always-on;
1386 mt6315_6_vbuck3: vbuck3 {
1387 regulator-compatible = "vbuck3";
1388 regulator-name = "Vlcpu";
1389 regulator-min-microvolt = <300000>;
1390 regulator-max-microvolt = <1193750>;
1391 regulator-enable-ramp-delay = <256>;
1392 regulator-allowed-modes = <0 1 2>;
1393 regulator-always-on;
1399 compatible = "mediatek,mt6315-regulator";
1400 reg = <0x7 SPMI_USID>;
1403 mt6315_7_vbuck1: vbuck1 {
1404 regulator-compatible = "vbuck1";
1405 regulator-name = "Vgpu";
1406 regulator-min-microvolt = <606250>;
1407 regulator-max-microvolt = <1193750>;
1408 regulator-enable-ramp-delay = <256>;
1409 regulator-allowed-modes = <0 1 2>;
1423 vusb33-supply = <&pp3300_g>;
1424 vbus-supply = <&pp5000_a>;
1427 #include <arm/cros-ec-keyboard.dtsi>
1428 #include <arm/cros-ec-sbs.dtsi>