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
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.
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.
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
28 * The above copyright notice and this permission notice shall be
29 * included in all copies or substantial portions of the Software.
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.
42 #include "rk3288.dtsi"
45 compatible = "rockchip,rk3288-miniarm", "rockchip,rk3288";
48 device_type = "memory";
49 reg = <0x0 0x80000000>;
52 ext_gmac: external-gmac-clock {
53 compatible = "fixed-clock";
54 clock-frequency = <125000000>;
55 clock-output-names = "ext_gmac";
60 compatible = "gpio-keys";
65 pinctrl-names = "default";
66 pinctrl-0 = <&pwrbtn>;
69 gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
71 label = "GPIO Key Power";
72 linux,input-type = <1>;
73 gpio-key,wakeup = <1>;
74 debounce-interval = <100>;
79 compatible = "gpio-leds";
82 gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>;
83 linux,default-trigger = "default-on";
87 gpios=<&gpio2 3 GPIO_ACTIVE_LOW>;
88 linux,default-trigger="mmc0";
93 compatible = "simple-audio-card";
94 simple-audio-card,format = "i2s";
95 simple-audio-card,name = "rockchip,miniarm-codec";
96 simple-audio-card,mclk-fs = <512>;
97 simple-audio-card,cpu {
100 simple-audio-card,codec {
105 vcc_sys: vsys-regulator {
106 compatible = "regulator-fixed";
107 regulator-name = "vcc_sys";
108 regulator-min-microvolt = <5000000>;
109 regulator-max-microvolt = <5000000>;
114 io_domains: io-domains {
115 compatible = "rockchip,rk3288-io-voltage-domain";
116 rockchip,grf = <&grf>;
118 sdcard-supply = <&vccio_sd>;
122 * NOTE: vcc_sd isn't hooked up on v1.0 boards where power comes from
123 * vcc_io directly. Those boards won't be able to power cycle SD cards
124 * but it shouldn't hurt to toggle this pin there anyway.
126 vcc_sd: sdmmc-regulator {
127 compatible = "regulator-fixed";
128 gpio = <&gpio7 11 GPIO_ACTIVE_LOW>;
129 pinctrl-names = "default";
130 pinctrl-0 = <&sdmmc_pwr>;
131 regulator-name = "vcc_sd";
132 regulator-min-microvolt = <3300000>;
133 regulator-max-microvolt = <3300000>;
134 startup-delay-us = <100000>;
135 vin-supply = <&vcc_io>;
140 cpu0-supply = <&vdd_cpu>;
144 phy-supply = <&vcc33_lan>;
146 clock_in_out = "input";
147 snps,reset-gpio = <&gpio4 7 0>;
148 snps,reset-active-low;
149 snps,reset-delays-us = <0 10000 1000000>;
150 assigned-clocks = <&cru SCLK_MAC>;
151 assigned-clock-parents = <&ext_gmac>;
152 pinctrl-names = "default";
153 pinctrl-0 = <&rgmii_pins>;
160 mali-supply = <&vdd_gpu>;
165 #address-cells = <1>;
167 #sound-dai-cells = <0>;
168 ddc-i2c-bus = <&i2c5>;
170 /* Don't use vopl for HDMI */
173 /delete-node/ endpoint@1;
180 clock-frequency = <400000>;
183 compatible = "rockchip,rk808";
185 interrupt-parent = <&gpio0>;
186 interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
187 pinctrl-names = "default";
188 pinctrl-0 = <&pmic_int &global_pwroff>;
189 rockchip,system-power-controller;
192 clock-output-names = "xin32k", "rk808-clkout2";
194 vcc1-supply = <&vcc_sys>;
195 vcc2-supply = <&vcc_sys>;
196 vcc3-supply = <&vcc_sys>;
197 vcc4-supply = <&vcc_sys>;
198 vcc6-supply = <&vcc_sys>;
199 vcc7-supply = <&vcc_sys>;
200 vcc8-supply = <&vcc_18>;
201 vcc9-supply = <&vcc_io>;
202 vcc10-supply = <&vcc_io>;
203 vcc11-supply = <&vcc_sys>;
204 vcc12-supply = <&vcc_io>;
205 vddio-supply = <&vcc18_ldo1>;
211 regulator-min-microvolt = <750000>;
212 regulator-max-microvolt = <1350000>;
213 regulator-name = "vdd_arm";
214 regulator-state-mem {
215 regulator-off-in-suspend;
222 regulator-min-microvolt = <850000>;
223 regulator-max-microvolt = <1250000>;
224 regulator-name = "vdd_gpu";
225 regulator-ramp-delay = <6000>;
226 regulator-state-mem {
227 regulator-on-in-suspend;
228 regulator-suspend-microvolt = <1000000>;
235 regulator-name = "vcc_ddr";
236 regulator-state-mem {
237 regulator-on-in-suspend;
244 regulator-min-microvolt = <3300000>;
245 regulator-max-microvolt = <3300000>;
246 regulator-name = "vcc_io";
247 regulator-state-mem {
248 regulator-on-in-suspend;
249 regulator-suspend-microvolt = <3300000>;
253 vcc18_ldo1: LDO_REG1 {
256 regulator-min-microvolt = <1800000>;
257 regulator-max-microvolt = <1800000>;
258 regulator-name = "vcc18_ldo1";
259 regulator-state-mem {
260 regulator-on-in-suspend;
261 regulator-suspend-microvolt = <1800000>;
265 vcc33_mipi: LDO_REG2 {
268 regulator-min-microvolt = <3300000>;
269 regulator-max-microvolt = <3300000>;
270 regulator-name = "vcc33_mipi";
271 regulator-state-mem {
272 regulator-off-in-suspend;
279 regulator-min-microvolt = <1000000>;
280 regulator-max-microvolt = <1000000>;
281 regulator-name = "vdd_10";
282 regulator-state-mem {
283 regulator-on-in-suspend;
284 regulator-suspend-microvolt = <1000000>;
288 vcc18_codec: LDO_REG4 {
291 regulator-min-microvolt = <1800000>;
292 regulator-max-microvolt = <1800000>;
293 regulator-name = "vcc18_codec";
294 regulator-state-mem {
295 regulator-on-in-suspend;
296 regulator-suspend-microvolt = <1800000>;
303 regulator-min-microvolt = <1800000>;
304 regulator-max-microvolt = <3300000>;
305 regulator-name = "vccio_sd";
306 regulator-state-mem {
307 regulator-on-in-suspend;
308 regulator-suspend-microvolt = <3300000>;
312 vdd10_lcd: LDO_REG6 {
315 regulator-min-microvolt = <1000000>;
316 regulator-max-microvolt = <1000000>;
317 regulator-name = "vdd10_lcd";
318 regulator-state-mem {
319 regulator-on-in-suspend;
320 regulator-suspend-microvolt = <1000000>;
327 regulator-min-microvolt = <1800000>;
328 regulator-max-microvolt = <1800000>;
329 regulator-name = "vcc_18";
330 regulator-state-mem {
331 regulator-on-in-suspend;
332 regulator-suspend-microvolt = <1800000>;
336 vcc18_lcd: LDO_REG8 {
339 regulator-min-microvolt = <1800000>;
340 regulator-max-microvolt = <1800000>;
341 regulator-name = "vcc18_lcd";
342 regulator-state-mem {
343 regulator-on-in-suspend;
344 regulator-suspend-microvolt = <1800000>;
348 vcc33_sd: SWITCH_REG1 {
351 regulator-name = "vcc33_sd";
352 regulator-state-mem {
353 regulator-on-in-suspend;
357 vcc33_lan: SWITCH_REG2 {
360 regulator-name = "vcc33_lan";
361 regulator-state-mem {
362 regulator-on-in-suspend;
378 #sound-dai-cells = <0>;
387 vref-supply = <&vcc18_ldo1>;
395 card-detect-delay = <200>;
396 disable-wp; /* wp not hooked up */
398 pinctrl-names = "default";
399 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
402 vmmc-supply = <&vcc_sd>;
403 vqmmc-supply = <&vccio_sd>;
407 rockchip,hw-tshut-mode = <1>; /* tshut mode 0:CRU 1:GPIO */
408 rockchip,hw-tshut-polarity = <1>; /* tshut polarity 0:LOW 1:HIGH */
459 /* Don't use vopl for HDMI */
461 /delete-node/ endpoint@0;
478 pcfg_pull_none_drv_8ma: pcfg-pull-none-drv-8ma {
479 drive-strength = <8>;
482 pcfg_pull_up_drv_8ma: pcfg-pull-up-drv-8ma {
484 drive-strength = <8>;
489 rockchip,pins = <7 2 RK_FUNC_GPIO &pcfg_pull_none>;
495 rockchip,pins = <0 5 RK_FUNC_GPIO &pcfg_pull_up>;
500 eth_phy_pwr: eth-phy-pwr {
501 rockchip,pins = <0 6 RK_FUNC_GPIO &pcfg_pull_none>;
507 rockchip,pins = <RK_GPIO0 4 RK_FUNC_GPIO &pcfg_pull_up>;
513 * Default drive strength isn't enough to achieve even
514 * high-speed mode on EVB board so bump up to 8ma.
516 sdmmc_bus4: sdmmc-bus4 {
517 rockchip,pins = <6 16 RK_FUNC_1 &pcfg_pull_up_drv_8ma>,
518 <6 17 RK_FUNC_1 &pcfg_pull_up_drv_8ma>,
519 <6 18 RK_FUNC_1 &pcfg_pull_up_drv_8ma>,
520 <6 19 RK_FUNC_1 &pcfg_pull_up_drv_8ma>;
523 sdmmc_clk: sdmmc-clk {
524 rockchip,pins = <6 20 RK_FUNC_1 &pcfg_pull_none_drv_8ma>;
527 sdmmc_cmd: sdmmc-cmd {
528 rockchip,pins = <6 21 RK_FUNC_1 &pcfg_pull_up_drv_8ma>;
531 sdmmc_pwr: sdmmc-pwr {
532 rockchip,pins = <7 11 RK_FUNC_GPIO &pcfg_pull_none>;
537 host_vbus_drv: host-vbus-drv {
538 rockchip,pins = <0 14 RK_FUNC_GPIO &pcfg_pull_none>;
542 rockchip,pins = <7 8 RK_FUNC_GPIO &pcfg_pull_none>;