// SPDX-License-Identifier: (GPL-2.0+ OR MIT) /* * Copyright (c) 2022 Rockchip Electronics Co., Ltd. * Author: flippy (flippy@sina.com) * */ /dts-v1/; #include #include #include #include "rk3528.dtsi" / { model = "Hinlink H28K"; compatible = "hlink,h28k", "rockchip,rk3528"; aliases { ethernet0 = &gmac1; ethernet1 = &pcie_eth; mmc0 = &sdmmc; mmc1 = &sdhci; }; chosen: chosen{ bootargs = "earlycon=uart8250,mmio32,0xff9f0000 console=ttyS0,1500000"; }; fiq_debugger: fiq-debugger { compatible = "rockchip,fiq-debugger"; rockchip,serial-id = <0>; rockchip,wake-irq = <0>; /* If enable uart uses irq instead of fiq */ rockchip,irq-mode-enable = <1>; rockchip,baudrate = <1500000>; /* Only 115200 and 1500000 */ interrupts = ; pinctrl-names = "default"; pinctrl-0 = <&uart0m0_xfer>; status = "disabled"; }; firmware: firmware { optee: optee { compatible = "linaro,optee-tz"; method = "smc"; }; }; reserved_memory: reserved-memory { #address-cells = <2>; #size-cells = <2>; ranges; cmd: cma { compatible = "shared-dma-pool"; reusable; size = <0x00 0x2000000>; linux,cma-default; }; drm_logo: drm-logo@00000000 { compatible = "rockchip,drm-logo"; reg = <0x0 0x0 0x0 0x0>; }; drm_cubic_lut: drm-cubic-lut@00000000 { compatible = "rockchip,drm-cubic-lut"; reg = <0x0 0x0 0x0 0x0>; }; ramoops: ramoops@110000 { compatible = "ramoops"; /* 0x110000 to 0x1f0000 is for ramoops */ reg = <0x0 0x110000 0x0 0xe0000>; boot-log-size = <0x8000>; /* do not change */ boot-log-count = <0x1>; /* do not change */ console-size = <0x80000>; pmsg-size = <0x30000>; ftrace-size = <0x00000>; record-size = <0x14000>; }; }; adc_keys: adc-keys { status = "okay"; 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 = <1750>; }; }; dc_12v: dc-12v { compatible = "regulator-fixed"; regulator-name = "dc_12v"; 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 = <&dc_12v>; }; vcc_3v3_s3: vcc-3v3-s3 { compatible = "regulator-fixed"; regulator-name = "vcc_3v3_s3"; regulator-always-on; regulator-boot-on; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; vin-supply = <&vcc5v0_sys>; }; vdd_1v8_s3: vdd-1v8-s3 { compatible = "regulator-fixed"; regulator-name = "vdd_1v8_s3"; regulator-always-on; regulator-boot-on; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; vin-supply = <&vcc5v0_sys>; }; vcc_ddr_s3: vcc-ddr-s3 { compatible = "regulator-fixed"; regulator-name = "vcc_ddr_s3"; regulator-always-on; regulator-boot-on; regulator-min-microvolt = <1200000>; regulator-max-microvolt = <1200000>; vin-supply = <&vcc5v0_sys>; }; vdd_0v9_s3: vdd-0v9-s3 { compatible = "regulator-fixed"; regulator-name = "vdd_0v9_s3"; regulator-always-on; regulator-boot-on; regulator-min-microvolt = <900000>; regulator-max-microvolt = <900000>; vin-supply = <&vcc5v0_sys>; }; vdd_logic: vdd-logic { compatible = "pwm-regulator"; pwms = <&pwm2 0 5000 1>; regulator-name = "vdd_logic"; regulator-min-microvolt = <705000>; regulator-max-microvolt = <1006000>; regulator-init-microvolt = <950000>; regulator-always-on; regulator-boot-on; regulator-settling-time-up-us = <250>; pwm-supply = <&vcc5v0_sys>; status = "okay"; }; vdd_cpu: vdd-cpu { compatible = "pwm-regulator"; pwms = <&pwm1 0 5000 1>; regulator-name = "vdd_cpu"; regulator-min-microvolt = <746000>; regulator-max-microvolt = <1201000>; regulator-init-microvolt = <953000>; regulator-always-on; regulator-boot-on; regulator-settling-time-up-us = <250>; pwm-supply = <&vcc5v0_sys>; status = "okay"; }; vdd_gpu: vdd-gpu { compatible = "pwm-regulator"; pwms = <&pwm0 0 5000 1>; regulator-name = "vdd_gpu"; regulator-min-microvolt = <705000>; regulator-max-microvolt = <1148000>; regulator-init-microvolt = <900000>; regulator-always-on; regulator-boot-on; regulator-settling-time-up-us = <250>; pwm-supply = <&vcc5v0_sys>; status = "okay"; }; vcc_sd: vcc-sd { compatible = "regulator-fixed"; gpio = <&gpio4 RK_PA1 GPIO_ACTIVE_LOW>; regulator-name = "vcc_sd"; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; vin-supply = <&vcc_3v3_s3>; }; vccio_sd: vccio-sd { compatible = "regulator-gpio"; regulator-name = "vccio_sd"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <3300000>; gpios = <&gpio4 RK_PB6 GPIO_ACTIVE_HIGH>; vin-supply = <&vcc5v0_sys>; states = <1800000 0x0 3300000 0x1>; }; gpio_leds: gpio-leds { compatible = "gpio-leds"; pinctrl-names = "led-green", "led-amber", "led-blue"; pinctrl-0 = <&led_green_en>, <&led_amber_en>, <&led_blue_en>; led_green: led-green { label = "led_green"; gpios = <&gpio4 RK_PB7 GPIO_ACTIVE_LOW>; linux,default-trigger = "heartbeat"; }; led_amber: led-amber { label = "led_amber"; gpios = <&gpio4 RK_PC1 GPIO_ACTIVE_LOW>; }; led_blue: led-blue { label = "led_blue"; gpios = <&gpio4 RK_PC0 GPIO_ACTIVE_LOW>; }; }; }; &reserved_memory { }; &avsd { status = "okay"; }; &combphy_pu { status = "okay"; }; &cpu0 { cpu-supply = <&vdd_cpu>; }; &crypto { status = "okay"; }; &dfi { status = "okay"; }; &dmc { center-supply = <&vdd_logic>; status = "okay"; }; &gmac0 { status = "disabled"; }; &gmac1 { status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&rgmii_miim &rgmii_tx_bus2 &rgmii_rx_bus2 &rgmii_rgmii_clk &rgmii_rgmii_bus>; phy-supply = <&vcc_3v3_s3>; phy-handle = <&rgmii_phy>; phy-mode = "rgmii"; clock_in_out = "output"; tx_delay = <0x36>; rx_delay = <0x2b>; snps,reset-gpio = <&gpio4 RK_PC2 GPIO_ACTIVE_LOW>; snps,reset-active-low; /* Reset time is 20ms, 100ms for rtl8211f */ snps,reset-delays-us = <0 20000 100000>; }; &mdio1 { rgmii_phy: phy@1 { compatible = "ethernet-phy-ieee802.3-c22"; reg = <0x1>; }; }; &gpu { mali-supply = <&vdd_gpu>; status = "okay"; }; &gpu_bus { bus-supply = <&vdd_logic>; status = "okay"; }; &display_subsystem { status = "disabled"; memory-region = <&drm_logo>, <&drm_cubic_lut>; memory-region-names = "drm-logo", "drm-cubic-lut"; /* devfreq = <&dmc>; */ route { route_hdmi: route-hdmi { status = "okay"; logo,uboot = "logo.bmp"; logo,kernel = "logo_kernel.bmp"; logo,mode = "center"; charge_logo,mode = "center"; connect = <&vp0_out_hdmi>; }; route_tve: route-tve { status = "okay"; logo,uboot = "logo.bmp"; logo,kernel = "logo_kernel.bmp"; logo,mode = "center"; charge_logo,mode = "center"; connect = <&vp1_out_tve>; }; }; }; &hdmi { status = "disabled"; }; &hdmi_in_vp0 { status = "disabled"; }; &hdmiphy { status = "disabled"; }; &iep { status = "okay"; }; &iep_mmu { status = "okay"; }; &jpegd { status = "okay"; }; &jpegd_mmu { status = "okay"; }; &mpp_srv { status = "okay"; }; &pwm0 { status = "okay"; }; &pwm1 { status = "okay"; }; &pwm2 { status = "okay"; }; &rga2 { status = "okay"; }; &rga2_mmu { status = "okay"; }; &rkvdec { status = "okay"; }; &rkvdec_mmu { status = "okay"; }; &rkvenc { status = "okay"; }; &rkvenc_mmu { status = "okay"; }; &rkvtunnel { status = "okay"; }; &rng { status = "okay"; }; &rockchip_suspend { status = "okay"; rockchip,sleep-debug-en = <1>; rockchip,virtual-poweroff = <1>; rockchip,sleep-mode-config = < (0 | RKPM_SLP_ARMPD ) >; rockchip,wakeup-config = < (0 | RKPM_CPU0_WKUP_EN | RKPM_GPIO_WKUP_EN ) >; rockchip,pwm-regulator-config = < (0 | RKPM_PWM0_M0_REGULATOR_EN | RKPM_PWM1_M0_REGULATOR_EN ) >; }; &saradc { status = "okay"; vref-supply = <&vdd_1v8_s3>; }; &sdhci { bus-width = <8>; no-sd; no-sdio; non-removable; mmc-hs200-1_8v; max-frequency = <200000000>; status = "okay"; }; &sdmmc { bus-width = <4>; cap-mmc-highspeed; cap-sd-highspeed; disable-wp; max-frequency = <100000000>; pinctrl-names = "default"; pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_det &sdmmc_bus4>; rockchip,default-sample-phase = <90>; supports-sd; sd-uhs-sdr12; sd-uhs-sdr25; sd-uhs-sdr50; vqmmc-supply = <&vccio_sd>; vmmc-supply = <&vcc_sd>; status = "okay"; }; &sfc { status = "okay"; }; &tsadc { status = "okay"; }; &u2phy_host { phy-supply = <&vcc5v0_sys>; status = "okay"; }; &u2phy_otg { phy-supply = <&vcc5v0_sys>; vbus-supply = <&vcc_3v3_s3>; status = "disabled"; }; &usb2phy { status = "okay"; }; &usb_host0_ehci { status = "okay"; }; &usb_host0_ohci { status = "okay"; }; &usbdrd30 { status = "okay"; }; &usbdrd_dwc3 { status = "disabled"; dr_mode = "otg"; phys = <&u2phy_otg>; phy-names = "usb2-phy"; maximum-speed = "high-speed"; snps,dis_u2_susphy_quirk; snps,usb2-lpm-disable; }; &vdpp { status = "okay"; }; &vdpu { status = "okay"; }; &vdpu_mmu { status = "okay"; }; &vop { status = "okay"; }; &vop_mmu { status = "okay"; }; &uart0 { status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&uart0m0_xfer>; }; &pcie2x1 { status = "okay"; reset-gpios = <&gpio4 RK_PA3 GPIO_ACTIVE_HIGH>; vpcie3v3-supply = <&vcc_3v3_s3>; pinctrl-names = "default"; pinctrl-0 = <&pcie_rtl8111_isolate>; pcie@0,0 { reg = <0x000000 0 0 0 0>; #address-cells = <3>; #size-cells = <2>; pcie_eth: pcie-eth@10,0 { compatible = "pci10ec,8168"; reg = <0x000000 0 0 0 0>; realtek,led-data = <0x0870>; }; }; }; &pinctrl { leds { led_green_en: led-green-en { rockchip,pins = <4 RK_PB7 RK_FUNC_GPIO &pcfg_pull_up>; }; led_amber_en: led-amber-en { rockchip,pins = <4 RK_PC1 RK_FUNC_GPIO &pcfg_pull_up>; }; led_blue_en: led-blue-en { rockchip,pins = <4 RK_PC0 RK_FUNC_GPIO &pcfg_pull_up>; }; }; pcie { pcie_rtl8111_isolate: pcie-rtl8111-isolate { rockchip,pins = <4 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>; }; }; };