Lines Matching +full:ns +full:- +full:cru

1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
6 /dts-v1/;
7 #include <dt-bindings/input/linux-event-codes.h>
8 #include <dt-bindings/interrupt-controller/irq.h>
9 #include <dt-bindings/pwm/pwm.h>
10 #include <dt-bindings/usb/pd.h>
12 #include "rk3399-opp.dtsi"
15 model = "Firefly-RK3399 Board";
16 compatible = "firefly,firefly-rk3399", "rockchip,rk3399";
26 stdout-path = "serial2:1500000n8";
30 compatible = "pwm-backlight";
31 enable-gpios = <&gpio1 RK_PB5 GPIO_ACTIVE_HIGH>;
33 brightness-levels = <
66 default-brightness-level = <200>;
69 clkin_gmac: external-gmac-clock {
70 compatible = "fixed-clock";
71 clock-frequency = <125000000>;
72 clock-output-names = "clkin_gmac";
73 #clock-cells = <0>;
76 dc_12v: dc-12v {
77 compatible = "regulator-fixed";
78 regulator-name = "dc_12v";
79 regulator-always-on;
80 regulator-boot-on;
81 regulator-min-microvolt = <12000000>;
82 regulator-max-microvolt = <12000000>;
85 gpio-keys {
86 compatible = "gpio-keys";
88 pinctrl-names = "default";
89 pinctrl-0 = <&pwrbtn>;
91 key-power {
92 debounce-interval = <100>;
96 wakeup-source;
100 ir-receiver {
101 compatible = "gpio-ir-receiver";
103 pinctrl-0 = <&ir_int>;
104 pinctrl-names = "default";
108 compatible = "gpio-leds";
109 pinctrl-names = "default";
110 pinctrl-0 = <&work_led_pin>, <&diy_led_pin>;
112 work_led: led-0 {
114 default-state = "on";
118 diy_led: led-1 {
120 default-state = "off";
125 rt5640-sound {
126 compatible = "simple-audio-card";
127 simple-audio-card,name = "rockchip,rt5640-codec";
128 simple-audio-card,format = "i2s";
129 simple-audio-card,mclk-fs = <256>;
130 simple-audio-card,widgets =
133 simple-audio-card,routing =
139 simple-audio-card,cpu {
140 sound-dai = <&i2s1>;
143 simple-audio-card,codec {
144 sound-dai = <&rt5640>;
148 sdio_pwrseq: sdio-pwrseq {
149 compatible = "mmc-pwrseq-simple";
151 clock-names = "ext_clock";
152 pinctrl-names = "default";
153 pinctrl-0 = <&wifi_enable_h>;
158 * - SDIO_RESET_L_WL_REG_ON
159 * - PDN (power down when low)
161 reset-gpios = <&gpio0 RK_PB2 GPIO_ACTIVE_LOW>;
164 sound-dit {
165 compatible = "audio-graph-card";
170 spdif-dit {
171 compatible = "linux,spdif-dit";
172 #sound-dai-cells = <0>;
176 remote-endpoint = <&spdif_p0_0>;
182 vcc1v8_s3: vcca1v8_s3: vcc1v8-s3 {
183 compatible = "regulator-fixed";
184 regulator-name = "vcc1v8_s3";
185 regulator-always-on;
186 regulator-boot-on;
187 regulator-min-microvolt = <1800000>;
188 regulator-max-microvolt = <1800000>;
189 vin-supply = <&vcc_1v8>;
192 vcc3v3_pcie: vcc3v3-pcie-regulator {
193 compatible = "regulator-fixed";
194 enable-active-high;
196 pinctrl-names = "default";
197 pinctrl-0 = <&pcie_pwr_en>;
198 regulator-name = "vcc3v3_pcie";
199 regulator-always-on;
200 regulator-boot-on;
201 vin-supply = <&dc_12v>;
204 vcc3v3_sys: vcc3v3-sys {
205 compatible = "regulator-fixed";
206 regulator-name = "vcc3v3_sys";
207 regulator-always-on;
208 regulator-boot-on;
209 regulator-min-microvolt = <3300000>;
210 regulator-max-microvolt = <3300000>;
211 vin-supply = <&vcc_sys>;
215 vcc5v0_host: vcc5v0-host-regulator {
216 compatible = "regulator-fixed";
217 enable-active-high;
219 pinctrl-names = "default";
220 pinctrl-0 = <&vcc5v0_host_en>;
221 regulator-name = "vcc5v0_host";
222 regulator-always-on;
223 vin-supply = <&vcc_sys>;
226 vcc5v0_typec: vcc5v0-typec-regulator {
227 compatible = "regulator-fixed";
228 enable-active-high;
230 pinctrl-names = "default";
231 pinctrl-0 = <&vcc5v0_typec_en>;
232 regulator-name = "vcc5v0_typec";
233 regulator-always-on;
234 vin-supply = <&vcc_sys>;
237 vcc_sys: vcc-sys {
238 compatible = "regulator-fixed";
239 regulator-name = "vcc_sys";
240 regulator-always-on;
241 regulator-boot-on;
242 regulator-min-microvolt = <5000000>;
243 regulator-max-microvolt = <5000000>;
244 vin-supply = <&dc_12v>;
247 vdd_log: vdd-log {
248 compatible = "pwm-regulator";
250 pwm-supply = <&vcc_sys>;
251 regulator-name = "vdd_log";
252 regulator-always-on;
253 regulator-boot-on;
254 regulator-min-microvolt = <430000>;
255 regulator-max-microvolt = <1400000>;
260 cpu-supply = <&vdd_cpu_l>;
264 cpu-supply = <&vdd_cpu_l>;
268 cpu-supply = <&vdd_cpu_l>;
272 cpu-supply = <&vdd_cpu_l>;
276 cpu-supply = <&vdd_cpu_b>;
280 cpu-supply = <&vdd_cpu_b>;
288 assigned-clocks = <&cru SCLK_RMII_SRC>;
289 assigned-clock-parents = <&clkin_gmac>;
291 phy-supply = <&vcc_lan>;
292 phy-mode = "rgmii";
293 pinctrl-names = "default";
294 pinctrl-0 = <&rgmii_pins>;
295 snps,reset-gpio = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>;
296 snps,reset-active-low;
297 snps,reset-delays-us = <0 10000 50000>;
304 mali-supply = <&vdd_gpu>;
309 ddc-i2c-bus = <&i2c3>;
310 pinctrl-names = "default";
311 pinctrl-0 = <&hdmi_cec>;
316 clock-frequency = <400000>;
317 i2c-scl-rising-time-ns = <168>;
318 i2c-scl-falling-time-ns = <4>;
324 interrupt-parent = <&gpio1>;
326 #clock-cells = <1>;
327 clock-output-names = "xin32k", "rk808-clkout2";
328 pinctrl-names = "default";
329 pinctrl-0 = <&pmic_int_l>;
330 rockchip,system-power-controller;
331 wakeup-source;
333 vcc1-supply = <&vcc_sys>;
334 vcc2-supply = <&vcc_sys>;
335 vcc3-supply = <&vcc_sys>;
336 vcc4-supply = <&vcc_sys>;
337 vcc6-supply = <&vcc_sys>;
338 vcc7-supply = <&vcc_sys>;
339 vcc8-supply = <&vcc3v3_sys>;
340 vcc9-supply = <&vcc_sys>;
341 vcc10-supply = <&vcc_sys>;
342 vcc11-supply = <&vcc_sys>;
343 vcc12-supply = <&vcc3v3_sys>;
344 vddio-supply = <&vcc1v8_pmu>;
348 regulator-name = "vdd_center";
349 regulator-always-on;
350 regulator-boot-on;
351 regulator-min-microvolt = <750000>;
352 regulator-max-microvolt = <1350000>;
353 regulator-ramp-delay = <6001>;
354 regulator-state-mem {
355 regulator-off-in-suspend;
360 regulator-name = "vdd_cpu_l";
361 regulator-always-on;
362 regulator-boot-on;
363 regulator-min-microvolt = <750000>;
364 regulator-max-microvolt = <1350000>;
365 regulator-ramp-delay = <6001>;
366 regulator-state-mem {
367 regulator-off-in-suspend;
372 regulator-name = "vcc_ddr";
373 regulator-always-on;
374 regulator-boot-on;
375 regulator-state-mem {
376 regulator-on-in-suspend;
381 regulator-name = "vcc_1v8";
382 regulator-always-on;
383 regulator-boot-on;
384 regulator-min-microvolt = <1800000>;
385 regulator-max-microvolt = <1800000>;
386 regulator-state-mem {
387 regulator-on-in-suspend;
388 regulator-suspend-microvolt = <1800000>;
393 regulator-name = "vcc1v8_dvp";
394 regulator-always-on;
395 regulator-boot-on;
396 regulator-min-microvolt = <1800000>;
397 regulator-max-microvolt = <1800000>;
398 regulator-state-mem {
399 regulator-off-in-suspend;
404 regulator-name = "vcc2v8_dvp";
405 regulator-always-on;
406 regulator-boot-on;
407 regulator-min-microvolt = <2800000>;
408 regulator-max-microvolt = <2800000>;
409 regulator-state-mem {
410 regulator-off-in-suspend;
415 regulator-name = "vcc1v8_pmu";
416 regulator-always-on;
417 regulator-boot-on;
418 regulator-min-microvolt = <1800000>;
419 regulator-max-microvolt = <1800000>;
420 regulator-state-mem {
421 regulator-on-in-suspend;
422 regulator-suspend-microvolt = <1800000>;
427 regulator-name = "vcc_sdio";
428 regulator-always-on;
429 regulator-boot-on;
430 regulator-min-microvolt = <1800000>;
431 regulator-max-microvolt = <3000000>;
432 regulator-state-mem {
433 regulator-on-in-suspend;
434 regulator-suspend-microvolt = <3000000>;
439 regulator-name = "vcca3v0_codec";
440 regulator-always-on;
441 regulator-boot-on;
442 regulator-min-microvolt = <3000000>;
443 regulator-max-microvolt = <3000000>;
444 regulator-state-mem {
445 regulator-off-in-suspend;
450 regulator-name = "vcc_1v5";
451 regulator-always-on;
452 regulator-boot-on;
453 regulator-min-microvolt = <1500000>;
454 regulator-max-microvolt = <1500000>;
455 regulator-state-mem {
456 regulator-on-in-suspend;
457 regulator-suspend-microvolt = <1500000>;
462 regulator-name = "vcca1v8_codec";
463 regulator-always-on;
464 regulator-boot-on;
465 regulator-min-microvolt = <1800000>;
466 regulator-max-microvolt = <1800000>;
467 regulator-state-mem {
468 regulator-off-in-suspend;
473 regulator-name = "vcc_3v0";
474 regulator-always-on;
475 regulator-boot-on;
476 regulator-min-microvolt = <3000000>;
477 regulator-max-microvolt = <3000000>;
478 regulator-state-mem {
479 regulator-on-in-suspend;
480 regulator-suspend-microvolt = <3000000>;
485 regulator-name = "vcc3v3_s3";
486 regulator-always-on;
487 regulator-boot-on;
488 regulator-state-mem {
489 regulator-off-in-suspend;
494 regulator-name = "vcc3v3_s0";
495 regulator-always-on;
496 regulator-boot-on;
497 regulator-state-mem {
498 regulator-off-in-suspend;
507 fcs,suspend-voltage-selector = <0>;
508 regulator-name = "vdd_cpu_b";
509 regulator-min-microvolt = <712500>;
510 regulator-max-microvolt = <1500000>;
511 regulator-ramp-delay = <1000>;
512 regulator-always-on;
513 regulator-boot-on;
514 vin-supply = <&vcc_sys>;
516 regulator-state-mem {
517 regulator-off-in-suspend;
524 fcs,suspend-voltage-selector = <1>;
525 regulator-name = "vdd_gpu";
526 regulator-min-microvolt = <712500>;
527 regulator-max-microvolt = <1500000>;
528 regulator-ramp-delay = <1000>;
529 regulator-always-on;
530 regulator-boot-on;
531 vin-supply = <&vcc_sys>;
533 regulator-state-mem {
534 regulator-off-in-suspend;
540 i2c-scl-rising-time-ns = <300>;
541 i2c-scl-falling-time-ns = <15>;
547 clocks = <&cru SCLK_I2S_8CH_OUT>;
548 clock-names = "mclk";
549 realtek,in1-differential;
550 #sound-dai-cells = <0>;
551 pinctrl-names = "default";
552 pinctrl-0 = <&rt5640_hpcon>;
557 i2c-scl-rising-time-ns = <450>;
558 i2c-scl-falling-time-ns = <15>;
563 i2c-scl-rising-time-ns = <600>;
564 i2c-scl-falling-time-ns = <20>;
567 fusb0: typec-portc@22 {
570 interrupt-parent = <&gpio1>;
572 pinctrl-names = "default";
573 pinctrl-0 = <&fusb0_int>;
574 vbus-supply = <&vcc5v0_typec>;
578 compatible = "usb-c-connector";
579 data-role = "host";
580 label = "USB-C";
581 op-sink-microwatt = <1000000>;
582 power-role = "dual";
583 sink-pdos =
585 source-pdos =
587 try-power-role = "sink";
590 #address-cells = <1>;
591 #size-cells = <0>;
597 remote-endpoint =
606 remote-endpoint =
617 interrupt-parent = <&gpio1>;
623 rockchip,playback-channels = <8>;
624 rockchip,capture-channels = <8>;
629 rockchip,playback-channels = <2>;
630 rockchip,capture-channels = <2>;
641 bt656-supply = <&vcc1v8_dvp>;
642 audio-supply = <&vcca1v8_codec>;
643 sdmmc-supply = <&vcc_sdio>;
644 gpio1830-supply = <&vcc_3v0>;
652 ep-gpios = <&gpio4 RK_PD1 GPIO_ACTIVE_HIGH>;
653 num-lanes = <4>;
654 pinctrl-names = "default";
655 pinctrl-0 = <&pcie_clkreqn_cpm>;
660 pmu1830-supply = <&vcc_3v0>;
672 fusb0_int: fusb0-int {
678 ir_int: ir-int {
683 lcd-panel {
684 lcd_panel_reset: lcd-panel-reset {
690 work_led_pin: work-led-pin {
694 diy_led_pin: diy-led-pin {
700 pcie_pwr_en: pcie-pwr-en {
704 pcie_3g_drv: pcie-3g-drv {
710 pmic_int_l: pmic-int-l {
714 vsel1_pin: vsel1-pin {
718 vsel2_pin: vsel2-pin {
724 rt5640_hpcon: rt5640-hpcon {
729 sdio-pwrseq {
730 wifi_enable_h: wifi-enable-h {
735 usb-typec {
742 vcc5v0_host_en: vcc5v0-host-en {
748 wifi_host_wake_l: wifi-host-wake-l {
763 vref-supply = <&vcca1v8_s3>;
769 bus-width = <4>;
770 cap-sdio-irq;
771 cap-sd-highspeed;
772 keep-power-in-suspend;
773 mmc-pwrseq = <&sdio_pwrseq>;
774 non-removable;
775 pinctrl-names = "default";
776 pinctrl-0 = <&sdio0_bus4 &sdio0_cmd &sdio0_clk>;
777 sd-uhs-sdr104;
780 vqmmc-supply = <&vcc1v8_s3>; /* IO line */
781 vmmc-supply = <&vcc_sdio>; /* card's power */
783 #address-cells = <1>;
784 #size-cells = <0>;
789 compatible = "brcm,bcm4329-fmac";
790 interrupt-parent = <&gpio0>;
792 interrupt-names = "host-wake";
793 brcm,drive-strength = <5>;
794 pinctrl-names = "default";
795 pinctrl-0 = <&wifi_host_wake_l>;
800 bus-width = <4>;
801 cap-mmc-highspeed;
802 cap-sd-highspeed;
803 cd-gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
804 disable-wp;
805 max-frequency = <150000000>;
806 pinctrl-names = "default";
807 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_bus4>;
812 bus-width = <8>;
813 mmc-hs400-1_8v;
814 mmc-hs400-enhanced-strobe;
815 non-removable;
820 pinctrl-0 = <&spdif_bus_1>;
825 remote-endpoint = <&dit_p0_0>;
837 remote-endpoint = <&usbc_ss>;
847 /* tshut mode 0:CRU 1:GPIO */
848 rockchip,hw-tshut-mode = <1>;
850 rockchip,hw-tshut-polarity = <1>;
857 u2phy0_otg: otg-port {
861 u2phy0_host: host-port {
862 phy-supply = <&vcc5v0_host>;
868 remote-endpoint = <&usbc_hs>;
876 u2phy1_otg: otg-port {
880 u2phy1_host: host-port {
881 phy-supply = <&vcc5v0_host>;
887 pinctrl-names = "default";
888 pinctrl-0 = <&uart0_xfer &uart0_cts>;