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