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 6716ea61fcSEddie Huang&pwrap { 6816ea61fcSEddie Huang pmic: mt6397 { 6916ea61fcSEddie Huang compatible = "mediatek,mt6397"; 7016ea61fcSEddie Huang interrupt-parent = <&pio>; 7116ea61fcSEddie Huang interrupts = <11 IRQ_TYPE_LEVEL_HIGH>; 7216ea61fcSEddie Huang interrupt-controller; 7316ea61fcSEddie Huang #interrupt-cells = <2>; 7416ea61fcSEddie Huang 7516ea61fcSEddie Huang mt6397regulator: mt6397regulator { 7616ea61fcSEddie Huang compatible = "mediatek,mt6397-regulator"; 7716ea61fcSEddie Huang 7816ea61fcSEddie Huang mt6397_vpca15_reg: buck_vpca15 { 7916ea61fcSEddie Huang regulator-compatible = "buck_vpca15"; 8016ea61fcSEddie Huang regulator-name = "vpca15"; 8116ea61fcSEddie Huang regulator-min-microvolt = < 700000>; 8216ea61fcSEddie Huang regulator-max-microvolt = <1350000>; 8316ea61fcSEddie Huang regulator-ramp-delay = <12500>; 8416ea61fcSEddie Huang regulator-always-on; 8516ea61fcSEddie Huang }; 8616ea61fcSEddie Huang 8716ea61fcSEddie Huang mt6397_vpca7_reg: buck_vpca7 { 8816ea61fcSEddie Huang regulator-compatible = "buck_vpca7"; 8916ea61fcSEddie Huang regulator-name = "vpca7"; 9016ea61fcSEddie Huang regulator-min-microvolt = < 700000>; 9116ea61fcSEddie Huang regulator-max-microvolt = <1350000>; 9216ea61fcSEddie Huang regulator-ramp-delay = <12500>; 9316ea61fcSEddie Huang regulator-enable-ramp-delay = <115>; 9416ea61fcSEddie Huang }; 9516ea61fcSEddie Huang 9616ea61fcSEddie Huang mt6397_vsramca15_reg: buck_vsramca15 { 9716ea61fcSEddie Huang regulator-compatible = "buck_vsramca15"; 9816ea61fcSEddie Huang regulator-name = "vsramca15"; 9916ea61fcSEddie Huang regulator-min-microvolt = < 700000>; 10016ea61fcSEddie Huang regulator-max-microvolt = <1350000>; 10116ea61fcSEddie Huang regulator-ramp-delay = <12500>; 10216ea61fcSEddie Huang regulator-always-on; 10316ea61fcSEddie Huang }; 10416ea61fcSEddie Huang 10516ea61fcSEddie Huang mt6397_vsramca7_reg: buck_vsramca7 { 10616ea61fcSEddie Huang regulator-compatible = "buck_vsramca7"; 10716ea61fcSEddie Huang regulator-name = "vsramca7"; 10816ea61fcSEddie Huang regulator-min-microvolt = < 700000>; 10916ea61fcSEddie Huang regulator-max-microvolt = <1350000>; 11016ea61fcSEddie Huang regulator-ramp-delay = <12500>; 11116ea61fcSEddie Huang regulator-always-on; 11216ea61fcSEddie Huang }; 11316ea61fcSEddie Huang 11416ea61fcSEddie Huang mt6397_vcore_reg: buck_vcore { 11516ea61fcSEddie Huang regulator-compatible = "buck_vcore"; 11616ea61fcSEddie Huang regulator-name = "vcore"; 11716ea61fcSEddie Huang regulator-min-microvolt = < 700000>; 11816ea61fcSEddie Huang regulator-max-microvolt = <1350000>; 11916ea61fcSEddie Huang regulator-ramp-delay = <12500>; 12016ea61fcSEddie Huang regulator-always-on; 12116ea61fcSEddie Huang }; 12216ea61fcSEddie Huang 12316ea61fcSEddie Huang mt6397_vgpu_reg: buck_vgpu { 12416ea61fcSEddie Huang regulator-compatible = "buck_vgpu"; 12516ea61fcSEddie Huang regulator-name = "vgpu"; 12616ea61fcSEddie Huang regulator-min-microvolt = < 700000>; 12716ea61fcSEddie Huang regulator-max-microvolt = <1350000>; 12816ea61fcSEddie Huang regulator-ramp-delay = <12500>; 12916ea61fcSEddie Huang regulator-enable-ramp-delay = <115>; 13016ea61fcSEddie Huang }; 13116ea61fcSEddie Huang 13216ea61fcSEddie Huang mt6397_vdrm_reg: buck_vdrm { 13316ea61fcSEddie Huang regulator-compatible = "buck_vdrm"; 13416ea61fcSEddie Huang regulator-name = "vdrm"; 13516ea61fcSEddie Huang regulator-min-microvolt = <1200000>; 13616ea61fcSEddie Huang regulator-max-microvolt = <1400000>; 13716ea61fcSEddie Huang regulator-ramp-delay = <12500>; 13816ea61fcSEddie Huang regulator-always-on; 13916ea61fcSEddie Huang }; 14016ea61fcSEddie Huang 14116ea61fcSEddie Huang mt6397_vio18_reg: buck_vio18 { 14216ea61fcSEddie Huang regulator-compatible = "buck_vio18"; 14316ea61fcSEddie Huang regulator-name = "vio18"; 14416ea61fcSEddie Huang regulator-min-microvolt = <1620000>; 14516ea61fcSEddie Huang regulator-max-microvolt = <1980000>; 14616ea61fcSEddie Huang regulator-ramp-delay = <12500>; 14716ea61fcSEddie Huang regulator-always-on; 14816ea61fcSEddie Huang }; 14916ea61fcSEddie Huang 15016ea61fcSEddie Huang mt6397_vtcxo_reg: ldo_vtcxo { 15116ea61fcSEddie Huang regulator-compatible = "ldo_vtcxo"; 15216ea61fcSEddie Huang regulator-name = "vtcxo"; 15316ea61fcSEddie Huang regulator-always-on; 15416ea61fcSEddie Huang }; 15516ea61fcSEddie Huang 15616ea61fcSEddie Huang mt6397_va28_reg: ldo_va28 { 15716ea61fcSEddie Huang regulator-compatible = "ldo_va28"; 15816ea61fcSEddie Huang regulator-name = "va28"; 15916ea61fcSEddie Huang regulator-always-on; 16016ea61fcSEddie Huang }; 16116ea61fcSEddie Huang 16216ea61fcSEddie Huang mt6397_vcama_reg: ldo_vcama { 16316ea61fcSEddie Huang regulator-compatible = "ldo_vcama"; 16416ea61fcSEddie Huang regulator-name = "vcama"; 16516ea61fcSEddie Huang regulator-min-microvolt = <1500000>; 16616ea61fcSEddie Huang regulator-max-microvolt = <2800000>; 16716ea61fcSEddie Huang regulator-enable-ramp-delay = <218>; 16816ea61fcSEddie Huang }; 16916ea61fcSEddie Huang 17016ea61fcSEddie Huang mt6397_vio28_reg: ldo_vio28 { 17116ea61fcSEddie Huang regulator-compatible = "ldo_vio28"; 17216ea61fcSEddie Huang regulator-name = "vio28"; 17316ea61fcSEddie Huang regulator-always-on; 17416ea61fcSEddie Huang }; 17516ea61fcSEddie Huang 17616ea61fcSEddie Huang mt6397_vusb_reg: ldo_vusb { 17716ea61fcSEddie Huang regulator-compatible = "ldo_vusb"; 17816ea61fcSEddie Huang regulator-name = "vusb"; 17916ea61fcSEddie Huang }; 18016ea61fcSEddie Huang 18116ea61fcSEddie Huang mt6397_vmc_reg: ldo_vmc { 18216ea61fcSEddie Huang regulator-compatible = "ldo_vmc"; 18316ea61fcSEddie Huang regulator-name = "vmc"; 18416ea61fcSEddie Huang regulator-min-microvolt = <1800000>; 18516ea61fcSEddie Huang regulator-max-microvolt = <3300000>; 18616ea61fcSEddie Huang regulator-enable-ramp-delay = <218>; 18716ea61fcSEddie Huang }; 18816ea61fcSEddie Huang 18916ea61fcSEddie Huang mt6397_vmch_reg: ldo_vmch { 19016ea61fcSEddie Huang regulator-compatible = "ldo_vmch"; 19116ea61fcSEddie Huang regulator-name = "vmch"; 19216ea61fcSEddie Huang regulator-min-microvolt = <3000000>; 19316ea61fcSEddie Huang regulator-max-microvolt = <3300000>; 19416ea61fcSEddie Huang regulator-enable-ramp-delay = <218>; 19516ea61fcSEddie Huang }; 19616ea61fcSEddie Huang 19716ea61fcSEddie Huang mt6397_vemc_3v3_reg: ldo_vemc3v3 { 19816ea61fcSEddie Huang regulator-compatible = "ldo_vemc3v3"; 19916ea61fcSEddie Huang regulator-name = "vemc_3v3"; 20016ea61fcSEddie Huang regulator-min-microvolt = <3000000>; 20116ea61fcSEddie Huang regulator-max-microvolt = <3300000>; 20216ea61fcSEddie Huang regulator-enable-ramp-delay = <218>; 20316ea61fcSEddie Huang }; 20416ea61fcSEddie Huang 20516ea61fcSEddie Huang mt6397_vgp1_reg: ldo_vgp1 { 20616ea61fcSEddie Huang regulator-compatible = "ldo_vgp1"; 20716ea61fcSEddie Huang regulator-name = "vcamd"; 20816ea61fcSEddie Huang regulator-min-microvolt = <1220000>; 20916ea61fcSEddie Huang regulator-max-microvolt = <3300000>; 21016ea61fcSEddie Huang regulator-enable-ramp-delay = <240>; 21116ea61fcSEddie Huang }; 21216ea61fcSEddie Huang 21316ea61fcSEddie Huang mt6397_vgp2_reg: ldo_vgp2 { 21416ea61fcSEddie Huang regulator-compatible = "ldo_vgp2"; 21516ea61fcSEddie Huang regulator-name = "vcamio"; 21616ea61fcSEddie Huang regulator-min-microvolt = <1000000>; 21716ea61fcSEddie Huang regulator-max-microvolt = <3300000>; 21816ea61fcSEddie Huang regulator-enable-ramp-delay = <218>; 21916ea61fcSEddie Huang }; 22016ea61fcSEddie Huang 22116ea61fcSEddie Huang mt6397_vgp3_reg: ldo_vgp3 { 22216ea61fcSEddie Huang regulator-compatible = "ldo_vgp3"; 22316ea61fcSEddie Huang regulator-name = "vcamaf"; 22416ea61fcSEddie Huang regulator-min-microvolt = <1200000>; 22516ea61fcSEddie Huang regulator-max-microvolt = <3300000>; 22616ea61fcSEddie Huang regulator-enable-ramp-delay = <218>; 22716ea61fcSEddie Huang }; 22816ea61fcSEddie Huang 22916ea61fcSEddie Huang mt6397_vgp4_reg: ldo_vgp4 { 23016ea61fcSEddie Huang regulator-compatible = "ldo_vgp4"; 23116ea61fcSEddie Huang regulator-name = "vgp4"; 23216ea61fcSEddie Huang regulator-min-microvolt = <1200000>; 23316ea61fcSEddie Huang regulator-max-microvolt = <3300000>; 23416ea61fcSEddie Huang regulator-enable-ramp-delay = <218>; 23516ea61fcSEddie Huang }; 23616ea61fcSEddie Huang 23716ea61fcSEddie Huang mt6397_vgp5_reg: ldo_vgp5 { 23816ea61fcSEddie Huang regulator-compatible = "ldo_vgp5"; 23916ea61fcSEddie Huang regulator-name = "vgp5"; 24016ea61fcSEddie Huang regulator-min-microvolt = <1200000>; 24116ea61fcSEddie Huang regulator-max-microvolt = <3000000>; 24216ea61fcSEddie Huang regulator-enable-ramp-delay = <218>; 24316ea61fcSEddie Huang }; 24416ea61fcSEddie Huang 24516ea61fcSEddie Huang mt6397_vgp6_reg: ldo_vgp6 { 24616ea61fcSEddie Huang regulator-compatible = "ldo_vgp6"; 24716ea61fcSEddie Huang regulator-name = "vgp6"; 24816ea61fcSEddie Huang regulator-min-microvolt = <1200000>; 24916ea61fcSEddie Huang regulator-max-microvolt = <3300000>; 25016ea61fcSEddie Huang regulator-enable-ramp-delay = <218>; 25116ea61fcSEddie Huang }; 25216ea61fcSEddie Huang 25316ea61fcSEddie Huang mt6397_vibr_reg: ldo_vibr { 25416ea61fcSEddie Huang regulator-compatible = "ldo_vibr"; 25516ea61fcSEddie Huang regulator-name = "vibr"; 25616ea61fcSEddie Huang regulator-min-microvolt = <1300000>; 25716ea61fcSEddie Huang regulator-max-microvolt = <3300000>; 25816ea61fcSEddie Huang regulator-enable-ramp-delay = <218>; 25916ea61fcSEddie Huang }; 26016ea61fcSEddie Huang }; 26116ea61fcSEddie Huang }; 26216ea61fcSEddie Huang}; 26316ea61fcSEddie Huang 264b3a37248SEddie Huang&uart0 { 265b3a37248SEddie Huang status = "okay"; 266b3a37248SEddie Huang}; 267