]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blob - arch/arm64/boot/dts/rockchip/rk3328-evb.dts
Merge branch 'next/dt64' into next/dt
[mirror_ubuntu-bionic-kernel.git] / arch / arm64 / boot / dts / rockchip / rk3328-evb.dts
1 /*
2 * Copyright (c) 2017 Fuzhou Rockchip Electronics Co., Ltd
3 *
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
7 * whole.
8 *
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.
13 *
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.
18 *
19 * Or, alternatively,
20 *
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
28 * conditions:
29 *
30 * The above copyright notice and this permission notice shall be
31 * included in all copies or substantial portions of the Software.
32 *
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.
41 */
42
43 /dts-v1/;
44 #include "rk3328.dtsi"
45
46 / {
47 model = "Rockchip RK3328 EVB";
48 compatible = "rockchip,rk3328-evb", "rockchip,rk3328";
49
50 chosen {
51 stdout-path = "serial2:1500000n8";
52 };
53
54 dc_12v: dc-12v {
55 compatible = "regulator-fixed";
56 regulator-name = "dc_12v";
57 regulator-always-on;
58 regulator-boot-on;
59 regulator-min-microvolt = <12000000>;
60 regulator-max-microvolt = <12000000>;
61 };
62
63 vcc_sys: vcc-sys {
64 compatible = "regulator-fixed";
65 regulator-name = "vcc_sys";
66 regulator-always-on;
67 regulator-boot-on;
68 regulator-min-microvolt = <5000000>;
69 regulator-max-microvolt = <5000000>;
70 vin-supply = <&dc_12v>;
71 };
72 };
73
74 &i2c1 {
75 status = "okay";
76
77 rk805: rk805@18 {
78 compatible = "rockchip,rk805";
79 reg = <0x18>;
80 interrupt-parent = <&gpio2>;
81 interrupts = <6 IRQ_TYPE_LEVEL_LOW>;
82 #clock-cells = <1>;
83 clock-output-names = "xin32k", "rk805-clkout2";
84 gpio-controller;
85 #gpio-cells = <2>;
86 pinctrl-names = "default";
87 pinctrl-0 = <&pmic_int_l>;
88 rockchip,system-power-controller;
89 wakeup-source;
90
91 vcc1-supply = <&vcc_sys>;
92 vcc2-supply = <&vcc_sys>;
93 vcc3-supply = <&vcc_sys>;
94 vcc4-supply = <&vcc_sys>;
95 vcc5-supply = <&vcc_io>;
96 vcc6-supply = <&vcc_io>;
97
98 regulators {
99 vdd_logic: DCDC_REG1 {
100 regulator-name = "vdd_logic";
101 regulator-min-microvolt = <712500>;
102 regulator-max-microvolt = <1450000>;
103 regulator-always-on;
104 regulator-boot-on;
105 regulator-state-mem {
106 regulator-on-in-suspend;
107 regulator-suspend-microvolt = <1000000>;
108 };
109 };
110
111 vdd_arm: DCDC_REG2 {
112 regulator-name = "vdd_arm";
113 regulator-min-microvolt = <712500>;
114 regulator-max-microvolt = <1450000>;
115 regulator-always-on;
116 regulator-boot-on;
117 regulator-state-mem {
118 regulator-on-in-suspend;
119 regulator-suspend-microvolt = <950000>;
120 };
121 };
122
123 vcc_ddr: DCDC_REG3 {
124 regulator-name = "vcc_ddr";
125 regulator-always-on;
126 regulator-boot-on;
127 regulator-state-mem {
128 regulator-on-in-suspend;
129 };
130 };
131
132 vcc_io: DCDC_REG4 {
133 regulator-name = "vcc_io";
134 regulator-min-microvolt = <3300000>;
135 regulator-max-microvolt = <3300000>;
136 regulator-always-on;
137 regulator-boot-on;
138 regulator-state-mem {
139 regulator-on-in-suspend;
140 regulator-suspend-microvolt = <3300000>;
141 };
142 };
143
144 vcc_18: LDO_REG1 {
145 regulator-name = "vcc_18";
146 regulator-min-microvolt = <1800000>;
147 regulator-max-microvolt = <1800000>;
148 regulator-always-on;
149 regulator-boot-on;
150 regulator-state-mem {
151 regulator-on-in-suspend;
152 regulator-suspend-microvolt = <1800000>;
153 };
154 };
155
156 vcc18_emmc: LDO_REG2 {
157 regulator-name = "vcc18_emmc";
158 regulator-min-microvolt = <1800000>;
159 regulator-max-microvolt = <1800000>;
160 regulator-always-on;
161 regulator-boot-on;
162 regulator-state-mem {
163 regulator-on-in-suspend;
164 regulator-suspend-microvolt = <1800000>;
165 };
166 };
167
168 vdd_10: LDO_REG3 {
169 regulator-name = "vdd_10";
170 regulator-min-microvolt = <1000000>;
171 regulator-max-microvolt = <1000000>;
172 regulator-always-on;
173 regulator-boot-on;
174 regulator-state-mem {
175 regulator-on-in-suspend;
176 regulator-suspend-microvolt = <1000000>;
177 };
178 };
179 };
180 };
181 };
182
183 &pinctrl {
184 pmic {
185 pmic_int_l: pmic-int-l {
186 rockchip,pins = <2 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>;
187 };
188 };
189 };
190
191 &tsadc {
192 status = "okay";
193 };
194
195 &uart2 {
196 status = "okay";
197 };
198
199 &u2phy {
200 status = "okay";
201 };
202
203 &u2phy_host {
204 status = "okay";
205 };
206
207 &u2phy_otg {
208 status = "okay";
209 };
210
211 &usb20_otg {
212 status = "okay";
213 };
214
215 &usb_host0_ehci {
216 status = "okay";
217 };
218
219 &usb_host0_ohci {
220 status = "okay";
221 };