1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright 2016 MediaTek Inc.
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/input/linux-event-codes.h>
8 #include <dt-bindings/regulator/dlg,da9211-regulator.h>
9 #include <dt-bindings/gpio/gpio.h>
10 #include "mt8173.dtsi"
20 device_type = "memory";
21 reg = <0 0x40000000 0 0x80000000>;
24 backlight: backlight {
25 compatible = "pwm-backlight";
26 pwms = <&pwm0 0 1000000>;
27 power-supply = <&bl_fixed_reg>;
28 enable-gpios = <&pio 95 GPIO_ACTIVE_HIGH>;
30 pinctrl-names = "default";
31 pinctrl-0 = <&panel_backlight_en_pins>;
35 bl_fixed_reg: fixedregulator2 {
36 compatible = "regulator-fixed";
37 regulator-name = "bl_fixed";
38 regulator-min-microvolt = <1800000>;
39 regulator-max-microvolt = <1800000>;
40 startup-delay-us = <1000>;
42 gpio = <&pio 32 GPIO_ACTIVE_HIGH>;
43 pinctrl-names = "default";
44 pinctrl-0 = <&bl_fixed_pins>;
48 stdout-path = "serial0:115200n8";
51 gpio_keys: gpio-keys {
52 compatible = "gpio-keys";
53 pinctrl-names = "default";
54 pinctrl-0 = <&gpio_keys_pins>;
58 gpios = <&pio 69 GPIO_ACTIVE_LOW>;
59 linux,code = <SW_LID>;
60 linux,input-type = <EV_SW>;
66 gpios = <&pio 14 GPIO_ACTIVE_HIGH>;
67 linux,code = <KEY_POWER>;
68 debounce-interval = <30>;
73 label = "Tablet_mode";
74 gpios = <&pio 121 GPIO_ACTIVE_HIGH>;
75 linux,code = <SW_TABLET_MODE>;
76 linux,input-type = <EV_SW>;
81 label = "Volume_down";
82 gpios = <&pio 123 GPIO_ACTIVE_LOW>;
83 linux,code = <KEY_VOLUMEDOWN>;
88 gpios = <&pio 124 GPIO_ACTIVE_LOW>;
89 linux,code = <KEY_VOLUMEUP>;
93 panel_fixed_3v3: regulator1 {
94 compatible = "regulator-fixed";
95 regulator-name = "PANEL_3V3";
96 regulator-min-microvolt = <3300000>;
97 regulator-max-microvolt = <3300000>;
100 off-on-delay-us = <500000>;
101 gpio = <&pio 41 GPIO_ACTIVE_HIGH>;
102 pinctrl-names = "default";
103 pinctrl-0 = <&panel_fixed_pins>;
106 ps8640_fixed_1v2: regulator2 {
107 compatible = "regulator-fixed";
108 regulator-name = "PS8640_1V2";
109 regulator-min-microvolt = <1200000>;
110 regulator-max-microvolt = <1200000>;
111 regulator-enable-ramp-delay = <2000>;
114 gpio = <&pio 30 GPIO_ACTIVE_HIGH>;
115 pinctrl-names = "default";
116 pinctrl-0 = <&ps8640_fixed_pins>;
119 sdio_fixed_3v3: fixedregulator0 {
120 compatible = "regulator-fixed";
121 regulator-name = "3V3";
122 regulator-min-microvolt = <3300000>;
123 regulator-max-microvolt = <3300000>;
124 gpio = <&pio 85 GPIO_ACTIVE_HIGH>;
125 pinctrl-names = "default";
126 pinctrl-0 = <&sdio_fixed_3v3_pins>;
130 compatible = "mediatek,mt8173-rt5650";
131 mediatek,audio-codec = <&rt5650 &hdmi0>;
132 mediatek,platform = <&afe>;
133 pinctrl-names = "default";
134 pinctrl-0 = <&aud_i2s2>;
138 sound-dai = <&rt5650 1>;
143 compatible = "hdmi-connector";
146 ddc-i2c-bus = <&hdmiddc0>;
149 hdmi_connector_in: endpoint {
150 remote-endpoint = <&hdmi0_out>;
156 compatible = "arm,smc-wdt";
161 * Disable the original MMIO watch dog and switch to the SMC watchdog, which
162 * operates on the same MMIO.
169 domain-supply = <&da9211_vgpu_reg>;
177 proc-supply = <&mt6397_vpca15_reg>;
181 proc-supply = <&mt6397_vpca15_reg>;
185 proc-supply = <&da9211_vcpu_reg>;
186 sram-supply = <&mt6397_vsramca7_reg>;
190 proc-supply = <&da9211_vcpu_reg>;
191 sram-supply = <&mt6397_vsramca7_reg>;
195 sustainable-power = <4500>; /* milliwatts */
197 threshold: trip-point0 {
198 temperature = <60000>;
201 target: trip-point1 {
202 temperature = <65000>;
212 remote-endpoint = <&ps8640_in>;
228 hdmi0_out: endpoint {
229 remote-endpoint = <&hdmi_connector_in>;
237 mediatek,ibias = <0xc>;
243 rt5650: audio-codec@1a {
244 compatible = "realtek,rt5650";
246 avdd-supply = <&mt6397_vgp1_reg>;
247 cpvdd-supply = <&mt6397_vcama_reg>;
248 interrupts-extended = <&pio 3 IRQ_TYPE_EDGE_BOTH>;
249 pinctrl-names = "default";
250 pinctrl-0 = <&rt5650_irq>;
251 #sound-dai-cells = <1>;
252 realtek,dmic1-data-pin = <2>;
253 realtek,jd-mode = <2>;
256 ps8640: edp-bridge@8 {
257 compatible = "parade,ps8640";
259 powerdown-gpios = <&pio 127 GPIO_ACTIVE_LOW>;
260 reset-gpios = <&pio 115 GPIO_ACTIVE_LOW>;
261 pinctrl-names = "default";
262 pinctrl-0 = <&ps8640_pins>;
263 vdd12-supply = <&ps8640_fixed_1v2>;
264 vdd33-supply = <&mt6397_vgp2_reg>;
267 #address-cells = <1>;
273 ps8640_in: endpoint {
274 remote-endpoint = <&dsi0_out>;
281 ps8640_out: endpoint {
282 remote-endpoint = <&panel_in>;
289 compatible = "edp-panel";
290 power-supply = <&panel_fixed_3v3>;
291 backlight = <&backlight>;
295 remote-endpoint = <&ps8640_out>;
304 clock-frequency = <1500000>;
308 compatible = "dlg,da9211";
310 interrupts-extended = <&pio 15 IRQ_TYPE_LEVEL_LOW>;
313 da9211_vcpu_reg: BUCKA {
314 regulator-name = "VBUCKA";
315 regulator-min-microvolt = < 700000>;
316 regulator-max-microvolt = <1310000>;
317 regulator-min-microamp = <2000000>;
318 regulator-max-microamp = <4400000>;
319 regulator-ramp-delay = <10000>;
321 regulator-allowed-modes = <DA9211_BUCK_MODE_SYNC
322 DA9211_BUCK_MODE_AUTO>;
325 da9211_vgpu_reg: BUCKB {
326 regulator-name = "VBUCKB";
327 regulator-min-microvolt = < 700000>;
328 regulator-max-microvolt = <1310000>;
329 regulator-min-microamp = <2000000>;
330 regulator-max-microamp = <3000000>;
331 regulator-ramp-delay = <10000>;
341 compatible = "infineon,slb9645tt";
343 powered-while-suspended;
348 clock-frequency = <400000>;
351 touchscreen: touchscreen@10 {
352 compatible = "elan,ekth3500";
354 interrupts-extended = <&pio 88 IRQ_TYPE_LEVEL_LOW>;
359 clock-frequency = <400000>;
361 pinctrl-names = "default";
362 pinctrl-0 = <&trackpad_irq>;
364 trackpad: trackpad@15 {
365 compatible = "elan,ekth3000";
366 interrupts-extended = <&pio 117 IRQ_TYPE_LEVEL_LOW>;
368 vcc-supply = <&mt6397_vgp6_reg>;
379 pinctrl-names = "default", "state_uhs";
380 pinctrl-0 = <&mmc0_pins_default>;
381 pinctrl-1 = <&mmc0_pins_uhs>;
383 max-frequency = <200000000>;
388 hs400-ds-delay = <0x14015>;
389 mediatek,hs200-cmd-int-delay = <30>;
390 mediatek,hs400-cmd-int-delay = <14>;
391 mediatek,hs400-cmd-resp-sel-rising;
392 vmmc-supply = <&mt6397_vemc_3v3_reg>;
393 vqmmc-supply = <&mt6397_vio18_reg>;
394 assigned-clocks = <&topckgen CLK_TOP_MSDC50_0_SEL>;
395 assigned-clock-parents = <&topckgen CLK_TOP_MSDCPLL_D2>;
401 pinctrl-names = "default", "state_uhs";
402 pinctrl-0 = <&mmc1_pins_default>;
403 pinctrl-1 = <&mmc1_pins_uhs>;
405 max-frequency = <200000000>;
409 cd-gpios = <&pio 1 GPIO_ACTIVE_LOW>;
410 vmmc-supply = <&mt6397_vmch_reg>;
411 vqmmc-supply = <&mt6397_vmc_reg>;
416 pinctrl-names = "default", "state_uhs";
417 pinctrl-0 = <&mmc3_pins_default>;
418 pinctrl-1 = <&mmc3_pins_uhs>;
420 max-frequency = <200000000>;
424 keep-power-in-suspend;
427 vmmc-supply = <&sdio_fixed_3v3>;
428 vqmmc-supply = <&mt6397_vgp3_reg>;
432 #address-cells = <1>;
436 compatible = "marvell,sd8897-bt";
438 interrupts-extended = <&pio 119 IRQ_TYPE_LEVEL_LOW>;
439 marvell,wakeup-pin = /bits/ 16 <0x0d>;
440 marvell,wakeup-gap-ms = /bits/ 16 <0x64>;
444 compatible = "marvell,sd8897";
446 interrupts-extended = <&pio 38 IRQ_TYPE_LEVEL_LOW>;
447 marvell,wakeup-pin = <3>;
453 pinctrl-names = "default";
454 pinctrl-0 = <&nor_gpio1_pins>;
457 compatible = "jedec,spi-nor";
459 spi-max-frequency = <50000000>;
464 gpio-line-names = "EC_INT_1V8",
469 * AP_FLASH_WP_L is crossystem ABI. Schematics
478 "WRAP_EVENT_S_EINT10",
500 "PANEL_LCD_POWER_EN",
511 "SOC_I2C2_1V8_SDA_400K",
512 "SOC_I2C2_1V8_SCL_400K",
513 "SOC_I2C0_1V8_SDA_400K",
514 "SOC_I2C0_1V8_SCL_400K",
561 "TOUCHSCREEN_RESET_R",
562 "PLATFORM_PROCHOT_L",
574 "SOC_I2C3_1V8_SDA_400K",
575 "SOC_I2C3_1V8_SCL_400K",
583 "PS8640_SYSRSTN_1V8",
584 "APIN_MAX98090_DOUT2",
593 "SOC_I2C1_1V8_SDA_1M",
594 "SOC_I2C1_1V8_SCL_1M",
599 "APOUT_MAX98090_DIN",
600 "APIN_MAX98090_DOUT",
601 "SOC_I2C4_1V8_SDA_400K",
602 "SOC_I2C4_1V8_SCL_400K";
606 pinmux = <MT8173_PIN_128_I2S0_LRCK__FUNC_I2S1_WS>,
607 <MT8173_PIN_129_I2S0_BCK__FUNC_I2S1_BCK>,
608 <MT8173_PIN_130_I2S0_MCK__FUNC_I2S1_MCK>,
609 <MT8173_PIN_131_I2S0_DATA0__FUNC_I2S1_DO_1>,
610 <MT8173_PIN_12_EINT12__FUNC_I2S2_WS>,
611 <MT8173_PIN_13_EINT13__FUNC_I2S2_BCK>,
612 <MT8173_PIN_132_I2S0_DATA1__FUNC_I2S2_DI_2>;
617 bl_fixed_pins: bl_fixed_pins {
619 pinmux = <MT8173_PIN_32_UTXD2__FUNC_GPIO32>;
624 bt_wake_pins: bt_wake_pins {
626 pinmux = <MT8173_PIN_119_KPROW0__FUNC_GPIO119>;
631 disp_pwm0_pins: disp_pwm0_pins {
633 pinmux = <MT8173_PIN_87_DISP_PWM0__FUNC_DISP_PWM0>;
638 gpio_keys_pins: gpio_keys_pins {
640 pinmux = <MT8173_PIN_123_KPCOL1__FUNC_GPIO123>,
641 <MT8173_PIN_124_KPCOL2__FUNC_GPIO124>;
646 pinmux = <MT8173_PIN_121_KPROW2__FUNC_GPIO121>;
651 hdmi_mux_pins: hdmi_mux_pins {
653 pinmux = <MT8173_PIN_36_DAISYNC__FUNC_GPIO36>;
659 pinmux = <MT8173_PIN_15_EINT15__FUNC_GPIO15>;
664 mmc0_pins_default: mmc0default {
666 pinmux = <MT8173_PIN_57_MSDC0_DAT0__FUNC_MSDC0_DAT0>,
667 <MT8173_PIN_58_MSDC0_DAT1__FUNC_MSDC0_DAT1>,
668 <MT8173_PIN_59_MSDC0_DAT2__FUNC_MSDC0_DAT2>,
669 <MT8173_PIN_60_MSDC0_DAT3__FUNC_MSDC0_DAT3>,
670 <MT8173_PIN_61_MSDC0_DAT4__FUNC_MSDC0_DAT4>,
671 <MT8173_PIN_62_MSDC0_DAT5__FUNC_MSDC0_DAT5>,
672 <MT8173_PIN_63_MSDC0_DAT6__FUNC_MSDC0_DAT6>,
673 <MT8173_PIN_64_MSDC0_DAT7__FUNC_MSDC0_DAT7>,
674 <MT8173_PIN_66_MSDC0_CMD__FUNC_MSDC0_CMD>;
679 pinmux = <MT8173_PIN_65_MSDC0_CLK__FUNC_MSDC0_CLK>;
684 pinmux = <MT8173_PIN_68_MSDC0_RST___FUNC_MSDC0_RSTB>;
689 mmc1_pins_default: mmc1default {
691 pinmux = <MT8173_PIN_73_MSDC1_DAT0__FUNC_MSDC1_DAT0>,
692 <MT8173_PIN_74_MSDC1_DAT1__FUNC_MSDC1_DAT1>,
693 <MT8173_PIN_75_MSDC1_DAT2__FUNC_MSDC1_DAT2>,
694 <MT8173_PIN_76_MSDC1_DAT3__FUNC_MSDC1_DAT3>,
695 <MT8173_PIN_78_MSDC1_CMD__FUNC_MSDC1_CMD>;
697 drive-strength = <MTK_DRIVE_4mA>;
698 bias-pull-up = <MTK_PUPD_SET_R1R0_10>;
702 pinmux = <MT8173_PIN_77_MSDC1_CLK__FUNC_MSDC1_CLK>;
704 drive-strength = <MTK_DRIVE_4mA>;
708 pinmux = <MT8173_PIN_1_EINT1__FUNC_GPIO1>;
713 mmc3_pins_default: mmc3default {
715 pinmux = <MT8173_PIN_22_MSDC3_DAT0__FUNC_MSDC3_DAT0>,
716 <MT8173_PIN_23_MSDC3_DAT1__FUNC_MSDC3_DAT1>,
717 <MT8173_PIN_24_MSDC3_DAT2__FUNC_MSDC3_DAT2>,
718 <MT8173_PIN_25_MSDC3_DAT3__FUNC_MSDC3_DAT3>;
720 drive-strength = <MTK_DRIVE_8mA>;
721 bias-pull-up = <MTK_PUPD_SET_R1R0_10>;
725 pinmux = <MT8173_PIN_27_MSDC3_CMD__FUNC_MSDC3_CMD>;
727 drive-strength = <MTK_DRIVE_8mA>;
728 bias-pull-up = <MTK_PUPD_SET_R1R0_10>;
732 pinmux = <MT8173_PIN_26_MSDC3_CLK__FUNC_MSDC3_CLK>;
734 drive-strength = <MTK_DRIVE_8mA>;
738 mmc0_pins_uhs: mmc0 {
740 pinmux = <MT8173_PIN_57_MSDC0_DAT0__FUNC_MSDC0_DAT0>,
741 <MT8173_PIN_58_MSDC0_DAT1__FUNC_MSDC0_DAT1>,
742 <MT8173_PIN_59_MSDC0_DAT2__FUNC_MSDC0_DAT2>,
743 <MT8173_PIN_60_MSDC0_DAT3__FUNC_MSDC0_DAT3>,
744 <MT8173_PIN_61_MSDC0_DAT4__FUNC_MSDC0_DAT4>,
745 <MT8173_PIN_62_MSDC0_DAT5__FUNC_MSDC0_DAT5>,
746 <MT8173_PIN_63_MSDC0_DAT6__FUNC_MSDC0_DAT6>,
747 <MT8173_PIN_64_MSDC0_DAT7__FUNC_MSDC0_DAT7>,
748 <MT8173_PIN_66_MSDC0_CMD__FUNC_MSDC0_CMD>;
750 drive-strength = <MTK_DRIVE_6mA>;
751 bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
755 pinmux = <MT8173_PIN_65_MSDC0_CLK__FUNC_MSDC0_CLK>;
756 drive-strength = <MTK_DRIVE_6mA>;
757 bias-pull-down = <MTK_PUPD_SET_R1R0_01>;
761 pinmux = <MT8173_PIN_67_MSDC0_DSL__FUNC_MSDC0_DSL>;
762 drive-strength = <MTK_DRIVE_10mA>;
763 bias-pull-down = <MTK_PUPD_SET_R1R0_01>;
767 pinmux = <MT8173_PIN_68_MSDC0_RST___FUNC_MSDC0_RSTB>;
772 mmc1_pins_uhs: mmc1 {
774 pinmux = <MT8173_PIN_73_MSDC1_DAT0__FUNC_MSDC1_DAT0>,
775 <MT8173_PIN_74_MSDC1_DAT1__FUNC_MSDC1_DAT1>,
776 <MT8173_PIN_75_MSDC1_DAT2__FUNC_MSDC1_DAT2>,
777 <MT8173_PIN_76_MSDC1_DAT3__FUNC_MSDC1_DAT3>,
778 <MT8173_PIN_78_MSDC1_CMD__FUNC_MSDC1_CMD>;
780 drive-strength = <MTK_DRIVE_6mA>;
781 bias-pull-up = <MTK_PUPD_SET_R1R0_10>;
785 pinmux = <MT8173_PIN_77_MSDC1_CLK__FUNC_MSDC1_CLK>;
786 drive-strength = <MTK_DRIVE_8mA>;
787 bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
791 mmc3_pins_uhs: mmc3 {
793 pinmux = <MT8173_PIN_22_MSDC3_DAT0__FUNC_MSDC3_DAT0>,
794 <MT8173_PIN_23_MSDC3_DAT1__FUNC_MSDC3_DAT1>,
795 <MT8173_PIN_24_MSDC3_DAT2__FUNC_MSDC3_DAT2>,
796 <MT8173_PIN_25_MSDC3_DAT3__FUNC_MSDC3_DAT3>;
798 drive-strength = <MTK_DRIVE_8mA>;
799 bias-pull-up = <MTK_PUPD_SET_R1R0_10>;
803 pinmux = <MT8173_PIN_27_MSDC3_CMD__FUNC_MSDC3_CMD>;
805 drive-strength = <MTK_DRIVE_8mA>;
806 bias-pull-up = <MTK_PUPD_SET_R1R0_10>;
810 pinmux = <MT8173_PIN_26_MSDC3_CLK__FUNC_MSDC3_CLK>;
811 drive-strength = <MTK_DRIVE_8mA>;
812 bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
816 nor_gpio1_pins: nor {
818 pinmux = <MT8173_PIN_6_EINT6__FUNC_SFCS0>,
819 <MT8173_PIN_7_EINT7__FUNC_SFHOLD>,
820 <MT8173_PIN_8_EINT8__FUNC_SFIN>;
822 drive-strength = <MTK_DRIVE_4mA>;
827 pinmux = <MT8173_PIN_5_EINT5__FUNC_SFOUT>;
828 drive-strength = <MTK_DRIVE_4mA>;
833 pinmux = <MT8173_PIN_9_EINT9__FUNC_SFCK>;
835 drive-strength = <MTK_DRIVE_4mA>;
840 panel_backlight_en_pins: panel_backlight_en_pins {
842 pinmux = <MT8173_PIN_95_PCM_TX__FUNC_GPIO95>;
846 panel_fixed_pins: panel_fixed_pins {
848 pinmux = <MT8173_PIN_41_CMMCLK__FUNC_GPIO41>;
852 ps8640_pins: ps8640_pins {
854 pinmux = <MT8173_PIN_92_PCM_CLK__FUNC_GPIO92>,
855 <MT8173_PIN_115_URTS0__FUNC_GPIO115>,
856 <MT8173_PIN_127_LCM_RST__FUNC_GPIO127>;
860 ps8640_fixed_pins: ps8640_fixed_pins {
862 pinmux = <MT8173_PIN_30_URTS2__FUNC_GPIO30>;
866 rt5650_irq: rt5650_irq {
868 pinmux = <MT8173_PIN_3_EINT3__FUNC_GPIO3>;
873 sdio_fixed_3v3_pins: sdio_fixed_3v3_pins {
875 pinmux = <MT8173_PIN_85_AUD_DAT_MOSI__FUNC_GPIO85>;
882 pinmux = <MT8173_PIN_0_EINT0__FUNC_GPIO0>;
887 pinmux = <MT8173_PIN_102_MSDC2_DAT2__FUNC_SPI_CK_1_>,
888 <MT8173_PIN_103_MSDC2_DAT3__FUNC_SPI_MI_1_>,
889 <MT8173_PIN_104_MSDC2_CLK__FUNC_SPI_MO_1_>,
890 <MT8173_PIN_105_MSDC2_CMD__FUNC_SPI_CS_1_>;
895 trackpad_irq: trackpad_irq {
897 pinmux = <MT8173_PIN_117_URXD3__FUNC_GPIO117>;
905 pinmux = <MT8173_PIN_101_MSDC2_DAT1__FUNC_GPIO101>;
911 wifi_wake_pins: wifi_wake_pins {
913 pinmux = <MT8173_PIN_38_CONN_RST__FUNC_GPIO38>;
920 pinctrl-names = "default";
921 pinctrl-0 = <&disp_pwm0_pins>;
927 compatible = "mediatek,mt6397";
928 #address-cells = <1>;
930 interrupts-extended = <&pio 11 IRQ_TYPE_LEVEL_HIGH>;
931 interrupt-controller;
932 #interrupt-cells = <2>;
935 compatible = "mediatek,mt6397-clk";
940 compatible = "mediatek,mt6397-pinctrl";
945 regulator: mt6397regulator {
946 compatible = "mediatek,mt6397-regulator";
948 mt6397_vpca15_reg: buck_vpca15 {
949 regulator-compatible = "buck_vpca15";
950 regulator-name = "vpca15";
951 regulator-min-microvolt = < 700000>;
952 regulator-max-microvolt = <1350000>;
953 regulator-ramp-delay = <12500>;
955 regulator-allowed-modes = <0 1>;
958 mt6397_vpca7_reg: buck_vpca7 {
959 regulator-compatible = "buck_vpca7";
960 regulator-name = "vpca7";
961 regulator-min-microvolt = < 700000>;
962 regulator-max-microvolt = <1350000>;
963 regulator-ramp-delay = <12500>;
964 regulator-enable-ramp-delay = <115>;
968 mt6397_vsramca15_reg: buck_vsramca15 {
969 regulator-compatible = "buck_vsramca15";
970 regulator-name = "vsramca15";
971 regulator-min-microvolt = < 700000>;
972 regulator-max-microvolt = <1350000>;
973 regulator-ramp-delay = <12500>;
977 mt6397_vsramca7_reg: buck_vsramca7 {
978 regulator-compatible = "buck_vsramca7";
979 regulator-name = "vsramca7";
980 regulator-min-microvolt = < 700000>;
981 regulator-max-microvolt = <1350000>;
982 regulator-ramp-delay = <12500>;
986 mt6397_vcore_reg: buck_vcore {
987 regulator-compatible = "buck_vcore";
988 regulator-name = "vcore";
989 regulator-min-microvolt = < 700000>;
990 regulator-max-microvolt = <1350000>;
991 regulator-ramp-delay = <12500>;
995 mt6397_vgpu_reg: buck_vgpu {
996 regulator-compatible = "buck_vgpu";
997 regulator-name = "vgpu";
998 regulator-min-microvolt = < 700000>;
999 regulator-max-microvolt = <1350000>;
1000 regulator-ramp-delay = <12500>;
1001 regulator-enable-ramp-delay = <115>;
1004 mt6397_vdrm_reg: buck_vdrm {
1005 regulator-compatible = "buck_vdrm";
1006 regulator-name = "vdrm";
1007 regulator-min-microvolt = <1200000>;
1008 regulator-max-microvolt = <1400000>;
1009 regulator-ramp-delay = <12500>;
1010 regulator-always-on;
1013 mt6397_vio18_reg: buck_vio18 {
1014 regulator-compatible = "buck_vio18";
1015 regulator-name = "vio18";
1016 regulator-min-microvolt = <1620000>;
1017 regulator-max-microvolt = <1980000>;
1018 regulator-ramp-delay = <12500>;
1019 regulator-always-on;
1022 mt6397_vtcxo_reg: ldo_vtcxo {
1023 regulator-compatible = "ldo_vtcxo";
1024 regulator-name = "vtcxo";
1025 regulator-always-on;
1028 mt6397_va28_reg: ldo_va28 {
1029 regulator-compatible = "ldo_va28";
1030 regulator-name = "va28";
1033 mt6397_vcama_reg: ldo_vcama {
1034 regulator-compatible = "ldo_vcama";
1035 regulator-name = "vcama";
1036 regulator-min-microvolt = <1800000>;
1037 regulator-max-microvolt = <1800000>;
1038 regulator-enable-ramp-delay = <218>;
1041 mt6397_vio28_reg: ldo_vio28 {
1042 regulator-compatible = "ldo_vio28";
1043 regulator-name = "vio28";
1044 regulator-always-on;
1047 mt6397_vusb_reg: ldo_vusb {
1048 regulator-compatible = "ldo_vusb";
1049 regulator-name = "vusb";
1052 mt6397_vmc_reg: ldo_vmc {
1053 regulator-compatible = "ldo_vmc";
1054 regulator-name = "vmc";
1055 regulator-min-microvolt = <1800000>;
1056 regulator-max-microvolt = <3300000>;
1057 regulator-enable-ramp-delay = <218>;
1060 mt6397_vmch_reg: ldo_vmch {
1061 regulator-compatible = "ldo_vmch";
1062 regulator-name = "vmch";
1063 regulator-min-microvolt = <3000000>;
1064 regulator-max-microvolt = <3300000>;
1065 regulator-enable-ramp-delay = <218>;
1068 mt6397_vemc_3v3_reg: ldo_vemc3v3 {
1069 regulator-compatible = "ldo_vemc3v3";
1070 regulator-name = "vemc_3v3";
1071 regulator-min-microvolt = <3000000>;
1072 regulator-max-microvolt = <3300000>;
1073 regulator-enable-ramp-delay = <218>;
1076 mt6397_vgp1_reg: ldo_vgp1 {
1077 regulator-compatible = "ldo_vgp1";
1078 regulator-name = "vcamd";
1079 regulator-min-microvolt = <1800000>;
1080 regulator-max-microvolt = <1800000>;
1081 regulator-enable-ramp-delay = <240>;
1084 mt6397_vgp2_reg: ldo_vgp2 {
1085 regulator-compatible = "ldo_vgp2";
1086 regulator-name = "vcamio";
1087 regulator-min-microvolt = <3300000>;
1088 regulator-max-microvolt = <3300000>;
1089 regulator-enable-ramp-delay = <218>;
1092 mt6397_vgp3_reg: ldo_vgp3 {
1093 regulator-compatible = "ldo_vgp3";
1094 regulator-name = "vcamaf";
1095 regulator-min-microvolt = <1800000>;
1096 regulator-max-microvolt = <1800000>;
1097 regulator-enable-ramp-delay = <218>;
1100 mt6397_vgp4_reg: ldo_vgp4 {
1101 regulator-compatible = "ldo_vgp4";
1102 regulator-name = "vgp4";
1103 regulator-min-microvolt = <1200000>;
1104 regulator-max-microvolt = <3300000>;
1105 regulator-enable-ramp-delay = <218>;
1108 mt6397_vgp5_reg: ldo_vgp5 {
1109 regulator-compatible = "ldo_vgp5";
1110 regulator-name = "vgp5";
1111 regulator-min-microvolt = <1200000>;
1112 regulator-max-microvolt = <3000000>;
1113 regulator-enable-ramp-delay = <218>;
1116 mt6397_vgp6_reg: ldo_vgp6 {
1117 regulator-compatible = "ldo_vgp6";
1118 regulator-name = "vgp6";
1119 regulator-min-microvolt = <3300000>;
1120 regulator-max-microvolt = <3300000>;
1121 regulator-enable-ramp-delay = <218>;
1122 regulator-always-on;
1125 mt6397_vibr_reg: ldo_vibr {
1126 regulator-compatible = "ldo_vibr";
1127 regulator-name = "vibr";
1128 regulator-min-microvolt = <1300000>;
1129 regulator-max-microvolt = <3300000>;
1130 regulator-enable-ramp-delay = <218>;
1135 compatible = "mediatek,mt6397-rtc";
1141 pinctrl-names = "default";
1142 pinctrl-0 = <&spi_pins_a>;
1143 mediatek,pad-select = <1>;
1147 compatible = "google,cros-ec-spi";
1149 spi-max-frequency = <12000000>;
1150 interrupts-extended = <&pio 0 IRQ_TYPE_LEVEL_LOW>;
1151 google,cros-ec-spi-msg-delay = <500>;
1154 i2c_tunnel: i2c-tunnel0 {
1155 compatible = "google,cros-ec-i2c-tunnel";
1156 google,remote-bus = <0>;
1157 #address-cells = <1>;
1160 battery: sbs-battery@b {
1161 compatible = "sbs,sbs-battery";
1163 sbs,i2c-retry-count = <2>;
1164 sbs,poll-retry-count = <1>;
1173 vusb33-supply = <&mt6397_vusb_reg>;
1178 bank0-supply = <&mt6397_vpca15_reg>;
1179 bank1-supply = <&da9211_vcpu_reg>;
1187 pinctrl-names = "default";
1188 pinctrl-0 = <&usb_pins>;
1189 vusb33-supply = <&mt6397_vusb_reg>;
1193 #include <arm/cros-ec-keyboard.dtsi>