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.
43 #include <dt-bindings/clock/rockchip,rk808.h>
44 #include "rk3288.dtsi"
47 model = "Rockchip RK3288 Fennec Board";
48 compatible = "rockchip,rk3288-fennec", "rockchip,rk3288";
51 reg = <0x0 0x80000000>;
52 device_type = "memory";
55 ext_gmac: external-gmac-clock {
56 compatible = "fixed-clock";
58 clock-frequency = <125000000>;
59 clock-output-names = "ext_gmac";
63 compatible = "rockchip,rk3288-io-voltage-domain";
64 rockchip,grf = <&grf>;
65 wifi-supply = <&vcc_wl>;
68 sdio_pwrseq: sdio-pwrseq {
69 compatible = "mmc-pwrseq-simple";
70 clocks = <&rk808 RK808_CLKOUT1>;
71 clock-names = "ext_clock";
72 pinctrl-names = "default";
73 pinctrl-0 = <&wifi_enable_h>;
76 * On the module itself this is one of these (depending
77 * on the actual card populated):
78 * - SDIO_RESET_L_WL_REG_ON
79 * - PDN (power down when low)
81 reset-gpios = <&gpio4 28 GPIO_ACTIVE_LOW>;
85 compatible = "simple-audio-card";
86 simple-audio-card,format = "i2s";
87 simple-audio-card,name = "rockchip,fennec-codec";
88 simple-audio-card,mclk-fs = <512>;
89 simple-audio-card,cpu {
92 simple-audio-card,codec {
97 vcc_sys: vsys-regulator {
98 compatible = "regulator-fixed";
99 regulator-name = "vcc_sys";
100 regulator-min-microvolt = <5000000>;
101 regulator-max-microvolt = <5000000>;
106 vcc_host: usb-host-regulator {
107 compatible = "regulator-fixed";
109 gpio = <&gpio0 14 GPIO_ACTIVE_HIGH>;
110 pinctrl-names = "default";
111 pinctrl-0 = <&host_drv>;
112 regulator-name = "vcc_host_5v";
113 regulator-min-microvolt = <5000000>;
114 regulator-max-microvolt = <5000000>;
118 vcc_otg: usb-otg-regulator {
119 compatible = "regulator-fixed";
121 gpio = <&gpio0 12 GPIO_ACTIVE_HIGH>;
122 pinctrl-names = "default";
123 pinctrl-0 = <&otg_drv>;
124 regulator-name = "vcc_otg_5v";
125 regulator-min-microvolt = <5000000>;
126 regulator-max-microvolt = <5000000>;
131 compatible = "bluetooth-platdata";
132 uart_rts_gpios = <&gpio4 19 GPIO_ACTIVE_LOW>;
133 pinctrl-names = "default", "rts_gpio";
134 pinctrl-0 = <&uart0_rts>;
135 pinctrl-1 = <&uart0_gpios>;
136 BT,reset_gpio = <&gpio4 29 GPIO_ACTIVE_HIGH>;
137 BT,wake_gpio = <&gpio4 26 GPIO_ACTIVE_HIGH>;
138 BT,wake_host_irq = <&gpio4 31 GPIO_ACTIVE_HIGH>;
143 compatible = "wlan-platdata";
144 rockchip,grf = <&grf>;
145 wifi_chip_type = "ap6212";
147 WIFI,host_wake_irq = <&gpio4 30 GPIO_ACTIVE_HIGH>;
153 cpu0-supply = <&vdd_cpu>;
162 pinctrl-names = "default";
163 pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_pwr &emmc_bus8>;
171 card-detect-delay = <200>;
174 pinctrl-names = "default";
175 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
178 vmmc-supply = <&vcc_sd>;
179 vqmmc-supply = <&vccio_sd>;
183 assigned-clocks = <&cru SCLK_MAC>;
184 assigned-clock-parents = <&ext_gmac>;
185 clock_in_out = "input";
186 pinctrl-names = "default";
187 pinctrl-0 = <&rgmii_pins>, <&phy_rst>, <&phy_pmeb>, <&phy_int>;
188 phy-supply = <&vcc_lan>;
190 snps,reset-active-low;
191 snps,reset-delays-us = <0 10000 1000000>;
192 snps,reset-gpio = <&gpio4 8 GPIO_ACTIVE_LOW>;
199 mali-supply = <&vdd_gpu>;
204 #address-cells = <1>;
206 #sound-dai-cells = <0>;
207 ddc-i2c-bus = <&i2c5>;
213 clock-frequency = <400000>;
216 compatible = "rockchip,rk808";
218 interrupt-parent = <&gpio0>;
219 interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
221 clock-output-names = "xin32k", "rk808-clkout2";
222 pinctrl-names = "default";
223 pinctrl-0 = <&pmic_int &global_pwroff>;
224 rockchip,system-power-controller;
227 vcc1-supply = <&vcc_sys>;
228 vcc2-supply = <&vcc_sys>;
229 vcc3-supply = <&vcc_sys>;
230 vcc4-supply = <&vcc_sys>;
231 vcc6-supply = <&vcc_sys>;
232 vcc7-supply = <&vcc_sys>;
233 vcc8-supply = <&vcc_io>;
234 vcc9-supply = <&vcc_io>;
235 vcc10-supply = <&vcc_io>;
236 vcc11-supply = <&vcc_io>;
237 vcc12-supply = <&vcc_io>;
238 vddio-supply = <&vcc_io>;
244 regulator-min-microvolt = <750000>;
245 regulator-max-microvolt = <1350000>;
246 regulator-name = "vdd_arm";
247 regulator-state-mem {
248 regulator-off-in-suspend;
255 regulator-min-microvolt = <850000>;
256 regulator-max-microvolt = <1250000>;
257 regulator-name = "vdd_gpu";
258 regulator-state-mem {
259 regulator-on-in-suspend;
260 regulator-suspend-microvolt = <1000000>;
267 regulator-name = "vcc_ddr";
268 regulator-state-mem {
269 regulator-on-in-suspend;
276 regulator-min-microvolt = <3300000>;
277 regulator-max-microvolt = <3300000>;
278 regulator-name = "vcc_io";
279 regulator-state-mem {
280 regulator-on-in-suspend;
281 regulator-suspend-microvolt = <3300000>;
285 vccio_pmu: LDO_REG1 {
288 regulator-min-microvolt = <3300000>;
289 regulator-max-microvolt = <3300000>;
290 regulator-name = "vccio_pmu";
291 regulator-state-mem {
292 regulator-on-in-suspend;
293 regulator-suspend-microvolt = <3300000>;
300 regulator-min-microvolt = <3300000>;
301 regulator-max-microvolt = <3300000>;
302 regulator-name = "vcca_33";
303 regulator-state-mem {
304 regulator-off-in-suspend;
311 regulator-min-microvolt = <1000000>;
312 regulator-max-microvolt = <1000000>;
313 regulator-name = "vdd_10";
314 regulator-state-mem {
315 regulator-on-in-suspend;
316 regulator-suspend-microvolt = <1000000>;
323 regulator-min-microvolt = <1800000>;
324 regulator-max-microvolt = <1800000>;
325 regulator-name = "vcc_wl";
326 regulator-state-mem {
327 regulator-on-in-suspend;
328 regulator-suspend-microvolt = <1800000>;
335 regulator-min-microvolt = <1800000>;
336 regulator-max-microvolt = <3300000>;
337 regulator-name = "vccio_sd";
338 regulator-state-mem {
339 regulator-on-in-suspend;
340 regulator-suspend-microvolt = <3300000>;
344 vdd10_lcd: LDO_REG6 {
347 regulator-min-microvolt = <1000000>;
348 regulator-max-microvolt = <1000000>;
349 regulator-name = "vdd10_lcd";
350 regulator-state-mem {
351 regulator-on-in-suspend;
352 regulator-suspend-microvolt = <1000000>;
359 regulator-min-microvolt = <1800000>;
360 regulator-max-microvolt = <1800000>;
361 regulator-name = "vcc_18";
362 regulator-state-mem {
363 regulator-on-in-suspend;
364 regulator-suspend-microvolt = <1800000>;
368 vcc18_lcd: LDO_REG8 {
371 regulator-min-microvolt = <1800000>;
372 regulator-max-microvolt = <1800000>;
373 regulator-name = "vcc18_lcd";
374 regulator-state-mem {
375 regulator-on-in-suspend;
376 regulator-suspend-microvolt = <1800000>;
380 vcc_sd: SWITCH_REG1 {
383 regulator-name = "vcc_sd";
384 regulator-state-mem {
385 regulator-on-in-suspend;
389 vcc_lan: SWITCH_REG2 {
392 regulator-name = "vcc_lan";
393 regulator-state-mem {
394 regulator-on-in-suspend;
406 #sound-dai-cells = <0>;
412 clock-frequency = <50000000>;
413 clock-freq-min-max = <200000 50000000>;
418 keep-power-in-suspend;
419 mmc-pwrseq = <&sdio_pwrseq>;
422 pinctrl-names = "default";
423 pinctrl-0 = <&sdio0_bus4 &sdio0_cmd &sdio0_clk>;
429 rockchip,hw-tshut-mode = <0>; /* tshut mode 0:CRU 1:GPIO */
430 rockchip,hw-tshut-polarity = <0>; /* tshut polarity 0:LOW 1:HIGH */
435 pinctrl-names = "default";
436 pinctrl-0 = <&uart0_xfer &uart0_cts>;
485 pcfg_output_high: pcfg-output-high {
489 pcfg_output_low: pcfg-output-low {
493 pcfg_pull_none_drv_8ma: pcfg-pull-none-drv-8ma {
494 drive-strength = <8>;
497 pcfg_pull_up_drv_8ma: pcfg-pull-up-drv-8ma {
499 drive-strength = <8>;
504 rockchip,pins = <0 9 RK_FUNC_GPIO &pcfg_pull_up>;
508 rockchip,pins = <0 8 RK_FUNC_GPIO &pcfg_pull_up>;
512 rockchip,pins = <4 8 RK_FUNC_GPIO &pcfg_output_high>;
518 rockchip,pins = <RK_GPIO0 4 RK_FUNC_GPIO &pcfg_pull_up>;
523 wifi_enable_h: wifi-enable-h {
524 rockchip,pins = <4 28 RK_FUNC_GPIO &pcfg_pull_none>;
529 sdmmc_bus4: sdmmc-bus4 {
530 rockchip,pins = <6 16 RK_FUNC_1 &pcfg_pull_up_drv_8ma>,
531 <6 17 RK_FUNC_1 &pcfg_pull_up_drv_8ma>,
532 <6 18 RK_FUNC_1 &pcfg_pull_up_drv_8ma>,
533 <6 19 RK_FUNC_1 &pcfg_pull_up_drv_8ma>;
536 sdmmc_clk: sdmmc-clk {
537 rockchip,pins = <6 20 RK_FUNC_1 &pcfg_pull_none_drv_8ma>;
540 sdmmc_cmd: sdmmc-cmd {
541 rockchip,pins = <6 21 RK_FUNC_1 &pcfg_pull_up_drv_8ma>;
544 sdmmc_pwr: sdmmc-pwr {
545 rockchip,pins = <7 11 RK_FUNC_GPIO &pcfg_pull_none>;
551 rockchip,pins = <0 14 RK_FUNC_GPIO &pcfg_pull_none>;
557 rockchip,pins = <0 12 RK_FUNC_GPIO &pcfg_pull_none>;
562 uart0_gpios: uart0-gpios {
563 rockchip,pins = <4 19 RK_FUNC_GPIO &pcfg_pull_none>;