2 * Copyright (c) 2014, 2015 FUKAUMI Naoki <naobsd@gmail.com>
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
9 * a) This file 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.
14 * This file 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.
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
30 * The above copyright notice and this permission notice shall be
31 * included in all copies or substantial portions of the Software.
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.
43 #include "rk3288.dtsi"
47 device_type = "memory";
51 dovdd_1v8: dovdd-1v8-regulator {
52 compatible = "regulator-fixed";
53 regulator-name = "dovdd_1v8";
54 regulator-min-microvolt = <1800000>;
55 regulator-max-microvolt = <1800000>;
56 vin-supply = <&vcc28_dvp>;
59 ext_gmac: external-gmac-clock {
60 compatible = "fixed-clock";
62 clock-frequency = <125000000>;
63 clock-output-names = "ext_gmac";
66 io_domains: io-domains {
67 compatible = "rockchip,rk3288-io-voltage-domain";
68 rockchip,grf = <&grf>;
70 audio-supply = <&vcca_33>;
71 bb-supply = <&vcc_io>;
72 dvp-supply = <&dovdd_1v8>;
73 flash0-supply = <&vcc_flash>;
74 flash1-supply = <&vcc_lan>;
75 gpio30-supply = <&vcc_io>;
76 gpio1830-supply = <&vcc_io>;
77 lcdc-supply = <&vcc_io>;
78 sdcard-supply = <&vccio_sd>;
79 wifi-supply = <&vccio_wl>;
83 compatible = "gpio-ir-receiver";
84 pinctrl-names = "default";
85 pinctrl-0 = <&ir_int>;
89 compatible = "gpio-keys";
94 gpio-key,wakeup = <1>;
95 gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
98 pinctrl-names = "default";
99 pinctrl-0 = <&pwr_key>;
104 compatible = "gpio-leds";
107 gpios = <&gpio8 1 GPIO_ACTIVE_LOW>;
108 label = "firefly:blue:user";
109 linux,default-trigger = "rc-feedback";
110 pinctrl-names = "default";
111 pinctrl-0 = <&work_led>;
115 gpios = <&gpio8 2 GPIO_ACTIVE_LOW>;
116 label = "firefly:green:power";
117 linux,default-trigger = "default-on";
118 pinctrl-names = "default";
119 pinctrl-0 = <&power_led>;
123 sdio_pwrseq: sdio-pwrseq {
124 compatible = "mmc-pwrseq-simple";
126 clock-names = "ext_clock";
127 pinctrl-names = "default";
128 pinctrl-0 = <&wifi_enable_h>;
131 * On the module itself this is one of these (depending
132 * on the actual card populated):
133 * - SDIO_RESET_L_WL_REG_ON
134 * - PDN (power down when low)
136 reset-gpios = <&gpio4 28 GPIO_ACTIVE_LOW>;
139 vbat_wl: vcc_sys: vsys-regulator {
140 compatible = "regulator-fixed";
141 regulator-name = "vcc_sys";
142 regulator-min-microvolt = <5000000>;
143 regulator-max-microvolt = <5000000>;
148 vcc_sd: sdmmc-regulator {
149 compatible = "regulator-fixed";
150 gpio = <&gpio7 11 GPIO_ACTIVE_LOW>;
151 pinctrl-names = "default";
152 pinctrl-0 = <&sdmmc_pwr>;
153 regulator-name = "vcc_sd";
154 regulator-min-microvolt = <3300000>;
155 regulator-max-microvolt = <3300000>;
156 startup-delay-us = <100000>;
157 vin-supply = <&vcc_io>;
160 vcc_flash: flash-regulator {
161 compatible = "regulator-fixed";
162 regulator-name = "vcc_flash";
163 regulator-min-microvolt = <1800000>;
164 regulator-max-microvolt = <1800000>;
165 vin-supply = <&vcc_io>;
168 vcc_5v: usb-regulator {
169 compatible = "regulator-fixed";
170 regulator-name = "vcc_5v";
171 regulator-min-microvolt = <5000000>;
172 regulator-max-microvolt = <5000000>;
175 vin-supply = <&vcc_sys>;
178 vcc_host_5v: usb-host-regulator {
179 compatible = "regulator-fixed";
181 gpio = <&gpio0 14 GPIO_ACTIVE_HIGH>;
182 pinctrl-names = "default";
183 pinctrl-0 = <&host_vbus_drv>;
184 regulator-name = "vcc_host_5v";
185 regulator-min-microvolt = <5000000>;
186 regulator-max-microvolt = <5000000>;
188 vin-supply = <&vcc_5v>;
191 vcc_otg_5v: usb-otg-regulator {
192 compatible = "regulator-fixed";
194 gpio = <&gpio0 12 GPIO_ACTIVE_HIGH>;
195 pinctrl-names = "default";
196 pinctrl-0 = <&otg_vbus_drv>;
197 regulator-name = "vcc_otg_5v";
198 regulator-min-microvolt = <5000000>;
199 regulator-max-microvolt = <5000000>;
201 vin-supply = <&vcc_5v>;
205 * A TT8142 creates both dovdd_1v8 and vcc28_dvp, controlled
206 * by the dvp_pwr pin.
208 vcc28_dvp: vcc28-dvp-regulator {
209 compatible = "regulator-fixed";
211 gpio = <&gpio0 11 GPIO_ACTIVE_HIGH>;
212 pinctrl-names = "default";
213 pinctrl-0 = <&dvp_pwr>;
214 regulator-name = "vcc28_dvp";
215 regulator-min-microvolt = <2800000>;
216 regulator-max-microvolt = <2800000>;
218 vin-supply = <&vcc_io>;
222 compatible = "wlan-platdata";
223 rockchip,grf = <&grf>;
224 wifi_chip_type = "ap6335";
226 WIFI,host_wake_irq = <&gpio4 30 GPIO_ACTIVE_HIGH>;
232 cpu0-supply = <&vdd_cpu>;
241 pinctrl-names = "default";
242 pinctrl-0 = <&emmc_clk>, <&emmc_cmd>, <&emmc_pwr>, <&emmc_bus8>;
243 vmmc-supply = <&vcc_io>;
244 vqmmc-supply = <&vcc_flash>;
249 assigned-clocks = <&cru SCLK_MAC>;
250 assigned-clock-parents = <&ext_gmac>;
251 clock_in_out = "input";
252 pinctrl-names = "default";
253 pinctrl-0 = <&rgmii_pins>, <&phy_rst>, <&phy_pmeb>, <&phy_int>;
254 phy-supply = <&vcc_lan>;
256 snps,reset-active-low;
257 snps,reset-delays-us = <0 10000 1000000>;
258 snps,reset-gpio = <&gpio4 8 GPIO_ACTIVE_LOW>;
265 ddc-i2c-bus = <&i2c5>;
270 clock-frequency = <400000>;
274 compatible = "silergy,syr827";
275 fcs,suspend-voltage-selector = <1>;
277 regulator-name = "vdd_cpu";
278 regulator-min-microvolt = <850000>;
279 regulator-max-microvolt = <1350000>;
282 regulator-enable-ramp-delay = <300>;
283 regulator-ramp-delay = <8000>;
284 vin-supply = <&vcc_sys>;
288 compatible = "silergy,syr828";
289 fcs,suspend-voltage-selector = <1>;
291 regulator-name = "vdd_gpu";
292 regulator-min-microvolt = <850000>;
293 regulator-max-microvolt = <1350000>;
295 vin-supply = <&vcc_sys>;
298 hym8563: hym8563@51 {
299 compatible = "haoyu,hym8563";
302 clock-frequency = <32768>;
303 clock-output-names = "xin32k";
304 interrupt-parent = <&gpio7>;
305 interrupts = <4 IRQ_TYPE_EDGE_FALLING>;
306 pinctrl-names = "default";
307 pinctrl-0 = <&rtc_int>;
310 act8846: act8846@5a {
311 compatible = "active-semi,act8846";
313 pinctrl-names = "default";
314 pinctrl-0 = <&pmic_vsel>, <&pwr_hold>;
315 system-power-controller;
317 vp1-supply = <&vcc_sys>;
318 vp2-supply = <&vcc_sys>;
319 vp3-supply = <&vcc_sys>;
320 vp4-supply = <&vcc_sys>;
321 inl1-supply = <&vcc_sys>;
322 inl2-supply = <&vcc_sys>;
323 inl3-supply = <&vcc_20>;
327 regulator-name = "vcc_ddr";
328 regulator-min-microvolt = <1200000>;
329 regulator-max-microvolt = <1200000>;
334 regulator-name = "vcc_io";
335 regulator-min-microvolt = <3300000>;
336 regulator-max-microvolt = <3300000>;
341 regulator-name = "vdd_log";
342 regulator-min-microvolt = <1100000>;
343 regulator-max-microvolt = <1100000>;
348 regulator-name = "vcc_20";
349 regulator-min-microvolt = <2000000>;
350 regulator-max-microvolt = <2000000>;
355 regulator-name = "vccio_sd";
356 regulator-min-microvolt = <3300000>;
357 regulator-max-microvolt = <3300000>;
362 regulator-name = "vdd10_lcd";
363 regulator-min-microvolt = <1000000>;
364 regulator-max-microvolt = <1000000>;
369 regulator-name = "vcca_18";
370 regulator-min-microvolt = <1800000>;
371 regulator-max-microvolt = <1800000>;
375 regulator-name = "vcca_33";
376 regulator-min-microvolt = <3300000>;
377 regulator-max-microvolt = <3300000>;
381 regulator-name = "vcc_lan";
382 regulator-min-microvolt = <3300000>;
383 regulator-max-microvolt = <3300000>;
387 regulator-name = "vdd_10";
388 regulator-min-microvolt = <1000000>;
389 regulator-max-microvolt = <1000000>;
393 vccio_wl: vcc_18: REG11 {
394 regulator-name = "vcc_18";
395 regulator-min-microvolt = <1800000>;
396 regulator-max-microvolt = <1800000>;
401 regulator-name = "vcc18_lcd";
402 regulator-min-microvolt = <1800000>;
403 regulator-max-microvolt = <1800000>;
427 pcfg_output_high: pcfg-output-high {
431 pcfg_output_low: pcfg-output-low {
437 rockchip,pins = <0 1 RK_FUNC_GPIO &pcfg_output_high>;
443 rockchip,pins = <0 11 RK_FUNC_GPIO &pcfg_pull_none>;
449 rockchip,pins = <0 9 RK_FUNC_GPIO &pcfg_pull_up>;
453 rockchip,pins = <0 8 RK_FUNC_GPIO &pcfg_pull_up>;
457 rockchip,pins = <4 8 RK_FUNC_GPIO &pcfg_output_high>;
463 rockchip,pins = <7 4 RK_FUNC_GPIO &pcfg_pull_up>;
469 rockchip,pins = <0 5 RK_FUNC_GPIO &pcfg_pull_up>;
474 power_led: power-led {
475 rockchip,pins = <8 2 RK_FUNC_GPIO &pcfg_pull_none>;
479 rockchip,pins = <8 1 RK_FUNC_GPIO &pcfg_pull_none>;
484 wifi_enable_h: wifi-enable-h {
485 rockchip,pins = <4 28 RK_FUNC_GPIO &pcfg_pull_none>;
490 sdmmc_pwr: sdmmc-pwr {
491 rockchip,pins = <7 11 RK_FUNC_GPIO &pcfg_pull_none>;
496 host_vbus_drv: host-vbus-drv {
497 rockchip,pins = <0 14 RK_FUNC_GPIO &pcfg_pull_none>;
500 usbhub_rst: usbhub-rst {
501 rockchip,pins = <8 3 RK_FUNC_GPIO &pcfg_output_high>;
506 otg_vbus_drv: otg-vbus-drv {
507 rockchip,pins = <0 12 RK_FUNC_GPIO &pcfg_pull_none>;
513 vref-supply = <&vcc_18>;
518 clock-frequency = <50000000>;
519 clock-freq-min-max = <200000 50000000>;
525 keep-power-in-suspend;
526 mmc-pwrseq = <&sdio_pwrseq>;
529 pinctrl-names = "default";
530 pinctrl-0 = <&sdio0_bus4 &sdio0_cmd &sdio0_clk &sdio0_int>;
533 vmmc-supply = <&vbat_wl>;
534 vqmmc-supply = <&vccio_wl>;
542 card-detect-delay = <200>;
545 pinctrl-names = "default";
546 pinctrl-0 = <&sdmmc_clk>, <&sdmmc_cmd>, <&sdmmc_cd>, <&sdmmc_bus4>;
548 vmmc-supply = <&vcc_sd>;
549 vqmmc-supply = <&vccio_sd>;
554 pinctrl-names = "default";
555 pinctrl-0 = <&spi0_clk>, <&spi0_cs0>, <&spi0_tx>, <&spi0_rx>, <&spi0_cs1>;
560 rockchip,hw-tshut-mode = <0>;
561 rockchip,hw-tshut-polarity = <0>;
566 pinctrl-names = "default";
567 pinctrl-0 = <&uart0_xfer>, <&uart0_cts>, <&uart0_rts>;
588 pinctrl-names = "default";
589 pinctrl-0 = <&usbhub_rst>;