1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/leds/common.h>
5 #include <dt-bindings/pinctrl/rockchip.h>
9 compatible = "radxa,cm3i", "rockchip,rk3568";
16 stdout-path = "serial2:115200n8";
20 compatible = "gpio-leds";
23 gpios = <&gpio0 RK_PA6 GPIO_ACTIVE_HIGH>;
24 function = LED_FUNCTION_HEARTBEAT;
25 color = <LED_COLOR_ID_GREEN>;
26 linux,default-trigger = "heartbeat";
27 pinctrl-names = "default";
28 pinctrl-0 = <&led_user_en>;
32 pcie30_avdd0v9: pcie30-avdd0v9-regulator {
33 compatible = "regulator-fixed";
34 regulator-name = "pcie30_avdd0v9";
37 regulator-min-microvolt = <900000>;
38 regulator-max-microvolt = <900000>;
39 vin-supply = <&vcc3v3_sys>;
42 pcie30_avdd1v8: pcie30-avdd1v8-regulator {
43 compatible = "regulator-fixed";
44 regulator-name = "pcie30_avdd1v8";
47 regulator-min-microvolt = <1800000>;
48 regulator-max-microvolt = <1800000>;
49 vin-supply = <&vcc3v3_sys>;
52 vcc3v3_sys: vcc3v3-sys-regulator {
53 compatible = "regulator-fixed";
54 regulator-name = "vcc3v3_sys";
57 regulator-min-microvolt = <3300000>;
58 regulator-max-microvolt = <3300000>;
59 vin-supply = <&vcc5v_input>;
62 vcc5v0_sys: vcc5v0-sys-regulator {
63 compatible = "regulator-fixed";
64 regulator-name = "vcc5v0_sys";
67 regulator-min-microvolt = <5000000>;
68 regulator-max-microvolt = <5000000>;
69 vin-supply = <&vcc5v_input>;
72 /* labeled +5v_input in schematic */
73 vcc5v_input: vcc5v-input-regulator {
74 compatible = "regulator-fixed";
75 regulator-name = "vcc5v_input";
78 regulator-min-microvolt = <5000000>;
79 regulator-max-microvolt = <5000000>;
96 cpu-supply = <&vdd_cpu>;
100 cpu-supply = <&vdd_cpu>;
104 cpu-supply = <&vdd_cpu>;
108 cpu-supply = <&vdd_cpu>;
116 mali-supply = <&vdd_gpu>;
123 vdd_cpu: regulator@1c {
124 compatible = "tcs,tcs4525";
126 fcs,suspend-voltage-selector = <1>;
127 regulator-name = "vdd_cpu";
130 regulator-min-microvolt = <800000>;
131 regulator-max-microvolt = <1150000>;
132 regulator-ramp-delay = <2300>;
133 vin-supply = <&vcc5v_input>;
135 regulator-state-mem {
136 regulator-off-in-suspend;
141 compatible = "rockchip,rk809";
143 interrupt-parent = <&gpio0>;
144 interrupts = <RK_PA3 IRQ_TYPE_LEVEL_LOW>;
146 pinctrl-names = "default";
147 pinctrl-0 = <&pmic_int>;
148 rockchip,system-power-controller;
151 vcc1-supply = <&vcc3v3_sys>;
152 vcc2-supply = <&vcc3v3_sys>;
153 vcc3-supply = <&vcc3v3_sys>;
154 vcc4-supply = <&vcc3v3_sys>;
155 vcc5-supply = <&vcc3v3_sys>;
156 vcc6-supply = <&vcc3v3_sys>;
157 vcc7-supply = <&vcc3v3_sys>;
158 vcc8-supply = <&vcc3v3_sys>;
159 vcc9-supply = <&vcc3v3_sys>;
162 vdd_logic: DCDC_REG1 {
163 regulator-name = "vdd_logic";
166 regulator-init-microvolt = <900000>;
167 regulator-initial-mode = <0x2>;
168 regulator-min-microvolt = <500000>;
169 regulator-max-microvolt = <1350000>;
170 regulator-ramp-delay = <6001>;
172 regulator-state-mem {
173 regulator-off-in-suspend;
178 regulator-name = "vdd_gpu";
180 regulator-init-microvolt = <900000>;
181 regulator-initial-mode = <0x2>;
182 regulator-min-microvolt = <500000>;
183 regulator-max-microvolt = <1350000>;
184 regulator-ramp-delay = <6001>;
186 regulator-state-mem {
187 regulator-off-in-suspend;
192 regulator-name = "vcc_ddr";
195 regulator-initial-mode = <0x2>;
197 regulator-state-mem {
198 regulator-on-in-suspend;
203 regulator-name = "vdd_npu";
204 regulator-init-microvolt = <900000>;
205 regulator-initial-mode = <0x2>;
206 regulator-min-microvolt = <500000>;
207 regulator-max-microvolt = <1350000>;
208 regulator-ramp-delay = <6001>;
210 regulator-state-mem {
211 regulator-off-in-suspend;
216 regulator-name = "vcc_1v8";
219 regulator-min-microvolt = <1800000>;
220 regulator-max-microvolt = <1800000>;
222 regulator-state-mem {
223 regulator-off-in-suspend;
227 vdda0v9_image: LDO_REG1 {
228 regulator-name = "vdda0v9_image";
229 regulator-min-microvolt = <900000>;
230 regulator-max-microvolt = <900000>;
232 regulator-state-mem {
233 regulator-off-in-suspend;
238 regulator-name = "vdda_0v9";
241 regulator-min-microvolt = <900000>;
242 regulator-max-microvolt = <900000>;
244 regulator-state-mem {
245 regulator-off-in-suspend;
249 vdda0v9_pmu: LDO_REG3 {
250 regulator-name = "vdda0v9_pmu";
253 regulator-min-microvolt = <900000>;
254 regulator-max-microvolt = <900000>;
256 regulator-state-mem {
257 regulator-on-in-suspend;
258 regulator-suspend-microvolt = <900000>;
262 vccio_acodec: LDO_REG4 {
263 regulator-name = "vccio_acodec";
265 regulator-min-microvolt = <3300000>;
266 regulator-max-microvolt = <3300000>;
268 regulator-state-mem {
269 regulator-off-in-suspend;
274 regulator-name = "vccio_sd";
275 regulator-min-microvolt = <1800000>;
276 regulator-max-microvolt = <3300000>;
278 regulator-state-mem {
279 regulator-off-in-suspend;
283 vcc3v3_pmu: LDO_REG6 {
284 regulator-name = "vcc3v3_pmu";
287 regulator-min-microvolt = <3300000>;
288 regulator-max-microvolt = <3300000>;
290 regulator-state-mem {
291 regulator-on-in-suspend;
292 regulator-suspend-microvolt = <3300000>;
297 regulator-name = "vcca_1v8";
300 regulator-min-microvolt = <1800000>;
301 regulator-max-microvolt = <1800000>;
303 regulator-state-mem {
304 regulator-off-in-suspend;
308 vcca1v8_pmu: LDO_REG8 {
309 regulator-name = "vcca1v8_pmu";
312 regulator-min-microvolt = <1800000>;
313 regulator-max-microvolt = <1800000>;
315 regulator-state-mem {
316 regulator-on-in-suspend;
317 regulator-suspend-microvolt = <1800000>;
321 vcca1v8_image: LDO_REG9 {
322 regulator-name = "vcca1v8_image";
323 regulator-min-microvolt = <1800000>;
324 regulator-max-microvolt = <1800000>;
326 regulator-state-mem {
327 regulator-off-in-suspend;
331 vcc_3v3: SWITCH_REG1 {
332 regulator-name = "vcc_3v3";
336 regulator-state-mem {
337 regulator-off-in-suspend;
341 vcc3v3_sd: SWITCH_REG2 {
342 regulator-name = "vcc3v3_sd";
344 regulator-state-mem {
345 regulator-off-in-suspend;
354 led_user_en: led_user_en {
355 rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>;
361 rockchip,pins = <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up>;
367 pmuio1-supply = <&vcc3v3_pmu>;
368 pmuio2-supply = <&vcc3v3_pmu>;
369 vccio1-supply = <&vccio_acodec>;
370 vccio2-supply = <&vcc_1v8>;
371 vccio3-supply = <&vccio_sd>;
372 vccio4-supply = <&vcc_1v8>;
373 vccio5-supply = <&vcc_3v3>;
374 vccio6-supply = <&vcc_1v8>;
375 vccio7-supply = <&vcc_3v3>;
380 vref-supply = <&vcca_1v8>;
386 max-frequency = <200000000>;
388 pinctrl-names = "default";
389 pinctrl-0 = <&emmc_bus8 &emmc_clk &emmc_cmd &emmc_datastrobe>;
390 vmmc-supply = <&vcc_3v3>;
391 vqmmc-supply = <&vcc_1v8>;
396 rockchip,hw-tshut-mode = <1>;
397 rockchip,hw-tshut-polarity = <0>;
414 extcon = <&usb2phy0>;