1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/leds/common.h>
6 #include <dt-bindings/pinctrl/rockchip.h>
7 #include <dt-bindings/soc/rockchip,vop2.h>
11 model = "EmbedFire LubanCat 1";
12 compatible = "embedfire,lubancat-1", "rockchip,rk3566";
21 stdout-path = "serial2:1500000n8";
24 gmac1_clkin: external-gmac1-clock {
25 compatible = "fixed-clock";
26 clock-frequency = <125000000>;
27 clock-output-names = "gmac1_clkin";
32 compatible = "hdmi-connector";
36 hdmi_con_in: endpoint {
37 remote-endpoint = <&hdmi_out_con>;
43 compatible = "gpio-leds";
47 linux,default-trigger = "heartbeat";
49 gpios = <&gpio0 RK_PC5 GPIO_ACTIVE_LOW>;
50 pinctrl-names = "default";
51 pinctrl-0 = <&sys_led_pin>;
55 usb_5v: usb-5v-regulator {
56 compatible = "regulator-fixed";
57 regulator-name = "usb_5v";
60 regulator-min-microvolt = <5000000>;
61 regulator-max-microvolt = <5000000>;
64 vcc5v0_sys: vcc5v0-sys-regulator {
65 compatible = "regulator-fixed";
66 regulator-name = "vcc5v0_sys";
69 regulator-min-microvolt = <5000000>;
70 regulator-max-microvolt = <5000000>;
71 vin-supply = <&usb_5v>;
74 vcc3v3_sys: vcc3v3-sys-regulator {
75 compatible = "regulator-fixed";
76 regulator-name = "vcc3v3_sys";
79 regulator-min-microvolt = <3300000>;
80 regulator-max-microvolt = <3300000>;
81 vin-supply = <&vcc5v0_sys>;
84 vcc3v3_pcie: vcc3v3-pcie-regulator {
85 compatible = "regulator-fixed";
86 regulator-name = "vcc3v3_pcie";
87 regulator-min-microvolt = <3300000>;
88 regulator-max-microvolt = <3300000>;
90 gpio = <&gpio0 RK_PD3 GPIO_ACTIVE_HIGH>;
91 startup-delay-us = <5000>;
92 vin-supply = <&vcc5v0_sys>;
95 vcc5v0_usb20_host: vcc5v0-usb20-host-regulator {
96 compatible = "regulator-fixed";
98 gpio = <&gpio2 RK_PB6 GPIO_ACTIVE_HIGH>;
99 pinctrl-names = "default";
100 pinctrl-0 = <&vcc5v0_usb20_host_en>;
101 regulator-name = "vcc5v0_usb20_host";
105 vcc5v0_usb30_host: vcc5v0-usb30-host-regulator {
106 compatible = "regulator-fixed";
108 gpio = <&gpio2 RK_PB5 GPIO_ACTIVE_HIGH>;
109 pinctrl-names = "default";
110 pinctrl-0 = <&vcc5v0_usb30_host_en>;
111 regulator-name = "vcc5v0_usb30_host";
129 cpu-supply = <&vdd_cpu>;
133 cpu-supply = <&vdd_cpu>;
137 cpu-supply = <&vdd_cpu>;
141 cpu-supply = <&vdd_cpu>;
145 mali-supply = <&vdd_gpu>;
150 avdd-0v9-supply = <&vdda0v9_image>;
151 avdd-1v8-supply = <&vcca1v8_image>;
156 hdmi_in_vp0: endpoint {
157 remote-endpoint = <&vp0_out_hdmi>;
162 hdmi_out_con: endpoint {
163 remote-endpoint = <&hdmi_con_in>;
174 vdd_cpu: regulator@1c {
175 compatible = "tcs,tcs4525";
177 fcs,suspend-voltage-selector = <1>;
178 regulator-name = "vdd_cpu";
181 regulator-min-microvolt = <800000>;
182 regulator-max-microvolt = <1150000>;
183 regulator-ramp-delay = <2300>;
184 vin-supply = <&vcc5v0_sys>;
186 regulator-state-mem {
187 regulator-off-in-suspend;
192 compatible = "rockchip,rk809";
194 interrupt-parent = <&gpio0>;
195 interrupts = <RK_PA3 IRQ_TYPE_LEVEL_LOW>;
196 clock-output-names = "rk808-clkout1", "rk808-clkout2";
198 pinctrl-names = "default";
199 pinctrl-0 = <&pmic_int>;
200 rockchip,system-power-controller;
204 vcc1-supply = <&vcc3v3_sys>;
205 vcc2-supply = <&vcc3v3_sys>;
206 vcc3-supply = <&vcc3v3_sys>;
207 vcc4-supply = <&vcc3v3_sys>;
208 vcc5-supply = <&vcc3v3_sys>;
209 vcc6-supply = <&vcc3v3_sys>;
210 vcc7-supply = <&vcc3v3_sys>;
211 vcc8-supply = <&vcc3v3_sys>;
212 vcc9-supply = <&vcc3v3_sys>;
215 vdd_logic: DCDC_REG1 {
216 regulator-name = "vdd_logic";
219 regulator-min-microvolt = <500000>;
220 regulator-max-microvolt = <1350000>;
221 regulator-ramp-delay = <6001>;
222 regulator-initial-mode = <0x2>;
224 regulator-state-mem {
225 regulator-off-in-suspend;
230 regulator-name = "vdd_gpu";
233 regulator-min-microvolt = <500000>;
234 regulator-max-microvolt = <1350000>;
235 regulator-ramp-delay = <6001>;
236 regulator-initial-mode = <0x2>;
238 regulator-state-mem {
239 regulator-off-in-suspend;
244 regulator-name = "vcc_ddr";
247 regulator-initial-mode = <0x2>;
249 regulator-state-mem {
250 regulator-on-in-suspend;
255 regulator-name = "vdd_npu";
258 regulator-min-microvolt = <500000>;
259 regulator-max-microvolt = <1350000>;
260 regulator-ramp-delay = <6001>;
261 regulator-initial-mode = <0x2>;
263 regulator-state-mem {
264 regulator-off-in-suspend;
269 regulator-name = "vcc_1v8";
272 regulator-min-microvolt = <1800000>;
273 regulator-max-microvolt = <1800000>;
275 regulator-state-mem {
276 regulator-off-in-suspend;
280 vdda0v9_image: LDO_REG1 {
281 regulator-name = "vdda0v9_image";
284 regulator-min-microvolt = <900000>;
285 regulator-max-microvolt = <900000>;
287 regulator-state-mem {
288 regulator-off-in-suspend;
293 regulator-name = "vdda_0v9";
296 regulator-min-microvolt = <900000>;
297 regulator-max-microvolt = <900000>;
299 regulator-state-mem {
300 regulator-off-in-suspend;
304 vdda0v9_pmu: LDO_REG3 {
305 regulator-name = "vdda0v9_pmu";
308 regulator-min-microvolt = <900000>;
309 regulator-max-microvolt = <900000>;
311 regulator-state-mem {
312 regulator-on-in-suspend;
313 regulator-suspend-microvolt = <900000>;
317 vccio_acodec: LDO_REG4 {
318 regulator-name = "vccio_acodec";
321 regulator-min-microvolt = <3300000>;
322 regulator-max-microvolt = <3300000>;
324 regulator-state-mem {
325 regulator-off-in-suspend;
330 regulator-name = "vccio_sd";
333 regulator-min-microvolt = <1800000>;
334 regulator-max-microvolt = <3300000>;
336 regulator-state-mem {
337 regulator-off-in-suspend;
341 vcc3v3_pmu: LDO_REG6 {
342 regulator-name = "vcc3v3_pmu";
345 regulator-min-microvolt = <3300000>;
346 regulator-max-microvolt = <3300000>;
348 regulator-state-mem {
349 regulator-on-in-suspend;
350 regulator-suspend-microvolt = <3300000>;
355 regulator-name = "vcca_1v8";
358 regulator-min-microvolt = <1800000>;
359 regulator-max-microvolt = <1800000>;
361 regulator-state-mem {
362 regulator-off-in-suspend;
366 vcca1v8_pmu: LDO_REG8 {
367 regulator-name = "vcca1v8_pmu";
370 regulator-min-microvolt = <1800000>;
371 regulator-max-microvolt = <1800000>;
373 regulator-state-mem {
374 regulator-on-in-suspend;
375 regulator-suspend-microvolt = <1800000>;
379 vcca1v8_image: LDO_REG9 {
380 regulator-name = "vcca1v8_image";
383 regulator-min-microvolt = <1800000>;
384 regulator-max-microvolt = <1800000>;
386 regulator-state-mem {
387 regulator-off-in-suspend;
391 vcc_3v3: SWITCH_REG1 {
392 regulator-name = "vcc_3v3";
396 regulator-state-mem {
397 regulator-off-in-suspend;
401 vcc3v3_sd: SWITCH_REG2 {
402 regulator-name = "vcc3v3_sd";
406 regulator-state-mem {
407 regulator-off-in-suspend;
415 rockchip,trcm-sync-tx-only;
421 clock_in_out = "output";
422 snps,reset-gpio = <&gpio2 RK_PB0 GPIO_ACTIVE_LOW>;
423 snps,reset-active-low;
424 /* Reset time is 75ms, 100ms */
425 snps,reset-delays-us = <0 75000 100000>;
426 assigned-clocks = <&cru SCLK_GMAC1_RX_TX>, <&cru SCLK_GMAC1>;
427 assigned-clock-parents = <&cru SCLK_GMAC1_RGMII_SPEED>, <&cru CLK_MAC1_2TOP>;
428 assigned-clock-rates = <0>, <125000000>;
429 pinctrl-names = "default";
430 pinctrl-0 = <&gmac1m1_miim
431 &gmac1m1_tx_bus2_level3
433 &gmac1m1_rgmii_clk_level2
434 &gmac1m1_rgmii_bus_level3>;
437 phy-handle = <&rgmii_phy1>;
443 compatible = "ethernet-phy-ieee802.3-c22";
449 reset-gpios = <&gpio0 RK_PB6 GPIO_ACTIVE_HIGH>;
450 disable-gpios = <&gpio0 RK_PA6 GPIO_ACTIVE_HIGH>;
451 vpcie3v3-supply = <&vcc3v3_pcie>;
457 sys_led_pin: sys-status-led-pin {
458 rockchip,pins = <0 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>;
463 vcc5v0_usb20_host_en: vcc5v0-usb20-host-en {
464 rockchip,pins = <2 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>;
467 vcc5v0_usb30_host_en: vcc5v0-usb30-host-en {
468 rockchip,pins = <2 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>;
475 <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up>;
481 pmuio2-supply = <&vcc3v3_pmu>;
482 vccio1-supply = <&vccio_acodec>;
483 vccio3-supply = <&vccio_sd>;
484 vccio4-supply = <&vcc_3v3>;
485 vccio5-supply = <&vcc_3v3>;
486 vccio6-supply = <&vcc_1v8>;
487 vccio7-supply = <&vcc_3v3>;
492 vref-supply = <&vcca_1v8>;
497 rockchip,hw-tshut-mode = <1>;
498 rockchip,hw-tshut-polarity = <0>;
503 assigned-clocks = <&cru BCLK_EMMC>, <&cru TCLK_EMMC>, <&cru CCLK_EMMC>;
504 assigned-clock-rates = <200000000>, <24000000>, <200000000>;
506 max-frequency = <200000000>;
509 pinctrl-names = "default";
510 pinctrl-0 = <&emmc_bus8 &emmc_clk &emmc_cmd>;
516 max-frequency = <150000000>;
523 vmmc-supply = <&vcc3v3_sd>;
524 vqmmc-supply = <&vccio_sd>;
525 pinctrl-names = "default";
526 pinctrl-0 = <&sdmmc0_bus4 &sdmmc0_clk &sdmmc0_cmd &sdmmc0_det>;
530 /* USB OTG/USB Host_1 USB 2.0 Comb */
551 /* USB Host_2/USB Host_3 USB 2.0 Comb */
578 assigned-clocks = <&cru DCLK_VOP0>, <&cru DCLK_VOP1>;
579 assigned-clock-parents = <&pmucru PLL_HPLL>, <&cru PLL_VPLL>;
588 vp0_out_hdmi: endpoint@ROCKCHIP_VOP2_EP_HDMI0 {
589 reg = <ROCKCHIP_VOP2_EP_HDMI0>;
590 remote-endpoint = <&hdmi_in_vp0>;