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;
249 vp1-supply = <&vcc_sys>;
250 vp2-supply = <&vcc_sys>;
251 vp3-supply = <&vcc_sys>;
252 vp4-supply = <&vcc_sys>;
253 inl1-supply = <&vcc_sys>;
254 inl2-supply = <&vcc_sys>;
255 inl3-supply = <&vcc_20>;
259 regulator-name = "vcc_ddr";
260 regulator-min-microvolt = <1200000>;
261 regulator-max-microvolt = <1200000>;
266 regulator-name = "vcc_io";
267 regulator-min-microvolt = <3300000>;
268 regulator-max-microvolt = <3300000>;
273 regulator-name = "vdd_log";
274 regulator-min-microvolt = <1100000>;
275 regulator-max-microvolt = <1100000>;
280 regulator-name = "vcc_20";
281 regulator-min-microvolt = <2000000>;
282 regulator-max-microvolt = <2000000>;
287 regulator-name = "vccio_sd";
288 regulator-min-microvolt = <3300000>;
289 regulator-max-microvolt = <3300000>;
294 regulator-name = "vdd10_lcd";
295 regulator-min-microvolt = <1000000>;
296 regulator-max-microvolt = <1000000>;
301 regulator-name = "vcca_18";
302 regulator-min-microvolt = <1800000>;
303 regulator-max-microvolt = <1800000>;
307 regulator-name = "vcca_33";
308 regulator-min-microvolt = <3300000>;
309 regulator-max-microvolt = <3300000>;
313 regulator-name = "vcc_lan";
314 regulator-min-microvolt = <3300000>;
315 regulator-max-microvolt = <3300000>;
319 regulator-name = "vdd_10";
320 regulator-min-microvolt = <1000000>;
321 regulator-max-microvolt = <1000000>;
326 regulator-name = "vcc_18";
327 regulator-min-microvolt = <1800000>;
328 regulator-max-microvolt = <1800000>;
333 regulator-name = "vcc18_lcd";
334 regulator-min-microvolt = <1800000>;
335 regulator-max-microvolt = <1800000>;
359 pcfg_output_high: pcfg-output-high {
363 pcfg_output_low: pcfg-output-low {
369 rockchip,pins = <0 1 RK_FUNC_GPIO &pcfg_output_high>;
375 rockchip,pins = <0 9 RK_FUNC_GPIO &pcfg_pull_up>;
379 rockchip,pins = <0 8 RK_FUNC_GPIO &pcfg_pull_up>;
383 rockchip,pins = <4 8 RK_FUNC_GPIO &pcfg_output_high>;
389 rockchip,pins = <7 4 RK_FUNC_GPIO &pcfg_pull_up>;
395 rockchip,pins = <0 5 RK_FUNC_GPIO &pcfg_pull_up>;
400 power_led: power-led {
401 rockchip,pins = <8 2 RK_FUNC_GPIO &pcfg_pull_none>;
405 rockchip,pins = <8 1 RK_FUNC_GPIO &pcfg_pull_none>;
410 sdmmc_pwr: sdmmc-pwr {
411 rockchip,pins = <7 11 RK_FUNC_GPIO &pcfg_pull_none>;
416 host_vbus_drv: host-vbus-drv {
417 rockchip,pins = <0 14 RK_FUNC_GPIO &pcfg_pull_none>;
420 usbhub_rst: usbhub-rst {
421 rockchip,pins = <8 3 RK_FUNC_GPIO &pcfg_output_high>;
426 otg_vbus_drv: otg-vbus-drv {
427 rockchip,pins = <0 12 RK_FUNC_GPIO &pcfg_pull_none>;
433 vref-supply = <&vcc_18>;
443 pinctrl-names = "default";
444 pinctrl-0 = <&sdio0_bus4>, <&sdio0_cmd>, <&sdio0_clk>;
445 vmmc-supply = <&vcc_18>;
453 card-detect-delay = <200>;
456 pinctrl-names = "default";
457 pinctrl-0 = <&sdmmc_clk>, <&sdmmc_cmd>, <&sdmmc_cd>, <&sdmmc_bus4>;
458 vmmc-supply = <&vcc_sd>;
463 pinctrl-names = "default";
464 pinctrl-0 = <&spi0_clk>, <&spi0_cs0>, <&spi0_tx>, <&spi0_rx>, <&spi0_cs1>;
469 rockchip,hw-tshut-mode = <0>;
470 rockchip,hw-tshut-polarity = <0>;
475 pinctrl-names = "default";
476 pinctrl-0 = <&uart0_xfer>, <&uart0_cts>, <&uart0_rts>;
497 pinctrl-names = "default";
498 pinctrl-0 = <&usbhub_rst>;