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#include "rk3328-sdram-ddr3-666.dtsi" 10#include <dt-bindings/input/input.h> 11 12/ { 13 model = "Rockchip RK3328 EVB"; 14 compatible = "rockchip,rk3328-evb", "rockchip,rk3328"; 15 16 adc-keys { 17 status = "okay"; 18 19 u-boot,dm-pre-reloc; 20 compatible = "adc-keys"; 21 io-channels = <&saradc 0>; 22 io-channel-names = "buttons"; 23 keyup-threshold-microvolt = <1800000>; 24 25 vol-up-key { 26 u-boot,dm-pre-reloc; 27 linux,code = <KEY_VOLUMEUP>; 28 label = "volume up"; 29 press-threshold-microvolt = <10000>; 30 }; 31 }; 32 33 gmac_clkin: external-gmac-clock { 34 compatible = "fixed-clock"; 35 clock-frequency = <125000000>; 36 clock-output-names = "gmac_clkin"; 37 #clock-cells = <0>; 38 }; 39 40 vcc3v3_sdmmc: sdmmc-pwren { 41 compatible = "regulator-fixed"; 42 regulator-name = "vcc3v3"; 43 gpio = <&gpio0 30 GPIO_ACTIVE_LOW>; 44 regulator-always-on; 45 regulator-boot-on; 46 }; 47 48 vcc5v0_otg: vcc5v0-otg-drv { 49 compatible = "regulator-fixed"; 50 enable-active-high; 51 regulator-name = "vcc5v0_otg"; 52 gpio = <&gpio0 27 GPIO_ACTIVE_HIGH>; 53 regulator-min-microvolt = <5000000>; 54 regulator-max-microvolt = <5000000>; 55 }; 56 57 vcc_host_vbus: host-vbus-regulator { 58 compatible = "regulator-fixed"; 59 enable-active-high; 60 regulator-name = "vcc_host_vbus"; 61 gpio = <&gpio0 0 GPIO_ACTIVE_HIGH>; 62 regulator-min-microvolt = <5000000>; 63 regulator-max-microvolt = <5000000>; 64 }; 65 66 vcc_phy: vcc-phy-regulator { 67 compatible = "regulator-fixed"; 68 regulator-name = "vcc_phy"; 69 regulator-always-on; 70 regulator-boot-on; 71 }; 72}; 73 74&uart2 { 75 status = "okay"; 76}; 77 78&sdmmc { 79 bus-width = <4>; 80 cap-mmc-highspeed; 81 cap-sd-highspeed; 82 card-detect-delay = <200>; 83 disable-wp; 84 num-slots = <1>; 85 pinctrl-names = "default"; 86 pinctrl-0 = <&sdmmc0_clk>, <&sdmmc0_cmd>, <&sdmmc0_dectn>, <&sdmmc0_bus4>; 87 vmmc-supply = <&vcc3v3_sdmmc>; 88 status = "okay"; 89}; 90 91&crypto { 92 status = "okay"; 93}; 94 95&emmc { 96 bus-width = <8>; 97 cap-mmc-highspeed; 98 supports-emmc; 99 disable-wp; 100 non-removable; 101 num-slots = <1>; 102 pinctrl-names = "default"; 103 pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_bus8>; 104 status = "okay"; 105}; 106 107&gmac2io { 108 phy-supply = <&vcc_phy>; 109 phy-mode = "rgmii"; 110 clock_in_out = "input"; 111 snps,reset-gpio = <&gpio1 RK_PC2 GPIO_ACTIVE_LOW>; 112 snps,reset-active-low; 113 snps,reset-delays-us = <0 10000 50000>; 114 assigned-clocks = <&cru SCLK_MAC2IO>, <&cru SCLK_MAC2IO_EXT>; 115 assigned-clock-parents = <&gmac_clkin>, <&gmac_clkin>; 116 pinctrl-names = "default"; 117 pinctrl-0 = <&rgmiim1_pins>; 118 tx_delay = <0x26>; 119 rx_delay = <0x11>; 120 status = "okay"; 121}; 122 123&u2phy { 124 status = "okay"; 125}; 126 127&u2phy_otg { 128 status = "okay"; 129}; 130 131&u2phy_host { 132 status = "okay"; 133}; 134 135&u3phy { 136 vbus-supply = <&vcc_host_vbus>; 137 status = "okay"; 138}; 139 140&u3phy_utmi { 141 status = "okay"; 142}; 143 144&u3phy_pipe { 145 status = "okay"; 146}; 147 148&usb_host0_ehci { 149 vbus-supply = <&vcc5v0_otg>; 150 status = "okay"; 151}; 152 153&usb_host0_ohci { 154 status = "okay"; 155}; 156 157&usb20_otg { 158 vbus-supply = <&vcc5v0_otg>; 159 status = "okay"; 160}; 161 162&usbdrd3 { 163 status = "okay"; 164}; 165 166&usbdrd_dwc3 { 167 status = "okay"; 168}; 169 170&i2c1 { 171 clock-frequency = <400000>; 172 i2c-scl-rising-time-ns = <168>; 173 i2c-scl-falling-time-ns = <4>; 174 status = "okay"; 175 176 rk805: pmic@18 { 177 compatible = "rockchip,rk805"; 178 status = "okay"; 179 reg = <0x18>; 180 interrupt-parent = <&gpio2>; 181 interrupts = <6 IRQ_TYPE_LEVEL_LOW>; 182 pinctrl-names = "default"; 183 pinctrl-0 = <&pmic_int_l>; 184 rockchip,system-power-controller; 185 wakeup-source; 186 gpio-controller; 187 #gpio-cells = <2>; 188 #clock-cells = <1>; 189 clock-output-names = "xin32k", "rk805-clkout2"; 190 191 pwrkey { 192 status = "okay"; 193 }; 194 195 regulators { 196 vdd_logic: DCDC_REG1 { 197 regulator-name = "vdd_logic"; 198 regulator-min-microvolt = <712500>; 199 regulator-max-microvolt = <1450000>; 200 regulator-ramp-delay = <6001>; 201 regulator-boot-on; 202 regulator-always-on; 203 regulator-state-mem { 204 regulator-on-in-suspend; 205 regulator-suspend-microvolt = <1000000>; 206 }; 207 }; 208 209 vdd_arm: DCDC_REG2 { 210 regulator-name = "vdd_arm"; 211 regulator-min-microvolt = <712500>; 212 regulator-max-microvolt = <1450000>; 213 regulator-ramp-delay = <6001>; 214 regulator-boot-on; 215 regulator-always-on; 216 regulator-state-mem { 217 regulator-on-in-suspend; 218 regulator-suspend-microvolt = <1000000>; 219 }; 220 }; 221 222 vcc_ddr: DCDC_REG3 { 223 regulator-name = "vcc_ddr"; 224 regulator-boot-on; 225 regulator-always-on; 226 regulator-state-mem { 227 regulator-on-in-suspend; 228 }; 229 }; 230 231 vcc_io: DCDC_REG4 { 232 regulator-name = "vcc_io"; 233 regulator-min-microvolt = <3300000>; 234 regulator-max-microvolt = <3300000>; 235 regulator-boot-on; 236 regulator-always-on; 237 regulator-state-mem { 238 regulator-on-in-suspend; 239 regulator-suspend-microvolt = <3300000>; 240 }; 241 }; 242 243 vdd_18: LDO_REG1 { 244 regulator-name = "vdd_18"; 245 regulator-min-microvolt = <1800000>; 246 regulator-max-microvolt = <1800000>; 247 regulator-boot-on; 248 regulator-always-on; 249 regulator-state-mem { 250 regulator-on-in-suspend; 251 regulator-suspend-microvolt = <1800000>; 252 }; 253 }; 254 255 vcc_18emmc: LDO_REG2 { 256 regulator-name = "vcc_18emmc"; 257 regulator-min-microvolt = <1800000>; 258 regulator-max-microvolt = <1800000>; 259 regulator-boot-on; 260 regulator-always-on; 261 regulator-state-mem { 262 regulator-on-in-suspend; 263 regulator-suspend-microvolt = <1800000>; 264 }; 265 }; 266 267 vdd_10: LDO_REG3 { 268 regulator-name = "vdd_10"; 269 regulator-min-microvolt = <1000000>; 270 regulator-max-microvolt = <1000000>; 271 regulator-boot-on; 272 regulator-always-on; 273 regulator-state-mem { 274 regulator-on-in-suspend; 275 regulator-suspend-microvolt = <1000000>; 276 }; 277 }; 278 }; 279 }; 280}; 281 282&pinctrl { 283 pmic { 284 pmic_int_l: pmic-int-l { 285 rockchip,pins = 286 <2 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>; /* gpio2_a6 */ 287 }; 288 }; 289}; 290 291