Merge tag 'powerpc-4.6-1' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc...
[deliverable/linux.git] / arch / arm / boot / dts / rk3036-kylin.dts
1 /*
2 * This file is dual-licensed: you can use it either under the terms
3 * of the GPL or the X11 license, at your option. Note that this dual
4 * licensing only applies to this file, and not this project as a
5 * whole.
6 *
7 * a) This file is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License as
9 * published by the Free Software Foundation; either version 2 of the
10 * License, or (at your option) any later version.
11 *
12 * This file is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * Or, alternatively,
18 *
19 * b) Permission is hereby granted, free of charge, to any person
20 * obtaining a copy of this software and associated documentation
21 * files (the "Software"), to deal in the Software without
22 * restriction, including without limitation the rights to use,
23 * copy, modify, merge, publish, distribute, sublicense, and/or
24 * sell copies of the Software, and to permit persons to whom the
25 * Software is furnished to do so, subject to the following
26 * conditions:
27 *
28 * The above copyright notice and this permission notice shall be
29 * included in all copies or substantial portions of the Software.
30 *
31 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
32 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
33 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
34 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
35 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
36 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
37 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
38 * OTHER DEALINGS IN THE SOFTWARE.
39 */
40
41 /dts-v1/;
42
43 #include "rk3036.dtsi"
44
45 / {
46 model = "Rockchip RK3036 KylinBoard";
47 compatible = "rockchip,rk3036-kylin", "rockchip,rk3036";
48
49 vcc_sys: vsys-regulator {
50 compatible = "regulator-fixed";
51 regulator-name = "vcc_sys";
52 regulator-min-microvolt = <5000000>;
53 regulator-max-microvolt = <5000000>;
54 regulator-always-on;
55 regulator-boot-on;
56 };
57 };
58
59 &acodec {
60 status = "okay";
61 };
62
63 &emac {
64 pinctrl-names = "default";
65 pinctrl-0 = <&emac_xfer>, <&emac_mdio>;
66 phy = <&phy0>;
67 phy-reset-gpios = <&gpio2 22 GPIO_ACTIVE_LOW>; /* PHY_RST */
68 phy-reset-duration = <10>; /* millisecond */
69
70 status = "okay";
71
72 phy0: ethernet-phy@0 {
73 reg = <0>;
74 };
75 };
76
77 &emmc {
78 status = "okay";
79 };
80
81 &i2c1 {
82 clock-frequency = <400000>;
83
84 status = "okay";
85
86 rk808: pmic@1b {
87 compatible = "rockchip,rk808";
88 reg = <0x1b>;
89 interrupt-parent = <&gpio2>;
90 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
91 pinctrl-names = "default";
92 pinctrl-0 = <&pmic_int &global_pwroff>;
93 rockchip,system-power-controller;
94 wakeup-source;
95 #clock-cells = <1>;
96 clock-output-names = "xin32k", "rk808-clkout2";
97
98 vcc1-supply = <&vcc_sys>;
99 vcc2-supply = <&vcc_sys>;
100 vcc3-supply = <&vcc_sys>;
101 vcc4-supply = <&vcc_sys>;
102 vcc6-supply = <&vcc_sys>;
103 vcc7-supply = <&vcc_sys>;
104 vcc8-supply = <&vcc_18>;
105 vcc9-supply = <&vcc_io>;
106 vcc10-supply = <&vcc_io>;
107 vcc11-supply = <&vcc_sys>;
108 vcc12-supply = <&vcc_io>;
109 vddio-supply = <&vccio_pmu>;
110
111 regulators {
112 vdd_cpu: DCDC_REG1 {
113 regulator-always-on;
114 regulator-boot-on;
115 regulator-min-microvolt = <750000>;
116 regulator-max-microvolt = <1350000>;
117 regulator-name = "vdd_arm";
118 regulator-state-mem {
119 regulator-off-in-suspend;
120 };
121 };
122
123 vdd_gpu: DCDC_REG2 {
124 regulator-always-on;
125 regulator-boot-on;
126 regulator-min-microvolt = <850000>;
127 regulator-max-microvolt = <1250000>;
128 regulator-name = "vdd_gpu";
129 regulator-state-mem {
130 regulator-on-in-suspend;
131 regulator-suspend-microvolt = <1000000>;
132 };
133 };
134
135 vcc_ddr: DCDC_REG3 {
136 regulator-always-on;
137 regulator-boot-on;
138 regulator-name = "vcc_ddr";
139 regulator-state-mem {
140 regulator-on-in-suspend;
141 };
142 };
143
144 vcc_io: DCDC_REG4 {
145 regulator-always-on;
146 regulator-boot-on;
147 regulator-min-microvolt = <3300000>;
148 regulator-max-microvolt = <3300000>;
149 regulator-name = "vcc_io";
150 regulator-state-mem {
151 regulator-on-in-suspend;
152 regulator-suspend-microvolt = <3300000>;
153 };
154 };
155
156 vccio_pmu: LDO_REG1 {
157 regulator-always-on;
158 regulator-boot-on;
159 regulator-min-microvolt = <3300000>;
160 regulator-max-microvolt = <3300000>;
161 regulator-name = "vccio_pmu";
162 regulator-state-mem {
163 regulator-on-in-suspend;
164 regulator-suspend-microvolt = <3300000>;
165 };
166 };
167
168 vcc_tp: LDO_REG2 {
169 regulator-always-on;
170 regulator-boot-on;
171 regulator-min-microvolt = <3300000>;
172 regulator-max-microvolt = <3300000>;
173 regulator-name = "vcc_tp";
174 regulator-state-mem {
175 regulator-off-in-suspend;
176 };
177 };
178
179 vdd_10: LDO_REG3 {
180 regulator-always-on;
181 regulator-boot-on;
182 regulator-min-microvolt = <1000000>;
183 regulator-max-microvolt = <1000000>;
184 regulator-name = "vdd_10";
185 regulator-state-mem {
186 regulator-on-in-suspend;
187 regulator-suspend-microvolt = <1000000>;
188 };
189 };
190
191 vcc18_lcd: LDO_REG4 {
192 regulator-always-on;
193 regulator-boot-on;
194 regulator-min-microvolt = <1800000>;
195 regulator-max-microvolt = <1800000>;
196 regulator-name = "vcc18_lcd";
197 regulator-state-mem {
198 regulator-on-in-suspend;
199 regulator-suspend-microvolt = <1800000>;
200 };
201 };
202
203 vccio_sd: LDO_REG5 {
204 regulator-always-on;
205 regulator-boot-on;
206 regulator-min-microvolt = <1800000>;
207 regulator-max-microvolt = <3300000>;
208 regulator-name = "vccio_sd";
209 regulator-state-mem {
210 regulator-on-in-suspend;
211 regulator-suspend-microvolt = <3300000>;
212 };
213 };
214
215 vout5: LDO_REG6 {
216 regulator-always-on;
217 regulator-boot-on;
218 regulator-min-microvolt = <1800000>;
219 regulator-max-microvolt = <2500000>;
220 regulator-name = "vout5";
221 regulator-state-mem {
222 regulator-on-in-suspend;
223 regulator-suspend-microvolt = <1800000>;
224 };
225 };
226
227 vcc_18: LDO_REG7 {
228 regulator-always-on;
229 regulator-boot-on;
230 regulator-min-microvolt = <1800000>;
231 regulator-max-microvolt = <1800000>;
232 regulator-name = "vcc_18";
233 regulator-state-mem {
234 regulator-on-in-suspend;
235 regulator-suspend-microvolt = <1800000>;
236 };
237 };
238
239 vcca_codec: LDO_REG8 {
240 regulator-always-on;
241 regulator-boot-on;
242 regulator-min-microvolt = <1800000>;
243 regulator-max-microvolt = <1800000>;
244 regulator-name = "vcca_codec";
245 regulator-state-mem {
246 regulator-on-in-suspend;
247 regulator-suspend-microvolt = <1800000>;
248 };
249 };
250
251 vcc_wl: SWITCH_REG1 {
252 regulator-always-on;
253 regulator-boot-on;
254 regulator-name = "vcc_wl";
255 regulator-state-mem {
256 regulator-on-in-suspend;
257 };
258 };
259
260 vcc_lcd: SWITCH_REG2 {
261 regulator-always-on;
262 regulator-boot-on;
263 regulator-name = "vcc_lcd";
264 regulator-state-mem {
265 regulator-on-in-suspend;
266 };
267 };
268 };
269 };
270 };
271
272 &i2c2 {
273 status = "okay";
274 };
275
276 &sdio {
277 status = "okay";
278
279 broken-cd;
280 bus-width = <4>;
281 cap-sdio-irq;
282 default-sample-phase = <90>;
283 keep-power-in-suspend;
284 non-removable;
285 num-slots = <1>;
286 pinctrl-names = "default";
287 pinctrl-0 = <&sdio_clk &sdio_cmd &sdio_bus4>;
288 };
289
290 &uart2 {
291 status = "okay";
292 };
293
294 &usb_host {
295 status = "okay";
296 };
297
298 &usb_otg {
299 status = "okay";
300 };
301
302 &pinctrl {
303 pmic {
304 pmic_int: pmic-int {
305 rockchip,pins = <2 2 RK_FUNC_GPIO &pcfg_pull_default>;
306 };
307 };
308
309 sleep {
310 global_pwroff: global-pwroff {
311 rockchip,pins = <2 7 RK_FUNC_1 &pcfg_pull_none>;
312 };
313 };
314 };
This page took 0.068506 seconds and 6 git commands to generate.