// SPDX-License-Identifier: GPL-2.0-only /* * Copyright 2016 MediaTek Inc. */ #include #include #include #include #include "mt8173.dtsi" / { aliases { mmc0 = &mmc0; mmc1 = &mmc1; mmc2 = &mmc3; }; memory@40000000 { device_type = "memory"; reg = <0 0x40000000 0 0x80000000>; }; backlight: backlight { compatible = "pwm-backlight"; pwms = <&pwm0 0 1000000>; power-supply = <&bl_fixed_reg>; enable-gpios = <&pio 95 GPIO_ACTIVE_HIGH>; pinctrl-names = "default"; pinctrl-0 = <&panel_backlight_en_pins>; status = "okay"; }; bl_fixed_reg: fixedregulator2 { compatible = "regulator-fixed"; regulator-name = "bl_fixed"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; startup-delay-us = <1000>; enable-active-high; gpio = <&pio 32 GPIO_ACTIVE_HIGH>; pinctrl-names = "default"; pinctrl-0 = <&bl_fixed_pins>; }; chosen { stdout-path = "serial0:115200n8"; }; gpio_keys: gpio-keys { compatible = "gpio-keys"; pinctrl-names = "default"; pinctrl-0 = <&gpio_keys_pins>; switch-lid { label = "Lid"; gpios = <&pio 69 GPIO_ACTIVE_LOW>; linux,code = ; linux,input-type = ; wakeup-source; }; switch-power { label = "Power"; gpios = <&pio 14 GPIO_ACTIVE_HIGH>; linux,code = ; debounce-interval = <30>; wakeup-source; }; switch-tablet-mode { label = "Tablet_mode"; gpios = <&pio 121 GPIO_ACTIVE_HIGH>; linux,code = ; linux,input-type = ; wakeup-source; }; switch-volume-down { label = "Volume_down"; gpios = <&pio 123 GPIO_ACTIVE_LOW>; linux,code = ; }; switch-volume-up { label = "Volume_up"; gpios = <&pio 124 GPIO_ACTIVE_LOW>; linux,code = ; }; }; panel_fixed_3v3: regulator1 { compatible = "regulator-fixed"; regulator-name = "PANEL_3V3"; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; enable-active-high; regulator-boot-on; off-on-delay-us = <500000>; gpio = <&pio 41 GPIO_ACTIVE_HIGH>; pinctrl-names = "default"; pinctrl-0 = <&panel_fixed_pins>; }; ps8640_fixed_1v2: regulator2 { compatible = "regulator-fixed"; regulator-name = "PS8640_1V2"; regulator-min-microvolt = <1200000>; regulator-max-microvolt = <1200000>; regulator-enable-ramp-delay = <2000>; enable-active-high; regulator-boot-on; gpio = <&pio 30 GPIO_ACTIVE_HIGH>; pinctrl-names = "default"; pinctrl-0 = <&ps8640_fixed_pins>; }; sdio_fixed_3v3: fixedregulator0 { compatible = "regulator-fixed"; regulator-name = "3V3"; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; gpio = <&pio 85 GPIO_ACTIVE_HIGH>; pinctrl-names = "default"; pinctrl-0 = <&sdio_fixed_3v3_pins>; }; sound: sound { compatible = "mediatek,mt8173-rt5650"; mediatek,audio-codec = <&rt5650 &hdmi0>; mediatek,platform = <&afe>; pinctrl-names = "default"; pinctrl-0 = <&aud_i2s2>; mediatek,mclk = <1>; codec-capture { sound-dai = <&rt5650 1>; }; }; hdmicon: connector { compatible = "hdmi-connector"; label = "hdmi"; type = "a"; ddc-i2c-bus = <&hdmiddc0>; port { hdmi_connector_in: endpoint { remote-endpoint = <&hdmi0_out>; }; }; }; watchdog { compatible = "arm,smc-wdt"; }; }; /* * Disable the original MMIO watch dog and switch to the SMC watchdog, which * operates on the same MMIO. */ &watchdog { status = "disabled"; }; &mfg_async { domain-supply = <&da9211_vgpu_reg>; }; &cec { status = "okay"; }; &cpu0 { proc-supply = <&mt6397_vpca15_reg>; }; &cpu1 { proc-supply = <&mt6397_vpca15_reg>; }; &cpu2 { proc-supply = <&da9211_vcpu_reg>; sram-supply = <&mt6397_vsramca7_reg>; }; &cpu3 { proc-supply = <&da9211_vcpu_reg>; sram-supply = <&mt6397_vsramca7_reg>; }; &cpu_thermal { sustainable-power = <4500>; /* milliwatts */ trips { threshold: trip-point0 { temperature = <60000>; }; target: trip-point1 { temperature = <65000>; }; }; }; &dsi0 { status = "okay"; ports { port { dsi0_out: endpoint { remote-endpoint = <&ps8640_in>; }; }; }; }; &dpi0 { status = "okay"; }; &hdmi0 { status = "okay"; ports { port@1 { reg = <1>; hdmi0_out: endpoint { remote-endpoint = <&hdmi_connector_in>; }; }; }; }; &hdmi_phy { status = "okay"; mediatek,ibias = <0xc>; }; &i2c0 { status = "okay"; rt5650: audio-codec@1a { compatible = "realtek,rt5650"; reg = <0x1a>; avdd-supply = <&mt6397_vgp1_reg>; cpvdd-supply = <&mt6397_vcama_reg>; interrupts-extended = <&pio 3 IRQ_TYPE_EDGE_BOTH>; pinctrl-names = "default"; pinctrl-0 = <&rt5650_irq>; #sound-dai-cells = <1>; realtek,dmic1-data-pin = <2>; realtek,jd-mode = <2>; }; ps8640: edp-bridge@8 { compatible = "parade,ps8640"; reg = <0x8>; powerdown-gpios = <&pio 127 GPIO_ACTIVE_LOW>; reset-gpios = <&pio 115 GPIO_ACTIVE_LOW>; pinctrl-names = "default"; pinctrl-0 = <&ps8640_pins>; vdd12-supply = <&ps8640_fixed_1v2>; vdd33-supply = <&mt6397_vgp2_reg>; ports { #address-cells = <1>; #size-cells = <0>; port@0 { reg = <0>; ps8640_in: endpoint { remote-endpoint = <&dsi0_out>; }; }; port@1 { reg = <1>; ps8640_out: endpoint { remote-endpoint = <&panel_in>; }; }; }; aux-bus { panel: panel { compatible = "edp-panel"; power-supply = <&panel_fixed_3v3>; backlight = <&backlight>; port { panel_in: endpoint { remote-endpoint = <&ps8640_out>; }; }; }; }; }; }; &i2c1 { clock-frequency = <1500000>; status = "okay"; da9211: da9211@68 { compatible = "dlg,da9211"; reg = <0x68>; interrupts-extended = <&pio 15 IRQ_TYPE_LEVEL_LOW>; regulators { da9211_vcpu_reg: BUCKA { regulator-name = "VBUCKA"; regulator-min-microvolt = < 700000>; regulator-max-microvolt = <1310000>; regulator-min-microamp = <2000000>; regulator-max-microamp = <4400000>; regulator-ramp-delay = <10000>; regulator-always-on; regulator-allowed-modes = ; }; da9211_vgpu_reg: BUCKB { regulator-name = "VBUCKB"; regulator-min-microvolt = < 700000>; regulator-max-microvolt = <1310000>; regulator-min-microamp = <2000000>; regulator-max-microamp = <3000000>; regulator-ramp-delay = <10000>; }; }; }; }; &i2c2 { status = "okay"; tpm: tpm@20 { compatible = "infineon,slb9645tt"; reg = <0x20>; powered-while-suspended; }; }; &i2c3 { clock-frequency = <400000>; status = "okay"; touchscreen: touchscreen@10 { compatible = "elan,ekth3500"; reg = <0x10>; interrupts-extended = <&pio 88 IRQ_TYPE_LEVEL_LOW>; }; }; &i2c4 { clock-frequency = <400000>; status = "okay"; trackpad: trackpad@15 { compatible = "elan,ekth3000"; interrupts-extended = <&pio 117 IRQ_TYPE_LEVEL_LOW>; pinctrl-names = "default"; pinctrl-0 = <&trackpad_irq>; reg = <0x15>; vcc-supply = <&mt6397_vgp6_reg>; wakeup-source; }; }; &mipi_tx0 { status = "okay"; }; &mmc0 { status = "okay"; pinctrl-names = "default", "state_uhs"; pinctrl-0 = <&mmc0_pins_default>; pinctrl-1 = <&mmc0_pins_uhs>; bus-width = <8>; max-frequency = <200000000>; cap-mmc-highspeed; mmc-hs200-1_8v; mmc-hs400-1_8v; cap-mmc-hw-reset; hs400-ds-delay = <0x14015>; mediatek,hs200-cmd-int-delay = <30>; mediatek,hs400-cmd-int-delay = <14>; mediatek,hs400-cmd-resp-sel-rising; vmmc-supply = <&mt6397_vemc_3v3_reg>; vqmmc-supply = <&mt6397_vio18_reg>; assigned-clocks = <&topckgen CLK_TOP_MSDC50_0_SEL>; assigned-clock-parents = <&topckgen CLK_TOP_MSDCPLL_D2>; non-removable; }; &mmc1 { status = "okay"; pinctrl-names = "default", "state_uhs"; pinctrl-0 = <&mmc1_pins_default>; pinctrl-1 = <&mmc1_pins_uhs>; bus-width = <4>; max-frequency = <200000000>; cap-sd-highspeed; sd-uhs-sdr50; sd-uhs-sdr104; cd-gpios = <&pio 1 GPIO_ACTIVE_LOW>; vmmc-supply = <&mt6397_vmch_reg>; vqmmc-supply = <&mt6397_vmc_reg>; }; &mmc3 { status = "okay"; pinctrl-names = "default", "state_uhs"; pinctrl-0 = <&mmc3_pins_default>; pinctrl-1 = <&mmc3_pins_uhs>; bus-width = <4>; max-frequency = <200000000>; cap-sd-highspeed; sd-uhs-sdr50; sd-uhs-sdr104; keep-power-in-suspend; wakeup-source; cap-sdio-irq; vmmc-supply = <&sdio_fixed_3v3>; vqmmc-supply = <&mt6397_vgp3_reg>; non-removable; cap-power-off-card; #address-cells = <1>; #size-cells = <0>; btmrvl: btmrvl@2 { compatible = "marvell,sd8897-bt"; reg = <2>; interrupts-extended = <&pio 119 IRQ_TYPE_LEVEL_LOW>; marvell,wakeup-pin = /bits/ 16 <0x0d>; marvell,wakeup-gap-ms = /bits/ 16 <0x64>; }; mwifiex: mwifiex@1 { compatible = "marvell,sd8897"; reg = <1>; interrupts-extended = <&pio 38 IRQ_TYPE_LEVEL_LOW>; marvell,wakeup-pin = <3>; }; }; &nor_flash { status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&nor_gpio1_pins>; flash@0 { compatible = "jedec,spi-nor"; reg = <0>; spi-max-frequency = <50000000>; }; }; &pio { gpio-line-names = "EC_INT_1V8", "SD_CD_L", "ALC5514_IRQ", "ALC5650_IRQ", /* * AP_FLASH_WP_L is crossystem ABI. Schematics * call it SFWP_B. */ "AP_FLASH_WP_L", "SFIN", "SFCS0", "SFHOLD", "SFOUT", "SFCK", "WRAP_EVENT_S_EINT10", "PMU_INT", "I2S2_WS_ALC5650", "I2S2_BCK_ALC5650", "PWR_BTN_1V8", "DA9212_IRQ", "IDDIG", "WATCHDOG", "CEC", "HDMISCK", "HDMISD", "HTPLG", "MSDC3_DAT0", "MSDC3_DAT1", "MSDC3_DAT2", "MSDC3_DAT3", "MSDC3_CLK", "MSDC3_CMD", "USB_C0_OC_FLAGB", "USBA_OC1_L", "PS8640_1V2_ENABLE", "THERM_ALERT_N", "PANEL_LCD_POWER_EN", "ANX7688_CHIP_PD_C", "EC_IN_RW_1V8", "ANX7688_1V_EN_C", "USB_DP_HPD_C", "TPM_DAVINT_N", "MARVELL8897_IRQ", "EN_USB_A0_PWR", "USBA_A0_OC_L", "EN_PP3300_DX_EDP", "", "SOC_I2C2_1V8_SDA_400K", "SOC_I2C2_1V8_SCL_400K", "SOC_I2C0_1V8_SDA_400K", "SOC_I2C0_1V8_SCL_400K", "EMMC_ID1", "EMMC_ID0", "MEM_CONFIG3", "EMMC_ID2", "MEM_CONFIG1", "MEM_CONFIG2", "BRD_ID2", "MEM_CONFIG0", "BRD_ID0", "BRD_ID1", "EMMC_DAT0", "EMMC_DAT1", "EMMC_DAT2", "EMMC_DAT3", "EMMC_DAT4", "EMMC_DAT5", "EMMC_DAT6", "EMMC_DAT7", "EMMC_CLK", "EMMC_CMD", "EMMC_RCLK", "PLT_RST_L", "LID_OPEN_1V8_L", "AUDIO_SPI_MISO_R", "", "AC_OK_1V8", "SD_DATA0", "SD_DATA1", "SD_DATA2", "SD_DATA3", "SD_CLK", "SD_CMD", "PWRAP_SPI0_MI", "PWRAP_SPI0_MO", "PWRAP_SPI0_CK", "PWRAP_SPI0_CSN", "", "", "WIFI_PDN", "RTC32K_1V8", "DISP_PWM0", "TOUCHSCREEN_INT_L", "", "SRCLKENA0", "SRCLKENA1", "PS8640_MODE_CONF", "TOUCHSCREEN_RESET_R", "PLATFORM_PROCHOT_L", "PANEL_POWER_EN", "REC_MODE_L", "EC_FW_UPDATE_L", "ACCEL2_INT_L", "HDMI_DP_INT", "ACCELGYRO3_INT_L", "ACCELGYRO4_INT_L", "SPI_EC_CLK", "SPI_EC_MI", "SPI_EC_MO", "SPI_EC_CSN", "SOC_I2C3_1V8_SDA_400K", "SOC_I2C3_1V8_SCL_400K", "", "", "", "", "", "", "", "PS8640_SYSRSTN_1V8", "APIN_MAX98090_DOUT2", "TP_INT_1V8_L_R", "RST_USB_HUB_R", "BT_WAKE_L", "ACCEL1_INT_L", "TABLET_MODE_L", "", "V_UP_IN_L_R", "V_DOWN_IN_L_R", "SOC_I2C1_1V8_SDA_1M", "SOC_I2C1_1V8_SCL_1M", "PS8640_PDN_1V8", "MAX98090_LRCLK", "MAX98090_BCLK", "MAX98090_MCLK", "APOUT_MAX98090_DIN", "APIN_MAX98090_DOUT", "SOC_I2C4_1V8_SDA_400K", "SOC_I2C4_1V8_SCL_400K"; aud_i2s2: aud_i2s2 { pins1 { pinmux = , , , , , , ; bias-pull-down; }; }; bl_fixed_pins: bl_fixed_pins { pins1 { pinmux = ; output-low; }; }; bt_wake_pins: bt_wake_pins { pins1 { pinmux = ; bias-pull-up; }; }; disp_pwm0_pins: disp_pwm0_pins { pins1 { pinmux = ; output-low; }; }; gpio_keys_pins: gpio_keys_pins { volume_pins { pinmux = , ; bias-pull-up; }; tablet_mode_pins { pinmux = ; bias-pull-up; }; }; hdmi_mux_pins: hdmi_mux_pins { pins1 { pinmux = ; }; }; i2c1_pins_a: i2c1 { da9211_pins { pinmux = ; bias-pull-up; }; }; mmc0_pins_default: mmc0default { pins_cmd_dat { pinmux = , , , , , , , , ; bias-pull-up; }; pins_clk { pinmux = ; bias-pull-down; }; pins_rst { pinmux = ; bias-pull-up; }; }; mmc1_pins_default: mmc1default { pins_cmd_dat { pinmux = , , , , ; input-enable; drive-strength = ; bias-pull-up = ; }; pins_clk { pinmux = ; bias-pull-down; drive-strength = ; }; pins_insert { pinmux = ; bias-pull-up; }; }; mmc3_pins_default: mmc3default { pins_dat { pinmux = , , , ; input-enable; drive-strength = ; bias-pull-up = ; }; pins_cmd { pinmux = ; input-enable; drive-strength = ; bias-pull-up = ; }; pins_clk { pinmux = ; bias-pull-down; drive-strength = ; }; }; mmc0_pins_uhs: mmc0 { pins_cmd_dat { pinmux = , , , , , , , , ; input-enable; drive-strength = ; bias-pull-up = ; }; pins_clk { pinmux = ; drive-strength = ; bias-pull-down = ; }; pins_ds { pinmux = ; drive-strength = ; bias-pull-down = ; }; pins_rst { pinmux = ; bias-pull-up; }; }; mmc1_pins_uhs: mmc1 { pins_cmd_dat { pinmux = , , , , ; input-enable; drive-strength = ; bias-pull-up = ; }; pins_clk { pinmux = ; drive-strength = ; bias-pull-down = ; }; }; mmc3_pins_uhs: mmc3 { pins_dat { pinmux = , , , ; input-enable; drive-strength = ; bias-pull-up = ; }; pins_cmd { pinmux = ; input-enable; drive-strength = ; bias-pull-up = ; }; pins_clk { pinmux = ; drive-strength = ; bias-pull-down = ; }; }; nor_gpio1_pins: nor { pins1 { pinmux = , , ; input-enable; drive-strength = ; bias-pull-up; }; pins2 { pinmux = ; drive-strength = ; bias-pull-up; }; pins_clk { pinmux = ; input-enable; drive-strength = ; bias-pull-up; }; }; panel_backlight_en_pins: panel_backlight_en_pins { pins1 { pinmux = ; }; }; panel_fixed_pins: panel_fixed_pins { pins1 { pinmux = ; }; }; ps8640_pins: ps8640_pins { pins1 { pinmux = , , ; }; }; ps8640_fixed_pins: ps8640_fixed_pins { pins1 { pinmux = ; }; }; rt5650_irq: rt5650_irq { pins1 { pinmux = ; bias-pull-down; }; }; sdio_fixed_3v3_pins: sdio_fixed_3v3_pins { pins1 { pinmux = ; output-low; }; }; spi_pins_a: spi1 { pins1 { pinmux = ; bias-pull-up; }; pins_spi { pinmux = , , , ; bias-disable; }; }; trackpad_irq: trackpad_irq { pins1 { pinmux = ; input-enable; bias-pull-up; }; }; usb_pins: usb { pins1 { pinmux = ; output-high; bias-disable; }; }; wifi_wake_pins: wifi_wake_pins { pins1 { pinmux = ; bias-pull-up; }; }; }; &pwm0 { pinctrl-names = "default"; pinctrl-0 = <&disp_pwm0_pins>; status = "okay"; }; &pwrap { pmic: pmic { compatible = "mediatek,mt6397"; #address-cells = <1>; #size-cells = <1>; interrupts-extended = <&pio 11 IRQ_TYPE_LEVEL_HIGH>; interrupt-controller; #interrupt-cells = <2>; clock: mt6397clock { compatible = "mediatek,mt6397-clk"; #clock-cells = <1>; }; pio6397: pinctrl { compatible = "mediatek,mt6397-pinctrl"; gpio-controller; #gpio-cells = <2>; }; regulator: mt6397regulator { compatible = "mediatek,mt6397-regulator"; mt6397_vpca15_reg: buck_vpca15 { regulator-compatible = "buck_vpca15"; regulator-name = "vpca15"; regulator-min-microvolt = < 700000>; regulator-max-microvolt = <1350000>; regulator-ramp-delay = <12500>; regulator-always-on; regulator-allowed-modes = <0 1>; }; mt6397_vpca7_reg: buck_vpca7 { regulator-compatible = "buck_vpca7"; regulator-name = "vpca7"; regulator-min-microvolt = < 700000>; regulator-max-microvolt = <1350000>; regulator-ramp-delay = <12500>; regulator-enable-ramp-delay = <115>; regulator-always-on; }; mt6397_vsramca15_reg: buck_vsramca15 { regulator-compatible = "buck_vsramca15"; regulator-name = "vsramca15"; regulator-min-microvolt = < 700000>; regulator-max-microvolt = <1350000>; regulator-ramp-delay = <12500>; regulator-always-on; }; mt6397_vsramca7_reg: buck_vsramca7 { regulator-compatible = "buck_vsramca7"; regulator-name = "vsramca7"; regulator-min-microvolt = < 700000>; regulator-max-microvolt = <1350000>; regulator-ramp-delay = <12500>; regulator-always-on; }; mt6397_vcore_reg: buck_vcore { regulator-compatible = "buck_vcore"; regulator-name = "vcore"; regulator-min-microvolt = < 700000>; regulator-max-microvolt = <1350000>; regulator-ramp-delay = <12500>; regulator-always-on; }; mt6397_vgpu_reg: buck_vgpu { regulator-compatible = "buck_vgpu"; regulator-name = "vgpu"; regulator-min-microvolt = < 700000>; regulator-max-microvolt = <1350000>; regulator-ramp-delay = <12500>; regulator-enable-ramp-delay = <115>; }; mt6397_vdrm_reg: buck_vdrm { regulator-compatible = "buck_vdrm"; regulator-name = "vdrm"; regulator-min-microvolt = <1200000>; regulator-max-microvolt = <1400000>; regulator-ramp-delay = <12500>; regulator-always-on; }; mt6397_vio18_reg: buck_vio18 { regulator-compatible = "buck_vio18"; regulator-name = "vio18"; regulator-min-microvolt = <1620000>; regulator-max-microvolt = <1980000>; regulator-ramp-delay = <12500>; regulator-always-on; }; mt6397_vtcxo_reg: ldo_vtcxo { regulator-compatible = "ldo_vtcxo"; regulator-name = "vtcxo"; regulator-always-on; }; mt6397_va28_reg: ldo_va28 { regulator-compatible = "ldo_va28"; regulator-name = "va28"; }; mt6397_vcama_reg: ldo_vcama { regulator-compatible = "ldo_vcama"; regulator-name = "vcama"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; regulator-enable-ramp-delay = <218>; }; mt6397_vio28_reg: ldo_vio28 { regulator-compatible = "ldo_vio28"; regulator-name = "vio28"; regulator-always-on; }; mt6397_vusb_reg: ldo_vusb { regulator-compatible = "ldo_vusb"; regulator-name = "vusb"; }; mt6397_vmc_reg: ldo_vmc { regulator-compatible = "ldo_vmc"; regulator-name = "vmc"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <3300000>; regulator-enable-ramp-delay = <218>; }; mt6397_vmch_reg: ldo_vmch { regulator-compatible = "ldo_vmch"; regulator-name = "vmch"; regulator-min-microvolt = <3000000>; regulator-max-microvolt = <3300000>; regulator-enable-ramp-delay = <218>; }; mt6397_vemc_3v3_reg: ldo_vemc3v3 { regulator-compatible = "ldo_vemc3v3"; regulator-name = "vemc_3v3"; regulator-min-microvolt = <3000000>; regulator-max-microvolt = <3300000>; regulator-enable-ramp-delay = <218>; }; mt6397_vgp1_reg: ldo_vgp1 { regulator-compatible = "ldo_vgp1"; regulator-name = "vcamd"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; regulator-enable-ramp-delay = <240>; }; mt6397_vgp2_reg: ldo_vgp2 { regulator-compatible = "ldo_vgp2"; regulator-name = "vcamio"; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; regulator-enable-ramp-delay = <218>; }; mt6397_vgp3_reg: ldo_vgp3 { regulator-compatible = "ldo_vgp3"; regulator-name = "vcamaf"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; regulator-enable-ramp-delay = <218>; }; mt6397_vgp4_reg: ldo_vgp4 { regulator-compatible = "ldo_vgp4"; regulator-name = "vgp4"; regulator-min-microvolt = <1200000>; regulator-max-microvolt = <3300000>; regulator-enable-ramp-delay = <218>; }; mt6397_vgp5_reg: ldo_vgp5 { regulator-compatible = "ldo_vgp5"; regulator-name = "vgp5"; regulator-min-microvolt = <1200000>; regulator-max-microvolt = <3000000>; regulator-enable-ramp-delay = <218>; }; mt6397_vgp6_reg: ldo_vgp6 { regulator-compatible = "ldo_vgp6"; regulator-name = "vgp6"; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; regulator-enable-ramp-delay = <218>; regulator-always-on; }; mt6397_vibr_reg: ldo_vibr { regulator-compatible = "ldo_vibr"; regulator-name = "vibr"; regulator-min-microvolt = <1300000>; regulator-max-microvolt = <3300000>; regulator-enable-ramp-delay = <218>; }; }; rtc: mt6397rtc { compatible = "mediatek,mt6397-rtc"; }; }; }; &spi { pinctrl-names = "default"; pinctrl-0 = <&spi_pins_a>; mediatek,pad-select = <1>; status = "okay"; /* clients */ cros_ec: ec@0 { compatible = "google,cros-ec-spi"; reg = <0x0>; spi-max-frequency = <12000000>; interrupts-extended = <&pio 0 IRQ_TYPE_LEVEL_LOW>; google,cros-ec-spi-msg-delay = <500>; wakeup-source; i2c_tunnel: i2c-tunnel0 { compatible = "google,cros-ec-i2c-tunnel"; google,remote-bus = <0>; #address-cells = <1>; #size-cells = <0>; battery: sbs-battery@b { compatible = "sbs,sbs-battery"; reg = <0xb>; sbs,i2c-retry-count = <2>; sbs,poll-retry-count = <1>; }; }; }; }; &ssusb { dr_mode = "host"; wakeup-source; vusb33-supply = <&mt6397_vusb_reg>; status = "okay"; }; &thermal { bank0-supply = <&mt6397_vpca15_reg>; bank1-supply = <&da9211_vcpu_reg>; }; &uart0 { status = "okay"; }; &usb_host { pinctrl-names = "default"; pinctrl-0 = <&usb_pins>; vusb33-supply = <&mt6397_vusb_reg>; status = "okay"; }; #include