Merge tag 'u-boot-rockchip-20201031' of https://gitlab.denx.de/u-boot/custodians...
[platform/kernel/u-boot.git] / arch / arm / dts / rk3328-rock-pi-e.dts
1 // SPDX-License-Identifier: GPL-2.0+
2 /*
3  * (C) Copyright 2020 Radxa
4  */
5
6 /dts-v1/;
7 #include "rk3328.dtsi"
8
9 / {
10         model = "Radxa Rockpi E";
11         compatible = "radxa,rock-pi-e", "rockchip,rk3328";
12
13         chosen {
14         stdout-path = "serial2:1500000n8";
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         vcc_sd: sdmmc-regulator {
25         compatible = "regulator-fixed";
26         gpio = <&gpio0 RK_PD6 GPIO_ACTIVE_LOW>;
27         pinctrl-names = "default";
28         pinctrl-0 = <&sdmmc0m1_gpio>;
29         regulator-name = "vcc_sd";
30         regulator-always-on;
31         regulator-boot-on;
32         regulator-min-microvolt = <3300000>;
33         regulator-max-microvolt = <3300000>;
34         vin-supply = <&vcc_io>;
35         };
36
37         vcc5v0_host_xhci: vcc5v0-host-xhci-drv {
38         compatible = "regulator-fixed";
39         enable-active-high;
40         regulator-name = "vcc5v0_host_xhci";
41         gpio = <&gpio3 RK_PA7 GPIO_ACTIVE_HIGH>;
42         regulator-min-microvolt = <5000000>;
43         regulator-max-microvolt = <5000000>;
44         };
45
46         vcc_sys: vcc-sys {
47         compatible = "regulator-fixed";
48         regulator-name = "vcc_sys";
49         regulator-always-on;
50         regulator-boot-on;
51         regulator-min-microvolt = <5000000>;
52         regulator-max-microvolt = <5000000>;
53         };
54 };
55
56 &cpu0 {
57         cpu-supply = <&vdd_arm>;
58 };
59
60 &cpu1 {
61         cpu-supply = <&vdd_arm>;
62 };
63
64 &cpu2 {
65         cpu-supply = <&vdd_arm>;
66 };
67
68 &cpu3 {
69         cpu-supply = <&vdd_arm>;
70 };
71
72 &emmc {
73         bus-width = <8>;
74         cap-mmc-highspeed;
75         mmc-hs200-1_8v;
76         supports-emmc;
77         disable-wp;
78         non-removable;
79         num-slots = <1>;
80         pinctrl-names = "default";
81         pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_bus8>;
82         vmmc-supply = <&vcc_io>;
83         vqmmc-supply = <&vcc18_emmc>;
84         status = "okay";
85 };
86
87 &gmac2io {
88         assigned-clocks = <&cru SCLK_MAC2IO>, <&cru SCLK_MAC2IO_EXT>;
89         assigned-clock-parents = <&gmac_clkin>, <&gmac_clkin>;
90         clock_in_out = "input";
91         phy-supply = <&vcc_io>;
92         phy-mode = "rgmii";
93         pinctrl-names = "default";
94         pinctrl-0 = <&rgmiim1_pins>;
95         snps,force_thresh_dma_mode;
96         snps,reset-gpio = <&gpio1 RK_PC2 GPIO_ACTIVE_LOW>;
97         snps,reset-active-low;
98         snps,reset-delays-us = <0 10000 50000>;
99         tx_delay = <0x26>;
100         rx_delay = <0x11>;
101         status = "okay";
102 };
103
104 &i2c1 {
105         status = "okay";
106
107         rk805: rk805@18 {
108         compatible = "rockchip,rk805";
109         status = "okay";
110         reg = <0x18>;
111         interrupt-parent = <&gpio2>;
112         interrupts = <6 IRQ_TYPE_LEVEL_LOW>;
113         #clock-cells = <1>;
114         clock-output-names = "xin32k", "rk805-clkout2";
115         pinctrl-names = "default";
116         pinctrl-0 = <&pmic_int_l>;
117         rockchip,system-power-controller;
118         wakeup-source;
119
120         vcc1-supply = <&vcc_sys>;
121         vcc2-supply = <&vcc_sys>;
122         vcc3-supply = <&vcc_sys>;
123         vcc4-supply = <&vcc_sys>;
124         vcc5-supply = <&vcc_io>;
125         vcc6-supply = <&vcc_sys>;
126
127         regulators {
128         vdd_logic: DCDC_REG1 {
129         regulator-name = "vdd_logic";
130         regulator-min-microvolt = <712500>;
131         regulator-max-microvolt = <1450000>;
132         regulator-ramp-delay = <12500>;
133         regulator-always-on;
134         regulator-boot-on;
135         regulator-state-mem {
136         regulator-on-in-suspend;
137         regulator-suspend-microvolt = <1000000>;
138         };
139         };
140
141         vdd_arm: DCDC_REG2 {
142         regulator-name = "vdd_arm";
143         regulator-min-microvolt = <712500>;
144         regulator-max-microvolt = <1450000>;
145         regulator-ramp-delay = <12500>;
146         regulator-always-on;
147         regulator-boot-on;
148         regulator-state-mem {
149         regulator-on-in-suspend;
150         regulator-suspend-microvolt = <950000>;
151         };
152         };
153
154         vcc_ddr: DCDC_REG3 {
155         regulator-name = "vcc_ddr";
156         regulator-always-on;
157         regulator-boot-on;
158         regulator-state-mem {
159         regulator-on-in-suspend;
160         };
161         };
162
163         vcc_io: DCDC_REG4 {
164         regulator-name = "vcc_io";
165         regulator-min-microvolt = <3300000>;
166         regulator-max-microvolt = <3300000>;
167         regulator-always-on;
168         regulator-boot-on;
169         regulator-state-mem {
170         regulator-on-in-suspend;
171         regulator-suspend-microvolt = <3300000>;
172         };
173         };
174
175         vcc_18: LDO_REG1 {
176         regulator-name = "vcc_18";
177         regulator-min-microvolt = <1800000>;
178         regulator-max-microvolt = <1800000>;
179         regulator-always-on;
180         regulator-boot-on;
181         regulator-state-mem {
182         regulator-on-in-suspend;
183         regulator-suspend-microvolt = <1800000>;
184         };
185         };
186
187         vcc18_emmc: LDO_REG2 {
188         regulator-name = "vcc18_emmc";
189         regulator-min-microvolt = <1800000>;
190         regulator-max-microvolt = <1800000>;
191         regulator-always-on;
192         regulator-boot-on;
193         regulator-state-mem {
194         regulator-on-in-suspend;
195         regulator-suspend-microvolt = <1800000>;
196         };
197         };
198
199         vdd_10: LDO_REG3 {
200         regulator-name = "vdd_10";
201         regulator-min-microvolt = <1000000>;
202         regulator-max-microvolt = <1000000>;
203         regulator-always-on;
204         regulator-boot-on;
205         regulator-state-mem {
206         regulator-on-in-suspend;
207         regulator-suspend-microvolt = <1000000>;
208         };
209         };
210         };
211         };
212 };
213
214 &io_domains {
215         status = "okay";
216
217         vccio1-supply = <&vcc_io>;
218         vccio2-supply = <&vcc18_emmc>;
219         vccio3-supply = <&vcc_io>;
220         vccio4-supply = <&vcc_io>;
221         vccio5-supply = <&vcc_io>;
222         vccio6-supply = <&vcc_io>;
223         pmuio-supply = <&vcc_io>;
224 };
225
226 &pinctrl {
227         pmic {
228         pmic_int_l: pmic-int-l {
229         rockchip,pins = <2 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>;
230         };
231         };
232 };
233
234 &sdmmc {
235         bus-width = <4>;
236         cap-mmc-highspeed;
237         cap-sd-highspeed;
238         card-detect-delay = <200>;
239         disable-wp;
240         max-frequency = <150000000>;
241         num-slots = <1>;
242         pinctrl-names = "default";
243         pinctrl-0 = <&sdmmc0_clk &sdmmc0_cmd &sdmmc0_dectn &sdmmc0_bus4>;
244         supports-sd;
245         vmmc-supply = <&vcc_sd>;
246         status = "okay";
247 };
248
249 &saradc {
250         status = "okay";
251 };
252
253 &uart2 {
254         status = "okay";
255 };
256
257 &usb20_otg {
258         status = "okay";
259 };
260
261 &usb_host0_ehci {
262         status = "okay";
263 };
264
265 &usb_host0_ohci {
266         status = "okay";
267 };