// SPDX-License-Identifier: (GPL-2.0+ OR MIT) /* * Copyright (c) 2022 Mixtile Limited * */ /dts-v1/; #include #include #include #include #include #include #include #include "dt-bindings/usb/pd.h" #include "rk3588.dtsi" #include "rk3588-rk806-single.dtsi" #include "rk3588-linux.dtsi" / { model = "Mixtile Core 3588E"; compatible = "mixtile,core3588e", "rockchip,rk3588"; /delete-node/ chosen; aliases { i2c0 = &i2c4; i2c1 = &i2c5; i2c2 = &i2c3; i2c3 = &i2c0; i2c4 = &i2c1; i2c5 = &i2c2; spi0 = &spi1; spi1 = &spi0; }; /* If hdmirx node is disabled, delete the reserved-memory node here. */ reserved-memory { #address-cells = <2>; #size-cells = <2>; ranges; /* Reserve 256MB memory for hdmirx-controller@fdee0000 */ cma { compatible = "shared-dma-pool"; reusable; reg = <0x0 (256 * 0x100000) 0x0 (256 * 0x100000)>; linux,cma-default; }; }; adc_keys: adc-keys { compatible = "adc-keys"; io-channels = <&saradc 1>; io-channel-names = "buttons"; keyup-threshold-microvolt = <1800000>; poll-interval = <100>; vol-up-key { label = "volume up"; linux,code = ; press-threshold-microvolt = <17000>; }; vol-down-key { label = "volume down"; linux,code = ; press-threshold-microvolt = <417000>; }; menu-key { label = "menu"; linux,code = ; press-threshold-microvolt = <890000>; }; back-key { label = "back"; linux,code = ; press-threshold-microvolt = <1235000>; }; }; gpio-leds { compatible = "gpio-leds"; pwr-led { gpios = <&gpio3 RK_PB6 GPIO_ACTIVE_HIGH>; default-state = "on"; linux,default-trigger = "heartbeat"; }; }; hdmi0_sound: hdmi0-sound { status = "okay"; compatible = "rockchip,hdmi"; rockchip,mclk-fs = <128>; rockchip,card-name = "rockchip-hdmi0"; rockchip,cpu = <&i2s5_8ch>; rockchip,codec = <&hdmi0>; rockchip,jack-det; }; edp1_sound: edp1-sound { status = "okay"; compatible = "rockchip,hdmi"; rockchip,card-name = "rockchip-edp1"; rockchip,mclk-fs = <512>; rockchip,cpu = <&i2s6_8ch>; rockchip,codec = <&edp1>; rockchip,jack-det; }; pcie20_avdd0v85: pcie20-avdd0v85 { compatible = "regulator-fixed"; regulator-name = "pcie20_avdd0v85"; regulator-boot-on; regulator-always-on; regulator-min-microvolt = <850000>; regulator-max-microvolt = <850000>; vin-supply = <&vdd_0v85_s0>; }; pcie20_avdd1v8: pcie20-avdd1v8 { compatible = "regulator-fixed"; regulator-name = "pcie20_avdd1v8"; regulator-boot-on; regulator-always-on; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; vin-supply = <&avcc_1v8_s0>; }; pcie30_avdd0v75: pcie30-avdd0v75 { compatible = "regulator-fixed"; regulator-name = "pcie30_avdd0v75"; regulator-boot-on; regulator-always-on; regulator-min-microvolt = <750000>; regulator-max-microvolt = <750000>; vin-supply = <&avdd_0v75_s0>; }; pcie30_avdd1v8: pcie30-avdd1v8 { compatible = "regulator-fixed"; regulator-name = "pcie30_avdd1v8"; regulator-boot-on; regulator-always-on; gpios = <&gpio4 RK_PB4 GPIO_ACTIVE_LOW>; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; vin-supply = <&avcc_1v8_s0>; }; vcc3v3_pcie30: vcc3v3-pcie30 { compatible = "regulator-fixed"; regulator-name = "vcc3v3_pcie30"; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; enable-active-high; regulator-always-on; gpios = <&gpio1 RK_PB2 GPIO_ACTIVE_HIGH>; startup-delay-us = <10000>; vin-supply = <&vcc12v_dcin>; }; vcc12v_dcin: vcc12v-dcin { compatible = "regulator-fixed"; regulator-name = "vcc12v_dcin"; regulator-always-on; regulator-boot-on; regulator-min-microvolt = <12000000>; regulator-max-microvolt = <12000000>; }; vcc5v0_sys: vcc5v0-sys { compatible = "regulator-fixed"; regulator-name = "vcc5v0_sys"; regulator-always-on; regulator-boot-on; regulator-min-microvolt = <5000000>; regulator-max-microvolt = <5000000>; vin-supply = <&vcc12v_dcin>; }; vcc5v0_usbdcin: vcc5v0-usbdcin { compatible = "regulator-fixed"; regulator-name = "vcc5v0_usbdcin"; regulator-always-on; regulator-boot-on; regulator-min-microvolt = <5000000>; regulator-max-microvolt = <5000000>; vin-supply = <&vcc12v_dcin>; }; vcc5v0_usb: vcc5v0-usb { compatible = "regulator-fixed"; regulator-name = "vcc5v0_usb"; regulator-always-on; regulator-boot-on; regulator-min-microvolt = <5000000>; regulator-max-microvolt = <5000000>; vin-supply = <&vcc5v0_usbdcin>; }; vcc_1v1_nldo_s3: vcc-1v1-nldo-s3 { compatible = "regulator-fixed"; regulator-name = "vcc_1v1_nldo_s3"; regulator-always-on; regulator-boot-on; regulator-min-microvolt = <1100000>; regulator-max-microvolt = <1100000>; vin-supply = <&vcc5v0_sys>; }; fan0: pwm-fan { compatible = "pwm-fan"; #cooling-cells = <2>; pwms = <&pwm2 0 50000 0>; interrupt-parent = <&gpio3>; interrupts = ; pulses-per-revolution = <2>; cooling-levels = <50 100 150 200 255>; rockchip,temp-trips = < 40000 1 45000 2 50000 3 55000 4 >; }; }; &av1d { status = "okay"; }; &av1d_mmu { status = "okay"; }; &cpu_l0 { cpu-supply = <&vdd_cpu_lit_s0>; mem-supply = <&vdd_cpu_lit_mem_s0>; }; &cpu_b0 { cpu-supply = <&vdd_cpu_big0_s0>; mem-supply = <&vdd_cpu_big0_mem_s0>; }; &cpu_b2 { cpu-supply = <&vdd_cpu_big1_s0>; mem-supply = <&vdd_cpu_big1_mem_s0>; }; &gpu { mali-supply = <&vdd_gpu_s0>; mem-supply = <&vdd_gpu_mem_s0>; status = "okay"; }; &iep { status = "okay"; }; &iep_mmu { status = "okay"; }; &jpegd { status = "okay"; }; &jpegd_mmu { status = "okay"; }; &jpege_ccu { status = "okay"; }; &jpege0 { status = "okay"; }; &jpege0_mmu { status = "okay"; }; &jpege1 { status = "okay"; }; &jpege1_mmu { status = "okay"; }; &jpege2 { status = "okay"; }; &jpege2_mmu { status = "okay"; }; &jpege3 { status = "okay"; }; &jpege3_mmu { status = "okay"; }; &mpp_srv { status = "okay"; }; &rga3_core0 { status = "okay"; }; &rga3_0_mmu { status = "okay"; }; &rga3_core1 { status = "okay"; }; &rga3_1_mmu { status = "okay"; }; &rga2 { status = "okay"; }; &rknpu { rknpu-supply = <&vdd_npu_s0>; mem-supply = <&vdd_npu_mem_s0>; status = "okay"; }; &rknpu_mmu { status = "okay"; }; &rkvdec_ccu { status = "okay"; }; &rkvdec0 { status = "okay"; }; &rkvdec0_mmu { status = "okay"; }; &rkvdec1 { status = "okay"; }; &rkvdec1_mmu { status = "okay"; }; &rkvenc_ccu { status = "okay"; }; &rkvenc0 { status = "okay"; }; &rkvenc0_mmu { status = "okay"; }; &rkvenc1 { status = "okay"; }; &rkvenc1_mmu { status = "okay"; }; &rockchip_suspend { status = "okay"; rockchip,sleep-debug-en = <1>; rockchip,sleep-mode-config = <0x4000024>; }; &saradc { status = "okay"; vref-supply = <&vcc_1v8_s0>; }; &sdhci { bus-width = <8>; no-sdio; no-sd; non-removable; max-frequency = <200000000>; mmc-hs400-1_8v; mmc-hs400-enhanced-strobe; full-pwr-cycle-in-suspend; pinctrl-names = "default"; pinctrl-0 = <&emmc_data_strobe>; status = "okay"; }; &sdmmc { max-frequency = <150000000>; bus-width = <1>; disable-wp; vqmmc-supply = <&vccio_sd_s0>; pinctrl-0 = <&sdmmc_bus4 &sdmmc_clk &sdmmc_cmd &sdmmc_det>; cd-gpios = <&gpio0 RK_PA3 GPIO_ACTIVE_LOW>; status = "okay"; }; &tsadc { status = "okay"; }; &u2phy0 { status = "okay"; }; &u2phy0_otg { status = "okay"; }; &u2phy2 { status = "okay"; }; &u2phy2_host { status = "okay"; }; &u2phy3 { status = "okay"; }; &u2phy3_host { status = "okay"; }; &usb_host0_ehci { status = "okay"; }; &usb_host0_ohci { status = "okay"; }; &usb_host1_ehci { status = "okay"; }; &usb_host1_ohci { status = "okay"; }; &usbhost3_0 { status = "okay"; }; &usbhost_dwc3_0 { status = "okay"; }; &combphy2_psu { status = "okay"; }; &u2phy1 { status = "okay"; }; &u2phy1_otg { status = "okay"; }; &usbdrd3_1{ status = "okay"; }; &usbdrd_dwc3_1{ status = "okay"; }; &usbdp_phy1 { status = "okay"; }; &usbdp_phy1_u3 { status = "okay"; }; &usbdp_phy0 { status = "okay"; }; &usbdp_phy0_u3 { status = "okay"; }; &usbdrd3_0 { status = "okay"; }; &usbdrd_dwc3_0 { extcon = <&u2phy0>; status = "okay"; }; &vdpu { status = "okay"; }; &vdpu_mmu { status = "okay"; }; &vop { assigned-clocks = <&cru ACLK_VOP>; assigned-clock-rates = <800000000>; status = "okay"; }; &vop_mmu { status = "okay"; }; /* vp0 & vp1 splice for 8K output */ &vp0 { rockchip,plane-mask = <(1 << ROCKCHIP_VOP2_CLUSTER0 | 1 << ROCKCHIP_VOP2_ESMART0)>; rockchip,primary-plane = ; cursor-win-id = ; }; &vp1 { rockchip,plane-mask = <(1 << ROCKCHIP_VOP2_CLUSTER1 | 1 << ROCKCHIP_VOP2_ESMART1)>; rockchip,primary-plane = ; cursor-win-id = ; }; &vp2 { rockchip,plane-mask = <(1 << ROCKCHIP_VOP2_CLUSTER2 | 1 << ROCKCHIP_VOP2_ESMART2)>; rockchip,primary-plane = ; cursor-win-id = ; }; &vp3 { rockchip,plane-mask = <(1 << ROCKCHIP_VOP2_CLUSTER3 | 1 << ROCKCHIP_VOP2_ESMART3)>; rockchip,primary-plane = ; cursor-win-id = ; }; &display_subsystem { clocks = <&hdptxphy_hdmi0>; clock-names = "hdmi0_phy_pll"; }; &hdptxphy_hdmi0 { status = "okay"; }; &hdptxphy_hdmi0 { status = "okay"; }; &combphy0_ps { status = "okay"; }; &combphy1_ps { status = "okay"; }; &combphy2_psu { status = "okay"; }; &spdif_tx2 { status = "okay"; }; &spdif_tx5 { status = "okay"; }; &gmac0 { status = "okay"; phy-mode = "rgmii-rxid"; clock_in_out = "output"; snps,reset-gpio = <&gpio1 RK_PA4 GPIO_ACTIVE_LOW>; snps,reset-active-low; /* Reset time is 20ms, 100ms for rtl8211f */ snps,reset-delays-us = <0 20000 100000>; pinctrl-names = "default"; pinctrl-0 = <&gmac0_miim &gmac0_tx_bus2 &gmac0_rx_bus2 &gmac0_rgmii_clk &gmac0_rgmii_bus>; rx_delay = <0x00>; tx_delay = <0x43>; phy-handle = <&rgmii_phy>; }; &mdio0 { rgmii_phy: phy@1 { compatible = "ethernet-phy-ieee802.3-c22"; reg = <0x1>; }; }; &hdmi0 { status = "okay"; }; &hdmi0_in_vp0 { status = "okay"; }; &hdmi0_in_vp1 { status = "disabled"; }; &hdmi0_in_vp2 { status = "disabled"; }; &hdptxphy_hdmi0 { status = "okay"; }; &edp1 { pinctrl-names = "default"; pinctrl-0 = <&edp1_hpd>; hpd-gpios = <&gpio3 RK_PB7 GPIO_ACTIVE_HIGH>; //force-hpd; status = "okay"; }; &edp1_in_vp2 { status = "okay"; }; &hdptxphy1 { status = "okay"; }; &uart1 { status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&uart1m1_xfer &uart1m1_ctsn &uart1m1_rtsn>; }; &uart7 { status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&uart7m1_xfer &uart7m1_ctsn &uart7m1_rtsn>; }; &i2c0 { status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&i2c0m2_xfer>; vdd_cpu_big0_s0: vdd_cpu_big0_mem_s0: rk8602@42 { compatible = "rockchip,rk8602"; reg = <0x42>; vin-supply = <&vcc5v0_sys>; regulator-compatible = "rk860x-reg"; regulator-name = "vdd_cpu_big0_s0"; regulator-min-microvolt = <550000>; regulator-max-microvolt = <1050000>; regulator-ramp-delay = <2300>; rockchip,suspend-voltage-selector = <1>; regulator-boot-on; regulator-always-on; regulator-state-mem { regulator-off-in-suspend; }; }; vdd_cpu_big1_s0: vdd_cpu_big1_mem_s0: rk8603@43 { compatible = "rockchip,rk8603"; reg = <0x43>; vin-supply = <&vcc5v0_sys>; regulator-compatible = "rk860x-reg"; regulator-name = "vdd_cpu_big1_s0"; regulator-min-microvolt = <550000>; regulator-max-microvolt = <1050000>; regulator-ramp-delay = <2300>; rockchip,suspend-voltage-selector = <1>; regulator-boot-on; regulator-always-on; regulator-state-mem { regulator-off-in-suspend; }; }; }; &i2c1 { status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&i2c1m2_xfer>; vdd_npu_s0: vdd_npu_mem_s0: rk8602@42 { compatible = "rockchip,rk8602"; reg = <0x42>; vin-supply = <&vcc5v0_sys>; regulator-compatible = "rk860x-reg"; regulator-name = "vdd_npu_s0"; regulator-min-microvolt = <550000>; regulator-max-microvolt = <950000>; regulator-ramp-delay = <2300>; rockchip,suspend-voltage-selector = <1>; regulator-boot-on; regulator-always-on; regulator-state-mem { regulator-off-in-suspend; }; }; }; &i2c3 { status = "okay"; pinctrl-0 = <&i2c3m0_xfer>; }; &i2c4 { status = "okay"; pinctrl-0 = <&i2c4m3_xfer>; hym8563: hym8563@51 { compatible = "haoyu,hym8563"; reg = <0x51>; #clock-cells = <0>; clock-frequency = <32768>; clock-output-names = "hym8563"; pinctrl-names = "default"; pinctrl-0 = <&rtc_int>; interrupt-parent = <&gpio0>; interrupts = ; status = "okay"; }; }; &i2c5 { status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&i2c5m2_xfer>; }; &pwm2 { pinctrl-names = "active"; pinctrl-0 = <&pwm2m1_pins>; status = "okay"; }; &spi0 { status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&spi0m3_cs1 &spi0m3_pins>; num-cs = <1>; spi_dev@0 { compatible = "rockchip,spidev"; reg = <0>; spi-max-frequency = <50000000>; }; }; &spi1 { status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&spi1m2_cs0 &spi1m2_pins>; num-cs = <1>; spi_dev@0 { compatible = "rockchip,spidev"; reg = <0>; spi-max-frequency = <50000000>; }; }; &i2s0_8ch { status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&i2s0_lrck &i2s0_sclk &i2s0_sdi0 &i2s0_sdo0>; }; &i2s5_8ch { status = "okay"; }; &i2s6_8ch { status = "okay"; }; &pcie2x1l0 { reset-gpios = <&gpio1 RK_PB4 GPIO_ACTIVE_HIGH>; status = "okay"; }; &pcie2x1l1 { reset-gpios = <&gpio4 RK_PA2 GPIO_ACTIVE_HIGH>; status = "okay"; }; &pcie30phy { rockchip,pcie30-phymode = ; status = "okay"; }; &pcie3x4 { reset-gpios = <&gpio4 RK_PB6 GPIO_ACTIVE_HIGH>; vpcie3v3-supply = <&vcc3v3_pcie30>; pinctrl-names = "default"; pinctrl-0 = <&pcie30x4m1_pins>; supports-clkreq; status = "okay"; }; &pinctrl { usb { vcc5v0_host_en: vcc5v0-host-en { rockchip,pins = <4 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>; }; }; edp { edp1_hpd: edp1-hpd { rockchip,pins = <3 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>; }; }; hym8563 { rtc_int: rtc-int { rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_up>; }; }; emmc { emmc_data_strobe: emmc-data-strobe { rockchip,pins = <2 RK_PA2 1 &pcfg_pull_down>; }; }; }; &route_hdmi0 { connect = <&vp0_out_hdmi0>; status = "okay"; }; &route_edp1 { status = "okay"; connect = <&vp2_out_edp1>; }; &gpio0 { gpio-line-names = /* GPIO0_A0-A3 */ "PIN_29", "", "", "", /* GPIO0_A4-A7 */ "", "", "", "", /* GPIO0_B0-B3 */ "", "", "", "", /* GPIO0_B4-B7 */ "", "", "", "", /* GPIO0_C0-C3 */ "", "", "", "", /* GPIO0_C4-C7 */ "", "", "", "", /* GPIO0_D0-D3 */ "", "", "", "", /* GPIO0_D4-D7 */ "", "", "", ""; }; &gpio1 { gpio-line-names = /* GPIO1_A0-A3 */ "", "", "", "", /* GPIO1_A4-A7 */ "", "", "", "", /* GPIO1_B0-B3 */ "", "", "", "", /* GPIO1_B4-B7 */ "", "", "", "", /* GPIO1_C0-C3 */ "", "", "PIN_07", "", /* GPIO1_C4-C7 */ "", "", "", "", /* GPIO1_D0-D3 */ "", "", "", "", /* GPIO1_D4-D7 */ "", "", "", ""; }; &gpio2 { gpio-line-names = /* GPIO2_A0-A3 */ "", "", "", "", /* GPIO2_A4-A7 */ "", "", "", "", /* GPIO2_B0-B3 */ "", "", "", "", /* GPIO2_B4-B7 */ "", "", "", "", /* GPIO2_C0-C3 */ "", "", "", "", /* GPIO2_C4-C7 */ "", "", "", "", /* GPIO2_D0-D3 */ "", "", "", "", /* GPIO2_D4-D7 */ "", "", "", ""; }; &gpio3 { gpio-line-names = /* GPIO3_A0-A3 */ "PIN_32", "", "", "PIN_15", /* GPIO3_A4-A7 */ "", "", "", "", /* GPIO3_B0-B3 */ "PIN_33", "", "", "", /* GPIO3_B4-B7 */ "", "", "", "", /* GPIO3_C0-C3 */ "", "", "", "", /* GPIO3_C4-C7 */ "", "", "PIN_31", "", /* GPIO3_D0-D3 */ "", "", "", "", /* GPIO3_D4-D7 */ "", "", "", ""; }; &gpio4 { gpio-line-names = /* GPIO4_A0-A3 */ "", "", "", "", /* GPIO4_A4-A7 */ "", "", "", "", /* GPIO4_B0-B3 */ "", "", "", "", /* GPIO4_B4-B7 */ "", "", "", "", /* GPIO4_C0-C3 */ "", "", "", "", /* GPIO4_C4-C7 */ "", "", "", "", /* GPIO4_D0-D3 */ "", "", "", "", /* GPIO4_D4-D7 */ "", "", "", ""; };