953 lines
16 KiB
Plaintext
953 lines
16 KiB
Plaintext
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
|
/*
|
|
*
|
|
* Copyright (c) 2021 Rockchip Electronics Co., Ltd.
|
|
*/
|
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
#include <dt-bindings/pwm/pwm.h>
|
|
#include <dt-bindings/pinctrl/rockchip.h>
|
|
#include <dt-bindings/input/rk-input.h>
|
|
#include <dt-bindings/display/drm_mipi_dsi.h>
|
|
#include <dt-bindings/display/rockchip_vop.h>
|
|
#include <dt-bindings/sensor-dev.h>
|
|
#include <dt-bindings/usb/pd.h>
|
|
#include "rk3588s.dtsi"
|
|
#include "rk3588-rk806-single.dtsi"
|
|
#include "rk3588-linux.dtsi"
|
|
|
|
|
|
/ {
|
|
aliases {
|
|
ethernet0 = &gmac1;
|
|
mmc0 = &sdhci;
|
|
mmc1 = &sdmmc;
|
|
mmc2 = &sdio;
|
|
};
|
|
|
|
chosen: chosen {
|
|
bootargs = "earlycon=uart8250,mmio32,0xfeb50000 console=ttyFIQ0 coherent_pool=1m irqchip.gicv3_pseudo_nmi=0";
|
|
};
|
|
|
|
/* HDMI SOUND */
|
|
|
|
hdmi0_sound: hdmi0-sound {
|
|
status = "disabled";
|
|
compatible = "simple-audio-card";
|
|
simple-audio-card,format = "i2s";
|
|
simple-audio-card,mclk-fs = <128>;
|
|
simple-audio-card,name = "rockchip,hdmi0";
|
|
|
|
simple-audio-card,cpu {
|
|
sound-dai = <&i2s5_8ch>;
|
|
};
|
|
simple-audio-card,codec {
|
|
sound-dai = <&hdmi0>;
|
|
};
|
|
};
|
|
|
|
/* POWER REGULATOR 12V DC-IN */
|
|
|
|
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>;
|
|
};
|
|
|
|
/* POWER REGULATOR 5V SYS */
|
|
|
|
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>;
|
|
};
|
|
|
|
/* POWER REGULATOR CPU */
|
|
|
|
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>;
|
|
};
|
|
|
|
/* POWER REGULATOR 3V (SD) */
|
|
|
|
vcc_3v3_sd_s0: vcc-3v3-sd-s0-regulator {
|
|
compatible = "regulator-fixed";
|
|
enable-active-high;
|
|
gpio = <&gpio4 RK_PB4 GPIO_ACTIVE_HIGH>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&sd_s0_pwr>;
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-max-microvolt = <3000000>;
|
|
regulator-min-microvolt = <3000000>;
|
|
regulator-name = "vcc_3v3_sd_s0";
|
|
vin-supply = <&vcc_3v3_s3>;
|
|
};
|
|
|
|
/* POWER REGULATOR 3.3V (PCIE)*/
|
|
|
|
vcc_3v3_pcie20: vcc3v3-pcie20 {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vcc_3v3_pcie20";
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-min-microvolt = <3300000>;
|
|
regulator-max-microvolt = <3300000>;
|
|
vin-supply = <&vcc_3v3_s3>;
|
|
};
|
|
|
|
/* POWER REGULATOR 5V (USB2 & USB3) */
|
|
|
|
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_sys>;
|
|
};
|
|
|
|
vcc5v0_host_20: vcc5v0-host-20 { // U13 (USB 2.0)
|
|
compatible = "regulator-fixed";
|
|
enable-active-high;
|
|
gpio = <&gpio0 RK_PB0 GPIO_ACTIVE_HIGH>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&vcc5v0_host20_en>;
|
|
regulator-name = "vcc5v0_host_20";
|
|
regulator-min-microvolt = <5000000>;
|
|
regulator-max-microvolt = <5000000>;
|
|
vin-supply = <&vcc5v0_usb>;
|
|
};
|
|
|
|
vcc5v0_host_30: vcc5v0-host-30 { // U12 (USB 3.0)
|
|
compatible = "regulator-fixed";
|
|
enable-active-high;
|
|
gpio = <&gpio4 RK_PA6 GPIO_ACTIVE_HIGH>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&vcc5v0_host30_en>;
|
|
regulator-name = "vcc5v0_host_30";
|
|
regulator-min-microvolt = <5000000>;
|
|
regulator-max-microvolt = <5000000>;
|
|
vin-supply = <&vcc5v0_usb>;
|
|
};
|
|
|
|
/* POWER REGULATOR LCD DSI0/DSI1 */
|
|
|
|
vcc3v3_lcd_n: vcc3v3-lcd0-n {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vcc3v3_lcd0_n";
|
|
regulator-boot-on;
|
|
enable-active-high;
|
|
gpio = <&gpio1 RK_PB2 GPIO_ACTIVE_HIGH>;
|
|
vin-supply = <&vcc_3v3_s0>;
|
|
};
|
|
|
|
/* LED GREEN SYS */
|
|
leds: gpio-leds {
|
|
compatible = "gpio-leds";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&leds_gpio>;
|
|
status = "okay";
|
|
|
|
led@1 {
|
|
gpios = <&gpio0 RK_PC5 GPIO_ACTIVE_HIGH>;
|
|
label = "status_led";
|
|
linux,default-trigger = "heartbeat";
|
|
linux,default-trigger-delay-ms = <0>;
|
|
};
|
|
};
|
|
};
|
|
|
|
/* I2C */
|
|
|
|
&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;
|
|
};
|
|
};
|
|
};
|
|
|
|
&i2c2 {
|
|
status = "okay";
|
|
|
|
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 = "disabled";
|
|
};
|
|
|
|
&i2c4 {
|
|
status = "disabled";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&i2c4m3_xfer>;
|
|
};
|
|
|
|
&i2c5 {
|
|
status = "disabled";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&i2c5m3_xfer>;
|
|
};
|
|
|
|
&i2c6 {
|
|
status = "okay";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&i2c6m3_xfer>;
|
|
|
|
/* RTC */
|
|
hym8563: hym8563@51 {
|
|
compatible = "haoyu,hym8563";
|
|
reg = <0x51>;
|
|
#clock-cells = <0>;
|
|
clock-frequency = <32768>;
|
|
clock-output-names = "hym8563";
|
|
status = "okay";
|
|
};
|
|
};
|
|
|
|
|
|
&i2c7 {
|
|
status = "okay";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&i2c7m0_xfer>;
|
|
|
|
es8388: es8388@11 {
|
|
status = "okay";
|
|
#sound-dai-cells = <0>;
|
|
compatible = "everest,es8388", "everest,es8323";
|
|
reg = <0x11>;
|
|
clocks = <&mclkout_i2s0>;
|
|
clock-names = "mclk";
|
|
assigned-clocks = <&mclkout_i2s0>;
|
|
assigned-clock-rates = <12288000>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&i2s0_mclk>;
|
|
};
|
|
};
|
|
|
|
&i2c8 {
|
|
status = "disabled";
|
|
};
|
|
|
|
/* CPU */
|
|
|
|
&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 */
|
|
|
|
&gpu {
|
|
mali-supply = <&vdd_gpu_s0>;
|
|
mem-supply = <&vdd_gpu_mem_s0>;
|
|
status = "okay";
|
|
};
|
|
|
|
/* NPU */
|
|
|
|
&rknpu {
|
|
rknpu-supply = <&vdd_npu_s0>;
|
|
mem-supply = <&vdd_npu_mem_s0>;
|
|
status = "okay";
|
|
};
|
|
|
|
&dfi {
|
|
status = "okay";
|
|
};
|
|
|
|
&dmc {
|
|
status = "okay";
|
|
center-supply = <&vdd_ddr_s0>;
|
|
mem-supply = <&vdd_log_s0>;
|
|
};
|
|
|
|
&rknpu_mmu {
|
|
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";
|
|
};
|
|
|
|
&rkvdec_ccu {
|
|
status = "okay";
|
|
};
|
|
|
|
&rkvdec0 {
|
|
status = "okay";
|
|
};
|
|
|
|
&rkvdec0_mmu {
|
|
status = "okay";
|
|
};
|
|
|
|
&rkvdec1 {
|
|
status = "okay";
|
|
};
|
|
|
|
&rkvdec1_mmu {
|
|
status = "okay";
|
|
};
|
|
|
|
&rkvenc_ccu {
|
|
status = "okay";
|
|
};
|
|
|
|
&rkvenc0 {
|
|
venc-supply = <&vdd_vdenc_s0>;
|
|
mem-supply = <&vdd_vdenc_mem_s0>;
|
|
status = "okay";
|
|
};
|
|
|
|
&rkvenc0_mmu {
|
|
status = "okay";
|
|
};
|
|
|
|
&rkvenc1 {
|
|
venc-supply = <&vdd_vdenc_s0>;
|
|
mem-supply = <&vdd_vdenc_mem_s0>;
|
|
status = "okay";
|
|
};
|
|
|
|
&rkvenc1_mmu {
|
|
status = "okay";
|
|
};
|
|
|
|
&av1d {
|
|
status = "okay";
|
|
};
|
|
|
|
&av1d_mmu {
|
|
status = "okay";
|
|
};
|
|
|
|
&saradc {
|
|
status = "okay";
|
|
vref-supply = <&avcc_1v8_s0>;
|
|
};
|
|
|
|
/* HDMI */
|
|
|
|
&hdmi0 {
|
|
enable-gpios = <&gpio4 RK_PB6 GPIO_ACTIVE_HIGH>;
|
|
status = "okay";
|
|
cec-enable = "true";
|
|
};
|
|
|
|
&hdmi0_in_vp0 {
|
|
status = "okay";
|
|
};
|
|
|
|
&route_hdmi0 {
|
|
status = "okay";
|
|
connect = <&vp0_out_hdmi0>;
|
|
};
|
|
|
|
&hdmi0_sound {
|
|
status = "okay";
|
|
};
|
|
|
|
&hdptxphy_hdmi0 {
|
|
status = "okay";
|
|
};
|
|
|
|
&hdmi0_in_vp1 {
|
|
status = "okay";
|
|
};
|
|
|
|
&i2s5_8ch {
|
|
status = "okay";
|
|
};
|
|
|
|
/* VARIOUS */
|
|
/* FAN CONTROL */
|
|
|
|
&threshold {
|
|
temperature = <60000>;
|
|
};
|
|
|
|
&soc_thermal {
|
|
sustainable-power = <5000>; /* milliwatts */
|
|
polling-delay = <1000>;
|
|
polling-delay-passive = <2000>;
|
|
trips {
|
|
trip0: trip-point@0 {
|
|
temperature = <55000>;
|
|
hysteresis = <5000>;
|
|
type = "active";
|
|
};
|
|
trip1: trip-point@1 {
|
|
temperature = <60000>;
|
|
hysteresis = <5000>;
|
|
type = "active";
|
|
};
|
|
trip2: trip-point@2 {
|
|
temperature = <65000>;
|
|
hysteresis = <5000>;
|
|
type = "active";
|
|
};
|
|
trip3: trip-point@3 {
|
|
temperature = <70000>;
|
|
hysteresis = <5000>;
|
|
type = "active";
|
|
};
|
|
trip4: trip-point@4 {
|
|
temperature = <75000>;
|
|
hysteresis = <5000>;
|
|
type = "active";
|
|
};
|
|
pcritical: trip-point@5 {
|
|
temperature = <80000>;
|
|
hysteresis = <1000>;
|
|
type = "active";
|
|
};
|
|
};
|
|
cooling-maps {
|
|
map0 {
|
|
trip = <&trip0>;
|
|
cooling-device = <&fan0 0 1>;
|
|
contribution = <1024>;
|
|
};
|
|
map1 {
|
|
trip = <&trip1>;
|
|
cooling-device = <&fan0 1 2>;
|
|
contribution = <1024>;
|
|
};
|
|
map2 {
|
|
trip = <&trip2>;
|
|
cooling-device = <&fan0 2 3>;
|
|
contribution = <1024>;
|
|
};
|
|
map3 {
|
|
trip = <&trip3>;
|
|
cooling-device = <&fan0 3 4>;
|
|
contribution = <1024>;
|
|
};
|
|
map4 {
|
|
trip = <&trip4>;
|
|
cooling-device = <&fan0 4 5>;
|
|
contribution = <1024>;
|
|
};
|
|
map5 {
|
|
trip = <&pcritical>;
|
|
cooling-device = <&fan0 5 6>;
|
|
contribution = <1024>;
|
|
};
|
|
};
|
|
};
|
|
|
|
/* CAN */
|
|
&can2 {
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&can2m0_pins>;
|
|
status = "okay";
|
|
};
|
|
|
|
&pwm3 {
|
|
compatible = "rockchip,remotectl-pwm";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&pwm3m0_pins>;
|
|
remote_pwm_id = <3>;
|
|
handle_cpu_id = <1>;
|
|
remote_support_psci = <0>;
|
|
status = "okay";
|
|
|
|
ir_key1 {
|
|
rockchip,usercode = <0xc43b>;
|
|
/* /system/usr/keylayout/Generic.kl */
|
|
rockchip,key_table =
|
|
<0xff KEY_POWER>,
|
|
<0xef KEY_LEFT>,
|
|
<0xed KEY_RIGHT>,
|
|
<0xf2 KEY_UP>,
|
|
<0xea KEY_DOWN>,
|
|
<0xee KEY_ENTER>,
|
|
<0xe9 KEY_MUTE>,
|
|
<0xf1 KEY_VOLUMEDOWN>,
|
|
<0xf3 KEY_VOLUMEUP>,
|
|
<0xae KEY_MENU>,
|
|
<0xeb KEY_LEFTMETA>,
|
|
<0xaf KEY_BACK>,
|
|
<0xf7 KEY_MODE>,
|
|
<0xe5 KEY_SYSRQ>,
|
|
<0xf5 KEY_ESC>;
|
|
};
|
|
};
|
|
|
|
&avcc_1v8_s0 {
|
|
regulator-state-mem {
|
|
regulator-on-in-suspend;
|
|
regulator-suspend-microvolt = <1800000>;
|
|
};
|
|
};
|
|
|
|
&vdd_log_s0 {
|
|
regulator-state-mem {
|
|
regulator-on-in-suspend;
|
|
regulator-suspend-microvolt = <750000>;
|
|
};
|
|
};
|
|
|
|
&rockchip_suspend {
|
|
status = "okay";
|
|
rockchip,sleep-debug-en = <1>;
|
|
rockchip,sleep-mode-config = <
|
|
(0
|
|
| RKPM_SLP_ARMOFF_DDRPD
|
|
)
|
|
>;
|
|
rockchip,wakeup-config = <
|
|
(0
|
|
| RKPM_CPU0_WKUP_EN
|
|
| RKPM_GPIO_WKUP_EN
|
|
)
|
|
>;
|
|
};
|
|
|
|
/* Storage */
|
|
/* eMMC */
|
|
|
|
&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;
|
|
status = "okay";
|
|
};
|
|
|
|
/* SD */
|
|
|
|
&sdmmc {
|
|
max-frequency = <200000000>;
|
|
no-sdio;
|
|
no-mmc;
|
|
bus-width = <4>;
|
|
cap-mmc-highspeed;
|
|
cap-sd-highspeed;
|
|
disable-wp;
|
|
sd-uhs-sdr104;
|
|
vmmc-supply = <&vcc_3v3_sd_s0>;
|
|
vqmmc-supply = <&vccio_sd_s0>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&sdmmc_bus4 &sdmmc_clk &sdmmc_cmd &sdmmc_det>;
|
|
status = "okay";
|
|
};
|
|
|
|
/* USB 2.0 / USB 3.0 */
|
|
|
|
&u2phy0 {
|
|
status = "okay";
|
|
};
|
|
|
|
&u2phy2 {
|
|
status = "okay";
|
|
};
|
|
|
|
&u2phy3 {
|
|
status = "okay";
|
|
};
|
|
|
|
&u2phy0_otg {
|
|
phy-supply = <&vcc5v0_host_30>;
|
|
status = "okay";
|
|
};
|
|
|
|
&u2phy2_host {
|
|
phy-supply = <&vcc5v0_host_20>;
|
|
status = "okay";
|
|
};
|
|
|
|
&u2phy3_host {
|
|
phy-supply = <&vcc5v0_host_20>;
|
|
status = "okay";
|
|
};
|
|
|
|
&usbdrd3_0 {
|
|
status = "okay";
|
|
};
|
|
|
|
&usbdrd_dwc3_0 {
|
|
status = "okay";
|
|
dr_mode = "host";
|
|
extcon = <&u2phy0>;
|
|
};
|
|
|
|
&usb_host0_ehci {
|
|
status = "okay";
|
|
};
|
|
|
|
&usb_host0_ohci {
|
|
status = "okay";
|
|
};
|
|
|
|
&usb_host1_ehci {
|
|
status = "okay";
|
|
};
|
|
|
|
&usb_host1_ohci {
|
|
status = "okay";
|
|
};
|
|
|
|
&usbdp_phy0 {
|
|
status = "okay";
|
|
};
|
|
|
|
&usbdp_phy0_u3 {
|
|
status = "okay";
|
|
};
|
|
|
|
/* PCIe */
|
|
|
|
&combphy0_ps {
|
|
status = "okay";
|
|
};
|
|
|
|
&combphy2_psu {
|
|
status = "okay";
|
|
};
|
|
|
|
&pcie2x1l1 {
|
|
reset-gpios = <&gpio1 RK_PA7 GPIO_ACTIVE_HIGH>;
|
|
rockchip,init-delay-ms = <100>;
|
|
vpcie3v3-supply = <&vcc_3v3_pcie20>;
|
|
status = "okay";
|
|
};
|
|
|
|
&pcie2x1l2 {
|
|
reset-gpios = <&gpio3 RK_PD1 GPIO_ACTIVE_HIGH>;
|
|
vpcie3v3-supply = <&vcc_3v3_pcie20>;
|
|
status = "okay";
|
|
};
|
|
|
|
/* ADC */
|
|
|
|
&tsadc {
|
|
status = "okay";
|
|
};
|
|
|
|
/* Ethernet */
|
|
|
|
&mdio1 {
|
|
rgmii_phy1: phy@1 {
|
|
compatible = "ethernet-phy-ieee802.3-c22";
|
|
reg = <0x1>;
|
|
};
|
|
};
|
|
|
|
&gmac1 {
|
|
status = "okay";
|
|
phy-mode = "rgmii-rxid";
|
|
clock_in_out = "output";
|
|
|
|
snps,reset-gpio = <&gpio3 RK_PB7 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 = <&gmac1_miim
|
|
&gmac1_tx_bus2
|
|
&gmac1_rx_bus2
|
|
&gmac1_rgmii_clk
|
|
&gmac1_rgmii_bus>;
|
|
|
|
rx_delay = <0x00>;
|
|
tx_delay = <0x43>;
|
|
|
|
phy-handle = <&rgmii_phy1>;
|
|
phy-supply = <&vcc_3v3_s3>;
|
|
};
|
|
|
|
|
|
/* Video Ports */
|
|
|
|
&vop {
|
|
assigned-clocks = <&cru ACLK_VOP>;
|
|
assigned-clock-rates = <800000000>;
|
|
status = "okay";
|
|
disable-win-move;
|
|
};
|
|
|
|
&vop_mmu {
|
|
status = "okay";
|
|
};
|
|
|
|
&vepu {
|
|
status = "okay";
|
|
};
|
|
|
|
/* vp0 & vp1 splice for 8K output */
|
|
&vp0 {
|
|
cursor-win-id=<ROCKCHIP_VOP2_ESMART0>;
|
|
rockchip,plane-mask = <(1 << ROCKCHIP_VOP2_CLUSTER0 | 1 << ROCKCHIP_VOP2_ESMART0)>;
|
|
rockchip,primary-plane = <ROCKCHIP_VOP2_CLUSTER0>;
|
|
};
|
|
|
|
&vp1 {
|
|
cursor-win-id=<ROCKCHIP_VOP2_ESMART1>;
|
|
rockchip,plane-mask = <(1 << ROCKCHIP_VOP2_CLUSTER1 | 1 << ROCKCHIP_VOP2_ESMART1)>;
|
|
rockchip,primary-plane = <ROCKCHIP_VOP2_CLUSTER1>;
|
|
};
|
|
|
|
&vp2 {
|
|
cursor-win-id=<ROCKCHIP_VOP2_ESMART2>;
|
|
rockchip,plane-mask = <(1 << ROCKCHIP_VOP2_CLUSTER2 | 1 << ROCKCHIP_VOP2_ESMART2)>;
|
|
rockchip,primary-plane = <ROCKCHIP_VOP2_CLUSTER2>;
|
|
};
|
|
|
|
&vp3 {
|
|
cursor-win-id=<ROCKCHIP_VOP2_ESMART3>;
|
|
rockchip,plane-mask = <(1 << ROCKCHIP_VOP2_CLUSTER3 | 1 << ROCKCHIP_VOP2_ESMART3)>;
|
|
rockchip,primary-plane = <ROCKCHIP_VOP2_CLUSTER3>;
|
|
};
|
|
|
|
&wdt {
|
|
status = "okay";
|
|
};
|
|
|
|
&display_subsystem {
|
|
clocks = <&hdptxphy_hdmi0>;
|
|
clock-names = "hdmi0_phy_pll";
|
|
};
|
|
|
|
/* SPI */
|
|
|
|
&spi0 {
|
|
status = "okay";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&spi0m3_cs0 &spi0m3_cs1 &spi0m3_pins>;
|
|
num-cs = <2>;
|
|
spi_test@0 {
|
|
compatible = "rockchip,spi_test_bus0_cs1";
|
|
reg = <0>;
|
|
spi-max-frequency = <5000000>;
|
|
};
|
|
};
|
|
|
|
|
|
&spi2 {
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&spi2m2_cs0 &spi2m2_pins>;
|
|
num-cs = <1>;
|
|
};
|
|
|
|
/* UART */
|
|
|
|
&uart7 {
|
|
status = "okay";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&uart7m1_xfer>;
|
|
};
|
|
|
|
&uart5 {
|
|
status = "okay";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&uart5m1_xfer>;
|
|
};
|
|
|
|
&pinctrl {
|
|
/* HEADPHONE */
|
|
headphone {
|
|
hp_det: hp-det {
|
|
rockchip,pins = <1 RK_PC0 RK_FUNC_GPIO &pcfg_pull_none>;
|
|
};
|
|
};
|
|
/* RTC */
|
|
hym8563 {
|
|
rtc_int: rtc-int {
|
|
rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_up>;
|
|
};
|
|
};
|
|
/* SD */
|
|
sdmmc {
|
|
sd_s0_pwr: sd-s0-pwr {
|
|
rockchip,pins = <4 RK_PB4 RK_FUNC_GPIO &pcfg_pull_up>;
|
|
};
|
|
};
|
|
/* USB */
|
|
usb {
|
|
vcc5v0_host20_en: vcc5v0-host20-en { // USB 2.0
|
|
rockchip,pins = <0 RK_PC4 RK_FUNC_GPIO &pcfg_pull_up>;
|
|
};
|
|
vcc5v0_host30_en: vcc5v0-host30-en { // USB 3.0
|
|
rockchip,pins = <4 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>;
|
|
};
|
|
};
|
|
/* LCD */
|
|
lcd {
|
|
lcd_rst_gpio: lcd-rst-gpio {
|
|
rockchip,pins = <1 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>,
|
|
<1 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>;
|
|
};
|
|
};
|
|
/* TOUCHSCREEN */
|
|
touch {
|
|
touch_gpio: touch-gpio {
|
|
rockchip,pins =
|
|
<4 RK_PB2 RK_FUNC_GPIO &pcfg_pull_up>,
|
|
<1 RK_PB2 RK_FUNC_GPIO &pcfg_pull_up>,
|
|
<1 RK_PB3 RK_FUNC_GPIO &pcfg_pull_up>;
|
|
};
|
|
};
|
|
/* WIRELESS */
|
|
wireless-wlan {
|
|
wifi_host_wake_irq: wifi-host-wake-irq {
|
|
rockchip,pins = <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_down>;
|
|
};
|
|
};
|
|
/* GPIO */
|
|
gpio {
|
|
leds_gpio: leds-gpio {
|
|
rockchip,pins = <0 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>;
|
|
};
|
|
};
|
|
}; |