1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 #include <dt-bindings/pwm/pwm.h>
4 #include <dt-bindings/input/input.h>
6 #include "rk3399-opp.dtsi"
9 model = "Hugsun X99 TV BOX";
10 compatible = "hugsun,x99", "rockchip,rk3399";
19 stdout-path = "serial2:1500000n8";
22 clkin_gmac: external-gmac-clock {
23 compatible = "fixed-clock";
24 clock-frequency = <125000000>;
25 clock-output-names = "clkin_gmac";
30 compatible = "regulator-fixed";
31 regulator-name = "dc_5v";
34 regulator-min-microvolt = <5000000>;
35 regulator-max-microvolt = <5000000>;
39 compatible = "gpio-ir-receiver";
40 gpios = <&gpio0 RK_PA6 GPIO_ACTIVE_LOW>;
41 pinctrl-names = "default";
46 compatible = "gpio-leds";
47 pinctrl-names = "default";
48 pinctrl-0 = <&power_led_pin>;
52 gpios = <&gpio4 RK_PC2 GPIO_ACTIVE_HIGH>;
54 linux,default-trigger = "default-on";
59 compatible = "regulator-fixed";
60 regulator-name = "vcc_sys";
61 regulator-min-microvolt = <5000000>;
62 regulator-max-microvolt = <5000000>;
64 vin-supply = <&dc_5v>;
67 vcc_phy: vcc-phy-regulator {
68 compatible = "regulator-fixed";
69 regulator-name = "vcc_phy";
74 vcc1v8_s0: vcc1v8-s0 {
75 compatible = "regulator-fixed";
76 regulator-name = "vcc1v8_s0";
77 regulator-min-microvolt = <1800000>;
78 regulator-max-microvolt = <1800000>;
82 vcc3v3_sys: vcc3v3-sys {
83 compatible = "regulator-fixed";
84 regulator-name = "vcc3v3_sys";
85 regulator-min-microvolt = <3300000>;
86 regulator-max-microvolt = <3300000>;
88 vin-supply = <&vcc_sys>;
91 vcc5v0_host: vcc5v0-host-regulator {
92 compatible = "regulator-fixed";
94 gpio = <&gpio4 RK_PD2 GPIO_ACTIVE_HIGH>;
95 pinctrl-names = "default";
96 pinctrl-0 = <&host_vbus_drv>;
97 regulator-name = "vcc5v0_host";
101 vcc5v0_typec: vcc5v0-typec-regulator {
102 compatible = "regulator-fixed";
104 gpio = <&gpio1 RK_PA3 GPIO_ACTIVE_HIGH>;
105 pinctrl-names = "default";
106 pinctrl-0 = <&vcc5v0_typec_en>;
107 regulator-name = "vcc5v0_typec";
109 vin-supply = <&vcc5v0_usb>;
112 vcc5v0_usb: vcc5v0-usb {
113 compatible = "regulator-fixed";
114 regulator-name = "vcc5v0_usb";
117 regulator-min-microvolt = <5000000>;
118 regulator-max-microvolt = <5000000>;
119 vin-supply = <&dc_5v>;
123 compatible = "pwm-regulator";
124 pwms = <&pwm2 0 25000 1>;
125 pwm-supply = <&vcc_sys>;
126 regulator-name = "vdd_log";
127 regulator-min-microvolt = <800000>;
128 regulator-max-microvolt = <1400000>;
133 sdio_pwrseq: sdio-pwrseq {
134 compatible = "mmc-pwrseq-simple";
136 clock-names = "ext_clock";
137 pinctrl-names = "default";
138 pinctrl-0 = <&wifi_reg_on_h>;
139 reset-gpios = <&gpio0 RK_PB2 GPIO_ACTIVE_LOW>;
145 cpu-supply = <&vdd_cpu_l>;
149 cpu-supply = <&vdd_cpu_l>;
153 cpu-supply = <&vdd_cpu_l>;
157 cpu-supply = <&vdd_cpu_l>;
161 cpu-supply = <&vdd_cpu_b>;
165 cpu-supply = <&vdd_cpu_b>;
173 assigned-clocks = <&cru SCLK_RMII_SRC>;
174 assigned-clock-parents = <&clkin_gmac>;
175 clock_in_out = "input";
176 phy-supply = <&vcc_phy>;
178 pinctrl-names = "default";
179 pinctrl-0 = <&rgmii_pins>;
180 snps,reset-gpio = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>;
181 snps,reset-active-low;
182 snps,reset-delays-us = <0 10000 50000>;
190 mali-supply = <&vdd_gpu>;
194 ddc-i2c-bus = <&i2c3>;
195 pinctrl-names = "default";
196 pinctrl-0 = <&hdmi_cec>;
206 i2c-scl-rising-time-ns = <180>;
207 i2c-scl-falling-time-ns = <30>;
208 clock-frequency = <400000>;
210 vdd_cpu_b: syr827@40 {
211 compatible = "silergy,syr827";
213 regulator-compatible = "fan53555-reg";
214 pinctrl-0 = <&vsel1_pin>;
215 regulator-name = "vdd_cpu_b";
216 regulator-min-microvolt = <712500>;
217 regulator-max-microvolt = <1500000>;
218 regulator-ramp-delay = <1000>;
219 fcs,suspend-voltage-selector = <1>;
222 vin-supply = <&vcc_sys>;
223 regulator-state-mem {
224 regulator-off-in-suspend;
229 compatible = "silergy,syr828";
231 regulator-compatible = "fan53555-reg";
232 pinctrl-0 = <&vsel2_pin>;
233 regulator-name = "vdd_gpu";
234 regulator-min-microvolt = <712500>;
235 regulator-max-microvolt = <1500000>;
236 regulator-ramp-delay = <1000>;
237 fcs,suspend-voltage-selector = <1>;
240 vin-supply = <&vcc_sys>;
241 regulator-initial-mode = <1>;
242 regulator-state-mem {
243 regulator-off-in-suspend;
248 compatible = "rockchip,rk808";
250 interrupt-parent = <&gpio1>;
251 interrupts = <21 IRQ_TYPE_LEVEL_LOW>;
252 pinctrl-names = "default";
253 pinctrl-0 = <&pmic_int_l>;
254 rockchip,system-power-controller;
257 clock-output-names = "xin32k", "rtc_clko_wifi";
259 vcc1-supply = <&vcc_sys>;
260 vcc2-supply = <&vcc_sys>;
261 vcc3-supply = <&vcc_sys>;
262 vcc4-supply = <&vcc_sys>;
263 vcc6-supply = <&vcc_sys>;
264 vcc7-supply = <&vcc_sys>;
265 vcc8-supply = <&vcc3v3_sys>;
266 vcc9-supply = <&vcc_sys>;
267 vcc10-supply = <&vcc_sys>;
268 vcc11-supply = <&vcc_sys>;
269 vcc12-supply = <&vcc3v3_sys>;
270 vddio-supply = <&vcc_1v8>;
273 vdd_center: DCDC_REG1 {
274 regulator-name = "vdd_center";
275 regulator-min-microvolt = <900000>;
276 regulator-max-microvolt = <900000>;
277 regulator-ramp-delay = <6001>;
280 regulator-state-mem {
281 regulator-off-in-suspend;
285 vdd_cpu_l: DCDC_REG2 {
286 regulator-name = "vdd_cpu_l";
287 regulator-min-microvolt = <750000>;
288 regulator-max-microvolt = <1350000>;
289 regulator-ramp-delay = <6001>;
292 regulator-state-mem {
293 regulator-off-in-suspend;
298 regulator-name = "vcc_ddr";
301 regulator-state-mem {
302 regulator-on-in-suspend;
307 regulator-name = "vcc_1v8";
308 regulator-min-microvolt = <1800000>;
309 regulator-max-microvolt = <1800000>;
312 regulator-state-mem {
313 regulator-on-in-suspend;
314 regulator-suspend-microvolt = <1800000>;
318 vcc1v8_dvp: LDO_REG1 {
319 regulator-name = "vcc1v8_dvp";
320 regulator-min-microvolt = <1800000>;
321 regulator-max-microvolt = <1800000>;
324 regulator-state-mem {
325 regulator-on-in-suspend;
326 regulator-suspend-microvolt = <1800000>;
330 vcca1v8_hdmi: LDO_REG2 {
331 regulator-name = "vcca1v8_hdmi";
332 regulator-min-microvolt = <1800000>;
333 regulator-max-microvolt = <1800000>;
336 regulator-state-mem {
337 regulator-on-in-suspend;
338 regulator-suspend-microvolt = <1800000>;
343 regulator-name = "vcca_1v8";
344 regulator-min-microvolt = <1800000>;
345 regulator-max-microvolt = <1800000>;
348 regulator-state-mem {
349 regulator-on-in-suspend;
350 regulator-suspend-microvolt = <1800000>;
355 regulator-name = "vcc_sd";
356 regulator-min-microvolt = <1800000>;
357 regulator-max-microvolt = <3300000>;
360 regulator-state-mem {
361 regulator-on-in-suspend;
362 regulator-suspend-microvolt = <3300000>;
366 vcc3v0_sd: LDO_REG5 {
367 regulator-name = "vcc3v0_sd";
368 regulator-min-microvolt = <3000000>;
369 regulator-max-microvolt = <3000000>;
372 regulator-state-mem {
373 regulator-on-in-suspend;
374 regulator-suspend-microvolt = <3000000>;
379 regulator-name = "vcc_1v5";
380 regulator-min-microvolt = <1500000>;
381 regulator-max-microvolt = <1500000>;
384 regulator-state-mem {
385 regulator-on-in-suspend;
386 regulator-suspend-microvolt = <1500000>;
390 vcca0v9_hdmi: LDO_REG7 {
391 regulator-name = "vcca0v9_hdmi";
392 regulator-min-microvolt = <900000>;
393 regulator-max-microvolt = <900000>;
396 regulator-state-mem {
397 regulator-on-in-suspend;
398 regulator-suspend-microvolt = <900000>;
403 regulator-name = "vcc_3v0";
404 regulator-min-microvolt = <3000000>;
405 regulator-max-microvolt = <3000000>;
408 regulator-state-mem {
409 regulator-on-in-suspend;
410 regulator-suspend-microvolt = <3000000>;
414 vcc3v3_s3: SWITCH_REG1 {
415 regulator-name = "vcc3v3_s3";
418 regulator-state-mem {
419 regulator-on-in-suspend;
423 vcc3v3_s0: SWITCH_REG2 {
424 regulator-name = "vcc3v3_s0";
427 regulator-state-mem {
428 regulator-on-in-suspend;
436 i2c-scl-rising-time-ns = <300>;
437 i2c-scl-falling-time-ns = <15>;
442 i2c-scl-rising-time-ns = <450>;
443 i2c-scl-falling-time-ns = <15>;
448 i2c-scl-rising-time-ns = <600>;
449 i2c-scl-falling-time-ns = <40>;
452 fusb0: typec-portc@22 {
453 compatible = "fcs,fusb302";
455 interrupt-parent = <&gpio1>;
456 interrupts = <RK_PA2 IRQ_TYPE_LEVEL_LOW>;
457 pinctrl-names = "default";
458 pinctrl-0 = <&fusb0_int>;
459 vbus-supply = <&vcc5v0_typec>;
469 rockchip,playback-channels = <8>;
470 rockchip,capture-channels = <8>;
475 rockchip,playback-channels = <2>;
476 rockchip,capture-channels = <2>;
486 audio-supply = <&vcc1v8_s0>;
487 bt656-supply = <&vcc1v8_s0>;
488 gpio1830-supply = <&vcc_3v0>;
489 sdmmc-supply = <&vcc_sd>;
494 pmu1830-supply = <&vcc_1v8>;
499 fusb0_int: fusb0-int {
501 <1 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up>;
506 rgmii_sleep_pins: rgmii-sleep-pins {
508 <3 RK_PB7 RK_FUNC_GPIO &pcfg_output_low>;
514 rockchip,pins = <0 RK_PA6 1 &pcfg_pull_none>;
519 power_led_pin: power-led-pin {
520 rockchip,pins = <4 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>;
525 pmic_int_l: pmic-int-l {
527 <1 RK_PC5 RK_FUNC_GPIO &pcfg_pull_up>;
530 vsel1_pin: vsel1-pin {
532 <1 RK_PC1 RK_FUNC_GPIO &pcfg_pull_down>;
535 vsel2_pin: vsel2-pin {
537 <1 RK_PB6 RK_FUNC_GPIO &pcfg_pull_down>;
542 bt_host_wake_l: bt-host-wake-l {
543 rockchip,pins = <0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>;
546 bt_reg_on_h: bt-reg-on-h {
547 /* external pullup to VCC1V8_PMUPLL */
548 rockchip,pins = <0 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>;
551 bt_wake_l: bt-wake-l {
552 rockchip,pins = <2 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>;
555 wifi_reg_on_h: wifi-reg_on-h {
556 rockchip,pins = <0 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
561 wifi_host_wake_l: wifi-host-wake-l {
562 rockchip,pins = <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>;
567 vcc5v0_typec_en: vcc5v0_typec_en {
568 rockchip,pins = <1 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up>;
573 host_vbus_drv: host-vbus-drv {
575 <4 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>;
582 pinctrl-0 = <&pwm2_pin_pull_down>;
586 vref-supply = <&vcc1v8_s0>;
591 clock-frequency = <150000000>;
592 max-frequency = <150000000>;
597 vqmmc-supply = <&vcc_sd>;
598 pinctrl-names = "default";
599 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
600 card-detect-delay = <800>;
607 mmc-hs400-enhanced-strobe;
609 keep-power-in-suspend;
615 clock-frequency = <50000000>;
618 keep-power-in-suspend;
619 mmc-pwrseq = <&sdio_pwrseq>;
621 pinctrl-names = "default";
622 pinctrl-0 = <&sdio0_bus4 &sdio0_cmd &sdio0_clk>;
624 #address-cells = <1>;
629 compatible = "brcm,bcm4329-fmac";
631 interrupt-parent = <&gpio0>;
632 interrupts = <RK_PA3 GPIO_ACTIVE_HIGH>;
633 interrupt-names = "host-wake";
634 pinctrl-names = "default";
635 pinctrl-0 = <&wifi_host_wake_l>;
641 pinctrl-0 = <&spdif_bus_1>;
648 compatible = "jedec,spi-nor";
649 #address-cells = <1>;
652 spi-max-frequency = <10000000>;
665 /* tshut mode 0:CRU 1:GPIO */
666 rockchip,hw-tshut-mode = <1>;
667 /* tshut polarity 0:LOW 1:HIGH */
668 rockchip,hw-tshut-polarity = <1>;
669 rockchip,hw-tshut-temp = <110000>;
676 u2phy0_host: host-port {
677 phy-supply = <&vcc5v0_typec>;
681 u2phy0_otg: otg-port {
689 u2phy1_host: host-port {
690 phy-supply = <&vcc5v0_host>;
694 u2phy1_otg: otg-port {
700 pinctrl-names = "default";
701 pinctrl-0 = <&uart0_xfer &uart0_rts &uart0_cts>;
705 compatible = "brcm,bcm43438-bt";
707 clock-names = "ext_clock";
708 device-wakeup-gpios = <&gpio2 RK_PD2 GPIO_ACTIVE_HIGH>;
709 host-wakeup-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_HIGH>;
710 shutdown-gpios = <&gpio0 RK_PB1 GPIO_ACTIVE_HIGH>;
711 max-speed = <4000000>;
712 pinctrl-names = "default";
713 pinctrl-0 = <&bt_reg_on_h &bt_host_wake_l &bt_wake_l>;
714 vbat-supply = <&vcc3v3_sys>;
715 vddio-supply = <&vcc_1v8>;