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 }; 53*1e28037eSJoseph Chen 54*1e28037eSJoseph Chen dc_12v: dc-12v { 55*1e28037eSJoseph Chen compatible = "regulator-fixed"; 56*1e28037eSJoseph Chen regulator-name = "dc_12v"; 57*1e28037eSJoseph Chen regulator-always-on; 58*1e28037eSJoseph Chen regulator-boot-on; 59*1e28037eSJoseph Chen regulator-min-microvolt = <12000000>; 60*1e28037eSJoseph Chen regulator-max-microvolt = <12000000>; 61*1e28037eSJoseph Chen }; 62*1e28037eSJoseph Chen 63*1e28037eSJoseph Chen vcc_sys: vcc-sys { 64*1e28037eSJoseph Chen compatible = "regulator-fixed"; 65*1e28037eSJoseph Chen regulator-name = "vcc_sys"; 66*1e28037eSJoseph Chen regulator-always-on; 67*1e28037eSJoseph Chen regulator-boot-on; 68*1e28037eSJoseph Chen regulator-min-microvolt = <5000000>; 69*1e28037eSJoseph Chen regulator-max-microvolt = <5000000>; 70*1e28037eSJoseph Chen vin-supply = <&dc_12v>; 71*1e28037eSJoseph Chen }; 72*1e28037eSJoseph Chen}; 73*1e28037eSJoseph Chen 74*1e28037eSJoseph Chen&i2c1 { 75*1e28037eSJoseph Chen status = "okay"; 76*1e28037eSJoseph Chen 77*1e28037eSJoseph Chen rk805: rk805@18 { 78*1e28037eSJoseph Chen compatible = "rockchip,rk805"; 79*1e28037eSJoseph Chen reg = <0x18>; 80*1e28037eSJoseph Chen interrupt-parent = <&gpio2>; 81*1e28037eSJoseph Chen interrupts = <6 IRQ_TYPE_LEVEL_LOW>; 82*1e28037eSJoseph Chen #clock-cells = <1>; 83*1e28037eSJoseph Chen clock-output-names = "xin32k", "rk805-clkout2"; 84*1e28037eSJoseph Chen gpio-controller; 85*1e28037eSJoseph Chen #gpio-cells = <2>; 86*1e28037eSJoseph Chen pinctrl-names = "default"; 87*1e28037eSJoseph Chen pinctrl-0 = <&pmic_int_l>; 88*1e28037eSJoseph Chen rockchip,system-power-controller; 89*1e28037eSJoseph Chen wakeup-source; 90*1e28037eSJoseph Chen 91*1e28037eSJoseph Chen vcc1-supply = <&vcc_sys>; 92*1e28037eSJoseph Chen vcc2-supply = <&vcc_sys>; 93*1e28037eSJoseph Chen vcc3-supply = <&vcc_sys>; 94*1e28037eSJoseph Chen vcc4-supply = <&vcc_sys>; 95*1e28037eSJoseph Chen vcc5-supply = <&vcc_io>; 96*1e28037eSJoseph Chen vcc6-supply = <&vcc_io>; 97*1e28037eSJoseph Chen 98*1e28037eSJoseph Chen regulators { 99*1e28037eSJoseph Chen vdd_logic: DCDC_REG1 { 100*1e28037eSJoseph Chen regulator-name = "vdd_logic"; 101*1e28037eSJoseph Chen regulator-min-microvolt = <712500>; 102*1e28037eSJoseph Chen regulator-max-microvolt = <1450000>; 103*1e28037eSJoseph Chen regulator-always-on; 104*1e28037eSJoseph Chen regulator-boot-on; 105*1e28037eSJoseph Chen regulator-state-mem { 106*1e28037eSJoseph Chen regulator-on-in-suspend; 107*1e28037eSJoseph Chen regulator-suspend-microvolt = <1000000>; 108*1e28037eSJoseph Chen }; 109*1e28037eSJoseph Chen }; 110*1e28037eSJoseph Chen 111*1e28037eSJoseph Chen vdd_arm: DCDC_REG2 { 112*1e28037eSJoseph Chen regulator-name = "vdd_arm"; 113*1e28037eSJoseph Chen regulator-min-microvolt = <712500>; 114*1e28037eSJoseph Chen regulator-max-microvolt = <1450000>; 115*1e28037eSJoseph Chen regulator-always-on; 116*1e28037eSJoseph Chen regulator-boot-on; 117*1e28037eSJoseph Chen regulator-state-mem { 118*1e28037eSJoseph Chen regulator-on-in-suspend; 119*1e28037eSJoseph Chen regulator-suspend-microvolt = <950000>; 120*1e28037eSJoseph Chen }; 121*1e28037eSJoseph Chen }; 122*1e28037eSJoseph Chen 123*1e28037eSJoseph Chen vcc_ddr: DCDC_REG3 { 124*1e28037eSJoseph Chen regulator-name = "vcc_ddr"; 125*1e28037eSJoseph Chen regulator-always-on; 126*1e28037eSJoseph Chen regulator-boot-on; 127*1e28037eSJoseph Chen regulator-state-mem { 128*1e28037eSJoseph Chen regulator-on-in-suspend; 129*1e28037eSJoseph Chen }; 130*1e28037eSJoseph Chen }; 131*1e28037eSJoseph Chen 132*1e28037eSJoseph Chen vcc_io: DCDC_REG4 { 133*1e28037eSJoseph Chen regulator-name = "vcc_io"; 134*1e28037eSJoseph Chen regulator-min-microvolt = <3300000>; 135*1e28037eSJoseph Chen regulator-max-microvolt = <3300000>; 136*1e28037eSJoseph Chen regulator-always-on; 137*1e28037eSJoseph Chen regulator-boot-on; 138*1e28037eSJoseph Chen regulator-state-mem { 139*1e28037eSJoseph Chen regulator-on-in-suspend; 140*1e28037eSJoseph Chen regulator-suspend-microvolt = <3300000>; 141*1e28037eSJoseph Chen }; 142*1e28037eSJoseph Chen }; 143*1e28037eSJoseph Chen 144*1e28037eSJoseph Chen vcc_18: LDO_REG1 { 145*1e28037eSJoseph Chen regulator-name = "vcc_18"; 146*1e28037eSJoseph Chen regulator-min-microvolt = <1800000>; 147*1e28037eSJoseph Chen regulator-max-microvolt = <1800000>; 148*1e28037eSJoseph Chen regulator-always-on; 149*1e28037eSJoseph Chen regulator-boot-on; 150*1e28037eSJoseph Chen regulator-state-mem { 151*1e28037eSJoseph Chen regulator-on-in-suspend; 152*1e28037eSJoseph Chen regulator-suspend-microvolt = <1800000>; 153*1e28037eSJoseph Chen }; 154*1e28037eSJoseph Chen }; 155*1e28037eSJoseph Chen 156*1e28037eSJoseph Chen vcc18_emmc: LDO_REG2 { 157*1e28037eSJoseph Chen regulator-name = "vcc18_emmc"; 158*1e28037eSJoseph Chen regulator-min-microvolt = <1800000>; 159*1e28037eSJoseph Chen regulator-max-microvolt = <1800000>; 160*1e28037eSJoseph Chen regulator-always-on; 161*1e28037eSJoseph Chen regulator-boot-on; 162*1e28037eSJoseph Chen regulator-state-mem { 163*1e28037eSJoseph Chen regulator-on-in-suspend; 164*1e28037eSJoseph Chen regulator-suspend-microvolt = <1800000>; 165*1e28037eSJoseph Chen }; 166*1e28037eSJoseph Chen }; 167*1e28037eSJoseph Chen 168*1e28037eSJoseph Chen vdd_10: LDO_REG3 { 169*1e28037eSJoseph Chen regulator-name = "vdd_10"; 170*1e28037eSJoseph Chen regulator-min-microvolt = <1000000>; 171*1e28037eSJoseph Chen regulator-max-microvolt = <1000000>; 172*1e28037eSJoseph Chen regulator-always-on; 173*1e28037eSJoseph Chen regulator-boot-on; 174*1e28037eSJoseph Chen regulator-state-mem { 175*1e28037eSJoseph Chen regulator-on-in-suspend; 176*1e28037eSJoseph Chen regulator-suspend-microvolt = <1000000>; 177*1e28037eSJoseph Chen }; 178*1e28037eSJoseph Chen }; 179*1e28037eSJoseph Chen }; 180*1e28037eSJoseph Chen }; 181*1e28037eSJoseph Chen}; 182*1e28037eSJoseph Chen 183*1e28037eSJoseph Chen&pinctrl { 184*1e28037eSJoseph Chen pmic { 185*1e28037eSJoseph Chen pmic_int_l: pmic-int-l { 186*1e28037eSJoseph Chen rockchip,pins = <2 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>; 187*1e28037eSJoseph Chen }; 188*1e28037eSJoseph Chen }; 1890c1f8546SLiang Chen}; 1900c1f8546SLiang Chen 191ab78718bSRocky Hao&tsadc { 192ab78718bSRocky Hao status = "okay"; 193ab78718bSRocky Hao}; 194ab78718bSRocky Hao 1950c1f8546SLiang Chen&uart2 { 1960c1f8546SLiang Chen status = "okay"; 1970c1f8546SLiang Chen}; 198d4446793SWilliam Wu 199d4446793SWilliam Wu&u2phy { 200d4446793SWilliam Wu status = "okay"; 201d4446793SWilliam Wu}; 202d4446793SWilliam Wu 203d4446793SWilliam Wu&u2phy_host { 204d4446793SWilliam Wu status = "okay"; 205d4446793SWilliam Wu}; 206d4446793SWilliam Wu 207d4446793SWilliam Wu&u2phy_otg { 208d4446793SWilliam Wu status = "okay"; 209d4446793SWilliam Wu}; 210d4446793SWilliam Wu 211d4446793SWilliam Wu&usb20_otg { 212d4446793SWilliam Wu status = "okay"; 213d4446793SWilliam Wu}; 214d4446793SWilliam Wu 215d4446793SWilliam Wu&usb_host0_ehci { 216d4446793SWilliam Wu status = "okay"; 217d4446793SWilliam Wu}; 218d4446793SWilliam Wu 219d4446793SWilliam Wu&usb_host0_ohci { 220d4446793SWilliam Wu status = "okay"; 221d4446793SWilliam Wu}; 222