11802d0beSThomas Gleixner// SPDX-License-Identifier: GPL-2.0-only 2b3a37248SEddie Huang/* 3b3a37248SEddie Huang * Copyright (c) 2014 MediaTek Inc. 4b3a37248SEddie Huang * Author: Eddie Huang <eddie.huang@mediatek.com> 5b3a37248SEddie Huang */ 6b3a37248SEddie Huang 7b3a37248SEddie Huang/dts-v1/; 8bfcce47aSChunfeng Yun#include <dt-bindings/gpio/gpio.h> 9b3a37248SEddie Huang#include "mt8173.dtsi" 10b3a37248SEddie Huang 11b3a37248SEddie Huang/ { 12692ef3eeSYingjoe Chen model = "MediaTek MT8173 evaluation board"; 13692ef3eeSYingjoe Chen compatible = "mediatek,mt8173-evb", "mediatek,mt8173"; 14b3a37248SEddie Huang 15b3a37248SEddie Huang aliases { 16b3a37248SEddie Huang serial0 = &uart0; 17b3a37248SEddie Huang serial1 = &uart1; 18b3a37248SEddie Huang serial2 = &uart2; 19b3a37248SEddie Huang serial3 = &uart3; 20b3a37248SEddie Huang }; 21b3a37248SEddie Huang 22b3a37248SEddie Huang memory@40000000 { 23b3a37248SEddie Huang device_type = "memory"; 24b3a37248SEddie Huang reg = <0 0x40000000 0 0x80000000>; 25b3a37248SEddie Huang }; 26b3a37248SEddie Huang 27b3a37248SEddie Huang chosen { }; 28bfcce47aSChunfeng Yun 297475e27bSPhilipp Zabel connector { 307475e27bSPhilipp Zabel compatible = "hdmi-connector"; 317475e27bSPhilipp Zabel label = "hdmi"; 327475e27bSPhilipp Zabel type = "d"; 337475e27bSPhilipp Zabel 347475e27bSPhilipp Zabel port { 357475e27bSPhilipp Zabel hdmi_connector_in: endpoint { 367475e27bSPhilipp Zabel remote-endpoint = <&hdmi0_out>; 377475e27bSPhilipp Zabel }; 387475e27bSPhilipp Zabel }; 397475e27bSPhilipp Zabel }; 40c0891284SChunfeng Yun 41c0891284SChunfeng Yun extcon_usb: extcon_iddig { 42c0891284SChunfeng Yun compatible = "linux,extcon-usb-gpio"; 43c0891284SChunfeng Yun id-gpio = <&pio 16 GPIO_ACTIVE_HIGH>; 44c0891284SChunfeng Yun }; 45c0891284SChunfeng Yun 46c0891284SChunfeng Yun usb_p1_vbus: regulator@0 { 47c0891284SChunfeng Yun compatible = "regulator-fixed"; 48c0891284SChunfeng Yun regulator-name = "usb_vbus"; 49c0891284SChunfeng Yun regulator-min-microvolt = <5000000>; 50c0891284SChunfeng Yun regulator-max-microvolt = <5000000>; 51c0891284SChunfeng Yun gpio = <&pio 130 GPIO_ACTIVE_HIGH>; 52c0891284SChunfeng Yun enable-active-high; 53c0891284SChunfeng Yun }; 54c0891284SChunfeng Yun 55c0891284SChunfeng Yun usb_p0_vbus: regulator@1 { 56c0891284SChunfeng Yun compatible = "regulator-fixed"; 57c0891284SChunfeng Yun regulator-name = "vbus"; 58c0891284SChunfeng Yun regulator-min-microvolt = <5000000>; 59c0891284SChunfeng Yun regulator-max-microvolt = <5000000>; 60c0891284SChunfeng Yun gpio = <&pio 9 GPIO_ACTIVE_HIGH>; 61c0891284SChunfeng Yun enable-active-high; 62c0891284SChunfeng Yun }; 637475e27bSPhilipp Zabel}; 647475e27bSPhilipp Zabel 657475e27bSPhilipp Zabel&cec { 667475e27bSPhilipp Zabel status = "okay"; 677475e27bSPhilipp Zabel}; 687475e27bSPhilipp Zabel 69da85a3afSAndrew-sh Cheng&cpu0 { 70da85a3afSAndrew-sh Cheng proc-supply = <&mt6397_vpca15_reg>; 71da85a3afSAndrew-sh Cheng}; 72da85a3afSAndrew-sh Cheng 73da85a3afSAndrew-sh Cheng&cpu1 { 74da85a3afSAndrew-sh Cheng proc-supply = <&mt6397_vpca15_reg>; 75da85a3afSAndrew-sh Cheng}; 76da85a3afSAndrew-sh Cheng 77da85a3afSAndrew-sh Cheng&cpu2 { 78da85a3afSAndrew-sh Cheng proc-supply = <&da9211_vcpu_reg>; 79da85a3afSAndrew-sh Cheng sram-supply = <&mt6397_vsramca7_reg>; 80da85a3afSAndrew-sh Cheng}; 81da85a3afSAndrew-sh Cheng 82da85a3afSAndrew-sh Cheng&cpu3 { 83da85a3afSAndrew-sh Cheng proc-supply = <&da9211_vcpu_reg>; 84da85a3afSAndrew-sh Cheng sram-supply = <&mt6397_vsramca7_reg>; 85da85a3afSAndrew-sh Cheng}; 86da85a3afSAndrew-sh Cheng 877475e27bSPhilipp Zabel&dpi0 { 887475e27bSPhilipp Zabel status = "okay"; 897475e27bSPhilipp Zabel}; 907475e27bSPhilipp Zabel 917475e27bSPhilipp Zabel&hdmi_phy { 927475e27bSPhilipp Zabel status = "okay"; 937475e27bSPhilipp Zabel}; 947475e27bSPhilipp Zabel 957475e27bSPhilipp Zabel&hdmi0 { 967475e27bSPhilipp Zabel status = "okay"; 977475e27bSPhilipp Zabel 987475e27bSPhilipp Zabel ports { 997475e27bSPhilipp Zabel port@1 { 1007475e27bSPhilipp Zabel reg = <1>; 1017475e27bSPhilipp Zabel 1027475e27bSPhilipp Zabel hdmi0_out: endpoint { 1037475e27bSPhilipp Zabel remote-endpoint = <&hdmi_connector_in>; 1047475e27bSPhilipp Zabel }; 1057475e27bSPhilipp Zabel }; 1067475e27bSPhilipp Zabel }; 107b3a37248SEddie Huang}; 108b3a37248SEddie Huang 109720570b1SHenry Chen&i2c1 { 110720570b1SHenry Chen status = "okay"; 111720570b1SHenry Chen 112720570b1SHenry Chen buck: da9211@68 { 113720570b1SHenry Chen compatible = "dlg,da9211"; 114720570b1SHenry Chen reg = <0x68>; 115720570b1SHenry Chen 116720570b1SHenry Chen regulators { 117720570b1SHenry Chen da9211_vcpu_reg: BUCKA { 118720570b1SHenry Chen regulator-name = "VBUCKA"; 119720570b1SHenry Chen regulator-min-microvolt = < 700000>; 120720570b1SHenry Chen regulator-max-microvolt = <1310000>; 121720570b1SHenry Chen regulator-min-microamp = <2000000>; 122720570b1SHenry Chen regulator-max-microamp = <4400000>; 123720570b1SHenry Chen regulator-ramp-delay = <10000>; 124720570b1SHenry Chen regulator-always-on; 125720570b1SHenry Chen }; 126720570b1SHenry Chen 127720570b1SHenry Chen da9211_vgpu_reg: BUCKB { 128720570b1SHenry Chen regulator-name = "VBUCKB"; 129720570b1SHenry Chen regulator-min-microvolt = < 700000>; 130720570b1SHenry Chen regulator-max-microvolt = <1310000>; 131720570b1SHenry Chen regulator-min-microamp = <2000000>; 132720570b1SHenry Chen regulator-max-microamp = <3000000>; 133720570b1SHenry Chen regulator-ramp-delay = <10000>; 134720570b1SHenry Chen }; 135720570b1SHenry Chen }; 136720570b1SHenry Chen }; 137720570b1SHenry Chen}; 138720570b1SHenry Chen 1399719fa5aSEddie Huang&mmc0 { 1409719fa5aSEddie Huang status = "okay"; 1419719fa5aSEddie Huang pinctrl-names = "default", "state_uhs"; 1429719fa5aSEddie Huang pinctrl-0 = <&mmc0_pins_default>; 1439719fa5aSEddie Huang pinctrl-1 = <&mmc0_pins_uhs>; 1449719fa5aSEddie Huang bus-width = <8>; 1459719fa5aSEddie Huang max-frequency = <50000000>; 1469719fa5aSEddie Huang cap-mmc-highspeed; 1471c080365Syong mao mediatek,hs200-cmd-int-delay=<26>; 1481c080365Syong mao mediatek,hs400-cmd-int-delay=<14>; 1491c080365Syong mao mediatek,hs400-cmd-resp-sel-rising; 1509719fa5aSEddie Huang vmmc-supply = <&mt6397_vemc_3v3_reg>; 1519719fa5aSEddie Huang vqmmc-supply = <&mt6397_vio18_reg>; 1529719fa5aSEddie Huang non-removable; 1539719fa5aSEddie Huang}; 1549719fa5aSEddie Huang 1559719fa5aSEddie Huang&mmc1 { 1569719fa5aSEddie Huang status = "okay"; 1579719fa5aSEddie Huang pinctrl-names = "default", "state_uhs"; 1589719fa5aSEddie Huang pinctrl-0 = <&mmc1_pins_default>; 1599719fa5aSEddie Huang pinctrl-1 = <&mmc1_pins_uhs>; 1609719fa5aSEddie Huang bus-width = <4>; 1619719fa5aSEddie Huang max-frequency = <50000000>; 1629719fa5aSEddie Huang cap-sd-highspeed; 1639719fa5aSEddie Huang sd-uhs-sdr25; 1649719fa5aSEddie Huang cd-gpios = <&pio 132 0>; 1659719fa5aSEddie Huang vmmc-supply = <&mt6397_vmch_reg>; 1669719fa5aSEddie Huang vqmmc-supply = <&mt6397_vmc_reg>; 1679719fa5aSEddie Huang}; 1689719fa5aSEddie Huang 1699719fa5aSEddie Huang&pio { 17061aee934SYH Huang disp_pwm0_pins: disp_pwm0_pins { 17161aee934SYH Huang pins1 { 17261aee934SYH Huang pinmux = <MT8173_PIN_87_DISP_PWM0__FUNC_DISP_PWM0>; 17361aee934SYH Huang output-low; 17461aee934SYH Huang }; 17561aee934SYH Huang }; 17661aee934SYH Huang 1779719fa5aSEddie Huang mmc0_pins_default: mmc0default { 1789719fa5aSEddie Huang pins_cmd_dat { 1799719fa5aSEddie Huang pinmux = <MT8173_PIN_57_MSDC0_DAT0__FUNC_MSDC0_DAT0>, 1809719fa5aSEddie Huang <MT8173_PIN_58_MSDC0_DAT1__FUNC_MSDC0_DAT1>, 1819719fa5aSEddie Huang <MT8173_PIN_59_MSDC0_DAT2__FUNC_MSDC0_DAT2>, 1829719fa5aSEddie Huang <MT8173_PIN_60_MSDC0_DAT3__FUNC_MSDC0_DAT3>, 1839719fa5aSEddie Huang <MT8173_PIN_61_MSDC0_DAT4__FUNC_MSDC0_DAT4>, 1849719fa5aSEddie Huang <MT8173_PIN_62_MSDC0_DAT5__FUNC_MSDC0_DAT5>, 1859719fa5aSEddie Huang <MT8173_PIN_63_MSDC0_DAT6__FUNC_MSDC0_DAT6>, 1869719fa5aSEddie Huang <MT8173_PIN_64_MSDC0_DAT7__FUNC_MSDC0_DAT7>, 1879719fa5aSEddie Huang <MT8173_PIN_66_MSDC0_CMD__FUNC_MSDC0_CMD>; 1889719fa5aSEddie Huang input-enable; 1899719fa5aSEddie Huang bias-pull-up; 1909719fa5aSEddie Huang }; 1919719fa5aSEddie Huang 1929719fa5aSEddie Huang pins_clk { 1939719fa5aSEddie Huang pinmux = <MT8173_PIN_65_MSDC0_CLK__FUNC_MSDC0_CLK>; 1949719fa5aSEddie Huang bias-pull-down; 1959719fa5aSEddie Huang }; 1969719fa5aSEddie Huang 1979719fa5aSEddie Huang pins_rst { 1989719fa5aSEddie Huang pinmux = <MT8173_PIN_68_MSDC0_RST___FUNC_MSDC0_RSTB>; 1999719fa5aSEddie Huang bias-pull-up; 2009719fa5aSEddie Huang }; 2019719fa5aSEddie Huang }; 2029719fa5aSEddie Huang 2039719fa5aSEddie Huang mmc1_pins_default: mmc1default { 2049719fa5aSEddie Huang pins_cmd_dat { 2059719fa5aSEddie Huang pinmux = <MT8173_PIN_73_MSDC1_DAT0__FUNC_MSDC1_DAT0>, 2069719fa5aSEddie Huang <MT8173_PIN_74_MSDC1_DAT1__FUNC_MSDC1_DAT1>, 2079719fa5aSEddie Huang <MT8173_PIN_75_MSDC1_DAT2__FUNC_MSDC1_DAT2>, 2089719fa5aSEddie Huang <MT8173_PIN_76_MSDC1_DAT3__FUNC_MSDC1_DAT3>, 2099719fa5aSEddie Huang <MT8173_PIN_78_MSDC1_CMD__FUNC_MSDC1_CMD>; 2109719fa5aSEddie Huang input-enable; 2119719fa5aSEddie Huang drive-strength = <MTK_DRIVE_4mA>; 2129719fa5aSEddie Huang bias-pull-up = <MTK_PUPD_SET_R1R0_10>; 2139719fa5aSEddie Huang }; 2149719fa5aSEddie Huang 2159719fa5aSEddie Huang pins_clk { 2169719fa5aSEddie Huang pinmux = <MT8173_PIN_77_MSDC1_CLK__FUNC_MSDC1_CLK>; 2179719fa5aSEddie Huang bias-pull-down; 2189719fa5aSEddie Huang drive-strength = <MTK_DRIVE_4mA>; 2199719fa5aSEddie Huang }; 2209719fa5aSEddie Huang 2219719fa5aSEddie Huang pins_insert { 2229719fa5aSEddie Huang pinmux = <MT8173_PIN_132_I2S0_DATA1__FUNC_GPIO132>; 2239719fa5aSEddie Huang bias-pull-up; 2249719fa5aSEddie Huang }; 2259719fa5aSEddie Huang }; 2269719fa5aSEddie Huang 2279719fa5aSEddie Huang mmc0_pins_uhs: mmc0 { 2289719fa5aSEddie Huang pins_cmd_dat { 2299719fa5aSEddie Huang pinmux = <MT8173_PIN_57_MSDC0_DAT0__FUNC_MSDC0_DAT0>, 2309719fa5aSEddie Huang <MT8173_PIN_58_MSDC0_DAT1__FUNC_MSDC0_DAT1>, 2319719fa5aSEddie Huang <MT8173_PIN_59_MSDC0_DAT2__FUNC_MSDC0_DAT2>, 2329719fa5aSEddie Huang <MT8173_PIN_60_MSDC0_DAT3__FUNC_MSDC0_DAT3>, 2339719fa5aSEddie Huang <MT8173_PIN_61_MSDC0_DAT4__FUNC_MSDC0_DAT4>, 2349719fa5aSEddie Huang <MT8173_PIN_62_MSDC0_DAT5__FUNC_MSDC0_DAT5>, 2359719fa5aSEddie Huang <MT8173_PIN_63_MSDC0_DAT6__FUNC_MSDC0_DAT6>, 2369719fa5aSEddie Huang <MT8173_PIN_64_MSDC0_DAT7__FUNC_MSDC0_DAT7>, 2379719fa5aSEddie Huang <MT8173_PIN_66_MSDC0_CMD__FUNC_MSDC0_CMD>; 2389719fa5aSEddie Huang input-enable; 2399719fa5aSEddie Huang drive-strength = <MTK_DRIVE_2mA>; 2409719fa5aSEddie Huang bias-pull-up = <MTK_PUPD_SET_R1R0_01>; 2419719fa5aSEddie Huang }; 2429719fa5aSEddie Huang 2439719fa5aSEddie Huang pins_clk { 2449719fa5aSEddie Huang pinmux = <MT8173_PIN_65_MSDC0_CLK__FUNC_MSDC0_CLK>; 2459719fa5aSEddie Huang drive-strength = <MTK_DRIVE_2mA>; 2469719fa5aSEddie Huang bias-pull-down = <MTK_PUPD_SET_R1R0_01>; 2479719fa5aSEddie Huang }; 2489719fa5aSEddie Huang 2499719fa5aSEddie Huang pins_rst { 2509719fa5aSEddie Huang pinmux = <MT8173_PIN_68_MSDC0_RST___FUNC_MSDC0_RSTB>; 2519719fa5aSEddie Huang bias-pull-up; 2529719fa5aSEddie Huang }; 2539719fa5aSEddie Huang }; 2549719fa5aSEddie Huang 2559719fa5aSEddie Huang mmc1_pins_uhs: mmc1 { 2569719fa5aSEddie Huang pins_cmd_dat { 2579719fa5aSEddie Huang pinmux = <MT8173_PIN_73_MSDC1_DAT0__FUNC_MSDC1_DAT0>, 2589719fa5aSEddie Huang <MT8173_PIN_74_MSDC1_DAT1__FUNC_MSDC1_DAT1>, 2599719fa5aSEddie Huang <MT8173_PIN_75_MSDC1_DAT2__FUNC_MSDC1_DAT2>, 2609719fa5aSEddie Huang <MT8173_PIN_76_MSDC1_DAT3__FUNC_MSDC1_DAT3>, 2619719fa5aSEddie Huang <MT8173_PIN_78_MSDC1_CMD__FUNC_MSDC1_CMD>; 2629719fa5aSEddie Huang input-enable; 2639719fa5aSEddie Huang drive-strength = <MTK_DRIVE_4mA>; 2649719fa5aSEddie Huang bias-pull-up = <MTK_PUPD_SET_R1R0_10>; 2659719fa5aSEddie Huang }; 2669719fa5aSEddie Huang 2679719fa5aSEddie Huang pins_clk { 2689719fa5aSEddie Huang pinmux = <MT8173_PIN_77_MSDC1_CLK__FUNC_MSDC1_CLK>; 2699719fa5aSEddie Huang drive-strength = <MTK_DRIVE_4mA>; 2709719fa5aSEddie Huang bias-pull-down = <MTK_PUPD_SET_R1R0_10>; 2719719fa5aSEddie Huang }; 2729719fa5aSEddie Huang }; 273c0891284SChunfeng Yun 274c0891284SChunfeng Yun usb_id_pins_float: usb_iddig_pull_up { 275c0891284SChunfeng Yun pins_iddig { 276c0891284SChunfeng Yun pinmux = <MT8173_PIN_16_IDDIG__FUNC_IDDIG>; 277c0891284SChunfeng Yun bias-pull-up; 278c0891284SChunfeng Yun }; 279c0891284SChunfeng Yun }; 280c0891284SChunfeng Yun 281c0891284SChunfeng Yun usb_id_pins_ground: usb_iddig_pull_down { 282c0891284SChunfeng Yun pins_iddig { 283c0891284SChunfeng Yun pinmux = <MT8173_PIN_16_IDDIG__FUNC_IDDIG>; 284c0891284SChunfeng Yun bias-pull-down; 285c0891284SChunfeng Yun }; 286c0891284SChunfeng Yun }; 2879719fa5aSEddie Huang}; 2889719fa5aSEddie Huang 28961aee934SYH Huang&pwm0 { 29061aee934SYH Huang pinctrl-names = "default"; 29161aee934SYH Huang pinctrl-0 = <&disp_pwm0_pins>; 29261aee934SYH Huang status = "okay"; 29361aee934SYH Huang}; 29461aee934SYH Huang 29516ea61fcSEddie Huang&pwrap { 2963ea064b1SEddie Huang /* Only MT8173 E1 needs USB power domain */ 2973ea064b1SEddie Huang power-domains = <&scpsys MT8173_POWER_DOMAIN_USB>; 2983ea064b1SEddie Huang 29916ea61fcSEddie Huang pmic: mt6397 { 30016ea61fcSEddie Huang compatible = "mediatek,mt6397"; 30116ea61fcSEddie Huang interrupt-parent = <&pio>; 30216ea61fcSEddie Huang interrupts = <11 IRQ_TYPE_LEVEL_HIGH>; 30316ea61fcSEddie Huang interrupt-controller; 30416ea61fcSEddie Huang #interrupt-cells = <2>; 30516ea61fcSEddie Huang 30616ea61fcSEddie Huang mt6397regulator: mt6397regulator { 30716ea61fcSEddie Huang compatible = "mediatek,mt6397-regulator"; 30816ea61fcSEddie Huang 30916ea61fcSEddie Huang mt6397_vpca15_reg: buck_vpca15 { 31016ea61fcSEddie Huang regulator-compatible = "buck_vpca15"; 31116ea61fcSEddie Huang regulator-name = "vpca15"; 31216ea61fcSEddie Huang regulator-min-microvolt = < 700000>; 31316ea61fcSEddie Huang regulator-max-microvolt = <1350000>; 31416ea61fcSEddie Huang regulator-ramp-delay = <12500>; 31516ea61fcSEddie Huang regulator-always-on; 31616ea61fcSEddie Huang }; 31716ea61fcSEddie Huang 31816ea61fcSEddie Huang mt6397_vpca7_reg: buck_vpca7 { 31916ea61fcSEddie Huang regulator-compatible = "buck_vpca7"; 32016ea61fcSEddie Huang regulator-name = "vpca7"; 32116ea61fcSEddie Huang regulator-min-microvolt = < 700000>; 32216ea61fcSEddie Huang regulator-max-microvolt = <1350000>; 32316ea61fcSEddie Huang regulator-ramp-delay = <12500>; 32416ea61fcSEddie Huang regulator-enable-ramp-delay = <115>; 32516ea61fcSEddie Huang }; 32616ea61fcSEddie Huang 32716ea61fcSEddie Huang mt6397_vsramca15_reg: buck_vsramca15 { 32816ea61fcSEddie Huang regulator-compatible = "buck_vsramca15"; 32916ea61fcSEddie Huang regulator-name = "vsramca15"; 33016ea61fcSEddie Huang regulator-min-microvolt = < 700000>; 33116ea61fcSEddie Huang regulator-max-microvolt = <1350000>; 33216ea61fcSEddie Huang regulator-ramp-delay = <12500>; 33316ea61fcSEddie Huang regulator-always-on; 33416ea61fcSEddie Huang }; 33516ea61fcSEddie Huang 33616ea61fcSEddie Huang mt6397_vsramca7_reg: buck_vsramca7 { 33716ea61fcSEddie Huang regulator-compatible = "buck_vsramca7"; 33816ea61fcSEddie Huang regulator-name = "vsramca7"; 33916ea61fcSEddie Huang regulator-min-microvolt = < 700000>; 34016ea61fcSEddie Huang regulator-max-microvolt = <1350000>; 34116ea61fcSEddie Huang regulator-ramp-delay = <12500>; 34216ea61fcSEddie Huang regulator-always-on; 34316ea61fcSEddie Huang }; 34416ea61fcSEddie Huang 34516ea61fcSEddie Huang mt6397_vcore_reg: buck_vcore { 34616ea61fcSEddie Huang regulator-compatible = "buck_vcore"; 34716ea61fcSEddie Huang regulator-name = "vcore"; 34816ea61fcSEddie Huang regulator-min-microvolt = < 700000>; 34916ea61fcSEddie Huang regulator-max-microvolt = <1350000>; 35016ea61fcSEddie Huang regulator-ramp-delay = <12500>; 35116ea61fcSEddie Huang regulator-always-on; 35216ea61fcSEddie Huang }; 35316ea61fcSEddie Huang 35416ea61fcSEddie Huang mt6397_vgpu_reg: buck_vgpu { 35516ea61fcSEddie Huang regulator-compatible = "buck_vgpu"; 35616ea61fcSEddie Huang regulator-name = "vgpu"; 35716ea61fcSEddie Huang regulator-min-microvolt = < 700000>; 35816ea61fcSEddie Huang regulator-max-microvolt = <1350000>; 35916ea61fcSEddie Huang regulator-ramp-delay = <12500>; 36016ea61fcSEddie Huang regulator-enable-ramp-delay = <115>; 36116ea61fcSEddie Huang }; 36216ea61fcSEddie Huang 36316ea61fcSEddie Huang mt6397_vdrm_reg: buck_vdrm { 36416ea61fcSEddie Huang regulator-compatible = "buck_vdrm"; 36516ea61fcSEddie Huang regulator-name = "vdrm"; 36616ea61fcSEddie Huang regulator-min-microvolt = <1200000>; 36716ea61fcSEddie Huang regulator-max-microvolt = <1400000>; 36816ea61fcSEddie Huang regulator-ramp-delay = <12500>; 36916ea61fcSEddie Huang regulator-always-on; 37016ea61fcSEddie Huang }; 37116ea61fcSEddie Huang 37216ea61fcSEddie Huang mt6397_vio18_reg: buck_vio18 { 37316ea61fcSEddie Huang regulator-compatible = "buck_vio18"; 37416ea61fcSEddie Huang regulator-name = "vio18"; 37516ea61fcSEddie Huang regulator-min-microvolt = <1620000>; 37616ea61fcSEddie Huang regulator-max-microvolt = <1980000>; 37716ea61fcSEddie Huang regulator-ramp-delay = <12500>; 37816ea61fcSEddie Huang regulator-always-on; 37916ea61fcSEddie Huang }; 38016ea61fcSEddie Huang 38116ea61fcSEddie Huang mt6397_vtcxo_reg: ldo_vtcxo { 38216ea61fcSEddie Huang regulator-compatible = "ldo_vtcxo"; 38316ea61fcSEddie Huang regulator-name = "vtcxo"; 38416ea61fcSEddie Huang regulator-always-on; 38516ea61fcSEddie Huang }; 38616ea61fcSEddie Huang 38716ea61fcSEddie Huang mt6397_va28_reg: ldo_va28 { 38816ea61fcSEddie Huang regulator-compatible = "ldo_va28"; 38916ea61fcSEddie Huang regulator-name = "va28"; 39016ea61fcSEddie Huang regulator-always-on; 39116ea61fcSEddie Huang }; 39216ea61fcSEddie Huang 39316ea61fcSEddie Huang mt6397_vcama_reg: ldo_vcama { 39416ea61fcSEddie Huang regulator-compatible = "ldo_vcama"; 39516ea61fcSEddie Huang regulator-name = "vcama"; 39616ea61fcSEddie Huang regulator-min-microvolt = <1500000>; 39716ea61fcSEddie Huang regulator-max-microvolt = <2800000>; 39816ea61fcSEddie Huang regulator-enable-ramp-delay = <218>; 39916ea61fcSEddie Huang }; 40016ea61fcSEddie Huang 40116ea61fcSEddie Huang mt6397_vio28_reg: ldo_vio28 { 40216ea61fcSEddie Huang regulator-compatible = "ldo_vio28"; 40316ea61fcSEddie Huang regulator-name = "vio28"; 40416ea61fcSEddie Huang regulator-always-on; 40516ea61fcSEddie Huang }; 40616ea61fcSEddie Huang 40716ea61fcSEddie Huang mt6397_vusb_reg: ldo_vusb { 40816ea61fcSEddie Huang regulator-compatible = "ldo_vusb"; 40916ea61fcSEddie Huang regulator-name = "vusb"; 41016ea61fcSEddie Huang }; 41116ea61fcSEddie Huang 41216ea61fcSEddie Huang mt6397_vmc_reg: ldo_vmc { 41316ea61fcSEddie Huang regulator-compatible = "ldo_vmc"; 41416ea61fcSEddie Huang regulator-name = "vmc"; 41516ea61fcSEddie Huang regulator-min-microvolt = <1800000>; 41616ea61fcSEddie Huang regulator-max-microvolt = <3300000>; 41716ea61fcSEddie Huang regulator-enable-ramp-delay = <218>; 41816ea61fcSEddie Huang }; 41916ea61fcSEddie Huang 42016ea61fcSEddie Huang mt6397_vmch_reg: ldo_vmch { 42116ea61fcSEddie Huang regulator-compatible = "ldo_vmch"; 42216ea61fcSEddie Huang regulator-name = "vmch"; 42316ea61fcSEddie Huang regulator-min-microvolt = <3000000>; 42416ea61fcSEddie Huang regulator-max-microvolt = <3300000>; 42516ea61fcSEddie Huang regulator-enable-ramp-delay = <218>; 42616ea61fcSEddie Huang }; 42716ea61fcSEddie Huang 42816ea61fcSEddie Huang mt6397_vemc_3v3_reg: ldo_vemc3v3 { 42916ea61fcSEddie Huang regulator-compatible = "ldo_vemc3v3"; 43016ea61fcSEddie Huang regulator-name = "vemc_3v3"; 43116ea61fcSEddie Huang regulator-min-microvolt = <3000000>; 43216ea61fcSEddie Huang regulator-max-microvolt = <3300000>; 43316ea61fcSEddie Huang regulator-enable-ramp-delay = <218>; 43416ea61fcSEddie Huang }; 43516ea61fcSEddie Huang 43616ea61fcSEddie Huang mt6397_vgp1_reg: ldo_vgp1 { 43716ea61fcSEddie Huang regulator-compatible = "ldo_vgp1"; 43816ea61fcSEddie Huang regulator-name = "vcamd"; 43916ea61fcSEddie Huang regulator-min-microvolt = <1220000>; 44016ea61fcSEddie Huang regulator-max-microvolt = <3300000>; 44116ea61fcSEddie Huang regulator-enable-ramp-delay = <240>; 44216ea61fcSEddie Huang }; 44316ea61fcSEddie Huang 44416ea61fcSEddie Huang mt6397_vgp2_reg: ldo_vgp2 { 44516ea61fcSEddie Huang regulator-compatible = "ldo_vgp2"; 44616ea61fcSEddie Huang regulator-name = "vcamio"; 44716ea61fcSEddie Huang regulator-min-microvolt = <1000000>; 44816ea61fcSEddie Huang regulator-max-microvolt = <3300000>; 44916ea61fcSEddie Huang regulator-enable-ramp-delay = <218>; 45016ea61fcSEddie Huang }; 45116ea61fcSEddie Huang 45216ea61fcSEddie Huang mt6397_vgp3_reg: ldo_vgp3 { 45316ea61fcSEddie Huang regulator-compatible = "ldo_vgp3"; 45416ea61fcSEddie Huang regulator-name = "vcamaf"; 45516ea61fcSEddie Huang regulator-min-microvolt = <1200000>; 45616ea61fcSEddie Huang regulator-max-microvolt = <3300000>; 45716ea61fcSEddie Huang regulator-enable-ramp-delay = <218>; 45816ea61fcSEddie Huang }; 45916ea61fcSEddie Huang 46016ea61fcSEddie Huang mt6397_vgp4_reg: ldo_vgp4 { 46116ea61fcSEddie Huang regulator-compatible = "ldo_vgp4"; 46216ea61fcSEddie Huang regulator-name = "vgp4"; 46316ea61fcSEddie Huang regulator-min-microvolt = <1200000>; 46416ea61fcSEddie Huang regulator-max-microvolt = <3300000>; 46516ea61fcSEddie Huang regulator-enable-ramp-delay = <218>; 46616ea61fcSEddie Huang }; 46716ea61fcSEddie Huang 46816ea61fcSEddie Huang mt6397_vgp5_reg: ldo_vgp5 { 46916ea61fcSEddie Huang regulator-compatible = "ldo_vgp5"; 47016ea61fcSEddie Huang regulator-name = "vgp5"; 47116ea61fcSEddie Huang regulator-min-microvolt = <1200000>; 47216ea61fcSEddie Huang regulator-max-microvolt = <3000000>; 47316ea61fcSEddie Huang regulator-enable-ramp-delay = <218>; 47416ea61fcSEddie Huang }; 47516ea61fcSEddie Huang 47616ea61fcSEddie Huang mt6397_vgp6_reg: ldo_vgp6 { 47716ea61fcSEddie Huang regulator-compatible = "ldo_vgp6"; 47816ea61fcSEddie Huang regulator-name = "vgp6"; 47916ea61fcSEddie Huang regulator-min-microvolt = <1200000>; 48016ea61fcSEddie Huang regulator-max-microvolt = <3300000>; 48116ea61fcSEddie Huang regulator-enable-ramp-delay = <218>; 48216ea61fcSEddie Huang }; 48316ea61fcSEddie Huang 48416ea61fcSEddie Huang mt6397_vibr_reg: ldo_vibr { 48516ea61fcSEddie Huang regulator-compatible = "ldo_vibr"; 48616ea61fcSEddie Huang regulator-name = "vibr"; 48716ea61fcSEddie Huang regulator-min-microvolt = <1300000>; 48816ea61fcSEddie Huang regulator-max-microvolt = <3300000>; 48916ea61fcSEddie Huang regulator-enable-ramp-delay = <218>; 49016ea61fcSEddie Huang }; 49116ea61fcSEddie Huang }; 49216ea61fcSEddie Huang }; 49316ea61fcSEddie Huang}; 49416ea61fcSEddie Huang 495b0c936f5SLeilk Liu&pio { 496b0c936f5SLeilk Liu spi_pins_a: spi0 { 497b0c936f5SLeilk Liu pins_spi { 498b0c936f5SLeilk Liu pinmux = <MT8173_PIN_69_SPI_CK__FUNC_SPI_CK_0_>, 499b0c936f5SLeilk Liu <MT8173_PIN_70_SPI_MI__FUNC_SPI_MI_0_>, 500b0c936f5SLeilk Liu <MT8173_PIN_71_SPI_MO__FUNC_SPI_MO_0_>, 501b0c936f5SLeilk Liu <MT8173_PIN_72_SPI_CS__FUNC_SPI_CS_0_>; 502b0c936f5SLeilk Liu }; 503b0c936f5SLeilk Liu }; 504b0c936f5SLeilk Liu}; 505b0c936f5SLeilk Liu 506b0c936f5SLeilk Liu&spi { 507b0c936f5SLeilk Liu pinctrl-names = "default"; 508b0c936f5SLeilk Liu pinctrl-0 = <&spi_pins_a>; 509b0c936f5SLeilk Liu mediatek,pad-select = <0>; 510b0c936f5SLeilk Liu status = "okay"; 511b0c936f5SLeilk Liu}; 512b0c936f5SLeilk Liu 513c0891284SChunfeng Yun&ssusb { 514c0891284SChunfeng Yun vusb33-supply = <&mt6397_vusb_reg>; 515c0891284SChunfeng Yun vbus-supply = <&usb_p0_vbus>; 516c0891284SChunfeng Yun extcon = <&extcon_usb>; 517c0891284SChunfeng Yun dr_mode = "otg"; 518cf1fcd45SChunfeng Yun wakeup-source; 519*c61872d5SChunfeng Yun pinctrl-names = "default"; 520c0891284SChunfeng Yun pinctrl-0 = <&usb_id_pins_float>; 521c0891284SChunfeng Yun status = "okay"; 522c0891284SChunfeng Yun}; 523c0891284SChunfeng Yun 524b3a37248SEddie Huang&uart0 { 525b3a37248SEddie Huang status = "okay"; 526b3a37248SEddie Huang}; 527bfcce47aSChunfeng Yun 528c0891284SChunfeng Yun&usb_host { 529bfcce47aSChunfeng Yun vusb33-supply = <&mt6397_vusb_reg>; 530bfcce47aSChunfeng Yun vbus-supply = <&usb_p1_vbus>; 531c0891284SChunfeng Yun status = "okay"; 532bfcce47aSChunfeng Yun}; 533