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";
67 compatible = "gpio-ir-receiver";
68 pinctrl-names = "default";
69 pinctrl-0 = <&ir_int>;
73 compatible = "gpio-keys";
78 gpio-key,wakeup = <1>;
79 gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
82 pinctrl-names = "default";
83 pinctrl-0 = <&pwr_key>;
88 compatible = "gpio-leds";
91 gpios = <&gpio8 1 GPIO_ACTIVE_LOW>;
92 label = "firefly:blue:user";
93 linux,default-trigger = "rc-feedback";
94 pinctrl-names = "default";
95 pinctrl-0 = <&work_led>;
99 gpios = <&gpio8 2 GPIO_ACTIVE_LOW>;
100 label = "firefly:green:power";
101 linux,default-trigger = "default-on";
102 pinctrl-names = "default";
103 pinctrl-0 = <&power_led>;
107 sdio_pwrseq: sdio-pwrseq {
108 compatible = "mmc-pwrseq-simple";
110 clock-names = "ext_clock";
111 pinctrl-names = "default";
112 pinctrl-0 = <&wifi_enable_h>;
115 * On the module itself this is one of these (depending
116 * on the actual card populated):
117 * - SDIO_RESET_L_WL_REG_ON
118 * - PDN (power down when low)
120 reset-gpios = <&gpio4 28 GPIO_ACTIVE_LOW>;
124 compatible = "simple-audio-card";
125 simple-audio-card,name = "SPDIF";
126 simple-audio-card,dai-link@1 {
127 cpu { sound-dai = <&spdif>; };
128 codec { sound-dai = <&spdif_out>; };
132 spdif_out: spdif-out {
133 compatible = "linux,spdif-dit";
134 #sound-dai-cells = <0>;
137 vbat_wl: vcc_sys: vsys-regulator {
138 compatible = "regulator-fixed";
139 regulator-name = "vcc_sys";
140 regulator-min-microvolt = <5000000>;
141 regulator-max-microvolt = <5000000>;
146 vcc_sd: sdmmc-regulator {
147 compatible = "regulator-fixed";
148 gpio = <&gpio7 11 GPIO_ACTIVE_LOW>;
149 pinctrl-names = "default";
150 pinctrl-0 = <&sdmmc_pwr>;
151 regulator-name = "vcc_sd";
152 regulator-min-microvolt = <3300000>;
153 regulator-max-microvolt = <3300000>;
154 startup-delay-us = <100000>;
155 vin-supply = <&vcc_io>;
158 vcc_flash: flash-regulator {
159 compatible = "regulator-fixed";
160 regulator-name = "vcc_flash";
161 regulator-min-microvolt = <1800000>;
162 regulator-max-microvolt = <1800000>;
163 vin-supply = <&vcc_io>;
166 vcc_5v: usb-regulator {
167 compatible = "regulator-fixed";
168 regulator-name = "vcc_5v";
169 regulator-min-microvolt = <5000000>;
170 regulator-max-microvolt = <5000000>;
173 vin-supply = <&vcc_sys>;
176 vcc_host_5v: usb-host-regulator {
177 compatible = "regulator-fixed";
179 gpio = <&gpio0 14 GPIO_ACTIVE_HIGH>;
180 pinctrl-names = "default";
181 pinctrl-0 = <&host_vbus_drv>;
182 regulator-name = "vcc_host_5v";
183 regulator-min-microvolt = <5000000>;
184 regulator-max-microvolt = <5000000>;
186 vin-supply = <&vcc_5v>;
189 vcc_otg_5v: usb-otg-regulator {
190 compatible = "regulator-fixed";
192 gpio = <&gpio0 12 GPIO_ACTIVE_HIGH>;
193 pinctrl-names = "default";
194 pinctrl-0 = <&otg_vbus_drv>;
195 regulator-name = "vcc_otg_5v";
196 regulator-min-microvolt = <5000000>;
197 regulator-max-microvolt = <5000000>;
199 vin-supply = <&vcc_5v>;
203 * A TT8142 creates both dovdd_1v8 and vcc28_dvp, controlled
204 * by the dvp_pwr pin.
206 vcc28_dvp: vcc28-dvp-regulator {
207 compatible = "regulator-fixed";
209 gpio = <&gpio0 11 GPIO_ACTIVE_HIGH>;
210 pinctrl-names = "default";
211 pinctrl-0 = <&dvp_pwr>;
212 regulator-name = "vcc28_dvp";
213 regulator-min-microvolt = <2800000>;
214 regulator-max-microvolt = <2800000>;
216 vin-supply = <&vcc_io>;
220 compatible = "bluetooth-platdata";
221 uart_rts_gpios = <&gpio4 19 GPIO_ACTIVE_LOW>;
222 pinctrl-names = "default", "rts_gpio";
223 pinctrl-0 = <&uart0_rts>;
224 pinctrl-1 = <&uart0_gpios>;
225 BT,reset_gpio = <&gpio4 29 GPIO_ACTIVE_HIGH>;
226 BT,wake_gpio = <&gpio4 26 GPIO_ACTIVE_HIGH>;
227 BT,wake_host_irq = <&gpio4 31 GPIO_ACTIVE_HIGH>;
232 compatible = "wlan-platdata";
233 rockchip,grf = <&grf>;
234 wifi_chip_type = "ap6335";
236 WIFI,host_wake_irq = <&gpio4 30 GPIO_ACTIVE_HIGH>;
242 cpu0-supply = <&vdd_cpu>;
251 pinctrl-names = "default";
252 pinctrl-0 = <&emmc_clk>, <&emmc_cmd>, <&emmc_pwr>, <&emmc_bus8>;
253 vmmc-supply = <&vcc_io>;
254 vqmmc-supply = <&vcc_flash>;
259 assigned-clocks = <&cru SCLK_MAC>;
260 assigned-clock-parents = <&ext_gmac>;
261 clock_in_out = "input";
262 pinctrl-names = "default";
263 pinctrl-0 = <&rgmii_pins>, <&phy_rst>, <&phy_pmeb>, <&phy_int>;
264 phy-supply = <&vcc_lan>;
266 snps,reset-active-low;
267 snps,reset-delays-us = <0 10000 1000000>;
268 snps,reset-gpio = <&gpio4 8 GPIO_ACTIVE_LOW>;
275 ddc-i2c-bus = <&i2c5>;
280 clock-frequency = <400000>;
284 compatible = "silergy,syr827";
285 fcs,suspend-voltage-selector = <1>;
287 regulator-name = "vdd_cpu";
288 regulator-min-microvolt = <850000>;
289 regulator-max-microvolt = <1350000>;
292 regulator-enable-ramp-delay = <300>;
293 regulator-ramp-delay = <8000>;
294 vin-supply = <&vcc_sys>;
298 compatible = "silergy,syr828";
299 fcs,suspend-voltage-selector = <1>;
301 regulator-name = "vdd_gpu";
302 regulator-min-microvolt = <850000>;
303 regulator-max-microvolt = <1350000>;
305 regulator-ramp-delay = <6000>;
306 vin-supply = <&vcc_sys>;
309 hym8563: hym8563@51 {
310 compatible = "haoyu,hym8563";
313 clock-frequency = <32768>;
314 clock-output-names = "xin32k";
315 interrupt-parent = <&gpio7>;
316 interrupts = <4 IRQ_TYPE_EDGE_FALLING>;
317 pinctrl-names = "default";
318 pinctrl-0 = <&rtc_int>;
321 act8846: act8846@5a {
322 compatible = "active-semi,act8846";
324 pinctrl-names = "default";
325 pinctrl-0 = <&pmic_vsel>, <&pwr_hold>;
326 system-power-controller;
328 vp1-supply = <&vcc_sys>;
329 vp2-supply = <&vcc_sys>;
330 vp3-supply = <&vcc_sys>;
331 vp4-supply = <&vcc_sys>;
332 inl1-supply = <&vcc_sys>;
333 inl2-supply = <&vcc_sys>;
334 inl3-supply = <&vcc_20>;
338 regulator-name = "vcc_ddr";
339 regulator-min-microvolt = <1200000>;
340 regulator-max-microvolt = <1200000>;
345 regulator-name = "vcc_io";
346 regulator-min-microvolt = <3300000>;
347 regulator-max-microvolt = <3300000>;
352 regulator-name = "vdd_log";
353 regulator-min-microvolt = <1100000>;
354 regulator-max-microvolt = <1100000>;
359 regulator-name = "vcc_20";
360 regulator-min-microvolt = <2000000>;
361 regulator-max-microvolt = <2000000>;
366 regulator-name = "vccio_sd";
367 regulator-min-microvolt = <3300000>;
368 regulator-max-microvolt = <3300000>;
373 regulator-name = "vdd10_lcd";
374 regulator-min-microvolt = <1000000>;
375 regulator-max-microvolt = <1000000>;
380 regulator-name = "vcca_18";
381 regulator-min-microvolt = <1800000>;
382 regulator-max-microvolt = <1800000>;
386 regulator-name = "vcca_33";
387 regulator-min-microvolt = <3300000>;
388 regulator-max-microvolt = <3300000>;
393 regulator-name = "vcc_lan";
394 regulator-min-microvolt = <3300000>;
395 regulator-max-microvolt = <3300000>;
399 regulator-name = "vdd_10";
400 regulator-min-microvolt = <1000000>;
401 regulator-max-microvolt = <1000000>;
405 vccio_wl: vcc_18: REG11 {
406 regulator-name = "vcc_18";
407 regulator-min-microvolt = <1800000>;
408 regulator-max-microvolt = <1800000>;
413 regulator-name = "vcc18_lcd";
414 regulator-min-microvolt = <1800000>;
415 regulator-max-microvolt = <1800000>;
441 audio-supply = <&vcca_33>;
442 bb-supply = <&vcc_io>;
443 dvp-supply = <&dovdd_1v8>;
444 flash0-supply = <&vcc_flash>;
445 flash1-supply = <&vcc_lan>;
446 gpio30-supply = <&vcc_io>;
447 gpio1830-supply = <&vcc_io>;
448 lcdc-supply = <&vcc_io>;
449 sdcard-supply = <&vccio_sd>;
450 wifi-supply = <&vccio_wl>;
454 pcfg_output_high: pcfg-output-high {
458 pcfg_output_low: pcfg-output-low {
462 pcfg_pull_none_drv_8ma: pcfg-pull-none-drv-8ma {
463 drive-strength = <8>;
466 pcfg_pull_up_drv_8ma: pcfg-pull-up-drv-8ma {
468 drive-strength = <8>;
473 rockchip,pins = <0 1 RK_FUNC_GPIO &pcfg_output_high>;
479 rockchip,pins = <0 11 RK_FUNC_GPIO &pcfg_pull_none>;
485 rockchip,pins = <0 9 RK_FUNC_GPIO &pcfg_pull_up>;
489 rockchip,pins = <0 8 RK_FUNC_GPIO &pcfg_pull_up>;
493 rockchip,pins = <4 8 RK_FUNC_GPIO &pcfg_output_high>;
499 rockchip,pins = <7 4 RK_FUNC_GPIO &pcfg_pull_up>;
505 rockchip,pins = <0 5 RK_FUNC_GPIO &pcfg_pull_up>;
510 power_led: power-led {
511 rockchip,pins = <8 2 RK_FUNC_GPIO &pcfg_pull_none>;
515 rockchip,pins = <8 1 RK_FUNC_GPIO &pcfg_pull_none>;
520 wifi_enable_h: wifi-enable-h {
521 rockchip,pins = <4 28 RK_FUNC_GPIO &pcfg_pull_none>;
527 * Default drive strength isn't enough to achieve even
528 * high-speed mode on firefly board so bump up to 8ma.
530 sdmmc_bus4: sdmmc-bus4 {
531 rockchip,pins = <6 16 RK_FUNC_1 &pcfg_pull_up_drv_8ma>,
532 <6 17 RK_FUNC_1 &pcfg_pull_up_drv_8ma>,
533 <6 18 RK_FUNC_1 &pcfg_pull_up_drv_8ma>,
534 <6 19 RK_FUNC_1 &pcfg_pull_up_drv_8ma>;
537 sdmmc_clk: sdmmc-clk {
538 rockchip,pins = <6 20 RK_FUNC_1 &pcfg_pull_none_drv_8ma>;
541 sdmmc_cmd: sdmmc-cmd {
542 rockchip,pins = <6 21 RK_FUNC_1 &pcfg_pull_up_drv_8ma>;
545 sdmmc_pwr: sdmmc-pwr {
546 rockchip,pins = <7 11 RK_FUNC_GPIO &pcfg_pull_none>;
551 host_vbus_drv: host-vbus-drv {
552 rockchip,pins = <0 14 RK_FUNC_GPIO &pcfg_pull_none>;
555 usbhub_rst: usbhub-rst {
556 rockchip,pins = <8 3 RK_FUNC_GPIO &pcfg_output_high>;
561 otg_vbus_drv: otg-vbus-drv {
562 rockchip,pins = <0 12 RK_FUNC_GPIO &pcfg_pull_none>;
567 uart0_gpios: uart0-gpios {
568 rockchip,pins = <4 19 RK_FUNC_GPIO &pcfg_pull_none>;
574 vref-supply = <&vcc_18>;
579 clock-frequency = <50000000>;
580 clock-freq-min-max = <200000 50000000>;
586 keep-power-in-suspend;
587 mmc-pwrseq = <&sdio_pwrseq>;
590 pinctrl-names = "default";
591 pinctrl-0 = <&sdio0_bus4 &sdio0_cmd &sdio0_clk &sdio0_int>;
594 vmmc-supply = <&vbat_wl>;
595 vqmmc-supply = <&vccio_wl>;
603 card-detect-delay = <200>;
606 pinctrl-names = "default";
607 pinctrl-0 = <&sdmmc_clk>, <&sdmmc_cmd>, <&sdmmc_cd>, <&sdmmc_bus4>;
609 vmmc-supply = <&vcc_sd>;
610 vqmmc-supply = <&vccio_sd>;
619 pinctrl-names = "default";
620 pinctrl-0 = <&spi0_clk>, <&spi0_cs0>, <&spi0_tx>, <&spi0_rx>, <&spi0_cs1>;
625 rockchip,hw-tshut-mode = <0>;
626 rockchip,hw-tshut-polarity = <0>;
631 pinctrl-names = "default";
632 pinctrl-0 = <&uart0_xfer>, <&uart0_cts>;
653 pinctrl-names = "default";
654 pinctrl-0 = <&usbhub_rst>;