2 * Copyright (c) 2017 Fuzhou Rockchip Electronics Co., Ltd
4 * This file is dual-licensed: you can use it either under the terms
5 * of the GPL or the X11 license, at your option. Note that this dual
6 * licensing only applies to this file, and not this project as a
9 * a) This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License as
11 * published by the Free Software Foundation; either version 2 of the
12 * License, or (at your option) any later version.
14 * This library is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
21 * b) Permission is hereby granted, free of charge, to any person
22 * obtaining a copy of this software and associated documentation
23 * files (the "Software"), to deal in the Software without
24 * restriction, including without limitation the rights to use,
25 * copy, modify, merge, publish, distribute, sublicense, and/or
26 * sell copies of the Software, and to permit persons to whom the
27 * Software is furnished to do so, subject to the following
30 * The above copyright notice and this permission notice shall be
31 * included in all copies or substantial portions of the Software.
33 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
34 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
35 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
36 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
37 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
38 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
39 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
40 * OTHER DEALINGS IN THE SOFTWARE.
44 #include "rk3328.dtsi"
47 model = "Rockchip RK3328 EVB";
48 compatible = "rockchip,rk3328-evb", "rockchip,rk3328";
51 stdout-path = "serial2:1500000n8";
55 compatible = "regulator-fixed";
56 regulator-name = "dc_12v";
59 regulator-min-microvolt = <12000000>;
60 regulator-max-microvolt = <12000000>;
63 sdio_pwrseq: sdio-pwrseq {
64 compatible = "mmc-pwrseq-simple";
65 pinctrl-names = "default";
66 pinctrl-0 = <&wifi_enable_h>;
69 * On the module itself this is one of these (depending
70 * on the actual card populated):
71 * - SDIO_RESET_L_WL_REG_ON
72 * - PDN (power down when low)
74 reset-gpios = <&gpio1 18 GPIO_ACTIVE_LOW>;
77 vcc_sd: sdmmc-regulator {
78 compatible = "regulator-fixed";
79 gpio = <&gpio0 30 GPIO_ACTIVE_LOW>;
80 pinctrl-names = "default";
81 pinctrl-0 = <&sdmmc0m1_gpio>;
82 regulator-name = "vcc_sd";
83 regulator-min-microvolt = <3300000>;
84 regulator-max-microvolt = <3300000>;
85 vin-supply = <&vcc_io>;
89 compatible = "regulator-fixed";
90 regulator-name = "vcc_sys";
93 regulator-min-microvolt = <5000000>;
94 regulator-max-microvolt = <5000000>;
95 vin-supply = <&dc_12v>;
98 vcc_phy: vcc-phy-regulator {
99 compatible = "regulator-fixed";
100 regulator-name = "vcc_phy";
107 cpu-supply = <&vdd_arm>;
114 pinctrl-names = "default";
115 pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_bus8>;
120 phy-supply = <&vcc_phy>;
121 clock_in_out = "output";
122 assigned-clocks = <&cru SCLK_MAC2PHY_SRC>;
123 assigned-clock-rate = <50000000>;
124 assigned-clocks = <&cru SCLK_MAC2PHY>;
125 assigned-clock-parents = <&cru SCLK_MAC2PHY_SRC>;
133 compatible = "rockchip,rk805";
135 interrupt-parent = <&gpio2>;
136 interrupts = <6 IRQ_TYPE_LEVEL_LOW>;
138 clock-output-names = "xin32k", "rk805-clkout2";
141 pinctrl-names = "default";
142 pinctrl-0 = <&pmic_int_l>;
143 rockchip,system-power-controller;
146 vcc1-supply = <&vcc_sys>;
147 vcc2-supply = <&vcc_sys>;
148 vcc3-supply = <&vcc_sys>;
149 vcc4-supply = <&vcc_sys>;
150 vcc5-supply = <&vcc_io>;
151 vcc6-supply = <&vcc_io>;
154 vdd_logic: DCDC_REG1 {
155 regulator-name = "vdd_logic";
156 regulator-min-microvolt = <712500>;
157 regulator-max-microvolt = <1450000>;
160 regulator-state-mem {
161 regulator-on-in-suspend;
162 regulator-suspend-microvolt = <1000000>;
167 regulator-name = "vdd_arm";
168 regulator-min-microvolt = <712500>;
169 regulator-max-microvolt = <1450000>;
172 regulator-state-mem {
173 regulator-on-in-suspend;
174 regulator-suspend-microvolt = <950000>;
179 regulator-name = "vcc_ddr";
182 regulator-state-mem {
183 regulator-on-in-suspend;
188 regulator-name = "vcc_io";
189 regulator-min-microvolt = <3300000>;
190 regulator-max-microvolt = <3300000>;
193 regulator-state-mem {
194 regulator-on-in-suspend;
195 regulator-suspend-microvolt = <3300000>;
200 regulator-name = "vcc_18";
201 regulator-min-microvolt = <1800000>;
202 regulator-max-microvolt = <1800000>;
205 regulator-state-mem {
206 regulator-on-in-suspend;
207 regulator-suspend-microvolt = <1800000>;
211 vcc18_emmc: LDO_REG2 {
212 regulator-name = "vcc18_emmc";
213 regulator-min-microvolt = <1800000>;
214 regulator-max-microvolt = <1800000>;
217 regulator-state-mem {
218 regulator-on-in-suspend;
219 regulator-suspend-microvolt = <1800000>;
224 regulator-name = "vdd_10";
225 regulator-min-microvolt = <1000000>;
226 regulator-max-microvolt = <1000000>;
229 regulator-state-mem {
230 regulator-on-in-suspend;
231 regulator-suspend-microvolt = <1000000>;
240 pmic_int_l: pmic-int-l {
241 rockchip,pins = <2 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>;
246 wifi_enable_h: wifi-enable-h {
248 <1 18 RK_FUNC_GPIO &pcfg_pull_none>;
257 keep-power-in-suspend;
258 max-frequency = <150000000>;
259 mmc-pwrseq = <&sdio_pwrseq>;
261 pinctrl-names = "default";
262 pinctrl-0 = <&sdmmc1_bus4 &sdmmc1_cmd &sdmmc1_clk>;
271 max-frequency = <150000000>;
272 pinctrl-names = "default";
273 pinctrl-0 = <&sdmmc0_clk &sdmmc0_cmd &sdmmc0_dectn &sdmmc0_bus4>;
274 vmmc-supply = <&vcc_sd>;