Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
[linux-2.6-block.git] / arch / arm / boot / dts / rk3288-rock2-som.dtsi
CommitLineData
44d5039a
SS
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#include <dt-bindings/pwm/pwm.h>
42#include "rk3288.dtsi"
43
44/ {
0b639b81 45 memory@0 {
79db45be 46 reg = <0x0 0x0 0x0 0x80000000>;
44d5039a
SS
47 device_type = "memory";
48 };
49
50 emmc_pwrseq: emmc-pwrseq {
51 compatible = "mmc-pwrseq-emmc";
52 pinctrl-0 = <&emmc_reset>;
53 pinctrl-names = "default";
e9e79d53 54 reset-gpios = <&gpio3 RK_PB1 GPIO_ACTIVE_LOW>;
44d5039a
SS
55 };
56
57 ext_gmac: external-gmac-clock {
58 compatible = "fixed-clock";
59 #clock-cells = <0>;
60 clock-frequency = <125000000>;
61 clock-output-names = "ext_gmac";
62 };
63
30c4cbcd
SS
64 vcc_flash: flash-regulator {
65 compatible = "regulator-fixed";
66 regulator-name = "vcc_sys";
67 regulator-min-microvolt = <1800000>;
68 regulator-max-microvolt = <1800000>;
69 startup-delay-us = <150>;
70 vin-supply = <&vcc_io>;
71 };
72
44d5039a
SS
73 vcc_sys: vsys-regulator {
74 compatible = "regulator-fixed";
75 regulator-name = "vcc_sys";
76 regulator-min-microvolt = <5000000>;
77 regulator-max-microvolt = <5000000>;
78 regulator-always-on;
79 regulator-boot-on;
80 };
81};
82
83&cpu0 {
84 cpu0-supply = <&vdd_cpu>;
85};
86
87&emmc {
88 bus-width = <8>;
89 cap-mmc-highspeed;
90 disable-wp;
91 non-removable;
44d5039a
SS
92 mmc-pwrseq = <&emmc_pwrseq>;
93 pinctrl-names = "default";
94 pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_bus8>;
95 vmmc-supply = <&vcc_io>;
30c4cbcd 96 vqmmc-supply = <&vcc_flash>;
44d5039a
SS
97 status = "okay";
98};
99
100&gmac {
101 assigned-clocks = <&cru SCLK_MAC>;
102 assigned-clock-parents = <&ext_gmac>;
103 clock_in_out = "input";
104 phy-mode = "rgmii";
105 phy-supply = <&vccio_pmu>;
106 pinctrl-names = "default";
107 pinctrl-0 = <&rgmii_pins &phy_rst>;
e9e79d53 108 snps,reset-gpio = <&gpio4 RK_PB0 GPIO_ACTIVE_LOW>;
44d5039a
SS
109 snps,reset-active-low;
110 snps,reset-delays-us = <0 10000 30000>;
111 rx_delay = <0x10>;
112 tx_delay = <0x30>;
113};
114
d6823b67
GT
115&gpu {
116 mali-supply = <&vdd_gpu>;
117 status = "okay";
118};
119
44d5039a
SS
120&i2c0 {
121 status = "okay";
122
123 act8846: act8846@5a {
124 compatible = "active-semi,act8846";
125 reg = <0x5a>;
da0a1cf6 126 system-power-controller;
44d5039a
SS
127 inl1-supply = <&vcc_io>;
128 inl2-supply = <&vcc_sys>;
129 inl3-supply = <&vcc_20>;
130 vp1-supply = <&vcc_sys>;
131 vp2-supply = <&vcc_sys>;
132 vp3-supply = <&vcc_sys>;
133 vp4-supply = <&vcc_sys>;
134
135 regulators {
136 vcc_ddr: REG1 {
137 regulator-name = "VCC_DDR";
138 regulator-min-microvolt = <1200000>;
139 regulator-max-microvolt = <1200000>;
140 regulator-always-on;
141 };
142
db334784 143 vcc_io: vccio_codec: REG2 {
44d5039a
SS
144 regulator-name = "VCC_IO";
145 regulator-min-microvolt = <3300000>;
146 regulator-max-microvolt = <3300000>;
147 regulator-always-on;
148 };
149
150 vdd_log: REG3 {
151 regulator-name = "VDD_LOG";
152 regulator-min-microvolt = <1000000>;
153 regulator-max-microvolt = <1000000>;
154 regulator-always-on;
155 };
156
157 vcc_20: REG4 {
158 regulator-name = "VCC_20";
159 regulator-min-microvolt = <2000000>;
160 regulator-max-microvolt = <2000000>;
161 regulator-always-on;
162 };
163
164 vccio_sd: REG5 {
165 regulator-name = "VCCIO_SD";
166 regulator-min-microvolt = <3300000>;
167 regulator-max-microvolt = <3300000>;
168 regulator-always-on;
169 };
170
171 vdd10_lcd: REG6 {
172 regulator-name = "VDD10_LCD";
173 regulator-min-microvolt = <1000000>;
174 regulator-max-microvolt = <1000000>;
175 regulator-always-on;
176 };
177
178 vcca_codec: REG7 {
179 regulator-name = "VCCA_CODEC";
180 regulator-min-microvolt = <3300000>;
181 regulator-max-microvolt = <3300000>;
182 regulator-always-on;
183 };
184
185 vcca_tp: REG8 {
186 regulator-name = "VCCA_TP";
187 regulator-min-microvolt = <3300000>;
188 regulator-max-microvolt = <3300000>;
189 regulator-always-on;
190 };
191
192 vccio_pmu: REG9 {
193 regulator-name = "VCCIO_PMU";
194 regulator-min-microvolt = <3300000>;
195 regulator-max-microvolt = <3300000>;
196 regulator-always-on;
197 };
198
199 vdd_10: REG10 {
200 regulator-name = "VDD_10";
201 regulator-min-microvolt = <1000000>;
202 regulator-max-microvolt = <1000000>;
203 regulator-always-on;
204 };
205
206 vcc_18: REG11 {
207 regulator-name = "VCC_18";
208 regulator-min-microvolt = <1800000>;
209 regulator-max-microvolt = <1800000>;
210 regulator-always-on;
211 };
212
213 vcc18_lcd: REG12 {
214 regulator-name = "VCC18_LCD";
215 regulator-min-microvolt = <1800000>;
216 regulator-max-microvolt = <1800000>;
217 regulator-always-on;
218 };
219 };
220 };
221
222 vdd_cpu: syr827@40 {
223 compatible = "silergy,syr827";
224 reg = <0x40>;
225 fcs,suspend-voltage-selector = <1>;
226 regulator-always-on;
227 regulator-boot-on;
228 regulator-enable-ramp-delay = <300>;
229 regulator-name = "vdd_cpu";
230 regulator-min-microvolt = <850000>;
231 regulator-max-microvolt = <1350000>;
232 regulator-ramp-delay = <8000>;
233 vin-supply = <&vcc_sys>;
234 };
235
236 vdd_gpu: syr828@41 {
237 compatible = "silergy,syr828";
238 reg = <0x41>;
239 fcs,suspend-voltage-selector = <1>;
240 regulator-always-on;
241 regulator-enable-ramp-delay = <300>;
242 regulator-min-microvolt = <850000>;
243 regulator-max-microvolt = <1350000>;
244 regulator-name = "vdd_gpu";
245 regulator-ramp-delay = <8000>;
246 vin-supply = <&vcc_sys>;
247 };
248};
249
3445b2fa
HS
250&io_domains {
251 status = "okay";
252
253 audio-supply = <&vcc_io>;
254 bb-supply = <&vcc_io>;
255 dvp-supply = <&vcc_18>;
256 flash0-supply = <&vcc_flash>;
257 flash1-supply = <&vccio_pmu>;
258 gpio30-supply = <&vccio_pmu>;
259 gpio1830 = <&vcc_io>;
260 lcdc-supply = <&vcc_io>;
261 sdcard-supply = <&vccio_sd>;
262 wifi-supply = <&vcc_18>;
263};
264
44d5039a
SS
265&pinctrl {
266 pcfg_output_high: pcfg-output-high {
267 output-high;
268 };
269
270 emmc {
271 emmc_reset: emmc-reset {
272 rockchip,pins = <3 9 RK_FUNC_GPIO &pcfg_pull_none>;
273 };
274 };
275
276 gmac {
277 phy_rst: phy-rst {
278 rockchip,pins = <4 8 RK_FUNC_GPIO &pcfg_output_high>;
279 };
280 };
281};
282
283&tsadc {
284 rockchip,hw-tshut-mode = <0>; /* tshut mode 0:CRU 1:GPIO */
285 rockchip,hw-tshut-polarity = <0>; /* tshut polarity 0:LOW 1:HIGH */
286 status = "okay";
287};
288
289&vopb {
290 status = "okay";
291};
292
293&vopb_mmu {
294 status = "okay";
295};
296
297&vopl {
298 status = "okay";
299};
300
301&vopl_mmu {
302 status = "okay";
303};
304
305&wdt {
306 status = "okay";
307};