1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2016 Heiko Stuebner <heiko@sntech.de>
7 #include <dt-bindings/input/input.h>
11 model = "mqmaker MiQi";
12 compatible = "mqmaker,miqi", "rockchip,rk3288";
15 stdout-path = "serial2:115200n8";
19 device_type = "memory";
20 reg = <0x0 0x0 0x0 0x80000000>;
23 ext_gmac: external-gmac-clock {
24 compatible = "fixed-clock";
26 clock-frequency = <125000000>;
27 clock-output-names = "ext_gmac";
31 compatible = "gpio-leds";
34 gpios = <&gpio7 RK_PA2 GPIO_ACTIVE_HIGH>;
35 label = "miqi:green:user";
36 linux,default-trigger = "timer";
40 vcc_flash: flash-regulator {
41 compatible = "regulator-fixed";
42 regulator-name = "vcc_flash";
43 regulator-min-microvolt = <1800000>;
44 regulator-max-microvolt = <1800000>;
45 vin-supply = <&vcc_io>;
48 vcc_host: usb-host-regulator {
49 compatible = "regulator-fixed";
51 gpio = <&gpio0 RK_PB6 GPIO_ACTIVE_HIGH>;
52 pinctrl-names = "default";
53 pinctrl-0 = <&host_vbus_drv>;
54 regulator-name = "vcc_host";
55 regulator-min-microvolt = <5000000>;
56 regulator-max-microvolt = <5000000>;
58 vin-supply = <&vcc_sys>;
61 vcc_sd: sdmmc-regulator {
62 compatible = "regulator-fixed";
63 gpio = <&gpio7 RK_PB3 GPIO_ACTIVE_LOW>;
64 pinctrl-names = "default";
65 pinctrl-0 = <&sdmmc_pwr>;
66 regulator-name = "vcc_sd";
67 regulator-min-microvolt = <3300000>;
68 regulator-max-microvolt = <3300000>;
69 startup-delay-us = <100000>;
70 vin-supply = <&vcc_io>;
73 vcc_sys: vsys-regulator {
74 compatible = "regulator-fixed";
75 regulator-name = "vcc_sys";
76 regulator-min-microvolt = <5000000>;
77 regulator-max-microvolt = <5000000>;
84 cpu-supply = <&vdd_cpu>;
88 cpu-supply = <&vdd_cpu>;
92 cpu-supply = <&vdd_cpu>;
96 cpu-supply = <&vdd_cpu>;
103 pinctrl-names = "default";
104 pinctrl-0 = <&emmc_clk>, <&emmc_cmd>, <&emmc_pwr>, <&emmc_bus8>;
105 vmmc-supply = <&vcc_io>;
106 vqmmc-supply = <&vcc_flash>;
111 assigned-clocks = <&cru SCLK_MAC>;
112 assigned-clock-parents = <&ext_gmac>;
113 clock_in_out = "input";
114 pinctrl-names = "default";
115 pinctrl-0 = <&rgmii_pins>, <&phy_rst>, <&phy_pmeb>, <&phy_int>;
116 phy-supply = <&vcc_lan>;
118 snps,reset-active-low;
119 snps,reset-delays-us = <0 10000 1000000>;
120 snps,reset-gpio = <&gpio4 RK_PB0 GPIO_ACTIVE_LOW>;
127 mali-supply = <&vdd_gpu>;
132 ddc-i2c-bus = <&i2c5>;
137 clock-frequency = <400000>;
141 compatible = "silergy,syr827";
142 fcs,suspend-voltage-selector = <1>;
144 regulator-name = "vdd_cpu";
145 regulator-min-microvolt = <850000>;
146 regulator-max-microvolt = <1350000>;
149 regulator-enable-ramp-delay = <300>;
150 regulator-ramp-delay = <8000>;
151 vin-supply = <&vcc_sys>;
155 compatible = "silergy,syr828";
156 fcs,suspend-voltage-selector = <1>;
158 regulator-name = "vdd_gpu";
159 regulator-min-microvolt = <850000>;
160 regulator-max-microvolt = <1350000>;
162 vin-supply = <&vcc_sys>;
165 hym8563: hym8563@51 {
166 compatible = "haoyu,hym8563";
169 clock-frequency = <32768>;
170 clock-output-names = "xin32k";
173 act8846: act8846@5a {
174 compatible = "active-semi,act8846";
176 pinctrl-names = "default";
177 pinctrl-0 = <&pmic_vsel>;
178 system-power-controller;
180 vp1-supply = <&vcc_sys>;
181 vp2-supply = <&vcc_sys>;
182 vp3-supply = <&vcc_sys>;
183 vp4-supply = <&vcc_sys>;
184 inl1-supply = <&vcc_sys>;
185 inl2-supply = <&vcc_sys>;
186 inl3-supply = <&vcc_20>;
190 regulator-name = "vcc_ddr";
195 regulator-name = "vcc_io";
196 regulator-min-microvolt = <3300000>;
197 regulator-max-microvolt = <3300000>;
202 regulator-name = "vdd_log";
203 regulator-min-microvolt = <1100000>;
204 regulator-max-microvolt = <1100000>;
209 regulator-name = "vcc_20";
210 regulator-min-microvolt = <2000000>;
211 regulator-max-microvolt = <2000000>;
216 regulator-name = "vccio_sd";
217 regulator-min-microvolt = <3300000>;
218 regulator-max-microvolt = <3300000>;
223 regulator-name = "vdd10_lcd";
224 regulator-min-microvolt = <1000000>;
225 regulator-max-microvolt = <1000000>;
230 regulator-name = "vcca_18";
231 regulator-min-microvolt = <1800000>;
232 regulator-max-microvolt = <1800000>;
236 regulator-name = "vcca_33";
237 regulator-min-microvolt = <3300000>;
238 regulator-max-microvolt = <3300000>;
242 regulator-name = "vcc_lan";
243 regulator-min-microvolt = <3300000>;
244 regulator-max-microvolt = <3300000>;
248 regulator-name = "vdd_10";
249 regulator-min-microvolt = <1000000>;
250 regulator-max-microvolt = <1000000>;
255 regulator-name = "vcc_18";
256 regulator-min-microvolt = <1800000>;
257 regulator-max-microvolt = <1800000>;
262 regulator-name = "vcc18_lcd";
263 regulator-min-microvolt = <1800000>;
264 regulator-max-microvolt = <1800000>;
290 audio-supply = <&vcca_33>;
291 flash0-supply = <&vcc_flash>;
292 flash1-supply = <&vcc_lan>;
293 gpio30-supply = <&vcc_io>;
294 gpio1830-supply = <&vcc_io>;
295 lcdc-supply = <&vcc_io>;
296 sdcard-supply = <&vccio_sd>;
297 wifi-supply = <&vcc_18>;
301 pcfg_output_high: pcfg-output-high {
305 pcfg_output_low: pcfg-output-low {
309 pcfg_pull_up_drv_12ma: pcfg-pull-up-drv-12ma {
311 drive-strength = <12>;
316 rockchip,pins = <0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up>;
319 pmic_sleep: pmic-sleep {
320 rockchip,pins = <0 RK_PA0 RK_FUNC_GPIO &pcfg_output_low>;
323 pmic_vsel: pmic-vsel {
324 rockchip,pins = <7 RK_PA1 RK_FUNC_GPIO &pcfg_output_low>;
330 rockchip,pins = <0 RK_PB1 RK_FUNC_GPIO &pcfg_pull_up>;
334 rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_up>;
338 rockchip,pins = <4 RK_PB0 RK_FUNC_GPIO &pcfg_output_high>;
344 * Default drive strength isn't enough to achieve even
345 * high-speed mode on firefly board so bump up to 12ma.
347 sdmmc_bus4: sdmmc-bus4 {
348 rockchip,pins = <6 RK_PC0 1 &pcfg_pull_up_drv_12ma>,
349 <6 RK_PC1 1 &pcfg_pull_up_drv_12ma>,
350 <6 RK_PC2 1 &pcfg_pull_up_drv_12ma>,
351 <6 RK_PC3 1 &pcfg_pull_up_drv_12ma>;
354 sdmmc_clk: sdmmc-clk {
355 rockchip,pins = <6 RK_PC4 1 &pcfg_pull_none_12ma>;
358 sdmmc_cmd: sdmmc-cmd {
359 rockchip,pins = <6 RK_PC5 1 &pcfg_pull_up_drv_12ma>;
362 sdmmc_pwr: sdmmc-pwr {
363 rockchip,pins = <7 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>;
368 host_vbus_drv: host-vbus-drv {
369 rockchip,pins = <0 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>;
375 vref-supply = <&vcc_18>;
383 card-detect-delay = <200>;
385 pinctrl-names = "default";
386 pinctrl-0 = <&sdmmc_clk>, <&sdmmc_cmd>, <&sdmmc_cd>, <&sdmmc_bus4>;
387 vmmc-supply = <&vcc_sd>;
388 vqmmc-supply = <&vccio_sd>;
393 rockchip,hw-tshut-mode = <0>;
394 rockchip,hw-tshut-polarity = <0>;
416 * The otg controller is the only system power source,
417 * so needs to always stay in device mode.
419 dr_mode = "peripheral";