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 {
53 compatible = "pwm-backlight";
57 16 17 18 19 20 21 22 23
58 24 25 26 27 28 29 30 31
59 32 33 34 35 36 37 38 39
60 40 41 42 43 44 45 46 47
61 48 49 50 51 52 53 54 55
62 56 57 58 59 60 61 62 63
63 64 65 66 67 68 69 70 71
64 72 73 74 75 76 77 78 79
65 80 81 82 83 84 85 86 87
66 88 89 90 91 92 93 94 95
67 96 97 98 99 100 101 102 103
68 104 105 106 107 108 109 110 111
69 112 113 114 115 116 117 118 119
70 120 121 122 123 124 125 126 127
71 128 129 130 131 132 133 134 135
72 136 137 138 139 140 141 142 143
73 144 145 146 147 148 149 150 151
74 152 153 154 155 156 157 158 159
75 160 161 162 163 164 165 166 167
76 168 169 170 171 172 173 174 175
77 176 177 178 179 180 181 182 183
78 184 185 186 187 188 189 190 191
79 192 193 194 195 196 197 198 199
80 200 201 202 203 204 205 206 207
81 208 209 210 211 212 213 214 215
82 216 217 218 219 220 221 222 223
83 224 225 226 227 228 229 230 231
84 232 233 234 235 236 237 238 239
85 240 241 242 243 244 245 246 247
86 248 249 250 251 252 253 254 255>;
87 default-brightness-level = <180>;
88 pwms = <&pwm1 0 25000 0>;
89 pwm-names = "backlight";
90 power-supply = <&vcc_sys>;
95 compatible ="lg,lp079qx1-sp0v";
96 power-supply = <&vcc_sys>;
97 backlight = <&backlight>;
98 enable-gpios = <&gpio0 RK_PB5 GPIO_ACTIVE_HIGH>;
102 panel_in_edp: endpoint {
103 remote-endpoint = <&edp_out_panel>;
109 dovdd_1v8: dovdd-1v8-regulator {
110 compatible = "regulator-fixed";
111 regulator-name = "dovdd_1v8";
112 regulator-min-microvolt = <1800000>;
113 regulator-max-microvolt = <1800000>;
114 vin-supply = <&vcc28_dvp>;
117 ext_gmac: external-gmac-clock {
118 compatible = "fixed-clock";
120 clock-frequency = <125000000>;
121 clock-output-names = "ext_gmac";
125 compatible = "gpio-ir-receiver";
126 pinctrl-names = "default";
127 pinctrl-0 = <&ir_int>;
131 compatible = "gpio-keys";
132 #address-cells = <1>;
136 gpio-key,wakeup = <1>;
137 gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
138 label = "GPIO Power";
140 pinctrl-names = "default";
141 pinctrl-0 = <&pwr_key>;
146 compatible = "gpio-leds";
149 gpios = <&gpio8 1 GPIO_ACTIVE_LOW>;
150 label = "firefly:blue:user";
151 linux,default-trigger = "rc-feedback";
152 pinctrl-names = "default";
153 pinctrl-0 = <&work_led>;
157 gpios = <&gpio8 2 GPIO_ACTIVE_LOW>;
158 label = "firefly:green:power";
159 linux,default-trigger = "default-on";
160 pinctrl-names = "default";
161 pinctrl-0 = <&power_led>;
165 sdio_pwrseq: sdio-pwrseq {
166 compatible = "mmc-pwrseq-simple";
168 clock-names = "ext_clock";
169 pinctrl-names = "default";
170 pinctrl-0 = <&wifi_enable_h>;
173 * On the module itself this is one of these (depending
174 * on the actual card populated):
175 * - SDIO_RESET_L_WL_REG_ON
176 * - PDN (power down when low)
178 reset-gpios = <&gpio4 28 GPIO_ACTIVE_LOW>;
183 compatible = "simple-audio-card";
184 simple-audio-card,format = "i2s";
185 simple-audio-card,name = "rockchip,es8323-codec";
186 simple-audio-card,mclk-fs = <256>;
187 //simple-audio-card,hp-det-gpio = <&gpio7 15 GPIO_ACTIVE_HIGH>;
188 simple-audio-card,widgets =
189 "Microphone","Mic Jack",
190 "Headphone","Headphone Jack";
191 simple-audio-card,routing =
192 "Mic Jack","MICBIAS1",
194 "Headphone Jack","HPOL",
195 "Headphone Jack","HPOR";
196 simple-audio-card,cpu {
199 simple-audio-card,codec {
200 sound-dai = <&es8323>;
205 compatible = "simple-audio-card";
206 simple-audio-card,name = "SPDIF";
207 simple-audio-card,dai-link@1 {
208 cpu { sound-dai = <&spdif>; };
209 codec { sound-dai = <&spdif_out>; };
213 spdif_out: spdif-out {
214 compatible = "linux,spdif-dit";
215 #sound-dai-cells = <0>;
218 vbat_wl: vcc_sys: vsys-regulator {
219 compatible = "regulator-fixed";
220 regulator-name = "vcc_sys";
221 regulator-min-microvolt = <5000000>;
222 regulator-max-microvolt = <5000000>;
227 vcc_sd: sdmmc-regulator {
228 compatible = "regulator-fixed";
229 gpio = <&gpio7 11 GPIO_ACTIVE_LOW>;
230 pinctrl-names = "default";
231 pinctrl-0 = <&sdmmc_pwr>;
232 regulator-name = "vcc_sd";
233 regulator-min-microvolt = <3300000>;
234 regulator-max-microvolt = <3300000>;
235 startup-delay-us = <100000>;
236 vin-supply = <&vcc_io>;
239 vcc_flash: flash-regulator {
240 compatible = "regulator-fixed";
241 regulator-name = "vcc_flash";
242 regulator-min-microvolt = <1800000>;
243 regulator-max-microvolt = <1800000>;
244 vin-supply = <&vcc_io>;
247 vcc_5v: usb-regulator {
248 compatible = "regulator-fixed";
249 regulator-name = "vcc_5v";
250 regulator-min-microvolt = <5000000>;
251 regulator-max-microvolt = <5000000>;
254 vin-supply = <&vcc_sys>;
257 vcc_host_5v: usb-host-regulator {
258 compatible = "regulator-fixed";
260 gpio = <&gpio0 14 GPIO_ACTIVE_HIGH>;
261 pinctrl-names = "default";
262 pinctrl-0 = <&host_vbus_drv>;
263 regulator-name = "vcc_host_5v";
264 regulator-min-microvolt = <5000000>;
265 regulator-max-microvolt = <5000000>;
267 vin-supply = <&vcc_5v>;
270 vcc_otg_5v: usb-otg-regulator {
271 compatible = "regulator-fixed";
273 gpio = <&gpio0 12 GPIO_ACTIVE_HIGH>;
274 pinctrl-names = "default";
275 pinctrl-0 = <&otg_vbus_drv>;
276 regulator-name = "vcc_otg_5v";
277 regulator-min-microvolt = <5000000>;
278 regulator-max-microvolt = <5000000>;
280 vin-supply = <&vcc_5v>;
284 * A TT8142 creates both dovdd_1v8 and vcc28_dvp, controlled
285 * by the dvp_pwr pin.
287 vcc28_dvp: vcc28-dvp-regulator {
288 compatible = "regulator-fixed";
290 gpio = <&gpio0 11 GPIO_ACTIVE_HIGH>;
291 pinctrl-names = "default";
292 pinctrl-0 = <&dvp_pwr>;
293 regulator-name = "vcc28_dvp";
294 regulator-min-microvolt = <2800000>;
295 regulator-max-microvolt = <2800000>;
297 vin-supply = <&vcc_io>;
301 compatible = "bluetooth-platdata";
302 uart_rts_gpios = <&gpio4 19 GPIO_ACTIVE_LOW>;
303 pinctrl-names = "default", "rts_gpio";
304 pinctrl-0 = <&uart0_rts>;
305 pinctrl-1 = <&uart0_gpios>;
306 BT,reset_gpio = <&gpio4 29 GPIO_ACTIVE_HIGH>;
307 BT,wake_gpio = <&gpio4 26 GPIO_ACTIVE_HIGH>;
308 BT,wake_host_irq = <&gpio4 31 GPIO_ACTIVE_HIGH>;
313 compatible = "wlan-platdata";
314 rockchip,grf = <&grf>;
315 wifi_chip_type = "ap6335";
317 WIFI,host_wake_irq = <&gpio4 30 GPIO_ACTIVE_HIGH>;
323 cpu0-supply = <&vdd_cpu>;
327 vcc-supply = <&vdd_10>;
328 vccio-supply = <&vcc_18>;
335 #address-cells = <1>;
337 edp_out_panel: endpoint {
339 remote-endpoint = <&panel_in_edp>;
346 /delete-node/ endpoint@0;
360 pinctrl-names = "default";
361 pinctrl-0 = <&emmc_clk>, <&emmc_cmd>, <&emmc_pwr>, <&emmc_bus8>;
362 vmmc-supply = <&vcc_io>;
363 vqmmc-supply = <&vcc_flash>;
368 assigned-clocks = <&cru SCLK_MAC>;
369 assigned-clock-parents = <&ext_gmac>;
370 clock_in_out = "input";
371 pinctrl-names = "default";
372 pinctrl-0 = <&rgmii_pins>, <&phy_rst>, <&phy_pmeb>, <&phy_int>;
373 phy-supply = <&vcc_lan>;
375 snps,reset-active-low;
376 snps,reset-delays-us = <0 10000 1000000>;
377 snps,reset-gpio = <&gpio4 8 GPIO_ACTIVE_LOW>;
384 mali-supply = <&vdd_gpu>;
398 /delete-node/ endpoint@1;
402 clock-frequency = <400000>;
406 compatible = "silergy,syr827";
407 fcs,suspend-voltage-selector = <1>;
409 regulator-name = "vdd_cpu";
410 regulator-min-microvolt = <850000>;
411 regulator-max-microvolt = <1350000>;
414 regulator-enable-ramp-delay = <300>;
415 regulator-ramp-delay = <8000>;
416 vin-supply = <&vcc_sys>;
420 compatible = "silergy,syr828";
421 fcs,suspend-voltage-selector = <1>;
423 regulator-name = "vdd_gpu";
424 regulator-min-microvolt = <850000>;
425 regulator-max-microvolt = <1350000>;
427 regulator-ramp-delay = <6000>;
428 vin-supply = <&vcc_sys>;
431 hym8563: hym8563@51 {
432 compatible = "haoyu,hym8563";
435 clock-frequency = <32768>;
436 clock-output-names = "xin32k";
437 interrupt-parent = <&gpio7>;
438 interrupts = <4 IRQ_TYPE_EDGE_FALLING>;
439 pinctrl-names = "default";
440 pinctrl-0 = <&rtc_int>;
443 act8846: act8846@5a {
444 compatible = "active-semi,act8846";
446 pinctrl-names = "default";
447 pinctrl-0 = <&pmic_vsel>, <&pwr_hold>;
448 system-power-controller;
450 vp1-supply = <&vcc_sys>;
451 vp2-supply = <&vcc_sys>;
452 vp3-supply = <&vcc_sys>;
453 vp4-supply = <&vcc_sys>;
454 inl1-supply = <&vcc_sys>;
455 inl2-supply = <&vcc_sys>;
456 inl3-supply = <&vcc_20>;
460 regulator-name = "vcc_ddr";
461 regulator-min-microvolt = <1200000>;
462 regulator-max-microvolt = <1200000>;
467 regulator-name = "vcc_io";
468 regulator-min-microvolt = <3300000>;
469 regulator-max-microvolt = <3300000>;
474 regulator-name = "vdd_log";
475 regulator-min-microvolt = <1100000>;
476 regulator-max-microvolt = <1100000>;
481 regulator-name = "vcc_20";
482 regulator-min-microvolt = <2000000>;
483 regulator-max-microvolt = <2000000>;
488 regulator-name = "vccio_sd";
489 regulator-min-microvolt = <3300000>;
490 regulator-max-microvolt = <3300000>;
495 regulator-name = "vdd10_lcd";
496 regulator-min-microvolt = <1000000>;
497 regulator-max-microvolt = <1000000>;
502 regulator-name = "vcca_18";
503 regulator-min-microvolt = <1800000>;
504 regulator-max-microvolt = <1800000>;
508 regulator-name = "vcca_33";
509 regulator-min-microvolt = <3300000>;
510 regulator-max-microvolt = <3300000>;
515 regulator-name = "vcc_lan";
516 regulator-min-microvolt = <3300000>;
517 regulator-max-microvolt = <3300000>;
521 regulator-name = "vdd_10";
522 regulator-min-microvolt = <1000000>;
523 regulator-max-microvolt = <1000000>;
527 vccio_wl: vcc_18: REG11 {
528 regulator-name = "vcc_18";
529 regulator-min-microvolt = <1800000>;
530 regulator-max-microvolt = <1800000>;
535 regulator-name = "vcc18_lcd";
536 regulator-min-microvolt = <1800000>;
537 regulator-max-microvolt = <1800000>;
548 compatible = "invensense,mpu6050";
550 interrupt-parent = <&gpio5>;
551 interrupts = <RK_PB4 IRQ_TYPE_LEVEL_LOW>;
569 compatible = "everest,es8323";
571 spk-con-gpio = <&gpio7 3 GPIO_ACTIVE_HIGH>;
572 hp-det-gpio = <&gpio7 15 GPIO_ACTIVE_LOW>;
573 clock-names = "mclk";
574 clocks = <&cru SCLK_I2S0_OUT>;
575 #sound-dai-cells = <0>;
586 audio-supply = <&vcca_33>;
587 bb-supply = <&vcc_io>;
588 dvp-supply = <&dovdd_1v8>;
589 flash0-supply = <&vcc_flash>;
590 flash1-supply = <&vcc_lan>;
591 gpio30-supply = <&vcc_io>;
592 gpio1830-supply = <&vcc_io>;
593 lcdc-supply = <&vcc_io>;
594 sdcard-supply = <&vccio_sd>;
595 wifi-supply = <&vccio_wl>;
603 pcfg_output_high: pcfg-output-high {
607 pcfg_output_low: pcfg-output-low {
611 pcfg_pull_none_drv_8ma: pcfg-pull-none-drv-8ma {
612 drive-strength = <8>;
615 pcfg_pull_up_drv_8ma: pcfg-pull-up-drv-8ma {
617 drive-strength = <8>;
622 rockchip,pins = <0 1 RK_FUNC_GPIO &pcfg_output_high>;
628 rockchip,pins = <0 11 RK_FUNC_GPIO &pcfg_pull_none>;
634 rockchip,pins = <0 9 RK_FUNC_GPIO &pcfg_pull_up>;
638 rockchip,pins = <0 8 RK_FUNC_GPIO &pcfg_pull_up>;
642 rockchip,pins = <4 8 RK_FUNC_GPIO &pcfg_output_high>;
648 rockchip,pins = <7 4 RK_FUNC_GPIO &pcfg_pull_up>;
654 rockchip,pins = <0 5 RK_FUNC_GPIO &pcfg_pull_up>;
659 power_led: power-led {
660 rockchip,pins = <8 2 RK_FUNC_GPIO &pcfg_pull_none>;
664 rockchip,pins = <8 1 RK_FUNC_GPIO &pcfg_pull_none>;
669 wifi_enable_h: wifi-enable-h {
670 rockchip,pins = <4 28 RK_FUNC_GPIO &pcfg_pull_none>;
676 * Default drive strength isn't enough to achieve even
677 * high-speed mode on firefly board so bump up to 8ma.
679 sdmmc_bus4: sdmmc-bus4 {
680 rockchip,pins = <6 16 RK_FUNC_1 &pcfg_pull_up_drv_8ma>,
681 <6 17 RK_FUNC_1 &pcfg_pull_up_drv_8ma>,
682 <6 18 RK_FUNC_1 &pcfg_pull_up_drv_8ma>,
683 <6 19 RK_FUNC_1 &pcfg_pull_up_drv_8ma>;
686 sdmmc_clk: sdmmc-clk {
687 rockchip,pins = <6 20 RK_FUNC_1 &pcfg_pull_none_drv_8ma>;
690 sdmmc_cmd: sdmmc-cmd {
691 rockchip,pins = <6 21 RK_FUNC_1 &pcfg_pull_up_drv_8ma>;
694 sdmmc_pwr: sdmmc-pwr {
695 rockchip,pins = <7 11 RK_FUNC_GPIO &pcfg_pull_none>;
700 host_vbus_drv: host-vbus-drv {
701 rockchip,pins = <0 14 RK_FUNC_GPIO &pcfg_pull_none>;
704 usbhub_rst: usbhub-rst {
705 rockchip,pins = <8 3 RK_FUNC_GPIO &pcfg_output_high>;
710 otg_vbus_drv: otg-vbus-drv {
711 rockchip,pins = <0 12 RK_FUNC_GPIO &pcfg_pull_none>;
716 uart0_gpios: uart0-gpios {
717 rockchip,pins = <4 19 RK_FUNC_GPIO &pcfg_pull_none>;
724 #sound-dai-cells = <0>;
728 vref-supply = <&vcc_18>;
733 clock-frequency = <50000000>;
734 clock-freq-min-max = <200000 50000000>;
740 keep-power-in-suspend;
741 mmc-pwrseq = <&sdio_pwrseq>;
744 pinctrl-names = "default";
745 pinctrl-0 = <&sdio0_bus4 &sdio0_cmd &sdio0_clk &sdio0_int>;
748 vmmc-supply = <&vbat_wl>;
749 vqmmc-supply = <&vccio_wl>;
757 card-detect-delay = <200>;
760 pinctrl-names = "default";
761 pinctrl-0 = <&sdmmc_clk>, <&sdmmc_cmd>, <&sdmmc_cd>, <&sdmmc_bus4>;
763 vmmc-supply = <&vcc_sd>;
764 vqmmc-supply = <&vccio_sd>;
773 pinctrl-names = "default";
774 pinctrl-0 = <&spi0_clk>, <&spi0_cs0>, <&spi0_tx>, <&spi0_rx>, <&spi0_cs1>;
779 rockchip,hw-tshut-mode = <0>;
780 rockchip,hw-tshut-polarity = <0>;
785 pinctrl-names = "default";
786 pinctrl-0 = <&uart0_xfer>, <&uart0_cts>;
807 pinctrl-names = "default";
808 pinctrl-0 = <&usbhub_rst>;
825 /delete-node/ endpoint@1;
841 /delete-node/ endpoint@0;