18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0-only
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Copyright (c) 2014 MediaTek Inc.
48c2ecf20Sopenharmony_ci * Author: Eddie Huang <eddie.huang@mediatek.com>
58c2ecf20Sopenharmony_ci */
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_ci/dts-v1/;
88c2ecf20Sopenharmony_ci#include <dt-bindings/gpio/gpio.h>
98c2ecf20Sopenharmony_ci#include "mt8173.dtsi"
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ci/ {
128c2ecf20Sopenharmony_ci	model = "MediaTek MT8173 evaluation board";
138c2ecf20Sopenharmony_ci	compatible = "mediatek,mt8173-evb", "mediatek,mt8173";
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ci	aliases {
168c2ecf20Sopenharmony_ci		serial0 = &uart0;
178c2ecf20Sopenharmony_ci		serial1 = &uart1;
188c2ecf20Sopenharmony_ci		serial2 = &uart2;
198c2ecf20Sopenharmony_ci		serial3 = &uart3;
208c2ecf20Sopenharmony_ci	};
218c2ecf20Sopenharmony_ci
228c2ecf20Sopenharmony_ci	memory@40000000 {
238c2ecf20Sopenharmony_ci		device_type = "memory";
248c2ecf20Sopenharmony_ci		reg = <0 0x40000000 0 0x80000000>;
258c2ecf20Sopenharmony_ci	};
268c2ecf20Sopenharmony_ci
278c2ecf20Sopenharmony_ci	chosen { };
288c2ecf20Sopenharmony_ci
298c2ecf20Sopenharmony_ci	connector {
308c2ecf20Sopenharmony_ci		compatible = "hdmi-connector";
318c2ecf20Sopenharmony_ci		label = "hdmi";
328c2ecf20Sopenharmony_ci		type = "d";
338c2ecf20Sopenharmony_ci
348c2ecf20Sopenharmony_ci		port {
358c2ecf20Sopenharmony_ci			hdmi_connector_in: endpoint {
368c2ecf20Sopenharmony_ci				remote-endpoint = <&hdmi0_out>;
378c2ecf20Sopenharmony_ci			};
388c2ecf20Sopenharmony_ci		};
398c2ecf20Sopenharmony_ci	};
408c2ecf20Sopenharmony_ci
418c2ecf20Sopenharmony_ci	extcon_usb: extcon_iddig {
428c2ecf20Sopenharmony_ci		compatible = "linux,extcon-usb-gpio";
438c2ecf20Sopenharmony_ci		id-gpio = <&pio 16 GPIO_ACTIVE_HIGH>;
448c2ecf20Sopenharmony_ci	};
458c2ecf20Sopenharmony_ci
468c2ecf20Sopenharmony_ci	usb_p1_vbus: regulator-usb-p1 {
478c2ecf20Sopenharmony_ci		compatible = "regulator-fixed";
488c2ecf20Sopenharmony_ci		regulator-name = "usb_vbus";
498c2ecf20Sopenharmony_ci		regulator-min-microvolt = <5000000>;
508c2ecf20Sopenharmony_ci		regulator-max-microvolt = <5000000>;
518c2ecf20Sopenharmony_ci		gpio = <&pio 130 GPIO_ACTIVE_HIGH>;
528c2ecf20Sopenharmony_ci		enable-active-high;
538c2ecf20Sopenharmony_ci	};
548c2ecf20Sopenharmony_ci
558c2ecf20Sopenharmony_ci	usb_p0_vbus: regulator-usb-p0 {
568c2ecf20Sopenharmony_ci		compatible = "regulator-fixed";
578c2ecf20Sopenharmony_ci		regulator-name = "vbus";
588c2ecf20Sopenharmony_ci		regulator-min-microvolt = <5000000>;
598c2ecf20Sopenharmony_ci		regulator-max-microvolt = <5000000>;
608c2ecf20Sopenharmony_ci		gpio = <&pio 9 GPIO_ACTIVE_HIGH>;
618c2ecf20Sopenharmony_ci		enable-active-high;
628c2ecf20Sopenharmony_ci	};
638c2ecf20Sopenharmony_ci};
648c2ecf20Sopenharmony_ci
658c2ecf20Sopenharmony_ci&cec {
668c2ecf20Sopenharmony_ci	status = "okay";
678c2ecf20Sopenharmony_ci};
688c2ecf20Sopenharmony_ci
698c2ecf20Sopenharmony_ci&cpu0 {
708c2ecf20Sopenharmony_ci	proc-supply = <&mt6397_vpca15_reg>;
718c2ecf20Sopenharmony_ci};
728c2ecf20Sopenharmony_ci
738c2ecf20Sopenharmony_ci&cpu1 {
748c2ecf20Sopenharmony_ci	proc-supply = <&mt6397_vpca15_reg>;
758c2ecf20Sopenharmony_ci};
768c2ecf20Sopenharmony_ci
778c2ecf20Sopenharmony_ci&cpu2 {
788c2ecf20Sopenharmony_ci	proc-supply = <&da9211_vcpu_reg>;
798c2ecf20Sopenharmony_ci	sram-supply = <&mt6397_vsramca7_reg>;
808c2ecf20Sopenharmony_ci};
818c2ecf20Sopenharmony_ci
828c2ecf20Sopenharmony_ci&cpu3 {
838c2ecf20Sopenharmony_ci	proc-supply = <&da9211_vcpu_reg>;
848c2ecf20Sopenharmony_ci	sram-supply = <&mt6397_vsramca7_reg>;
858c2ecf20Sopenharmony_ci};
868c2ecf20Sopenharmony_ci
878c2ecf20Sopenharmony_ci&dpi0 {
888c2ecf20Sopenharmony_ci	status = "okay";
898c2ecf20Sopenharmony_ci};
908c2ecf20Sopenharmony_ci
918c2ecf20Sopenharmony_ci&hdmi_phy {
928c2ecf20Sopenharmony_ci	status = "okay";
938c2ecf20Sopenharmony_ci};
948c2ecf20Sopenharmony_ci
958c2ecf20Sopenharmony_ci&hdmi0 {
968c2ecf20Sopenharmony_ci	status = "okay";
978c2ecf20Sopenharmony_ci
988c2ecf20Sopenharmony_ci	ports {
998c2ecf20Sopenharmony_ci		port@1 {
1008c2ecf20Sopenharmony_ci			reg = <1>;
1018c2ecf20Sopenharmony_ci
1028c2ecf20Sopenharmony_ci			hdmi0_out: endpoint {
1038c2ecf20Sopenharmony_ci				remote-endpoint = <&hdmi_connector_in>;
1048c2ecf20Sopenharmony_ci			};
1058c2ecf20Sopenharmony_ci		};
1068c2ecf20Sopenharmony_ci	};
1078c2ecf20Sopenharmony_ci};
1088c2ecf20Sopenharmony_ci
1098c2ecf20Sopenharmony_ci&i2c1 {
1108c2ecf20Sopenharmony_ci	status = "okay";
1118c2ecf20Sopenharmony_ci
1128c2ecf20Sopenharmony_ci	buck: da9211@68 {
1138c2ecf20Sopenharmony_ci		compatible = "dlg,da9211";
1148c2ecf20Sopenharmony_ci		reg = <0x68>;
1158c2ecf20Sopenharmony_ci
1168c2ecf20Sopenharmony_ci		regulators {
1178c2ecf20Sopenharmony_ci			da9211_vcpu_reg: BUCKA {
1188c2ecf20Sopenharmony_ci				regulator-name = "VBUCKA";
1198c2ecf20Sopenharmony_ci				regulator-min-microvolt = < 700000>;
1208c2ecf20Sopenharmony_ci				regulator-max-microvolt = <1310000>;
1218c2ecf20Sopenharmony_ci				regulator-min-microamp	= <2000000>;
1228c2ecf20Sopenharmony_ci				regulator-max-microamp	= <4400000>;
1238c2ecf20Sopenharmony_ci				regulator-ramp-delay = <10000>;
1248c2ecf20Sopenharmony_ci				regulator-always-on;
1258c2ecf20Sopenharmony_ci			};
1268c2ecf20Sopenharmony_ci
1278c2ecf20Sopenharmony_ci			da9211_vgpu_reg: BUCKB {
1288c2ecf20Sopenharmony_ci				regulator-name = "VBUCKB";
1298c2ecf20Sopenharmony_ci				regulator-min-microvolt = < 700000>;
1308c2ecf20Sopenharmony_ci				regulator-max-microvolt = <1310000>;
1318c2ecf20Sopenharmony_ci				regulator-min-microamp	= <2000000>;
1328c2ecf20Sopenharmony_ci				regulator-max-microamp	= <3000000>;
1338c2ecf20Sopenharmony_ci				regulator-ramp-delay = <10000>;
1348c2ecf20Sopenharmony_ci			};
1358c2ecf20Sopenharmony_ci		};
1368c2ecf20Sopenharmony_ci	};
1378c2ecf20Sopenharmony_ci};
1388c2ecf20Sopenharmony_ci
1398c2ecf20Sopenharmony_ci&mmc0 {
1408c2ecf20Sopenharmony_ci	status = "okay";
1418c2ecf20Sopenharmony_ci	pinctrl-names = "default", "state_uhs";
1428c2ecf20Sopenharmony_ci	pinctrl-0 = <&mmc0_pins_default>;
1438c2ecf20Sopenharmony_ci	pinctrl-1 = <&mmc0_pins_uhs>;
1448c2ecf20Sopenharmony_ci	bus-width = <8>;
1458c2ecf20Sopenharmony_ci	max-frequency = <50000000>;
1468c2ecf20Sopenharmony_ci	cap-mmc-highspeed;
1478c2ecf20Sopenharmony_ci	mediatek,hs200-cmd-int-delay=<26>;
1488c2ecf20Sopenharmony_ci	mediatek,hs400-cmd-int-delay=<14>;
1498c2ecf20Sopenharmony_ci	mediatek,hs400-cmd-resp-sel-rising;
1508c2ecf20Sopenharmony_ci	vmmc-supply = <&mt6397_vemc_3v3_reg>;
1518c2ecf20Sopenharmony_ci	vqmmc-supply = <&mt6397_vio18_reg>;
1528c2ecf20Sopenharmony_ci	non-removable;
1538c2ecf20Sopenharmony_ci};
1548c2ecf20Sopenharmony_ci
1558c2ecf20Sopenharmony_ci&mmc1 {
1568c2ecf20Sopenharmony_ci	status = "okay";
1578c2ecf20Sopenharmony_ci	pinctrl-names = "default", "state_uhs";
1588c2ecf20Sopenharmony_ci	pinctrl-0 = <&mmc1_pins_default>;
1598c2ecf20Sopenharmony_ci	pinctrl-1 = <&mmc1_pins_uhs>;
1608c2ecf20Sopenharmony_ci	bus-width = <4>;
1618c2ecf20Sopenharmony_ci	max-frequency = <50000000>;
1628c2ecf20Sopenharmony_ci	cap-sd-highspeed;
1638c2ecf20Sopenharmony_ci	sd-uhs-sdr25;
1648c2ecf20Sopenharmony_ci	cd-gpios = <&pio 132 0>;
1658c2ecf20Sopenharmony_ci	vmmc-supply = <&mt6397_vmch_reg>;
1668c2ecf20Sopenharmony_ci	vqmmc-supply = <&mt6397_vmc_reg>;
1678c2ecf20Sopenharmony_ci};
1688c2ecf20Sopenharmony_ci
1698c2ecf20Sopenharmony_ci&pio {
1708c2ecf20Sopenharmony_ci	disp_pwm0_pins: disp_pwm0_pins {
1718c2ecf20Sopenharmony_ci		pins1 {
1728c2ecf20Sopenharmony_ci			pinmux = <MT8173_PIN_87_DISP_PWM0__FUNC_DISP_PWM0>;
1738c2ecf20Sopenharmony_ci			output-low;
1748c2ecf20Sopenharmony_ci		};
1758c2ecf20Sopenharmony_ci	};
1768c2ecf20Sopenharmony_ci
1778c2ecf20Sopenharmony_ci	mmc0_pins_default: mmc0default {
1788c2ecf20Sopenharmony_ci		pins_cmd_dat {
1798c2ecf20Sopenharmony_ci			pinmux = <MT8173_PIN_57_MSDC0_DAT0__FUNC_MSDC0_DAT0>,
1808c2ecf20Sopenharmony_ci				 <MT8173_PIN_58_MSDC0_DAT1__FUNC_MSDC0_DAT1>,
1818c2ecf20Sopenharmony_ci				 <MT8173_PIN_59_MSDC0_DAT2__FUNC_MSDC0_DAT2>,
1828c2ecf20Sopenharmony_ci				 <MT8173_PIN_60_MSDC0_DAT3__FUNC_MSDC0_DAT3>,
1838c2ecf20Sopenharmony_ci				 <MT8173_PIN_61_MSDC0_DAT4__FUNC_MSDC0_DAT4>,
1848c2ecf20Sopenharmony_ci				 <MT8173_PIN_62_MSDC0_DAT5__FUNC_MSDC0_DAT5>,
1858c2ecf20Sopenharmony_ci				 <MT8173_PIN_63_MSDC0_DAT6__FUNC_MSDC0_DAT6>,
1868c2ecf20Sopenharmony_ci				 <MT8173_PIN_64_MSDC0_DAT7__FUNC_MSDC0_DAT7>,
1878c2ecf20Sopenharmony_ci				 <MT8173_PIN_66_MSDC0_CMD__FUNC_MSDC0_CMD>;
1888c2ecf20Sopenharmony_ci			input-enable;
1898c2ecf20Sopenharmony_ci			bias-pull-up;
1908c2ecf20Sopenharmony_ci		};
1918c2ecf20Sopenharmony_ci
1928c2ecf20Sopenharmony_ci		pins_clk {
1938c2ecf20Sopenharmony_ci			pinmux = <MT8173_PIN_65_MSDC0_CLK__FUNC_MSDC0_CLK>;
1948c2ecf20Sopenharmony_ci			bias-pull-down;
1958c2ecf20Sopenharmony_ci		};
1968c2ecf20Sopenharmony_ci
1978c2ecf20Sopenharmony_ci		pins_rst {
1988c2ecf20Sopenharmony_ci			pinmux = <MT8173_PIN_68_MSDC0_RST___FUNC_MSDC0_RSTB>;
1998c2ecf20Sopenharmony_ci			bias-pull-up;
2008c2ecf20Sopenharmony_ci		};
2018c2ecf20Sopenharmony_ci	};
2028c2ecf20Sopenharmony_ci
2038c2ecf20Sopenharmony_ci	mmc1_pins_default: mmc1default {
2048c2ecf20Sopenharmony_ci		pins_cmd_dat {
2058c2ecf20Sopenharmony_ci			pinmux = <MT8173_PIN_73_MSDC1_DAT0__FUNC_MSDC1_DAT0>,
2068c2ecf20Sopenharmony_ci				 <MT8173_PIN_74_MSDC1_DAT1__FUNC_MSDC1_DAT1>,
2078c2ecf20Sopenharmony_ci				 <MT8173_PIN_75_MSDC1_DAT2__FUNC_MSDC1_DAT2>,
2088c2ecf20Sopenharmony_ci				 <MT8173_PIN_76_MSDC1_DAT3__FUNC_MSDC1_DAT3>,
2098c2ecf20Sopenharmony_ci				 <MT8173_PIN_78_MSDC1_CMD__FUNC_MSDC1_CMD>;
2108c2ecf20Sopenharmony_ci			input-enable;
2118c2ecf20Sopenharmony_ci			drive-strength = <MTK_DRIVE_4mA>;
2128c2ecf20Sopenharmony_ci			bias-pull-up = <MTK_PUPD_SET_R1R0_10>;
2138c2ecf20Sopenharmony_ci		};
2148c2ecf20Sopenharmony_ci
2158c2ecf20Sopenharmony_ci		pins_clk {
2168c2ecf20Sopenharmony_ci			pinmux = <MT8173_PIN_77_MSDC1_CLK__FUNC_MSDC1_CLK>;
2178c2ecf20Sopenharmony_ci			bias-pull-down;
2188c2ecf20Sopenharmony_ci			drive-strength = <MTK_DRIVE_4mA>;
2198c2ecf20Sopenharmony_ci		};
2208c2ecf20Sopenharmony_ci
2218c2ecf20Sopenharmony_ci		pins_insert {
2228c2ecf20Sopenharmony_ci			pinmux = <MT8173_PIN_132_I2S0_DATA1__FUNC_GPIO132>;
2238c2ecf20Sopenharmony_ci			bias-pull-up;
2248c2ecf20Sopenharmony_ci		};
2258c2ecf20Sopenharmony_ci	};
2268c2ecf20Sopenharmony_ci
2278c2ecf20Sopenharmony_ci	mmc0_pins_uhs: mmc0 {
2288c2ecf20Sopenharmony_ci		pins_cmd_dat {
2298c2ecf20Sopenharmony_ci			pinmux = <MT8173_PIN_57_MSDC0_DAT0__FUNC_MSDC0_DAT0>,
2308c2ecf20Sopenharmony_ci				 <MT8173_PIN_58_MSDC0_DAT1__FUNC_MSDC0_DAT1>,
2318c2ecf20Sopenharmony_ci				 <MT8173_PIN_59_MSDC0_DAT2__FUNC_MSDC0_DAT2>,
2328c2ecf20Sopenharmony_ci				 <MT8173_PIN_60_MSDC0_DAT3__FUNC_MSDC0_DAT3>,
2338c2ecf20Sopenharmony_ci				 <MT8173_PIN_61_MSDC0_DAT4__FUNC_MSDC0_DAT4>,
2348c2ecf20Sopenharmony_ci				 <MT8173_PIN_62_MSDC0_DAT5__FUNC_MSDC0_DAT5>,
2358c2ecf20Sopenharmony_ci				 <MT8173_PIN_63_MSDC0_DAT6__FUNC_MSDC0_DAT6>,
2368c2ecf20Sopenharmony_ci				 <MT8173_PIN_64_MSDC0_DAT7__FUNC_MSDC0_DAT7>,
2378c2ecf20Sopenharmony_ci				 <MT8173_PIN_66_MSDC0_CMD__FUNC_MSDC0_CMD>;
2388c2ecf20Sopenharmony_ci			input-enable;
2398c2ecf20Sopenharmony_ci			drive-strength = <MTK_DRIVE_2mA>;
2408c2ecf20Sopenharmony_ci			bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
2418c2ecf20Sopenharmony_ci		};
2428c2ecf20Sopenharmony_ci
2438c2ecf20Sopenharmony_ci		pins_clk {
2448c2ecf20Sopenharmony_ci			pinmux = <MT8173_PIN_65_MSDC0_CLK__FUNC_MSDC0_CLK>;
2458c2ecf20Sopenharmony_ci			drive-strength = <MTK_DRIVE_2mA>;
2468c2ecf20Sopenharmony_ci			bias-pull-down = <MTK_PUPD_SET_R1R0_01>;
2478c2ecf20Sopenharmony_ci		};
2488c2ecf20Sopenharmony_ci
2498c2ecf20Sopenharmony_ci		pins_rst {
2508c2ecf20Sopenharmony_ci			pinmux = <MT8173_PIN_68_MSDC0_RST___FUNC_MSDC0_RSTB>;
2518c2ecf20Sopenharmony_ci			bias-pull-up;
2528c2ecf20Sopenharmony_ci		};
2538c2ecf20Sopenharmony_ci	};
2548c2ecf20Sopenharmony_ci
2558c2ecf20Sopenharmony_ci	mmc1_pins_uhs: mmc1 {
2568c2ecf20Sopenharmony_ci		pins_cmd_dat {
2578c2ecf20Sopenharmony_ci			pinmux = <MT8173_PIN_73_MSDC1_DAT0__FUNC_MSDC1_DAT0>,
2588c2ecf20Sopenharmony_ci				 <MT8173_PIN_74_MSDC1_DAT1__FUNC_MSDC1_DAT1>,
2598c2ecf20Sopenharmony_ci				 <MT8173_PIN_75_MSDC1_DAT2__FUNC_MSDC1_DAT2>,
2608c2ecf20Sopenharmony_ci				 <MT8173_PIN_76_MSDC1_DAT3__FUNC_MSDC1_DAT3>,
2618c2ecf20Sopenharmony_ci				 <MT8173_PIN_78_MSDC1_CMD__FUNC_MSDC1_CMD>;
2628c2ecf20Sopenharmony_ci			input-enable;
2638c2ecf20Sopenharmony_ci			drive-strength = <MTK_DRIVE_4mA>;
2648c2ecf20Sopenharmony_ci			bias-pull-up = <MTK_PUPD_SET_R1R0_10>;
2658c2ecf20Sopenharmony_ci		};
2668c2ecf20Sopenharmony_ci
2678c2ecf20Sopenharmony_ci		pins_clk {
2688c2ecf20Sopenharmony_ci			pinmux = <MT8173_PIN_77_MSDC1_CLK__FUNC_MSDC1_CLK>;
2698c2ecf20Sopenharmony_ci			drive-strength = <MTK_DRIVE_4mA>;
2708c2ecf20Sopenharmony_ci			bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
2718c2ecf20Sopenharmony_ci		};
2728c2ecf20Sopenharmony_ci	};
2738c2ecf20Sopenharmony_ci
2748c2ecf20Sopenharmony_ci	usb_id_pins_float: usb_iddig_pull_up {
2758c2ecf20Sopenharmony_ci		pins_iddig {
2768c2ecf20Sopenharmony_ci			pinmux = <MT8173_PIN_16_IDDIG__FUNC_IDDIG>;
2778c2ecf20Sopenharmony_ci			bias-pull-up;
2788c2ecf20Sopenharmony_ci		};
2798c2ecf20Sopenharmony_ci	};
2808c2ecf20Sopenharmony_ci
2818c2ecf20Sopenharmony_ci	usb_id_pins_ground: usb_iddig_pull_down {
2828c2ecf20Sopenharmony_ci		pins_iddig {
2838c2ecf20Sopenharmony_ci			pinmux = <MT8173_PIN_16_IDDIG__FUNC_IDDIG>;
2848c2ecf20Sopenharmony_ci			bias-pull-down;
2858c2ecf20Sopenharmony_ci		};
2868c2ecf20Sopenharmony_ci	};
2878c2ecf20Sopenharmony_ci};
2888c2ecf20Sopenharmony_ci
2898c2ecf20Sopenharmony_ci&pwm0 {
2908c2ecf20Sopenharmony_ci	pinctrl-names = "default";
2918c2ecf20Sopenharmony_ci	pinctrl-0 = <&disp_pwm0_pins>;
2928c2ecf20Sopenharmony_ci	status = "okay";
2938c2ecf20Sopenharmony_ci};
2948c2ecf20Sopenharmony_ci
2958c2ecf20Sopenharmony_ci&pwrap {
2968c2ecf20Sopenharmony_ci	/* Only MT8173 E1 needs USB power domain */
2978c2ecf20Sopenharmony_ci	power-domains = <&scpsys MT8173_POWER_DOMAIN_USB>;
2988c2ecf20Sopenharmony_ci
2998c2ecf20Sopenharmony_ci	pmic: mt6397 {
3008c2ecf20Sopenharmony_ci		compatible = "mediatek,mt6397";
3018c2ecf20Sopenharmony_ci		interrupt-parent = <&pio>;
3028c2ecf20Sopenharmony_ci		interrupts = <11 IRQ_TYPE_LEVEL_HIGH>;
3038c2ecf20Sopenharmony_ci		interrupt-controller;
3048c2ecf20Sopenharmony_ci		#interrupt-cells = <2>;
3058c2ecf20Sopenharmony_ci
3068c2ecf20Sopenharmony_ci		mt6397regulator: mt6397regulator {
3078c2ecf20Sopenharmony_ci			compatible = "mediatek,mt6397-regulator";
3088c2ecf20Sopenharmony_ci
3098c2ecf20Sopenharmony_ci			mt6397_vpca15_reg: buck_vpca15 {
3108c2ecf20Sopenharmony_ci				regulator-compatible = "buck_vpca15";
3118c2ecf20Sopenharmony_ci				regulator-name = "vpca15";
3128c2ecf20Sopenharmony_ci				regulator-min-microvolt = < 700000>;
3138c2ecf20Sopenharmony_ci				regulator-max-microvolt = <1350000>;
3148c2ecf20Sopenharmony_ci				regulator-ramp-delay = <12500>;
3158c2ecf20Sopenharmony_ci				regulator-always-on;
3168c2ecf20Sopenharmony_ci			};
3178c2ecf20Sopenharmony_ci
3188c2ecf20Sopenharmony_ci			mt6397_vpca7_reg: buck_vpca7 {
3198c2ecf20Sopenharmony_ci				regulator-compatible = "buck_vpca7";
3208c2ecf20Sopenharmony_ci				regulator-name = "vpca7";
3218c2ecf20Sopenharmony_ci				regulator-min-microvolt = < 700000>;
3228c2ecf20Sopenharmony_ci				regulator-max-microvolt = <1350000>;
3238c2ecf20Sopenharmony_ci				regulator-ramp-delay = <12500>;
3248c2ecf20Sopenharmony_ci				regulator-enable-ramp-delay = <115>;
3258c2ecf20Sopenharmony_ci			};
3268c2ecf20Sopenharmony_ci
3278c2ecf20Sopenharmony_ci			mt6397_vsramca15_reg: buck_vsramca15 {
3288c2ecf20Sopenharmony_ci				regulator-compatible = "buck_vsramca15";
3298c2ecf20Sopenharmony_ci				regulator-name = "vsramca15";
3308c2ecf20Sopenharmony_ci				regulator-min-microvolt = < 700000>;
3318c2ecf20Sopenharmony_ci				regulator-max-microvolt = <1350000>;
3328c2ecf20Sopenharmony_ci				regulator-ramp-delay = <12500>;
3338c2ecf20Sopenharmony_ci				regulator-always-on;
3348c2ecf20Sopenharmony_ci			};
3358c2ecf20Sopenharmony_ci
3368c2ecf20Sopenharmony_ci			mt6397_vsramca7_reg: buck_vsramca7 {
3378c2ecf20Sopenharmony_ci				regulator-compatible = "buck_vsramca7";
3388c2ecf20Sopenharmony_ci				regulator-name = "vsramca7";
3398c2ecf20Sopenharmony_ci				regulator-min-microvolt = < 700000>;
3408c2ecf20Sopenharmony_ci				regulator-max-microvolt = <1350000>;
3418c2ecf20Sopenharmony_ci				regulator-ramp-delay = <12500>;
3428c2ecf20Sopenharmony_ci				regulator-always-on;
3438c2ecf20Sopenharmony_ci			};
3448c2ecf20Sopenharmony_ci
3458c2ecf20Sopenharmony_ci			mt6397_vcore_reg: buck_vcore {
3468c2ecf20Sopenharmony_ci				regulator-compatible = "buck_vcore";
3478c2ecf20Sopenharmony_ci				regulator-name = "vcore";
3488c2ecf20Sopenharmony_ci				regulator-min-microvolt = < 700000>;
3498c2ecf20Sopenharmony_ci				regulator-max-microvolt = <1350000>;
3508c2ecf20Sopenharmony_ci				regulator-ramp-delay = <12500>;
3518c2ecf20Sopenharmony_ci				regulator-always-on;
3528c2ecf20Sopenharmony_ci			};
3538c2ecf20Sopenharmony_ci
3548c2ecf20Sopenharmony_ci			mt6397_vgpu_reg: buck_vgpu {
3558c2ecf20Sopenharmony_ci				regulator-compatible = "buck_vgpu";
3568c2ecf20Sopenharmony_ci				regulator-name = "vgpu";
3578c2ecf20Sopenharmony_ci				regulator-min-microvolt = < 700000>;
3588c2ecf20Sopenharmony_ci				regulator-max-microvolt = <1350000>;
3598c2ecf20Sopenharmony_ci				regulator-ramp-delay = <12500>;
3608c2ecf20Sopenharmony_ci				regulator-enable-ramp-delay = <115>;
3618c2ecf20Sopenharmony_ci			};
3628c2ecf20Sopenharmony_ci
3638c2ecf20Sopenharmony_ci			mt6397_vdrm_reg: buck_vdrm {
3648c2ecf20Sopenharmony_ci				regulator-compatible = "buck_vdrm";
3658c2ecf20Sopenharmony_ci				regulator-name = "vdrm";
3668c2ecf20Sopenharmony_ci				regulator-min-microvolt = <1200000>;
3678c2ecf20Sopenharmony_ci				regulator-max-microvolt = <1400000>;
3688c2ecf20Sopenharmony_ci				regulator-ramp-delay = <12500>;
3698c2ecf20Sopenharmony_ci				regulator-always-on;
3708c2ecf20Sopenharmony_ci			};
3718c2ecf20Sopenharmony_ci
3728c2ecf20Sopenharmony_ci			mt6397_vio18_reg: buck_vio18 {
3738c2ecf20Sopenharmony_ci				regulator-compatible = "buck_vio18";
3748c2ecf20Sopenharmony_ci				regulator-name = "vio18";
3758c2ecf20Sopenharmony_ci				regulator-min-microvolt = <1620000>;
3768c2ecf20Sopenharmony_ci				regulator-max-microvolt = <1980000>;
3778c2ecf20Sopenharmony_ci				regulator-ramp-delay = <12500>;
3788c2ecf20Sopenharmony_ci				regulator-always-on;
3798c2ecf20Sopenharmony_ci			};
3808c2ecf20Sopenharmony_ci
3818c2ecf20Sopenharmony_ci			mt6397_vtcxo_reg: ldo_vtcxo {
3828c2ecf20Sopenharmony_ci				regulator-compatible = "ldo_vtcxo";
3838c2ecf20Sopenharmony_ci				regulator-name = "vtcxo";
3848c2ecf20Sopenharmony_ci				regulator-always-on;
3858c2ecf20Sopenharmony_ci			};
3868c2ecf20Sopenharmony_ci
3878c2ecf20Sopenharmony_ci			mt6397_va28_reg: ldo_va28 {
3888c2ecf20Sopenharmony_ci				regulator-compatible = "ldo_va28";
3898c2ecf20Sopenharmony_ci				regulator-name = "va28";
3908c2ecf20Sopenharmony_ci				regulator-always-on;
3918c2ecf20Sopenharmony_ci			};
3928c2ecf20Sopenharmony_ci
3938c2ecf20Sopenharmony_ci			mt6397_vcama_reg: ldo_vcama {
3948c2ecf20Sopenharmony_ci				regulator-compatible = "ldo_vcama";
3958c2ecf20Sopenharmony_ci				regulator-name = "vcama";
3968c2ecf20Sopenharmony_ci				regulator-min-microvolt = <1500000>;
3978c2ecf20Sopenharmony_ci				regulator-max-microvolt = <2800000>;
3988c2ecf20Sopenharmony_ci				regulator-enable-ramp-delay = <218>;
3998c2ecf20Sopenharmony_ci			};
4008c2ecf20Sopenharmony_ci
4018c2ecf20Sopenharmony_ci			mt6397_vio28_reg: ldo_vio28 {
4028c2ecf20Sopenharmony_ci				regulator-compatible = "ldo_vio28";
4038c2ecf20Sopenharmony_ci				regulator-name = "vio28";
4048c2ecf20Sopenharmony_ci				regulator-always-on;
4058c2ecf20Sopenharmony_ci			};
4068c2ecf20Sopenharmony_ci
4078c2ecf20Sopenharmony_ci			mt6397_vusb_reg: ldo_vusb {
4088c2ecf20Sopenharmony_ci				regulator-compatible = "ldo_vusb";
4098c2ecf20Sopenharmony_ci				regulator-name = "vusb";
4108c2ecf20Sopenharmony_ci			};
4118c2ecf20Sopenharmony_ci
4128c2ecf20Sopenharmony_ci			mt6397_vmc_reg: ldo_vmc {
4138c2ecf20Sopenharmony_ci				regulator-compatible = "ldo_vmc";
4148c2ecf20Sopenharmony_ci				regulator-name = "vmc";
4158c2ecf20Sopenharmony_ci				regulator-min-microvolt = <1800000>;
4168c2ecf20Sopenharmony_ci				regulator-max-microvolt = <3300000>;
4178c2ecf20Sopenharmony_ci				regulator-enable-ramp-delay = <218>;
4188c2ecf20Sopenharmony_ci			};
4198c2ecf20Sopenharmony_ci
4208c2ecf20Sopenharmony_ci			mt6397_vmch_reg: ldo_vmch {
4218c2ecf20Sopenharmony_ci				regulator-compatible = "ldo_vmch";
4228c2ecf20Sopenharmony_ci				regulator-name = "vmch";
4238c2ecf20Sopenharmony_ci				regulator-min-microvolt = <3000000>;
4248c2ecf20Sopenharmony_ci				regulator-max-microvolt = <3300000>;
4258c2ecf20Sopenharmony_ci				regulator-enable-ramp-delay = <218>;
4268c2ecf20Sopenharmony_ci			};
4278c2ecf20Sopenharmony_ci
4288c2ecf20Sopenharmony_ci			mt6397_vemc_3v3_reg: ldo_vemc3v3 {
4298c2ecf20Sopenharmony_ci				regulator-compatible = "ldo_vemc3v3";
4308c2ecf20Sopenharmony_ci				regulator-name = "vemc_3v3";
4318c2ecf20Sopenharmony_ci				regulator-min-microvolt = <3000000>;
4328c2ecf20Sopenharmony_ci				regulator-max-microvolt = <3300000>;
4338c2ecf20Sopenharmony_ci				regulator-enable-ramp-delay = <218>;
4348c2ecf20Sopenharmony_ci			};
4358c2ecf20Sopenharmony_ci
4368c2ecf20Sopenharmony_ci			mt6397_vgp1_reg: ldo_vgp1 {
4378c2ecf20Sopenharmony_ci				regulator-compatible = "ldo_vgp1";
4388c2ecf20Sopenharmony_ci				regulator-name = "vcamd";
4398c2ecf20Sopenharmony_ci				regulator-min-microvolt = <1220000>;
4408c2ecf20Sopenharmony_ci				regulator-max-microvolt = <3300000>;
4418c2ecf20Sopenharmony_ci				regulator-enable-ramp-delay = <240>;
4428c2ecf20Sopenharmony_ci			};
4438c2ecf20Sopenharmony_ci
4448c2ecf20Sopenharmony_ci			mt6397_vgp2_reg: ldo_vgp2 {
4458c2ecf20Sopenharmony_ci				regulator-compatible = "ldo_vgp2";
4468c2ecf20Sopenharmony_ci				regulator-name = "vcamio";
4478c2ecf20Sopenharmony_ci				regulator-min-microvolt = <1000000>;
4488c2ecf20Sopenharmony_ci				regulator-max-microvolt = <3300000>;
4498c2ecf20Sopenharmony_ci				regulator-enable-ramp-delay = <218>;
4508c2ecf20Sopenharmony_ci			};
4518c2ecf20Sopenharmony_ci
4528c2ecf20Sopenharmony_ci			mt6397_vgp3_reg: ldo_vgp3 {
4538c2ecf20Sopenharmony_ci				regulator-compatible = "ldo_vgp3";
4548c2ecf20Sopenharmony_ci				regulator-name = "vcamaf";
4558c2ecf20Sopenharmony_ci				regulator-min-microvolt = <1200000>;
4568c2ecf20Sopenharmony_ci				regulator-max-microvolt = <3300000>;
4578c2ecf20Sopenharmony_ci				regulator-enable-ramp-delay = <218>;
4588c2ecf20Sopenharmony_ci			};
4598c2ecf20Sopenharmony_ci
4608c2ecf20Sopenharmony_ci			mt6397_vgp4_reg: ldo_vgp4 {
4618c2ecf20Sopenharmony_ci				regulator-compatible = "ldo_vgp4";
4628c2ecf20Sopenharmony_ci				regulator-name = "vgp4";
4638c2ecf20Sopenharmony_ci				regulator-min-microvolt = <1200000>;
4648c2ecf20Sopenharmony_ci				regulator-max-microvolt = <3300000>;
4658c2ecf20Sopenharmony_ci				regulator-enable-ramp-delay = <218>;
4668c2ecf20Sopenharmony_ci			};
4678c2ecf20Sopenharmony_ci
4688c2ecf20Sopenharmony_ci			mt6397_vgp5_reg: ldo_vgp5 {
4698c2ecf20Sopenharmony_ci				regulator-compatible = "ldo_vgp5";
4708c2ecf20Sopenharmony_ci				regulator-name = "vgp5";
4718c2ecf20Sopenharmony_ci				regulator-min-microvolt = <1200000>;
4728c2ecf20Sopenharmony_ci				regulator-max-microvolt = <3000000>;
4738c2ecf20Sopenharmony_ci				regulator-enable-ramp-delay = <218>;
4748c2ecf20Sopenharmony_ci			};
4758c2ecf20Sopenharmony_ci
4768c2ecf20Sopenharmony_ci			mt6397_vgp6_reg: ldo_vgp6 {
4778c2ecf20Sopenharmony_ci				regulator-compatible = "ldo_vgp6";
4788c2ecf20Sopenharmony_ci				regulator-name = "vgp6";
4798c2ecf20Sopenharmony_ci				regulator-min-microvolt = <1200000>;
4808c2ecf20Sopenharmony_ci				regulator-max-microvolt = <3300000>;
4818c2ecf20Sopenharmony_ci				regulator-enable-ramp-delay = <218>;
4828c2ecf20Sopenharmony_ci			};
4838c2ecf20Sopenharmony_ci
4848c2ecf20Sopenharmony_ci			mt6397_vibr_reg: ldo_vibr {
4858c2ecf20Sopenharmony_ci				regulator-compatible = "ldo_vibr";
4868c2ecf20Sopenharmony_ci				regulator-name = "vibr";
4878c2ecf20Sopenharmony_ci				regulator-min-microvolt = <1300000>;
4888c2ecf20Sopenharmony_ci				regulator-max-microvolt = <3300000>;
4898c2ecf20Sopenharmony_ci				regulator-enable-ramp-delay = <218>;
4908c2ecf20Sopenharmony_ci			};
4918c2ecf20Sopenharmony_ci		};
4928c2ecf20Sopenharmony_ci	};
4938c2ecf20Sopenharmony_ci};
4948c2ecf20Sopenharmony_ci
4958c2ecf20Sopenharmony_ci&pio {
4968c2ecf20Sopenharmony_ci	spi_pins_a: spi0 {
4978c2ecf20Sopenharmony_ci		pins_spi {
4988c2ecf20Sopenharmony_ci			pinmux = <MT8173_PIN_69_SPI_CK__FUNC_SPI_CK_0_>,
4998c2ecf20Sopenharmony_ci				<MT8173_PIN_70_SPI_MI__FUNC_SPI_MI_0_>,
5008c2ecf20Sopenharmony_ci				<MT8173_PIN_71_SPI_MO__FUNC_SPI_MO_0_>,
5018c2ecf20Sopenharmony_ci				<MT8173_PIN_72_SPI_CS__FUNC_SPI_CS_0_>;
5028c2ecf20Sopenharmony_ci		};
5038c2ecf20Sopenharmony_ci	};
5048c2ecf20Sopenharmony_ci};
5058c2ecf20Sopenharmony_ci
5068c2ecf20Sopenharmony_ci&spi {
5078c2ecf20Sopenharmony_ci	pinctrl-names = "default";
5088c2ecf20Sopenharmony_ci	pinctrl-0 = <&spi_pins_a>;
5098c2ecf20Sopenharmony_ci	mediatek,pad-select = <0>;
5108c2ecf20Sopenharmony_ci	status = "okay";
5118c2ecf20Sopenharmony_ci};
5128c2ecf20Sopenharmony_ci
5138c2ecf20Sopenharmony_ci&ssusb {
5148c2ecf20Sopenharmony_ci	vusb33-supply = <&mt6397_vusb_reg>;
5158c2ecf20Sopenharmony_ci	vbus-supply = <&usb_p0_vbus>;
5168c2ecf20Sopenharmony_ci	extcon = <&extcon_usb>;
5178c2ecf20Sopenharmony_ci	dr_mode = "otg";
5188c2ecf20Sopenharmony_ci	wakeup-source;
5198c2ecf20Sopenharmony_ci	pinctrl-names = "default", "id_float", "id_ground";
5208c2ecf20Sopenharmony_ci	pinctrl-0 = <&usb_id_pins_float>;
5218c2ecf20Sopenharmony_ci	pinctrl-1 = <&usb_id_pins_float>;
5228c2ecf20Sopenharmony_ci	pinctrl-2 = <&usb_id_pins_ground>;
5238c2ecf20Sopenharmony_ci	status = "okay";
5248c2ecf20Sopenharmony_ci};
5258c2ecf20Sopenharmony_ci
5268c2ecf20Sopenharmony_ci&uart0 {
5278c2ecf20Sopenharmony_ci	status = "okay";
5288c2ecf20Sopenharmony_ci};
5298c2ecf20Sopenharmony_ci
5308c2ecf20Sopenharmony_ci&usb_host {
5318c2ecf20Sopenharmony_ci	vusb33-supply = <&mt6397_vusb_reg>;
5328c2ecf20Sopenharmony_ci	vbus-supply = <&usb_p1_vbus>;
5338c2ecf20Sopenharmony_ci	status = "okay";
5348c2ecf20Sopenharmony_ci};
535