2 * Copyright (c) 2016 Heiko Stuebner <heiko@sntech.de>
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/input/input.h>
45 #include "rk3288.dtsi"
48 model = "mqmaker MiQi";
49 compatible = "mqmaker,miqi", "rockchip,rk3288";
52 stdout-path = "serial2:115200n8";
56 device_type = "memory";
60 ext_gmac: external-gmac-clock {
61 compatible = "fixed-clock";
63 clock-frequency = <125000000>;
64 clock-output-names = "ext_gmac";
67 io_domains: io-domains {
68 compatible = "rockchip,rk3288-io-voltage-domain";
70 audio-supply = <&vcca_33>;
71 flash0-supply = <&vcc_flash>;
72 flash1-supply = <&vcc_lan>;
73 gpio30-supply = <&vcc_io>;
74 gpio1830-supply = <&vcc_io>;
75 lcdc-supply = <&vcc_io>;
76 sdcard-supply = <&vccio_sd>;
77 wifi-supply = <&vcc_18>;
81 compatible = "gpio-leds";
84 gpios = <&gpio7 4 GPIO_ACTIVE_LOW>;
85 label = "miqi:green:user";
86 linux,default-trigger = "default-on";
87 pinctrl-names = "default";
88 pinctrl-0 = <&led_ctl>;
92 vcc_flash: flash-regulator {
93 compatible = "regulator-fixed";
94 regulator-name = "vcc_flash";
95 regulator-min-microvolt = <1800000>;
96 regulator-max-microvolt = <1800000>;
97 vin-supply = <&vcc_io>;
100 vcc_host: usb-host-regulator {
101 compatible = "regulator-fixed";
103 gpio = <&gpio0 14 GPIO_ACTIVE_HIGH>;
104 pinctrl-names = "default";
105 pinctrl-0 = <&host_vbus_drv>;
106 regulator-name = "vcc_host";
107 regulator-min-microvolt = <5000000>;
108 regulator-max-microvolt = <5000000>;
110 vin-supply = <&vcc_sys>;
113 vcc_sd: sdmmc-regulator {
114 compatible = "regulator-fixed";
115 gpio = <&gpio7 11 GPIO_ACTIVE_LOW>;
116 pinctrl-names = "default";
117 pinctrl-0 = <&sdmmc_pwr>;
118 regulator-name = "vcc_sd";
119 regulator-min-microvolt = <3300000>;
120 regulator-max-microvolt = <3300000>;
121 startup-delay-us = <100000>;
122 vin-supply = <&vcc_io>;
125 vcc_sys: vsys-regulator {
126 compatible = "regulator-fixed";
127 regulator-name = "vcc_sys";
128 regulator-min-microvolt = <5000000>;
129 regulator-max-microvolt = <5000000>;
136 cpu0-supply = <&vdd_cpu>;
145 pinctrl-names = "default";
146 pinctrl-0 = <&emmc_clk>, <&emmc_cmd>, <&emmc_pwr>, <&emmc_bus8>;
147 vmmc-supply = <&vcc_io>;
148 vqmmc-supply = <&vcc_flash>;
153 assigned-clocks = <&cru SCLK_MAC>;
154 assigned-clock-parents = <&ext_gmac>;
155 clock_in_out = "input";
156 pinctrl-names = "default";
157 pinctrl-0 = <&rgmii_pins>, <&phy_rst>, <&phy_pmeb>, <&phy_int>;
158 phy-supply = <&vcc_lan>;
160 snps,reset-active-low;
161 snps,reset-delays-us = <0 10000 1000000>;
162 snps,reset-gpio = <&gpio4 8 GPIO_ACTIVE_LOW>;
169 ddc-i2c-bus = <&i2c5>;
174 clock-frequency = <400000>;
178 compatible = "silergy,syr827";
179 fcs,suspend-voltage-selector = <1>;
181 regulator-name = "vdd_cpu";
182 regulator-min-microvolt = <850000>;
183 regulator-max-microvolt = <1350000>;
186 regulator-enable-ramp-delay = <300>;
187 regulator-ramp-delay = <8000>;
188 vin-supply = <&vcc_sys>;
192 compatible = "silergy,syr828";
193 fcs,suspend-voltage-selector = <1>;
195 regulator-name = "vdd_gpu";
196 regulator-min-microvolt = <850000>;
197 regulator-max-microvolt = <1350000>;
199 vin-supply = <&vcc_sys>;
202 hym8563: hym8563@51 {
203 compatible = "haoyu,hym8563";
206 clock-frequency = <32768>;
207 clock-output-names = "xin32k";
210 act8846: act8846@5a {
211 compatible = "active-semi,act8846";
213 pinctrl-names = "default";
214 pinctrl-0 = <&pmic_vsel>;
215 system-power-controller;
217 vp1-supply = <&vcc_sys>;
218 vp2-supply = <&vcc_sys>;
219 vp3-supply = <&vcc_sys>;
220 vp4-supply = <&vcc_sys>;
221 inl1-supply = <&vcc_sys>;
222 inl2-supply = <&vcc_sys>;
223 inl3-supply = <&vcc_20>;
227 regulator-name = "vcc_ddr";
232 regulator-name = "vcc_io";
233 regulator-min-microvolt = <3300000>;
234 regulator-max-microvolt = <3300000>;
239 regulator-name = "vdd_log";
240 regulator-min-microvolt = <1100000>;
241 regulator-max-microvolt = <1100000>;
246 regulator-name = "vcc_20";
247 regulator-min-microvolt = <2000000>;
248 regulator-max-microvolt = <2000000>;
253 regulator-name = "vccio_sd";
254 regulator-min-microvolt = <3300000>;
255 regulator-max-microvolt = <3300000>;
260 regulator-name = "vdd10_lcd";
261 regulator-min-microvolt = <1000000>;
262 regulator-max-microvolt = <1000000>;
267 regulator-name = "vcca_18";
268 regulator-min-microvolt = <1800000>;
269 regulator-max-microvolt = <1800000>;
273 regulator-name = "vcca_33";
274 regulator-min-microvolt = <3300000>;
275 regulator-max-microvolt = <3300000>;
279 regulator-name = "vcc_lan";
280 regulator-min-microvolt = <3300000>;
281 regulator-max-microvolt = <3300000>;
285 regulator-name = "vdd_10";
286 regulator-min-microvolt = <1000000>;
287 regulator-max-microvolt = <1000000>;
292 regulator-name = "vcc_18";
293 regulator-min-microvolt = <1800000>;
294 regulator-max-microvolt = <1800000>;
299 regulator-name = "vcc18_lcd";
300 regulator-min-microvolt = <1800000>;
301 regulator-max-microvolt = <1800000>;
325 pcfg_output_high: pcfg-output-high {
329 pcfg_output_low: pcfg-output-low {
333 pcfg_pull_up_drv_12ma: pcfg-pull-up-drv-12ma {
335 drive-strength = <12>;
340 rockchip,pins = <0 4 RK_FUNC_GPIO &pcfg_pull_up>;
343 pmic_sleep: pmic-sleep {
344 rockchip,pins = <0 0 RK_FUNC_GPIO &pcfg_output_low>;
347 pmic_vsel: pmic-vsel {
348 rockchip,pins = <7 1 RK_FUNC_GPIO &pcfg_output_low>;
354 rockchip,pins = <0 9 RK_FUNC_GPIO &pcfg_pull_up>;
358 rockchip,pins = <0 8 RK_FUNC_GPIO &pcfg_pull_up>;
362 rockchip,pins = <4 8 RK_FUNC_GPIO &pcfg_output_high>;
368 rockchip,pins = <7 4 RK_FUNC_GPIO &pcfg_pull_none>;
374 * Default drive strength isn't enough to achieve even
375 * high-speed mode on firefly board so bump up to 12ma.
377 sdmmc_bus4: sdmmc-bus4 {
378 rockchip,pins = <6 16 RK_FUNC_1 &pcfg_pull_up_drv_12ma>,
379 <6 17 RK_FUNC_1 &pcfg_pull_up_drv_12ma>,
380 <6 18 RK_FUNC_1 &pcfg_pull_up_drv_12ma>,
381 <6 19 RK_FUNC_1 &pcfg_pull_up_drv_12ma>;
384 sdmmc_clk: sdmmc-clk {
385 rockchip,pins = <6 20 RK_FUNC_1 &pcfg_pull_none_12ma>;
388 sdmmc_cmd: sdmmc-cmd {
389 rockchip,pins = <6 21 RK_FUNC_1 &pcfg_pull_up_drv_12ma>;
392 sdmmc_pwr: sdmmc-pwr {
393 rockchip,pins = <7 11 RK_FUNC_GPIO &pcfg_pull_none>;
398 host_vbus_drv: host-vbus-drv {
399 rockchip,pins = <0 14 RK_FUNC_GPIO &pcfg_pull_none>;
405 vref-supply = <&vcc_18>;
413 card-detect-delay = <200>;
416 pinctrl-names = "default";
417 pinctrl-0 = <&sdmmc_clk>, <&sdmmc_cmd>, <&sdmmc_cd>, <&sdmmc_bus4>;
418 vmmc-supply = <&vcc_sd>;
419 vqmmc-supply = <&vccio_sd>;
424 rockchip,hw-tshut-mode = <0>;
425 rockchip,hw-tshut-polarity = <0>;
447 * The otg controller is the only system power source,
448 * so needs to always stay in device mode.
450 dr_mode = "peripheral";