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";
48 reg = <0x0 0x0 0x0 0x80000000>;
51 backlight: backlight {
52 compatible = "pwm-backlight";
56 16 17 18 19 20 21 22 23
57 24 25 26 27 28 29 30 31
58 32 33 34 35 36 37 38 39
59 40 41 42 43 44 45 46 47
60 48 49 50 51 52 53 54 55
61 56 57 58 59 60 61 62 63
62 64 65 66 67 68 69 70 71
63 72 73 74 75 76 77 78 79
64 80 81 82 83 84 85 86 87
65 88 89 90 91 92 93 94 95
66 96 97 98 99 100 101 102 103
67 104 105 106 107 108 109 110 111
68 112 113 114 115 116 117 118 119
69 120 121 122 123 124 125 126 127
70 128 129 130 131 132 133 134 135
71 136 137 138 139 140 141 142 143
72 144 145 146 147 148 149 150 151
73 152 153 154 155 156 157 158 159
74 160 161 162 163 164 165 166 167
75 168 169 170 171 172 173 174 175
76 176 177 178 179 180 181 182 183
77 184 185 186 187 188 189 190 191
78 192 193 194 195 196 197 198 199
79 200 201 202 203 204 205 206 207
80 208 209 210 211 212 213 214 215
81 216 217 218 219 220 221 222 223
82 224 225 226 227 228 229 230 231
83 232 233 234 235 236 237 238 239
84 240 241 242 243 244 245 246 247
85 248 249 250 251 252 253 254 255>;
86 default-brightness-level = <180>;
87 pwms = <&pwm1 0 25000 0>;
88 pwm-names = "backlight";
89 power-supply = <&vcc_sys>;
93 compatible ="lg,lp079qx1-sp0v";
94 power-supply = <&vcc_sys>;
95 backlight = <&backlight>;
96 enable-gpios = <&gpio0 RK_PB5 GPIO_ACTIVE_HIGH>;
100 panel_in_edp: endpoint {
101 remote-endpoint = <&edp_out_panel>;
107 dovdd_1v8: dovdd-1v8-regulator {
108 compatible = "regulator-fixed";
109 regulator-name = "dovdd_1v8";
110 regulator-min-microvolt = <1800000>;
111 regulator-max-microvolt = <1800000>;
112 vin-supply = <&vcc28_dvp>;
115 ext_gmac: external-gmac-clock {
116 compatible = "fixed-clock";
118 clock-frequency = <125000000>;
119 clock-output-names = "ext_gmac";
123 compatible = "gpio-ir-receiver";
124 pinctrl-names = "default";
125 pinctrl-0 = <&ir_int>;
129 compatible = "gpio-keys";
130 #address-cells = <1>;
134 gpio-key,wakeup = <1>;
135 gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
136 label = "GPIO Power";
138 pinctrl-names = "default";
139 pinctrl-0 = <&pwr_key>;
144 compatible = "gpio-leds";
147 gpios = <&gpio8 1 GPIO_ACTIVE_LOW>;
148 label = "firefly:blue:user";
149 linux,default-trigger = "rc-feedback";
150 pinctrl-names = "default";
151 pinctrl-0 = <&work_led>;
155 gpios = <&gpio8 2 GPIO_ACTIVE_LOW>;
156 label = "firefly:green:power";
157 linux,default-trigger = "default-on";
158 pinctrl-names = "default";
159 pinctrl-0 = <&power_led>;
163 sdio_pwrseq: sdio-pwrseq {
164 compatible = "mmc-pwrseq-simple";
166 clock-names = "ext_clock";
167 pinctrl-names = "default";
168 pinctrl-0 = <&wifi_enable_h>;
171 * On the module itself this is one of these (depending
172 * on the actual card populated):
173 * - SDIO_RESET_L_WL_REG_ON
174 * - PDN (power down when low)
176 reset-gpios = <&gpio4 28 GPIO_ACTIVE_LOW>;
180 compatible = "simple-audio-card";
181 simple-audio-card,name = "SPDIF";
182 simple-audio-card,dai-link@1 {
183 cpu { sound-dai = <&spdif>; };
184 codec { sound-dai = <&spdif_out>; };
188 spdif_out: spdif-out {
189 compatible = "linux,spdif-dit";
190 #sound-dai-cells = <0>;
193 vbat_wl: vcc_sys: vsys-regulator {
194 compatible = "regulator-fixed";
195 regulator-name = "vcc_sys";
196 regulator-min-microvolt = <5000000>;
197 regulator-max-microvolt = <5000000>;
202 vcc_sd: sdmmc-regulator {
203 compatible = "regulator-fixed";
204 gpio = <&gpio7 11 GPIO_ACTIVE_LOW>;
205 pinctrl-names = "default";
206 pinctrl-0 = <&sdmmc_pwr>;
207 regulator-name = "vcc_sd";
208 regulator-min-microvolt = <3300000>;
209 regulator-max-microvolt = <3300000>;
210 startup-delay-us = <100000>;
211 vin-supply = <&vcc_io>;
214 vcc_flash: flash-regulator {
215 compatible = "regulator-fixed";
216 regulator-name = "vcc_flash";
217 regulator-min-microvolt = <1800000>;
218 regulator-max-microvolt = <1800000>;
219 vin-supply = <&vcc_io>;
222 vcc_5v: usb-regulator {
223 compatible = "regulator-fixed";
224 regulator-name = "vcc_5v";
225 regulator-min-microvolt = <5000000>;
226 regulator-max-microvolt = <5000000>;
229 vin-supply = <&vcc_sys>;
232 vcc_host_5v: usb-host-regulator {
233 compatible = "regulator-fixed";
235 gpio = <&gpio0 14 GPIO_ACTIVE_HIGH>;
236 pinctrl-names = "default";
237 pinctrl-0 = <&host_vbus_drv>;
238 regulator-name = "vcc_host_5v";
239 regulator-min-microvolt = <5000000>;
240 regulator-max-microvolt = <5000000>;
242 vin-supply = <&vcc_5v>;
245 vcc_otg_5v: usb-otg-regulator {
246 compatible = "regulator-fixed";
248 gpio = <&gpio0 12 GPIO_ACTIVE_HIGH>;
249 pinctrl-names = "default";
250 pinctrl-0 = <&otg_vbus_drv>;
251 regulator-name = "vcc_otg_5v";
252 regulator-min-microvolt = <5000000>;
253 regulator-max-microvolt = <5000000>;
255 vin-supply = <&vcc_5v>;
259 * A TT8142 creates both dovdd_1v8 and vcc28_dvp, controlled
260 * by the dvp_pwr pin.
262 vcc28_dvp: vcc28-dvp-regulator {
263 compatible = "regulator-fixed";
265 gpio = <&gpio0 11 GPIO_ACTIVE_HIGH>;
266 pinctrl-names = "default";
267 pinctrl-0 = <&dvp_pwr>;
268 regulator-name = "vcc28_dvp";
269 regulator-min-microvolt = <2800000>;
270 regulator-max-microvolt = <2800000>;
272 vin-supply = <&vcc_io>;
276 compatible = "bluetooth-platdata";
277 uart_rts_gpios = <&gpio4 19 GPIO_ACTIVE_LOW>;
278 pinctrl-names = "default", "rts_gpio";
279 pinctrl-0 = <&uart0_rts>;
280 pinctrl-1 = <&uart0_gpios>;
281 BT,reset_gpio = <&gpio4 29 GPIO_ACTIVE_HIGH>;
282 BT,wake_gpio = <&gpio4 26 GPIO_ACTIVE_HIGH>;
283 BT,wake_host_irq = <&gpio4 31 GPIO_ACTIVE_HIGH>;
288 compatible = "wlan-platdata";
289 rockchip,grf = <&grf>;
290 wifi_chip_type = "ap6335";
292 WIFI,host_wake_irq = <&gpio4 30 GPIO_ACTIVE_HIGH>;
298 cpu0-supply = <&vdd_cpu>;
302 vcc-supply = <&vdd_10>;
303 vccio-supply = <&vcc_18>;
310 #address-cells = <1>;
312 edp_out_panel: endpoint {
314 remote-endpoint = <&panel_in_edp>;
321 /delete-node/ endpoint@0;
334 pinctrl-names = "default";
335 pinctrl-0 = <&emmc_clk>, <&emmc_cmd>, <&emmc_pwr>, <&emmc_bus8>;
336 vmmc-supply = <&vcc_io>;
337 vqmmc-supply = <&vcc_flash>;
342 assigned-clocks = <&cru SCLK_MAC>;
343 assigned-clock-parents = <&ext_gmac>;
344 clock_in_out = "input";
345 pinctrl-names = "default";
346 pinctrl-0 = <&rgmii_pins>, <&phy_rst>, <&phy_pmeb>, <&phy_int>;
347 phy-supply = <&vcc_lan>;
349 snps,reset-active-low;
350 snps,reset-delays-us = <0 10000 1000000>;
351 snps,reset-gpio = <&gpio4 8 GPIO_ACTIVE_LOW>;
358 mali-supply = <&vdd_gpu>;
372 /delete-node/ endpoint@1;
376 clock-frequency = <400000>;
380 compatible = "silergy,syr827";
381 fcs,suspend-voltage-selector = <1>;
383 regulator-name = "vdd_cpu";
384 regulator-min-microvolt = <850000>;
385 regulator-max-microvolt = <1350000>;
388 regulator-enable-ramp-delay = <300>;
389 regulator-ramp-delay = <8000>;
390 vin-supply = <&vcc_sys>;
394 compatible = "silergy,syr828";
395 fcs,suspend-voltage-selector = <1>;
397 regulator-name = "vdd_gpu";
398 regulator-min-microvolt = <850000>;
399 regulator-max-microvolt = <1350000>;
401 regulator-ramp-delay = <6000>;
402 vin-supply = <&vcc_sys>;
405 hym8563: hym8563@51 {
406 compatible = "haoyu,hym8563";
409 clock-frequency = <32768>;
410 clock-output-names = "xin32k";
411 interrupt-parent = <&gpio7>;
412 interrupts = <4 IRQ_TYPE_EDGE_FALLING>;
413 pinctrl-names = "default";
414 pinctrl-0 = <&rtc_int>;
417 act8846: act8846@5a {
418 compatible = "active-semi,act8846";
420 pinctrl-names = "default";
421 pinctrl-0 = <&pmic_vsel>, <&pwr_hold>;
422 system-power-controller;
424 vp1-supply = <&vcc_sys>;
425 vp2-supply = <&vcc_sys>;
426 vp3-supply = <&vcc_sys>;
427 vp4-supply = <&vcc_sys>;
428 inl1-supply = <&vcc_sys>;
429 inl2-supply = <&vcc_sys>;
430 inl3-supply = <&vcc_20>;
434 regulator-name = "vcc_ddr";
435 regulator-min-microvolt = <1200000>;
436 regulator-max-microvolt = <1200000>;
441 regulator-name = "vcc_io";
442 regulator-min-microvolt = <3300000>;
443 regulator-max-microvolt = <3300000>;
448 regulator-name = "vdd_log";
449 regulator-min-microvolt = <1100000>;
450 regulator-max-microvolt = <1100000>;
455 regulator-name = "vcc_20";
456 regulator-min-microvolt = <2000000>;
457 regulator-max-microvolt = <2000000>;
462 regulator-name = "vccio_sd";
463 regulator-min-microvolt = <3300000>;
464 regulator-max-microvolt = <3300000>;
469 regulator-name = "vdd10_lcd";
470 regulator-min-microvolt = <1000000>;
471 regulator-max-microvolt = <1000000>;
476 regulator-name = "vcca_18";
477 regulator-min-microvolt = <1800000>;
478 regulator-max-microvolt = <1800000>;
482 regulator-name = "vcca_33";
483 regulator-min-microvolt = <3300000>;
484 regulator-max-microvolt = <3300000>;
489 regulator-name = "vcc_lan";
490 regulator-min-microvolt = <3300000>;
491 regulator-max-microvolt = <3300000>;
495 regulator-name = "vdd_10";
496 regulator-min-microvolt = <1000000>;
497 regulator-max-microvolt = <1000000>;
501 vccio_wl: vcc_18: REG11 {
502 regulator-name = "vcc_18";
503 regulator-min-microvolt = <1800000>;
504 regulator-max-microvolt = <1800000>;
509 regulator-name = "vcc18_lcd";
510 regulator-min-microvolt = <1800000>;
511 regulator-max-microvolt = <1800000>;
522 compatible = "invensense,mpu6050";
524 interrupt-parent = <&gpio5>;
525 interrupts = <RK_PB4 IRQ_TYPE_LEVEL_LOW>;
549 audio-supply = <&vcca_33>;
550 bb-supply = <&vcc_io>;
551 dvp-supply = <&dovdd_1v8>;
552 flash0-supply = <&vcc_flash>;
553 flash1-supply = <&vcc_lan>;
554 gpio30-supply = <&vcc_io>;
555 gpio1830-supply = <&vcc_io>;
556 lcdc-supply = <&vcc_io>;
557 sdcard-supply = <&vccio_sd>;
558 wifi-supply = <&vccio_wl>;
566 pcfg_output_high: pcfg-output-high {
570 pcfg_output_low: pcfg-output-low {
574 pcfg_pull_none_drv_8ma: pcfg-pull-none-drv-8ma {
575 drive-strength = <8>;
578 pcfg_pull_up_drv_8ma: pcfg-pull-up-drv-8ma {
580 drive-strength = <8>;
585 rockchip,pins = <0 1 RK_FUNC_GPIO &pcfg_output_high>;
591 rockchip,pins = <0 11 RK_FUNC_GPIO &pcfg_pull_none>;
597 rockchip,pins = <0 9 RK_FUNC_GPIO &pcfg_pull_up>;
601 rockchip,pins = <0 8 RK_FUNC_GPIO &pcfg_pull_up>;
605 rockchip,pins = <4 8 RK_FUNC_GPIO &pcfg_output_high>;
611 rockchip,pins = <7 4 RK_FUNC_GPIO &pcfg_pull_up>;
617 rockchip,pins = <0 5 RK_FUNC_GPIO &pcfg_pull_up>;
622 power_led: power-led {
623 rockchip,pins = <8 2 RK_FUNC_GPIO &pcfg_pull_none>;
627 rockchip,pins = <8 1 RK_FUNC_GPIO &pcfg_pull_none>;
632 wifi_enable_h: wifi-enable-h {
633 rockchip,pins = <4 28 RK_FUNC_GPIO &pcfg_pull_none>;
639 * Default drive strength isn't enough to achieve even
640 * high-speed mode on firefly board so bump up to 8ma.
642 sdmmc_bus4: sdmmc-bus4 {
643 rockchip,pins = <6 16 RK_FUNC_1 &pcfg_pull_up_drv_8ma>,
644 <6 17 RK_FUNC_1 &pcfg_pull_up_drv_8ma>,
645 <6 18 RK_FUNC_1 &pcfg_pull_up_drv_8ma>,
646 <6 19 RK_FUNC_1 &pcfg_pull_up_drv_8ma>;
649 sdmmc_clk: sdmmc-clk {
650 rockchip,pins = <6 20 RK_FUNC_1 &pcfg_pull_none_drv_8ma>;
653 sdmmc_cmd: sdmmc-cmd {
654 rockchip,pins = <6 21 RK_FUNC_1 &pcfg_pull_up_drv_8ma>;
657 sdmmc_pwr: sdmmc-pwr {
658 rockchip,pins = <7 11 RK_FUNC_GPIO &pcfg_pull_none>;
663 host_vbus_drv: host-vbus-drv {
664 rockchip,pins = <0 14 RK_FUNC_GPIO &pcfg_pull_none>;
667 usbhub_rst: usbhub-rst {
668 rockchip,pins = <8 3 RK_FUNC_GPIO &pcfg_output_high>;
673 otg_vbus_drv: otg-vbus-drv {
674 rockchip,pins = <0 12 RK_FUNC_GPIO &pcfg_pull_none>;
679 uart0_gpios: uart0-gpios {
680 rockchip,pins = <4 19 RK_FUNC_GPIO &pcfg_pull_none>;
686 vref-supply = <&vcc_18>;
691 clock-frequency = <50000000>;
692 clock-freq-min-max = <200000 50000000>;
698 keep-power-in-suspend;
699 mmc-pwrseq = <&sdio_pwrseq>;
702 pinctrl-names = "default";
703 pinctrl-0 = <&sdio0_bus4 &sdio0_cmd &sdio0_clk &sdio0_int>;
706 vmmc-supply = <&vbat_wl>;
707 vqmmc-supply = <&vccio_wl>;
715 card-detect-delay = <200>;
718 pinctrl-names = "default";
719 pinctrl-0 = <&sdmmc_clk>, <&sdmmc_cmd>, <&sdmmc_cd>, <&sdmmc_bus4>;
721 vmmc-supply = <&vcc_sd>;
722 vqmmc-supply = <&vccio_sd>;
731 pinctrl-names = "default";
732 pinctrl-0 = <&spi0_clk>, <&spi0_cs0>, <&spi0_tx>, <&spi0_rx>, <&spi0_cs1>;
737 rockchip,hw-tshut-mode = <0>;
738 rockchip,hw-tshut-polarity = <0>;
743 pinctrl-names = "default";
744 pinctrl-0 = <&uart0_xfer>, <&uart0_cts>;
765 pinctrl-names = "default";
766 pinctrl-0 = <&usbhub_rst>;
783 /delete-node/ endpoint@1;
799 /delete-node/ endpoint@0;