xref: /linux/arch/arm64/boot/dts/mediatek/mt8173-evb.dts (revision 61aee93425149e2288c4ab1466847093af678de6)
1b3a37248SEddie Huang/*
2b3a37248SEddie Huang * Copyright (c) 2014 MediaTek Inc.
3b3a37248SEddie Huang * Author: Eddie Huang <eddie.huang@mediatek.com>
4b3a37248SEddie Huang *
5b3a37248SEddie Huang * This program is free software; you can redistribute it and/or modify
6b3a37248SEddie Huang * it under the terms of the GNU General Public License version 2 as
7b3a37248SEddie Huang * published by the Free Software Foundation.
8b3a37248SEddie Huang *
9b3a37248SEddie Huang * This program is distributed in the hope that it will be useful,
10b3a37248SEddie Huang * but WITHOUT ANY WARRANTY; without even the implied warranty of
11b3a37248SEddie Huang * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12b3a37248SEddie Huang * GNU General Public License for more details.
13b3a37248SEddie Huang */
14b3a37248SEddie Huang
15b3a37248SEddie Huang/dts-v1/;
16b3a37248SEddie Huang#include "mt8173.dtsi"
17b3a37248SEddie Huang
18b3a37248SEddie Huang/ {
19692ef3eeSYingjoe Chen	model = "MediaTek MT8173 evaluation board";
20692ef3eeSYingjoe Chen	compatible = "mediatek,mt8173-evb", "mediatek,mt8173";
21b3a37248SEddie Huang
22b3a37248SEddie Huang	aliases {
23b3a37248SEddie Huang		serial0 = &uart0;
24b3a37248SEddie Huang		serial1 = &uart1;
25b3a37248SEddie Huang		serial2 = &uart2;
26b3a37248SEddie Huang		serial3 = &uart3;
27b3a37248SEddie Huang	};
28b3a37248SEddie Huang
29b3a37248SEddie Huang	memory@40000000 {
30b3a37248SEddie Huang		device_type = "memory";
31b3a37248SEddie Huang		reg = <0 0x40000000 0 0x80000000>;
32b3a37248SEddie Huang	};
33b3a37248SEddie Huang
34b3a37248SEddie Huang	chosen { };
35b3a37248SEddie Huang};
36b3a37248SEddie Huang
37720570b1SHenry Chen&i2c1 {
38720570b1SHenry Chen	status = "okay";
39720570b1SHenry Chen
40720570b1SHenry Chen	buck: da9211@68 {
41720570b1SHenry Chen		compatible = "dlg,da9211";
42720570b1SHenry Chen		reg = <0x68>;
43720570b1SHenry Chen
44720570b1SHenry Chen		regulators {
45720570b1SHenry Chen			da9211_vcpu_reg: BUCKA {
46720570b1SHenry Chen				regulator-name = "VBUCKA";
47720570b1SHenry Chen				regulator-min-microvolt = < 700000>;
48720570b1SHenry Chen				regulator-max-microvolt = <1310000>;
49720570b1SHenry Chen				regulator-min-microamp	= <2000000>;
50720570b1SHenry Chen				regulator-max-microamp	= <4400000>;
51720570b1SHenry Chen				regulator-ramp-delay = <10000>;
52720570b1SHenry Chen				regulator-always-on;
53720570b1SHenry Chen			};
54720570b1SHenry Chen
55720570b1SHenry Chen			da9211_vgpu_reg: BUCKB {
56720570b1SHenry Chen				regulator-name = "VBUCKB";
57720570b1SHenry Chen				regulator-min-microvolt = < 700000>;
58720570b1SHenry Chen				regulator-max-microvolt = <1310000>;
59720570b1SHenry Chen				regulator-min-microamp	= <2000000>;
60720570b1SHenry Chen				regulator-max-microamp	= <3000000>;
61720570b1SHenry Chen				regulator-ramp-delay = <10000>;
62720570b1SHenry Chen			};
63720570b1SHenry Chen		};
64720570b1SHenry Chen	};
65720570b1SHenry Chen};
66720570b1SHenry Chen
679719fa5aSEddie Huang&mmc0 {
689719fa5aSEddie Huang	status = "okay";
699719fa5aSEddie Huang	pinctrl-names = "default", "state_uhs";
709719fa5aSEddie Huang	pinctrl-0 = <&mmc0_pins_default>;
719719fa5aSEddie Huang	pinctrl-1 = <&mmc0_pins_uhs>;
729719fa5aSEddie Huang	bus-width = <8>;
739719fa5aSEddie Huang	max-frequency = <50000000>;
749719fa5aSEddie Huang	cap-mmc-highspeed;
759719fa5aSEddie Huang	vmmc-supply = <&mt6397_vemc_3v3_reg>;
769719fa5aSEddie Huang	vqmmc-supply = <&mt6397_vio18_reg>;
779719fa5aSEddie Huang	non-removable;
789719fa5aSEddie Huang};
799719fa5aSEddie Huang
809719fa5aSEddie Huang&mmc1 {
819719fa5aSEddie Huang	status = "okay";
829719fa5aSEddie Huang	pinctrl-names = "default", "state_uhs";
839719fa5aSEddie Huang	pinctrl-0 = <&mmc1_pins_default>;
849719fa5aSEddie Huang	pinctrl-1 = <&mmc1_pins_uhs>;
859719fa5aSEddie Huang	bus-width = <4>;
869719fa5aSEddie Huang	max-frequency = <50000000>;
879719fa5aSEddie Huang	cap-sd-highspeed;
889719fa5aSEddie Huang	sd-uhs-sdr25;
899719fa5aSEddie Huang	cd-gpios = <&pio 132 0>;
909719fa5aSEddie Huang	vmmc-supply = <&mt6397_vmch_reg>;
919719fa5aSEddie Huang	vqmmc-supply = <&mt6397_vmc_reg>;
929719fa5aSEddie Huang};
939719fa5aSEddie Huang
949719fa5aSEddie Huang&pio {
95*61aee934SYH Huang	disp_pwm0_pins: disp_pwm0_pins {
96*61aee934SYH Huang		pins1 {
97*61aee934SYH Huang			pinmux = <MT8173_PIN_87_DISP_PWM0__FUNC_DISP_PWM0>;
98*61aee934SYH Huang			output-low;
99*61aee934SYH Huang		};
100*61aee934SYH Huang	};
101*61aee934SYH Huang
1029719fa5aSEddie Huang	mmc0_pins_default: mmc0default {
1039719fa5aSEddie Huang		pins_cmd_dat {
1049719fa5aSEddie Huang			pinmux = <MT8173_PIN_57_MSDC0_DAT0__FUNC_MSDC0_DAT0>,
1059719fa5aSEddie Huang				 <MT8173_PIN_58_MSDC0_DAT1__FUNC_MSDC0_DAT1>,
1069719fa5aSEddie Huang				 <MT8173_PIN_59_MSDC0_DAT2__FUNC_MSDC0_DAT2>,
1079719fa5aSEddie Huang				 <MT8173_PIN_60_MSDC0_DAT3__FUNC_MSDC0_DAT3>,
1089719fa5aSEddie Huang				 <MT8173_PIN_61_MSDC0_DAT4__FUNC_MSDC0_DAT4>,
1099719fa5aSEddie Huang				 <MT8173_PIN_62_MSDC0_DAT5__FUNC_MSDC0_DAT5>,
1109719fa5aSEddie Huang				 <MT8173_PIN_63_MSDC0_DAT6__FUNC_MSDC0_DAT6>,
1119719fa5aSEddie Huang				 <MT8173_PIN_64_MSDC0_DAT7__FUNC_MSDC0_DAT7>,
1129719fa5aSEddie Huang				 <MT8173_PIN_66_MSDC0_CMD__FUNC_MSDC0_CMD>;
1139719fa5aSEddie Huang			input-enable;
1149719fa5aSEddie Huang			bias-pull-up;
1159719fa5aSEddie Huang		};
1169719fa5aSEddie Huang
1179719fa5aSEddie Huang		pins_clk {
1189719fa5aSEddie Huang			pinmux = <MT8173_PIN_65_MSDC0_CLK__FUNC_MSDC0_CLK>;
1199719fa5aSEddie Huang			bias-pull-down;
1209719fa5aSEddie Huang		};
1219719fa5aSEddie Huang
1229719fa5aSEddie Huang		pins_rst {
1239719fa5aSEddie Huang			pinmux = <MT8173_PIN_68_MSDC0_RST___FUNC_MSDC0_RSTB>;
1249719fa5aSEddie Huang			bias-pull-up;
1259719fa5aSEddie Huang		};
1269719fa5aSEddie Huang	};
1279719fa5aSEddie Huang
1289719fa5aSEddie Huang	mmc1_pins_default: mmc1default {
1299719fa5aSEddie Huang		pins_cmd_dat {
1309719fa5aSEddie Huang			pinmux = <MT8173_PIN_73_MSDC1_DAT0__FUNC_MSDC1_DAT0>,
1319719fa5aSEddie Huang				 <MT8173_PIN_74_MSDC1_DAT1__FUNC_MSDC1_DAT1>,
1329719fa5aSEddie Huang				 <MT8173_PIN_75_MSDC1_DAT2__FUNC_MSDC1_DAT2>,
1339719fa5aSEddie Huang				 <MT8173_PIN_76_MSDC1_DAT3__FUNC_MSDC1_DAT3>,
1349719fa5aSEddie Huang				 <MT8173_PIN_78_MSDC1_CMD__FUNC_MSDC1_CMD>;
1359719fa5aSEddie Huang			input-enable;
1369719fa5aSEddie Huang			drive-strength = <MTK_DRIVE_4mA>;
1379719fa5aSEddie Huang			bias-pull-up = <MTK_PUPD_SET_R1R0_10>;
1389719fa5aSEddie Huang		};
1399719fa5aSEddie Huang
1409719fa5aSEddie Huang		pins_clk {
1419719fa5aSEddie Huang			pinmux = <MT8173_PIN_77_MSDC1_CLK__FUNC_MSDC1_CLK>;
1429719fa5aSEddie Huang			bias-pull-down;
1439719fa5aSEddie Huang			drive-strength = <MTK_DRIVE_4mA>;
1449719fa5aSEddie Huang		};
1459719fa5aSEddie Huang
1469719fa5aSEddie Huang		pins_insert {
1479719fa5aSEddie Huang			pinmux = <MT8173_PIN_132_I2S0_DATA1__FUNC_GPIO132>;
1489719fa5aSEddie Huang			bias-pull-up;
1499719fa5aSEddie Huang		};
1509719fa5aSEddie Huang	};
1519719fa5aSEddie Huang
1529719fa5aSEddie Huang	mmc0_pins_uhs: mmc0 {
1539719fa5aSEddie Huang		pins_cmd_dat {
1549719fa5aSEddie Huang			pinmux = <MT8173_PIN_57_MSDC0_DAT0__FUNC_MSDC0_DAT0>,
1559719fa5aSEddie Huang				 <MT8173_PIN_58_MSDC0_DAT1__FUNC_MSDC0_DAT1>,
1569719fa5aSEddie Huang				 <MT8173_PIN_59_MSDC0_DAT2__FUNC_MSDC0_DAT2>,
1579719fa5aSEddie Huang				 <MT8173_PIN_60_MSDC0_DAT3__FUNC_MSDC0_DAT3>,
1589719fa5aSEddie Huang				 <MT8173_PIN_61_MSDC0_DAT4__FUNC_MSDC0_DAT4>,
1599719fa5aSEddie Huang				 <MT8173_PIN_62_MSDC0_DAT5__FUNC_MSDC0_DAT5>,
1609719fa5aSEddie Huang				 <MT8173_PIN_63_MSDC0_DAT6__FUNC_MSDC0_DAT6>,
1619719fa5aSEddie Huang				 <MT8173_PIN_64_MSDC0_DAT7__FUNC_MSDC0_DAT7>,
1629719fa5aSEddie Huang				 <MT8173_PIN_66_MSDC0_CMD__FUNC_MSDC0_CMD>;
1639719fa5aSEddie Huang			input-enable;
1649719fa5aSEddie Huang			drive-strength = <MTK_DRIVE_2mA>;
1659719fa5aSEddie Huang			bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
1669719fa5aSEddie Huang		};
1679719fa5aSEddie Huang
1689719fa5aSEddie Huang		pins_clk {
1699719fa5aSEddie Huang			pinmux = <MT8173_PIN_65_MSDC0_CLK__FUNC_MSDC0_CLK>;
1709719fa5aSEddie Huang			drive-strength = <MTK_DRIVE_2mA>;
1719719fa5aSEddie Huang			bias-pull-down = <MTK_PUPD_SET_R1R0_01>;
1729719fa5aSEddie Huang		};
1739719fa5aSEddie Huang
1749719fa5aSEddie Huang		pins_rst {
1759719fa5aSEddie Huang			pinmux = <MT8173_PIN_68_MSDC0_RST___FUNC_MSDC0_RSTB>;
1769719fa5aSEddie Huang			bias-pull-up;
1779719fa5aSEddie Huang		};
1789719fa5aSEddie Huang	};
1799719fa5aSEddie Huang
1809719fa5aSEddie Huang	mmc1_pins_uhs: mmc1 {
1819719fa5aSEddie Huang		pins_cmd_dat {
1829719fa5aSEddie Huang			pinmux = <MT8173_PIN_73_MSDC1_DAT0__FUNC_MSDC1_DAT0>,
1839719fa5aSEddie Huang				 <MT8173_PIN_74_MSDC1_DAT1__FUNC_MSDC1_DAT1>,
1849719fa5aSEddie Huang				 <MT8173_PIN_75_MSDC1_DAT2__FUNC_MSDC1_DAT2>,
1859719fa5aSEddie Huang				 <MT8173_PIN_76_MSDC1_DAT3__FUNC_MSDC1_DAT3>,
1869719fa5aSEddie Huang				 <MT8173_PIN_78_MSDC1_CMD__FUNC_MSDC1_CMD>;
1879719fa5aSEddie Huang			input-enable;
1889719fa5aSEddie Huang			drive-strength = <MTK_DRIVE_4mA>;
1899719fa5aSEddie Huang			bias-pull-up = <MTK_PUPD_SET_R1R0_10>;
1909719fa5aSEddie Huang		};
1919719fa5aSEddie Huang
1929719fa5aSEddie Huang		pins_clk {
1939719fa5aSEddie Huang			pinmux = <MT8173_PIN_77_MSDC1_CLK__FUNC_MSDC1_CLK>;
1949719fa5aSEddie Huang			drive-strength = <MTK_DRIVE_4mA>;
1959719fa5aSEddie Huang			bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
1969719fa5aSEddie Huang		};
1979719fa5aSEddie Huang	};
1989719fa5aSEddie Huang};
1999719fa5aSEddie Huang
200*61aee934SYH Huang&pwm0 {
201*61aee934SYH Huang	pinctrl-names = "default";
202*61aee934SYH Huang	pinctrl-0 = <&disp_pwm0_pins>;
203*61aee934SYH Huang	status = "okay";
204*61aee934SYH Huang};
205*61aee934SYH Huang
20616ea61fcSEddie Huang&pwrap {
20716ea61fcSEddie Huang	pmic: mt6397 {
20816ea61fcSEddie Huang		compatible = "mediatek,mt6397";
20916ea61fcSEddie Huang		interrupt-parent = <&pio>;
21016ea61fcSEddie Huang		interrupts = <11 IRQ_TYPE_LEVEL_HIGH>;
21116ea61fcSEddie Huang		interrupt-controller;
21216ea61fcSEddie Huang		#interrupt-cells = <2>;
21316ea61fcSEddie Huang
21416ea61fcSEddie Huang		mt6397regulator: mt6397regulator {
21516ea61fcSEddie Huang			compatible = "mediatek,mt6397-regulator";
21616ea61fcSEddie Huang
21716ea61fcSEddie Huang			mt6397_vpca15_reg: buck_vpca15 {
21816ea61fcSEddie Huang				regulator-compatible = "buck_vpca15";
21916ea61fcSEddie Huang				regulator-name = "vpca15";
22016ea61fcSEddie Huang				regulator-min-microvolt = < 700000>;
22116ea61fcSEddie Huang				regulator-max-microvolt = <1350000>;
22216ea61fcSEddie Huang				regulator-ramp-delay = <12500>;
22316ea61fcSEddie Huang				regulator-always-on;
22416ea61fcSEddie Huang			};
22516ea61fcSEddie Huang
22616ea61fcSEddie Huang			mt6397_vpca7_reg: buck_vpca7 {
22716ea61fcSEddie Huang				regulator-compatible = "buck_vpca7";
22816ea61fcSEddie Huang				regulator-name = "vpca7";
22916ea61fcSEddie Huang				regulator-min-microvolt = < 700000>;
23016ea61fcSEddie Huang				regulator-max-microvolt = <1350000>;
23116ea61fcSEddie Huang				regulator-ramp-delay = <12500>;
23216ea61fcSEddie Huang				regulator-enable-ramp-delay = <115>;
23316ea61fcSEddie Huang			};
23416ea61fcSEddie Huang
23516ea61fcSEddie Huang			mt6397_vsramca15_reg: buck_vsramca15 {
23616ea61fcSEddie Huang				regulator-compatible = "buck_vsramca15";
23716ea61fcSEddie Huang				regulator-name = "vsramca15";
23816ea61fcSEddie Huang				regulator-min-microvolt = < 700000>;
23916ea61fcSEddie Huang				regulator-max-microvolt = <1350000>;
24016ea61fcSEddie Huang				regulator-ramp-delay = <12500>;
24116ea61fcSEddie Huang				regulator-always-on;
24216ea61fcSEddie Huang			};
24316ea61fcSEddie Huang
24416ea61fcSEddie Huang			mt6397_vsramca7_reg: buck_vsramca7 {
24516ea61fcSEddie Huang				regulator-compatible = "buck_vsramca7";
24616ea61fcSEddie Huang				regulator-name = "vsramca7";
24716ea61fcSEddie Huang				regulator-min-microvolt = < 700000>;
24816ea61fcSEddie Huang				regulator-max-microvolt = <1350000>;
24916ea61fcSEddie Huang				regulator-ramp-delay = <12500>;
25016ea61fcSEddie Huang				regulator-always-on;
25116ea61fcSEddie Huang			};
25216ea61fcSEddie Huang
25316ea61fcSEddie Huang			mt6397_vcore_reg: buck_vcore {
25416ea61fcSEddie Huang				regulator-compatible = "buck_vcore";
25516ea61fcSEddie Huang				regulator-name = "vcore";
25616ea61fcSEddie Huang				regulator-min-microvolt = < 700000>;
25716ea61fcSEddie Huang				regulator-max-microvolt = <1350000>;
25816ea61fcSEddie Huang				regulator-ramp-delay = <12500>;
25916ea61fcSEddie Huang				regulator-always-on;
26016ea61fcSEddie Huang			};
26116ea61fcSEddie Huang
26216ea61fcSEddie Huang			mt6397_vgpu_reg: buck_vgpu {
26316ea61fcSEddie Huang				regulator-compatible = "buck_vgpu";
26416ea61fcSEddie Huang				regulator-name = "vgpu";
26516ea61fcSEddie Huang				regulator-min-microvolt = < 700000>;
26616ea61fcSEddie Huang				regulator-max-microvolt = <1350000>;
26716ea61fcSEddie Huang				regulator-ramp-delay = <12500>;
26816ea61fcSEddie Huang				regulator-enable-ramp-delay = <115>;
26916ea61fcSEddie Huang			};
27016ea61fcSEddie Huang
27116ea61fcSEddie Huang			mt6397_vdrm_reg: buck_vdrm {
27216ea61fcSEddie Huang				regulator-compatible = "buck_vdrm";
27316ea61fcSEddie Huang				regulator-name = "vdrm";
27416ea61fcSEddie Huang				regulator-min-microvolt = <1200000>;
27516ea61fcSEddie Huang				regulator-max-microvolt = <1400000>;
27616ea61fcSEddie Huang				regulator-ramp-delay = <12500>;
27716ea61fcSEddie Huang				regulator-always-on;
27816ea61fcSEddie Huang			};
27916ea61fcSEddie Huang
28016ea61fcSEddie Huang			mt6397_vio18_reg: buck_vio18 {
28116ea61fcSEddie Huang				regulator-compatible = "buck_vio18";
28216ea61fcSEddie Huang				regulator-name = "vio18";
28316ea61fcSEddie Huang				regulator-min-microvolt = <1620000>;
28416ea61fcSEddie Huang				regulator-max-microvolt = <1980000>;
28516ea61fcSEddie Huang				regulator-ramp-delay = <12500>;
28616ea61fcSEddie Huang				regulator-always-on;
28716ea61fcSEddie Huang			};
28816ea61fcSEddie Huang
28916ea61fcSEddie Huang			mt6397_vtcxo_reg: ldo_vtcxo {
29016ea61fcSEddie Huang				regulator-compatible = "ldo_vtcxo";
29116ea61fcSEddie Huang				regulator-name = "vtcxo";
29216ea61fcSEddie Huang				regulator-always-on;
29316ea61fcSEddie Huang			};
29416ea61fcSEddie Huang
29516ea61fcSEddie Huang			mt6397_va28_reg: ldo_va28 {
29616ea61fcSEddie Huang				regulator-compatible = "ldo_va28";
29716ea61fcSEddie Huang				regulator-name = "va28";
29816ea61fcSEddie Huang				regulator-always-on;
29916ea61fcSEddie Huang			};
30016ea61fcSEddie Huang
30116ea61fcSEddie Huang			mt6397_vcama_reg: ldo_vcama {
30216ea61fcSEddie Huang				regulator-compatible = "ldo_vcama";
30316ea61fcSEddie Huang				regulator-name = "vcama";
30416ea61fcSEddie Huang				regulator-min-microvolt = <1500000>;
30516ea61fcSEddie Huang				regulator-max-microvolt = <2800000>;
30616ea61fcSEddie Huang				regulator-enable-ramp-delay = <218>;
30716ea61fcSEddie Huang			};
30816ea61fcSEddie Huang
30916ea61fcSEddie Huang			mt6397_vio28_reg: ldo_vio28 {
31016ea61fcSEddie Huang				regulator-compatible = "ldo_vio28";
31116ea61fcSEddie Huang				regulator-name = "vio28";
31216ea61fcSEddie Huang				regulator-always-on;
31316ea61fcSEddie Huang			};
31416ea61fcSEddie Huang
31516ea61fcSEddie Huang			mt6397_vusb_reg: ldo_vusb {
31616ea61fcSEddie Huang				regulator-compatible = "ldo_vusb";
31716ea61fcSEddie Huang				regulator-name = "vusb";
31816ea61fcSEddie Huang			};
31916ea61fcSEddie Huang
32016ea61fcSEddie Huang			mt6397_vmc_reg: ldo_vmc {
32116ea61fcSEddie Huang				regulator-compatible = "ldo_vmc";
32216ea61fcSEddie Huang				regulator-name = "vmc";
32316ea61fcSEddie Huang				regulator-min-microvolt = <1800000>;
32416ea61fcSEddie Huang				regulator-max-microvolt = <3300000>;
32516ea61fcSEddie Huang				regulator-enable-ramp-delay = <218>;
32616ea61fcSEddie Huang			};
32716ea61fcSEddie Huang
32816ea61fcSEddie Huang			mt6397_vmch_reg: ldo_vmch {
32916ea61fcSEddie Huang				regulator-compatible = "ldo_vmch";
33016ea61fcSEddie Huang				regulator-name = "vmch";
33116ea61fcSEddie Huang				regulator-min-microvolt = <3000000>;
33216ea61fcSEddie Huang				regulator-max-microvolt = <3300000>;
33316ea61fcSEddie Huang				regulator-enable-ramp-delay = <218>;
33416ea61fcSEddie Huang			};
33516ea61fcSEddie Huang
33616ea61fcSEddie Huang			mt6397_vemc_3v3_reg: ldo_vemc3v3 {
33716ea61fcSEddie Huang				regulator-compatible = "ldo_vemc3v3";
33816ea61fcSEddie Huang				regulator-name = "vemc_3v3";
33916ea61fcSEddie Huang				regulator-min-microvolt = <3000000>;
34016ea61fcSEddie Huang				regulator-max-microvolt = <3300000>;
34116ea61fcSEddie Huang				regulator-enable-ramp-delay = <218>;
34216ea61fcSEddie Huang			};
34316ea61fcSEddie Huang
34416ea61fcSEddie Huang			mt6397_vgp1_reg: ldo_vgp1 {
34516ea61fcSEddie Huang				regulator-compatible = "ldo_vgp1";
34616ea61fcSEddie Huang				regulator-name = "vcamd";
34716ea61fcSEddie Huang				regulator-min-microvolt = <1220000>;
34816ea61fcSEddie Huang				regulator-max-microvolt = <3300000>;
34916ea61fcSEddie Huang				regulator-enable-ramp-delay = <240>;
35016ea61fcSEddie Huang			};
35116ea61fcSEddie Huang
35216ea61fcSEddie Huang			mt6397_vgp2_reg: ldo_vgp2 {
35316ea61fcSEddie Huang				regulator-compatible = "ldo_vgp2";
35416ea61fcSEddie Huang				regulator-name = "vcamio";
35516ea61fcSEddie Huang				regulator-min-microvolt = <1000000>;
35616ea61fcSEddie Huang				regulator-max-microvolt = <3300000>;
35716ea61fcSEddie Huang				regulator-enable-ramp-delay = <218>;
35816ea61fcSEddie Huang			};
35916ea61fcSEddie Huang
36016ea61fcSEddie Huang			mt6397_vgp3_reg: ldo_vgp3 {
36116ea61fcSEddie Huang				regulator-compatible = "ldo_vgp3";
36216ea61fcSEddie Huang				regulator-name = "vcamaf";
36316ea61fcSEddie Huang				regulator-min-microvolt = <1200000>;
36416ea61fcSEddie Huang				regulator-max-microvolt = <3300000>;
36516ea61fcSEddie Huang				regulator-enable-ramp-delay = <218>;
36616ea61fcSEddie Huang			};
36716ea61fcSEddie Huang
36816ea61fcSEddie Huang			mt6397_vgp4_reg: ldo_vgp4 {
36916ea61fcSEddie Huang				regulator-compatible = "ldo_vgp4";
37016ea61fcSEddie Huang				regulator-name = "vgp4";
37116ea61fcSEddie Huang				regulator-min-microvolt = <1200000>;
37216ea61fcSEddie Huang				regulator-max-microvolt = <3300000>;
37316ea61fcSEddie Huang				regulator-enable-ramp-delay = <218>;
37416ea61fcSEddie Huang			};
37516ea61fcSEddie Huang
37616ea61fcSEddie Huang			mt6397_vgp5_reg: ldo_vgp5 {
37716ea61fcSEddie Huang				regulator-compatible = "ldo_vgp5";
37816ea61fcSEddie Huang				regulator-name = "vgp5";
37916ea61fcSEddie Huang				regulator-min-microvolt = <1200000>;
38016ea61fcSEddie Huang				regulator-max-microvolt = <3000000>;
38116ea61fcSEddie Huang				regulator-enable-ramp-delay = <218>;
38216ea61fcSEddie Huang			};
38316ea61fcSEddie Huang
38416ea61fcSEddie Huang			mt6397_vgp6_reg: ldo_vgp6 {
38516ea61fcSEddie Huang				regulator-compatible = "ldo_vgp6";
38616ea61fcSEddie Huang				regulator-name = "vgp6";
38716ea61fcSEddie Huang				regulator-min-microvolt = <1200000>;
38816ea61fcSEddie Huang				regulator-max-microvolt = <3300000>;
38916ea61fcSEddie Huang				regulator-enable-ramp-delay = <218>;
39016ea61fcSEddie Huang			};
39116ea61fcSEddie Huang
39216ea61fcSEddie Huang			mt6397_vibr_reg: ldo_vibr {
39316ea61fcSEddie Huang				regulator-compatible = "ldo_vibr";
39416ea61fcSEddie Huang				regulator-name = "vibr";
39516ea61fcSEddie Huang				regulator-min-microvolt = <1300000>;
39616ea61fcSEddie Huang				regulator-max-microvolt = <3300000>;
39716ea61fcSEddie Huang				regulator-enable-ramp-delay = <218>;
39816ea61fcSEddie Huang			};
39916ea61fcSEddie Huang		};
40016ea61fcSEddie Huang	};
40116ea61fcSEddie Huang};
40216ea61fcSEddie Huang
403b0c936f5SLeilk Liu&pio {
404b0c936f5SLeilk Liu	spi_pins_a: spi0 {
405b0c936f5SLeilk Liu		pins_spi {
406b0c936f5SLeilk Liu			pinmux = <MT8173_PIN_69_SPI_CK__FUNC_SPI_CK_0_>,
407b0c936f5SLeilk Liu				<MT8173_PIN_70_SPI_MI__FUNC_SPI_MI_0_>,
408b0c936f5SLeilk Liu				<MT8173_PIN_71_SPI_MO__FUNC_SPI_MO_0_>,
409b0c936f5SLeilk Liu				<MT8173_PIN_72_SPI_CS__FUNC_SPI_CS_0_>;
410b0c936f5SLeilk Liu		};
411b0c936f5SLeilk Liu	};
412b0c936f5SLeilk Liu};
413b0c936f5SLeilk Liu
414b0c936f5SLeilk Liu&spi {
415b0c936f5SLeilk Liu	pinctrl-names = "default";
416b0c936f5SLeilk Liu	pinctrl-0 = <&spi_pins_a>;
417b0c936f5SLeilk Liu	mediatek,pad-select = <0>;
418b0c936f5SLeilk Liu	status = "okay";
419b0c936f5SLeilk Liu};
420b0c936f5SLeilk Liu
421b3a37248SEddie Huang&uart0 {
422b3a37248SEddie Huang	status = "okay";
423b3a37248SEddie Huang};
424