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"
50 ext_gmac: external-gmac-clock {
51 compatible = "fixed-clock";
53 clock-frequency = <125000000>;
54 clock-output-names = "ext_gmac";
58 compatible = "gpio-ir-receiver";
59 pinctrl-names = "default";
60 pinctrl-0 = <&ir_int>;
64 compatible = "gpio-keys";
69 gpio-key,wakeup = <1>;
70 gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
73 pinctrl-names = "default";
74 pinctrl-0 = <&pwr_key>;
79 compatible = "gpio-leds";
82 gpios = <&gpio8 1 GPIO_ACTIVE_LOW>;
83 label = "firefly:blue:user";
84 linux,default-trigger = "rc-feedback";
85 pinctrl-names = "default";
86 pinctrl-0 = <&work_led>;
90 gpios = <&gpio8 2 GPIO_ACTIVE_LOW>;
91 label = "firefly:green:power";
92 linux,default-trigger = "default-on";
93 pinctrl-names = "default";
94 pinctrl-0 = <&power_led>;
98 vcc_sys: vsys-regulator {
99 compatible = "regulator-fixed";
100 regulator-name = "vcc_sys";
101 regulator-min-microvolt = <5000000>;
102 regulator-max-microvolt = <5000000>;
107 vcc_sd: sdmmc-regulator {
108 compatible = "regulator-fixed";
109 gpio = <&gpio7 11 GPIO_ACTIVE_LOW>;
110 pinctrl-names = "default";
111 pinctrl-0 = <&sdmmc_pwr>;
112 regulator-name = "vcc_sd";
113 regulator-min-microvolt = <3300000>;
114 regulator-max-microvolt = <3300000>;
115 startup-delay-us = <100000>;
116 vin-supply = <&vcc_io>;
119 vcc_flash: flash-regulator {
120 compatible = "regulator-fixed";
121 regulator-name = "vcc_flash";
122 regulator-min-microvolt = <1800000>;
123 regulator-max-microvolt = <1800000>;
124 vin-supply = <&vcc_io>;
127 vcc_5v: usb-regulator {
128 compatible = "regulator-fixed";
129 regulator-name = "vcc_5v";
130 regulator-min-microvolt = <5000000>;
131 regulator-max-microvolt = <5000000>;
134 vin-supply = <&vcc_sys>;
137 vcc_host_5v: usb-host-regulator {
138 compatible = "regulator-fixed";
140 gpio = <&gpio0 14 GPIO_ACTIVE_HIGH>;
141 pinctrl-names = "default";
142 pinctrl-0 = <&host_vbus_drv>;
143 regulator-name = "vcc_host_5v";
144 regulator-min-microvolt = <5000000>;
145 regulator-max-microvolt = <5000000>;
147 vin-supply = <&vcc_5v>;
150 vcc_otg_5v: usb-otg-regulator {
151 compatible = "regulator-fixed";
153 gpio = <&gpio0 12 GPIO_ACTIVE_HIGH>;
154 pinctrl-names = "default";
155 pinctrl-0 = <&otg_vbus_drv>;
156 regulator-name = "vcc_otg_5v";
157 regulator-min-microvolt = <5000000>;
158 regulator-max-microvolt = <5000000>;
160 vin-supply = <&vcc_5v>;
165 cpu0-supply = <&vdd_cpu>;
175 pinctrl-names = "default";
176 pinctrl-0 = <&emmc_clk>, <&emmc_cmd>, <&emmc_pwr>, <&emmc_bus8>;
177 vmmc-supply = <&vcc_io>;
178 vqmmc-supply = <&vcc_flash>;
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 ddc-i2c-bus = <&i2c5>;
204 clock-frequency = <400000>;
208 compatible = "silergy,syr827";
209 fcs,suspend-voltage-selector = <1>;
211 regulator-name = "vdd_cpu";
212 regulator-min-microvolt = <850000>;
213 regulator-max-microvolt = <1350000>;
216 vin-supply = <&vcc_sys>;
220 compatible = "silergy,syr828";
221 fcs,suspend-voltage-selector = <1>;
223 regulator-name = "vdd_gpu";
224 regulator-min-microvolt = <850000>;
225 regulator-max-microvolt = <1350000>;
227 vin-supply = <&vcc_sys>;
230 hym8563: hym8563@51 {
231 compatible = "haoyu,hym8563";
234 clock-frequency = <32768>;
235 clock-output-names = "xin32k";
236 interrupt-parent = <&gpio7>;
237 interrupts = <4 IRQ_TYPE_EDGE_FALLING>;
238 pinctrl-names = "default";
239 pinctrl-0 = <&rtc_int>;
242 act8846: act8846@5a {
243 compatible = "active-semi,act8846";
245 pinctrl-names = "default";
246 pinctrl-0 = <&pmic_vsel>, <&pwr_hold>;
247 system-power-controller;
251 regulator-name = "vcc_ddr";
252 regulator-min-microvolt = <1200000>;
253 regulator-max-microvolt = <1200000>;
258 regulator-name = "vcc_io";
259 regulator-min-microvolt = <3300000>;
260 regulator-max-microvolt = <3300000>;
265 regulator-name = "vdd_log";
266 regulator-min-microvolt = <1100000>;
267 regulator-max-microvolt = <1100000>;
272 regulator-name = "vcc_20";
273 regulator-min-microvolt = <2000000>;
274 regulator-max-microvolt = <2000000>;
279 regulator-name = "vccio_sd";
280 regulator-min-microvolt = <3300000>;
281 regulator-max-microvolt = <3300000>;
286 regulator-name = "vdd10_lcd";
287 regulator-min-microvolt = <1000000>;
288 regulator-max-microvolt = <1000000>;
293 regulator-name = "vcca_18";
294 regulator-min-microvolt = <1800000>;
295 regulator-max-microvolt = <1800000>;
299 regulator-name = "vcca_33";
300 regulator-min-microvolt = <3300000>;
301 regulator-max-microvolt = <3300000>;
305 regulator-name = "vcc_lan";
306 regulator-min-microvolt = <3300000>;
307 regulator-max-microvolt = <3300000>;
311 regulator-name = "vdd_10";
312 regulator-min-microvolt = <1000000>;
313 regulator-max-microvolt = <1000000>;
318 regulator-name = "vcc_18";
319 regulator-min-microvolt = <1800000>;
320 regulator-max-microvolt = <1800000>;
325 regulator-name = "vcc18_lcd";
326 regulator-min-microvolt = <1800000>;
327 regulator-max-microvolt = <1800000>;
351 pcfg_output_high: pcfg-output-high {
355 pcfg_output_low: pcfg-output-low {
361 rockchip,pins = <0 1 RK_FUNC_GPIO &pcfg_output_high>;
367 rockchip,pins = <0 9 RK_FUNC_GPIO &pcfg_pull_up>;
371 rockchip,pins = <0 8 RK_FUNC_GPIO &pcfg_pull_up>;
375 rockchip,pins = <4 8 RK_FUNC_GPIO &pcfg_output_high>;
381 rockchip,pins = <7 4 RK_FUNC_GPIO &pcfg_pull_up>;
387 rockchip,pins = <0 5 RK_FUNC_GPIO &pcfg_pull_up>;
392 power_led: power-led {
393 rockchip,pins = <8 2 RK_FUNC_GPIO &pcfg_pull_none>;
397 rockchip,pins = <8 1 RK_FUNC_GPIO &pcfg_pull_none>;
402 sdmmc_pwr: sdmmc-pwr {
403 rockchip,pins = <7 11 RK_FUNC_GPIO &pcfg_pull_none>;
408 host_vbus_drv: host-vbus-drv {
409 rockchip,pins = <0 14 RK_FUNC_GPIO &pcfg_pull_none>;
412 usbhub_rst: usbhub-rst {
413 rockchip,pins = <8 3 RK_FUNC_GPIO &pcfg_output_high>;
418 otg_vbus_drv: otg-vbus-drv {
419 rockchip,pins = <0 12 RK_FUNC_GPIO &pcfg_pull_none>;
425 vref-supply = <&vcc_18>;
435 pinctrl-names = "default";
436 pinctrl-0 = <&sdio0_bus4>, <&sdio0_cmd>, <&sdio0_clk>;
437 vmmc-supply = <&vcc_18>;
445 card-detect-delay = <200>;
448 pinctrl-names = "default";
449 pinctrl-0 = <&sdmmc_clk>, <&sdmmc_cmd>, <&sdmmc_cd>, <&sdmmc_bus4>;
450 vmmc-supply = <&vcc_sd>;
455 pinctrl-names = "default";
456 pinctrl-0 = <&spi0_clk>, <&spi0_cs0>, <&spi0_tx>, <&spi0_rx>, <&spi0_cs1>;
461 pinctrl-names = "default";
462 pinctrl-0 = <&uart0_xfer>, <&uart0_cts>, <&uart0_rts>;
483 pinctrl-names = "default";
484 pinctrl-0 = <&usbhub_rst>;