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&uart2 { 46 status = "okay"; 47}; 48 49&sdmmc { 50 bus-width = <4>; 51 cap-mmc-highspeed; 52 cap-sd-highspeed; 53 card-detect-delay = <200>; 54 disable-wp; 55 num-slots = <1>; 56 pinctrl-names = "default"; 57 pinctrl-0 = <&sdmmc0_clk>, <&sdmmc0_cmd>, <&sdmmc0_dectn>, <&sdmmc0_bus4>; 58 status = "okay"; 59}; 60 61&emmc { 62 bus-width = <8>; 63 cap-mmc-highspeed; 64 supports-emmc; 65 disable-wp; 66 non-removable; 67 num-slots = <1>; 68 pinctrl-names = "default"; 69 pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_bus8>; 70 status = "okay"; 71}; 72 73&usb_host0_ehci { 74 status = "okay"; 75}; 76 77&usb_host0_ohci { 78 status = "okay"; 79}; 80 81&usb20_otg { 82 vbus-supply = <&vcc5v0_otg>; 83 status = "okay"; 84}; 85 86&usb_host0_xhci { 87 vbus-supply = <&vcc5v0_host_xhci>; 88 status = "okay"; 89}; 90 91&i2c1 { 92 clock-frequency = <400000>; 93 i2c-scl-rising-time-ns = <168>; 94 i2c-scl-falling-time-ns = <4>; 95 status = "okay"; 96 97 rk805: pmic@18 { 98 compatible = "rockchip,rk805"; 99 status = "okay"; 100 reg = <0x18>; 101 interrupt-parent = <&gpio2>; 102 interrupts = <6 IRQ_TYPE_LEVEL_LOW>; 103 pinctrl-names = "default"; 104 pinctrl-0 = <&pmic_int_l>; 105 rockchip,system-power-controller; 106 wakeup-source; 107 gpio-controller; 108 #gpio-cells = <2>; 109 #clock-cells = <1>; 110 clock-output-names = "xin32k", "rk805-clkout2"; 111 112 regulators { 113 vdd_logic: DCDC_REG1 { 114 regulator-name = "vdd_logic"; 115 regulator-min-microvolt = <712500>; 116 regulator-max-microvolt = <1450000>; 117 regulator-ramp-delay = <6001>; 118 regulator-boot-on; 119 regulator-always-on; 120 regulator-state-mem { 121 regulator-on-in-suspend; 122 regulator-suspend-microvolt = <1000000>; 123 }; 124 }; 125 126 vdd_arm: DCDC_REG2 { 127 regulator-name = "vdd_arm"; 128 regulator-min-microvolt = <712500>; 129 regulator-max-microvolt = <1450000>; 130 regulator-ramp-delay = <6001>; 131 regulator-boot-on; 132 regulator-always-on; 133 regulator-state-mem { 134 regulator-on-in-suspend; 135 regulator-suspend-microvolt = <1000000>; 136 }; 137 }; 138 139 vcc_ddr: DCDC_REG3 { 140 regulator-name = "vcc_ddr"; 141 regulator-boot-on; 142 regulator-always-on; 143 regulator-state-mem { 144 regulator-on-in-suspend; 145 }; 146 }; 147 148 vcc_io: DCDC_REG4 { 149 regulator-name = "vcc_io"; 150 regulator-min-microvolt = <3300000>; 151 regulator-max-microvolt = <3300000>; 152 regulator-boot-on; 153 regulator-always-on; 154 regulator-state-mem { 155 regulator-on-in-suspend; 156 regulator-suspend-microvolt = <3300000>; 157 }; 158 }; 159 160 vdd_18: LDO_REG1 { 161 regulator-name = "vdd_18"; 162 regulator-min-microvolt = <1800000>; 163 regulator-max-microvolt = <1800000>; 164 regulator-boot-on; 165 regulator-always-on; 166 regulator-state-mem { 167 regulator-on-in-suspend; 168 regulator-suspend-microvolt = <1800000>; 169 }; 170 }; 171 172 vcc_18emmc: LDO_REG2 { 173 regulator-name = "vcc_18emmc"; 174 regulator-min-microvolt = <1800000>; 175 regulator-max-microvolt = <1800000>; 176 regulator-boot-on; 177 regulator-always-on; 178 regulator-state-mem { 179 regulator-on-in-suspend; 180 regulator-suspend-microvolt = <1800000>; 181 }; 182 }; 183 184 vdd_10: LDO_REG3 { 185 regulator-name = "vdd_10"; 186 regulator-min-microvolt = <1000000>; 187 regulator-max-microvolt = <1000000>; 188 regulator-boot-on; 189 regulator-always-on; 190 regulator-state-mem { 191 regulator-on-in-suspend; 192 regulator-suspend-microvolt = <1000000>; 193 }; 194 }; 195 }; 196 }; 197}; 198 199&pinctrl { 200 pmic { 201 pmic_int_l: pmic-int-l { 202 rockchip,pins = 203 <2 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>; /* gpio2_a6 */ 204 }; 205 }; 206}; 207 208