1/* 2 * (C) Copyright 2016 Rockchip Electronics Co., Ltd 3 * 4 * SPDX-License-Identifier: GPL-2.0+ 5 */ 6 7/dts-v1/; 8#include "rk3328.dtsi" 9 10/ { 11 model = "Rockchip RK3328 EVB"; 12 compatible = "rockchip,rk3328-evb", "rockchip,rk3328"; 13 14 chosen { 15 stdout-path = &uart2; 16 }; 17 18 vcc3v3_sdmmc: sdmmc-pwren { 19 compatible = "regulator-fixed"; 20 regulator-name = "vcc3v3"; 21 gpio = <&gpio0 30 GPIO_ACTIVE_LOW>; 22 regulator-always-on; 23 regulator-boot-on; 24 }; 25 26 vcc5v0_otg: vcc5v0-otg-drv { 27 compatible = "regulator-fixed"; 28 enable-active-high; 29 regulator-name = "vcc5v0_otg"; 30 gpio = <&gpio0 27 GPIO_ACTIVE_HIGH>; 31 regulator-min-microvolt = <5000000>; 32 regulator-max-microvolt = <5000000>; 33 }; 34 35 vcc5v0_host_xhci: vcc5v0-host-xhci-drv { 36 compatible = "regulator-fixed"; 37 enable-active-high; 38 regulator-name = "vcc5v0_host_xhci"; 39 gpio = <&gpio0 0 GPIO_ACTIVE_HIGH>; 40 regulator-min-microvolt = <5000000>; 41 regulator-max-microvolt = <5000000>; 42 }; 43}; 44 45&saradc { 46 status = "okay"; 47}; 48 49&uart2 { 50 status = "okay"; 51}; 52 53&sdmmc { 54 bus-width = <4>; 55 cap-mmc-highspeed; 56 cap-sd-highspeed; 57 card-detect-delay = <200>; 58 disable-wp; 59 num-slots = <1>; 60 pinctrl-names = "default"; 61 pinctrl-0 = <&sdmmc0_clk>, <&sdmmc0_cmd>, <&sdmmc0_dectn>, <&sdmmc0_bus4>; 62 status = "okay"; 63}; 64 65&emmc { 66 bus-width = <8>; 67 cap-mmc-highspeed; 68 supports-emmc; 69 disable-wp; 70 non-removable; 71 num-slots = <1>; 72 pinctrl-names = "default"; 73 pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_bus8>; 74 status = "okay"; 75}; 76 77&u2phy { 78 status = "okay"; 79}; 80 81&u2phy_otg { 82 status = "okay"; 83}; 84 85&u2phy_host { 86 status = "okay"; 87}; 88 89&usb_host0_ehci { 90 status = "okay"; 91}; 92 93&usb_host0_ohci { 94 status = "okay"; 95}; 96 97&usb20_otg { 98 vbus-supply = <&vcc5v0_otg>; 99 status = "okay"; 100}; 101 102&usb_host0_xhci { 103 vbus-supply = <&vcc5v0_host_xhci>; 104 status = "okay"; 105}; 106 107&i2c1 { 108 clock-frequency = <400000>; 109 i2c-scl-rising-time-ns = <168>; 110 i2c-scl-falling-time-ns = <4>; 111 status = "okay"; 112 113 rk805: pmic@18 { 114 compatible = "rockchip,rk805"; 115 status = "okay"; 116 reg = <0x18>; 117 interrupt-parent = <&gpio2>; 118 interrupts = <6 IRQ_TYPE_LEVEL_LOW>; 119 pinctrl-names = "default"; 120 pinctrl-0 = <&pmic_int_l>; 121 rockchip,system-power-controller; 122 wakeup-source; 123 gpio-controller; 124 #gpio-cells = <2>; 125 #clock-cells = <1>; 126 clock-output-names = "xin32k", "rk805-clkout2"; 127 128 pwrkey { 129 status = "okay"; 130 }; 131 132 regulators { 133 vdd_logic: DCDC_REG1 { 134 regulator-name = "vdd_logic"; 135 regulator-min-microvolt = <712500>; 136 regulator-max-microvolt = <1450000>; 137 regulator-ramp-delay = <6001>; 138 regulator-boot-on; 139 regulator-always-on; 140 regulator-state-mem { 141 regulator-on-in-suspend; 142 regulator-suspend-microvolt = <1000000>; 143 }; 144 }; 145 146 vdd_arm: DCDC_REG2 { 147 regulator-name = "vdd_arm"; 148 regulator-min-microvolt = <712500>; 149 regulator-max-microvolt = <1450000>; 150 regulator-ramp-delay = <6001>; 151 regulator-boot-on; 152 regulator-always-on; 153 regulator-state-mem { 154 regulator-on-in-suspend; 155 regulator-suspend-microvolt = <1000000>; 156 }; 157 }; 158 159 vcc_ddr: DCDC_REG3 { 160 regulator-name = "vcc_ddr"; 161 regulator-boot-on; 162 regulator-always-on; 163 regulator-state-mem { 164 regulator-on-in-suspend; 165 }; 166 }; 167 168 vcc_io: DCDC_REG4 { 169 regulator-name = "vcc_io"; 170 regulator-min-microvolt = <3300000>; 171 regulator-max-microvolt = <3300000>; 172 regulator-boot-on; 173 regulator-always-on; 174 regulator-state-mem { 175 regulator-on-in-suspend; 176 regulator-suspend-microvolt = <3300000>; 177 }; 178 }; 179 180 vdd_18: LDO_REG1 { 181 regulator-name = "vdd_18"; 182 regulator-min-microvolt = <1800000>; 183 regulator-max-microvolt = <1800000>; 184 regulator-boot-on; 185 regulator-always-on; 186 regulator-state-mem { 187 regulator-on-in-suspend; 188 regulator-suspend-microvolt = <1800000>; 189 }; 190 }; 191 192 vcc_18emmc: LDO_REG2 { 193 regulator-name = "vcc_18emmc"; 194 regulator-min-microvolt = <1800000>; 195 regulator-max-microvolt = <1800000>; 196 regulator-boot-on; 197 regulator-always-on; 198 regulator-state-mem { 199 regulator-on-in-suspend; 200 regulator-suspend-microvolt = <1800000>; 201 }; 202 }; 203 204 vdd_10: LDO_REG3 { 205 regulator-name = "vdd_10"; 206 regulator-min-microvolt = <1000000>; 207 regulator-max-microvolt = <1000000>; 208 regulator-boot-on; 209 regulator-always-on; 210 regulator-state-mem { 211 regulator-on-in-suspend; 212 regulator-suspend-microvolt = <1000000>; 213 }; 214 }; 215 }; 216 }; 217}; 218 219&pinctrl { 220 pmic { 221 pmic_int_l: pmic-int-l { 222 rockchip,pins = 223 <2 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>; /* gpio2_a6 */ 224 }; 225 }; 226}; 227 228