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