10c1f8546SLiang Chen/* 20c1f8546SLiang Chen * Copyright (c) 2017 Fuzhou Rockchip Electronics Co., Ltd 30c1f8546SLiang Chen * 40c1f8546SLiang Chen * This file is dual-licensed: you can use it either under the terms 50c1f8546SLiang Chen * of the GPL or the X11 license, at your option. Note that this dual 60c1f8546SLiang Chen * licensing only applies to this file, and not this project as a 70c1f8546SLiang Chen * whole. 80c1f8546SLiang Chen * 90c1f8546SLiang Chen * a) This library is free software; you can redistribute it and/or 100c1f8546SLiang Chen * modify it under the terms of the GNU General Public License as 110c1f8546SLiang Chen * published by the Free Software Foundation; either version 2 of the 120c1f8546SLiang Chen * License, or (at your option) any later version. 130c1f8546SLiang Chen * 140c1f8546SLiang Chen * This library is distributed in the hope that it will be useful, 150c1f8546SLiang Chen * but WITHOUT ANY WARRANTY; without even the implied warranty of 160c1f8546SLiang Chen * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 170c1f8546SLiang Chen * GNU General Public License for more details. 180c1f8546SLiang Chen * 190c1f8546SLiang Chen * Or, alternatively, 200c1f8546SLiang Chen * 210c1f8546SLiang Chen * b) Permission is hereby granted, free of charge, to any person 220c1f8546SLiang Chen * obtaining a copy of this software and associated documentation 230c1f8546SLiang Chen * files (the "Software"), to deal in the Software without 240c1f8546SLiang Chen * restriction, including without limitation the rights to use, 250c1f8546SLiang Chen * copy, modify, merge, publish, distribute, sublicense, and/or 260c1f8546SLiang Chen * sell copies of the Software, and to permit persons to whom the 270c1f8546SLiang Chen * Software is furnished to do so, subject to the following 280c1f8546SLiang Chen * conditions: 290c1f8546SLiang Chen * 300c1f8546SLiang Chen * The above copyright notice and this permission notice shall be 310c1f8546SLiang Chen * included in all copies or substantial portions of the Software. 320c1f8546SLiang Chen * 330c1f8546SLiang Chen * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 340c1f8546SLiang Chen * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 350c1f8546SLiang Chen * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 360c1f8546SLiang Chen * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 370c1f8546SLiang Chen * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 380c1f8546SLiang Chen * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 390c1f8546SLiang Chen * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 400c1f8546SLiang Chen * OTHER DEALINGS IN THE SOFTWARE. 410c1f8546SLiang Chen */ 420c1f8546SLiang Chen 430c1f8546SLiang Chen/dts-v1/; 440c1f8546SLiang Chen#include "rk3328.dtsi" 450c1f8546SLiang Chen 460c1f8546SLiang Chen/ { 470c1f8546SLiang Chen model = "Rockchip RK3328 EVB"; 480c1f8546SLiang Chen compatible = "rockchip,rk3328-evb", "rockchip,rk3328"; 490c1f8546SLiang Chen 500c1f8546SLiang Chen chosen { 510c1f8546SLiang Chen stdout-path = "serial2:1500000n8"; 520c1f8546SLiang Chen }; 534b05bc61SDavid Wu 541e28037eSJoseph Chen dc_12v: dc-12v { 551e28037eSJoseph Chen compatible = "regulator-fixed"; 561e28037eSJoseph Chen regulator-name = "dc_12v"; 571e28037eSJoseph Chen regulator-always-on; 581e28037eSJoseph Chen regulator-boot-on; 591e28037eSJoseph Chen regulator-min-microvolt = <12000000>; 601e28037eSJoseph Chen regulator-max-microvolt = <12000000>; 611e28037eSJoseph Chen }; 621e28037eSJoseph Chen 631e28037eSJoseph Chen vcc_sys: vcc-sys { 641e28037eSJoseph Chen compatible = "regulator-fixed"; 651e28037eSJoseph Chen regulator-name = "vcc_sys"; 661e28037eSJoseph Chen regulator-always-on; 671e28037eSJoseph Chen regulator-boot-on; 681e28037eSJoseph Chen regulator-min-microvolt = <5000000>; 691e28037eSJoseph Chen regulator-max-microvolt = <5000000>; 701e28037eSJoseph Chen vin-supply = <&dc_12v>; 711e28037eSJoseph Chen }; 72*e90937e7SLinus Torvalds 734b05bc61SDavid Wu vcc_phy: vcc-phy-regulator { 744b05bc61SDavid Wu compatible = "regulator-fixed"; 754b05bc61SDavid Wu regulator-name = "vcc_phy"; 764b05bc61SDavid Wu regulator-always-on; 774b05bc61SDavid Wu regulator-boot-on; 784b05bc61SDavid Wu }; 794b05bc61SDavid Wu}; 804b05bc61SDavid Wu 814b05bc61SDavid Wu&gmac2phy { 824b05bc61SDavid Wu phy-supply = <&vcc_phy>; 834b05bc61SDavid Wu clock_in_out = "output"; 844b05bc61SDavid Wu assigned-clocks = <&cru SCLK_MAC2PHY_SRC>; 854b05bc61SDavid Wu assigned-clock-rate = <50000000>; 864b05bc61SDavid Wu assigned-clocks = <&cru SCLK_MAC2PHY>; 874b05bc61SDavid Wu assigned-clock-parents = <&cru SCLK_MAC2PHY_SRC>; 884b05bc61SDavid Wu status = "okay"; 890c1f8546SLiang Chen}; 900c1f8546SLiang Chen 911e28037eSJoseph Chen&i2c1 { 921e28037eSJoseph Chen status = "okay"; 931e28037eSJoseph Chen 941e28037eSJoseph Chen rk805: rk805@18 { 951e28037eSJoseph Chen compatible = "rockchip,rk805"; 961e28037eSJoseph Chen reg = <0x18>; 971e28037eSJoseph Chen interrupt-parent = <&gpio2>; 981e28037eSJoseph Chen interrupts = <6 IRQ_TYPE_LEVEL_LOW>; 991e28037eSJoseph Chen #clock-cells = <1>; 1001e28037eSJoseph Chen clock-output-names = "xin32k", "rk805-clkout2"; 1011e28037eSJoseph Chen gpio-controller; 1021e28037eSJoseph Chen #gpio-cells = <2>; 1031e28037eSJoseph Chen pinctrl-names = "default"; 1041e28037eSJoseph Chen pinctrl-0 = <&pmic_int_l>; 1051e28037eSJoseph Chen rockchip,system-power-controller; 1061e28037eSJoseph Chen wakeup-source; 1071e28037eSJoseph Chen 1081e28037eSJoseph Chen vcc1-supply = <&vcc_sys>; 1091e28037eSJoseph Chen vcc2-supply = <&vcc_sys>; 1101e28037eSJoseph Chen vcc3-supply = <&vcc_sys>; 1111e28037eSJoseph Chen vcc4-supply = <&vcc_sys>; 1121e28037eSJoseph Chen vcc5-supply = <&vcc_io>; 1131e28037eSJoseph Chen vcc6-supply = <&vcc_io>; 1141e28037eSJoseph Chen 1151e28037eSJoseph Chen regulators { 1161e28037eSJoseph Chen vdd_logic: DCDC_REG1 { 1171e28037eSJoseph Chen regulator-name = "vdd_logic"; 1181e28037eSJoseph Chen regulator-min-microvolt = <712500>; 1191e28037eSJoseph Chen regulator-max-microvolt = <1450000>; 1201e28037eSJoseph Chen regulator-always-on; 1211e28037eSJoseph Chen regulator-boot-on; 1221e28037eSJoseph Chen regulator-state-mem { 1231e28037eSJoseph Chen regulator-on-in-suspend; 1241e28037eSJoseph Chen regulator-suspend-microvolt = <1000000>; 1251e28037eSJoseph Chen }; 1261e28037eSJoseph Chen }; 1271e28037eSJoseph Chen 1281e28037eSJoseph Chen vdd_arm: DCDC_REG2 { 1291e28037eSJoseph Chen regulator-name = "vdd_arm"; 1301e28037eSJoseph Chen regulator-min-microvolt = <712500>; 1311e28037eSJoseph Chen regulator-max-microvolt = <1450000>; 1321e28037eSJoseph Chen regulator-always-on; 1331e28037eSJoseph Chen regulator-boot-on; 1341e28037eSJoseph Chen regulator-state-mem { 1351e28037eSJoseph Chen regulator-on-in-suspend; 1361e28037eSJoseph Chen regulator-suspend-microvolt = <950000>; 1371e28037eSJoseph Chen }; 1381e28037eSJoseph Chen }; 1391e28037eSJoseph Chen 1401e28037eSJoseph Chen vcc_ddr: DCDC_REG3 { 1411e28037eSJoseph Chen regulator-name = "vcc_ddr"; 1421e28037eSJoseph Chen regulator-always-on; 1431e28037eSJoseph Chen regulator-boot-on; 1441e28037eSJoseph Chen regulator-state-mem { 1451e28037eSJoseph Chen regulator-on-in-suspend; 1461e28037eSJoseph Chen }; 1471e28037eSJoseph Chen }; 1481e28037eSJoseph Chen 1491e28037eSJoseph Chen vcc_io: DCDC_REG4 { 1501e28037eSJoseph Chen regulator-name = "vcc_io"; 1511e28037eSJoseph Chen regulator-min-microvolt = <3300000>; 1521e28037eSJoseph Chen regulator-max-microvolt = <3300000>; 1531e28037eSJoseph Chen regulator-always-on; 1541e28037eSJoseph Chen regulator-boot-on; 1551e28037eSJoseph Chen regulator-state-mem { 1561e28037eSJoseph Chen regulator-on-in-suspend; 1571e28037eSJoseph Chen regulator-suspend-microvolt = <3300000>; 1581e28037eSJoseph Chen }; 1591e28037eSJoseph Chen }; 1601e28037eSJoseph Chen 1611e28037eSJoseph Chen vcc_18: LDO_REG1 { 1621e28037eSJoseph Chen regulator-name = "vcc_18"; 1631e28037eSJoseph Chen regulator-min-microvolt = <1800000>; 1641e28037eSJoseph Chen regulator-max-microvolt = <1800000>; 1651e28037eSJoseph Chen regulator-always-on; 1661e28037eSJoseph Chen regulator-boot-on; 1671e28037eSJoseph Chen regulator-state-mem { 1681e28037eSJoseph Chen regulator-on-in-suspend; 1691e28037eSJoseph Chen regulator-suspend-microvolt = <1800000>; 1701e28037eSJoseph Chen }; 1711e28037eSJoseph Chen }; 1721e28037eSJoseph Chen 1731e28037eSJoseph Chen vcc18_emmc: LDO_REG2 { 1741e28037eSJoseph Chen regulator-name = "vcc18_emmc"; 1751e28037eSJoseph Chen regulator-min-microvolt = <1800000>; 1761e28037eSJoseph Chen regulator-max-microvolt = <1800000>; 1771e28037eSJoseph Chen regulator-always-on; 1781e28037eSJoseph Chen regulator-boot-on; 1791e28037eSJoseph Chen regulator-state-mem { 1801e28037eSJoseph Chen regulator-on-in-suspend; 1811e28037eSJoseph Chen regulator-suspend-microvolt = <1800000>; 1821e28037eSJoseph Chen }; 1831e28037eSJoseph Chen }; 1841e28037eSJoseph Chen 1851e28037eSJoseph Chen vdd_10: LDO_REG3 { 1861e28037eSJoseph Chen regulator-name = "vdd_10"; 1871e28037eSJoseph Chen regulator-min-microvolt = <1000000>; 1881e28037eSJoseph Chen regulator-max-microvolt = <1000000>; 1891e28037eSJoseph Chen regulator-always-on; 1901e28037eSJoseph Chen regulator-boot-on; 1911e28037eSJoseph Chen regulator-state-mem { 1921e28037eSJoseph Chen regulator-on-in-suspend; 1931e28037eSJoseph Chen regulator-suspend-microvolt = <1000000>; 1941e28037eSJoseph Chen }; 1951e28037eSJoseph Chen }; 1961e28037eSJoseph Chen }; 1971e28037eSJoseph Chen }; 1981e28037eSJoseph Chen}; 1991e28037eSJoseph Chen 2001e28037eSJoseph Chen&pinctrl { 2011e28037eSJoseph Chen pmic { 2021e28037eSJoseph Chen pmic_int_l: pmic-int-l { 2031e28037eSJoseph Chen rockchip,pins = <2 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>; 2041e28037eSJoseph Chen }; 2051e28037eSJoseph Chen }; 2060c1f8546SLiang Chen}; 2070c1f8546SLiang Chen 208ab78718bSRocky Hao&tsadc { 209ab78718bSRocky Hao status = "okay"; 210ab78718bSRocky Hao}; 211ab78718bSRocky Hao 2120c1f8546SLiang Chen&uart2 { 2130c1f8546SLiang Chen status = "okay"; 2140c1f8546SLiang Chen}; 215d4446793SWilliam Wu 216d4446793SWilliam Wu&u2phy { 217d4446793SWilliam Wu status = "okay"; 218d4446793SWilliam Wu}; 219d4446793SWilliam Wu 220d4446793SWilliam Wu&u2phy_host { 221d4446793SWilliam Wu status = "okay"; 222d4446793SWilliam Wu}; 223d4446793SWilliam Wu 224d4446793SWilliam Wu&u2phy_otg { 225d4446793SWilliam Wu status = "okay"; 226d4446793SWilliam Wu}; 227d4446793SWilliam Wu 228d4446793SWilliam Wu&usb20_otg { 229d4446793SWilliam Wu status = "okay"; 230d4446793SWilliam Wu}; 231d4446793SWilliam Wu 232d4446793SWilliam Wu&usb_host0_ehci { 233d4446793SWilliam Wu status = "okay"; 234d4446793SWilliam Wu}; 235d4446793SWilliam Wu 236d4446793SWilliam Wu&usb_host0_ohci { 237d4446793SWilliam Wu status = "okay"; 238d4446793SWilliam Wu}; 239