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