2 * Copyright 2016 Rockchip, Inc
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.
44 #include <dt-bindings/pwm/pwm.h>
45 #include "rk3288.dtsi"
48 compatible = "rockchip,rk3288-miqi", "rockchip,rk3288";
51 device_type = "memory";
52 reg = <0x0 0x80000000>;
56 compatible = "simple-audio-card";
57 simple-audio-card,format = "i2s";
58 simple-audio-card,name = "DW-HDMI";
59 simple-audio-card,mclk-fs = <512>;
61 simple-audio-card,dai-link@0 { /* I2S - S/PDIF */
72 * If you want to support more cards,
73 * you can add more dai-link node,
76 * simple-audio-card,dai-link@1 {
83 ext_gmac: external-gmac-clock {
84 compatible = "fixed-clock";
85 clock-frequency = <125000000>;
86 clock-output-names = "ext_gmac";
91 compatible = "gpio-keys";
96 pinctrl-names = "default";
100 gpios = <&gpio7 9 GPIO_ACTIVE_LOW>;
103 linux,input-type = <1>;
104 debounce-interval = <100>;
108 /* This turns on USB vbus for both host0 (ehci) and host1 (dwc2) */
109 vcc_host: vcc-host-regulator {
110 compatible = "regulator-fixed";
112 gpio = <&gpio0 14 GPIO_ACTIVE_HIGH>;
113 pinctrl-names = "default";
114 pinctrl-0 = <&host_vbus_drv>;
115 regulator-name = "vcc_host";
120 vcc_phy: vcc-phy-regulator {
121 compatible = "regulator-fixed";
123 gpio = <&gpio0 6 GPIO_ACTIVE_HIGH>;
124 pinctrl-names = "default";
125 pinctrl-0 = <ð_phy_pwr>;
126 regulator-name = "vcc_phy";
127 regulator-min-microvolt = <3300000>;
128 regulator-max-microvolt = <3300000>;
133 vcc_sys: vsys-regulator {
134 compatible = "regulator-fixed";
135 regulator-name = "vcc_sys";
136 regulator-min-microvolt = <5000000>;
137 regulator-max-microvolt = <5000000>;
144 * NOTE: vcc_sd isn't hooked up on v1.0 boards where power comes from
145 * vcc_io directly. Those boards won't be able to power cycle SD cards
146 * but it shouldn't hurt to toggle this pin there anyway.
148 vcc_sd: sdmmc-regulator {
149 compatible = "regulator-fixed";
150 gpio = <&gpio7 11 GPIO_ACTIVE_LOW>;
151 pinctrl-names = "default";
152 pinctrl-0 = <&sdmmc_pwr>;
153 regulator-name = "vcc_sd";
154 regulator-min-microvolt = <3300000>;
155 regulator-max-microvolt = <3300000>;
156 startup-delay-us = <100000>;
157 vin-supply = <&vcc_io>;
161 compatible = "rockchip,rk3288-io-voltage-domain";
162 rockchip,grf = <&grf>;
163 sdcard-supply = <&vccio_sd>;
167 compatible = "gpio-leds";
172 linux,default-trigger = "timer";
173 default-state = "on";
174 gpios = <&gpio7 2 GPIO_ACTIVE_HIGH>;
179 linux,default-trigger = "heartbeat";
180 default-state = "on";
181 gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>;
187 cpu0-supply = <&vdd_cpu>;
192 mali-supply = <&vdd_gpu>;
200 clock-frequency = <75000000>;
202 pinctrl-names = "default";
203 pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_pwr &emmc_bus8>;
208 #address-cells = <1>;
210 #sound-dai-cells = <0>;
211 ddc-i2c-bus = <&i2c5>;
224 card-detect-delay = <200>;
225 disable-wp; /* wp not hooked up */
227 pinctrl-names = "default";
228 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
230 vmmc-supply = <&vcc_sd>;
231 vqmmc-supply = <&vccio_sd>;
235 phy-supply = <&vcc_phy>;
237 clock_in_out = "input";
238 snps,reset-gpio = <&gpio4 7 0>;
239 snps,reset-active-low;
240 snps,reset-delays-us = <0 10000 1000000>;
241 assigned-clocks = <&cru SCLK_MAC>;
242 assigned-clock-parents = <&ext_gmac>;
243 pinctrl-names = "default";
244 pinctrl-0 = <&rgmii_pins>;
250 /* ----------------------------------------------------------------------------------
261 -------------------------------------------------------------------------------------*/
265 clock-frequency = <400000>;
268 compatible = "silergy,syr827";
269 fcs,suspend-voltage-selector = <1>;
271 regulator-name = "vdd_cpu";
272 regulator-min-microvolt = <712500>;
273 regulator-max-microvolt = <1500000>;
276 regulator-enable-ramp-delay = <300>;
277 regulator-ramp-delay = <8000>;
278 vin-supply = <&vcc_sys>;
282 compatible = "silergy,syr828";
283 fcs,suspend-voltage-selector = <1>;
285 regulator-name = "vdd_gpu";
286 regulator-min-microvolt = <712500>;
287 regulator-max-microvolt = <1500000>;
289 vin-supply = <&vcc_sys>;
293 compatible = "haoyu,hym8563";
296 interrupt-parent = <&gpio0>;
297 interrupts = <4 IRQ_TYPE_EDGE_FALLING>;
299 pinctrl-names = "default";
300 pinctrl-0 = <&pmic_int>;
303 clock-output-names = "xin32k";
306 act8846: act8846@5a {
307 compatible = "active-semi,act8846";
311 vp1-supply = <&vcc_sys>;
312 vp2-supply = <&vcc_sys>;
313 vp3-supply = <&vcc_sys>;
314 vp4-supply = <&vcc_sys>;
315 inl1-supply = <&vcc_io>;
316 inl2-supply = <&vcc_sys>;
317 inl3-supply = <&vcc_20>;
321 regulator-name = "VCC_DDR";
322 regulator-min-microvolt = <1200000>;
323 regulator-max-microvolt = <1200000>;
328 regulator-name = "VCC_IO";
329 regulator-min-microvolt = <3300000>;
330 regulator-max-microvolt = <3300000>;
335 regulator-name = "VDD_LOG";
336 regulator-min-microvolt = <1000000>;
337 regulator-max-microvolt = <1000000>;
342 regulator-name = "VCC_20";
343 regulator-min-microvolt = <2000000>;
344 regulator-max-microvolt = <2000000>;
349 regulator-name = "VCCIO_SD";
350 regulator-min-microvolt = <1800000>;
351 regulator-max-microvolt = <3300000>;
356 regulator-name = "VDD10_LCD";
357 regulator-min-microvolt = <1000000>;
358 regulator-max-microvolt = <1000000>;
363 regulator-name = "VCCA_CODEC";
364 regulator-min-microvolt = <3300000>;
365 regulator-max-microvolt = <3300000>;
370 regulator-name = "VCCA_TP";
371 regulator-min-microvolt = <3300000>;
372 regulator-max-microvolt = <3300000>;
377 regulator-name = "VCCIO_PMU";
378 regulator-min-microvolt = <3300000>;
379 regulator-max-microvolt = <3300000>;
384 regulator-name = "VDD_10";
385 regulator-min-microvolt = <1000000>;
386 regulator-max-microvolt = <1000000>;
391 regulator-name = "VCC_18";
392 regulator-min-microvolt = <1800000>;
393 regulator-max-microvolt = <1800000>;
398 regulator-name = "VCC18_LCD";
399 regulator-min-microvolt = <1800000>;
400 regulator-max-microvolt = <1800000>;
409 /* Add more nodes to your requirement, such as i2c0 */
414 /* Add more nodes to your requirement, such as i2c2 */
422 #sound-dai-cells = <0>;
482 pcfg_pull_none_drv_8ma: pcfg-pull-none-drv-8ma {
483 drive-strength = <8>;
486 pcfg_pull_up_drv_8ma: pcfg-pull-up-drv-8ma {
488 drive-strength = <8>;
493 rockchip,pins = <7 9 RK_FUNC_GPIO &pcfg_pull_up>;
499 rockchip,pins = <RK_GPIO0 4 RK_FUNC_GPIO &pcfg_pull_up>;
505 * Default drive strength isn't enough to achieve even
506 * high-speed mode on EVB board so bump up to 8ma.
508 sdmmc_bus4: sdmmc-bus4 {
509 rockchip,pins = <6 16 RK_FUNC_1 &pcfg_pull_up_drv_8ma>,
510 <6 17 RK_FUNC_1 &pcfg_pull_up_drv_8ma>,
511 <6 18 RK_FUNC_1 &pcfg_pull_up_drv_8ma>,
512 <6 19 RK_FUNC_1 &pcfg_pull_up_drv_8ma>;
515 sdmmc_clk: sdmmc-clk {
516 rockchip,pins = <6 20 RK_FUNC_1 &pcfg_pull_none_drv_8ma>;
519 sdmmc_cmd: sdmmc-cmd {
520 rockchip,pins = <6 21 RK_FUNC_1 &pcfg_pull_up_drv_8ma>;
523 sdmmc_pwr: sdmmc-pwr {
524 rockchip,pins = <7 11 RK_FUNC_GPIO &pcfg_pull_none>;
529 host_vbus_drv: host-vbus-drv {
530 rockchip,pins = <0 14 RK_FUNC_GPIO &pcfg_pull_none>;
534 rockchip,pins = <7 8 RK_FUNC_GPIO &pcfg_pull_none>;
539 eth_phy_pwr: eth-phy-pwr {
540 rockchip,pins = <0 6 RK_FUNC_GPIO &pcfg_pull_none>;