2025-04-28 03:36:59 +00:00
|
|
|
/* board base */
|
|
|
|
//#include "../rk3588-evb4-lp4-v10-linux.dts"
|
|
|
|
#include "rp-rk3588-board.dtsi"
|
|
|
|
|
|
|
|
#include "rp-tp-i2c6-gt911.dtsi"
|
2025-04-28 05:45:15 +00:00
|
|
|
// #include "rd-rk3588-lcd-gpio.dtsi"
|
2025-04-28 03:36:59 +00:00
|
|
|
|
|
|
|
#include "rpdzkj_config.dtsi"
|
|
|
|
|
|
|
|
/* usb */
|
2025-04-28 05:45:15 +00:00
|
|
|
// #include "rp-usb-typec-rk3588.dtsi"
|
2025-04-28 03:36:59 +00:00
|
|
|
#include "rp-usb-host.dtsi"
|
|
|
|
|
|
|
|
/* ethernet */
|
2025-04-28 05:45:15 +00:00
|
|
|
// #include "rp-eth-pcie2gmac-rk3588.dtsi"
|
|
|
|
#include "rp-eth-gmac0.dtsi"
|
2025-04-28 03:36:59 +00:00
|
|
|
#include "rp-eth-gmac1.dtsi"
|
|
|
|
|
|
|
|
/* pcie */
|
|
|
|
#include "rp-pcie-power-rk3588.dtsi"
|
2025-04-28 05:45:15 +00:00
|
|
|
// #include "rp-pcie3.dtsi" //need comment when use board of make it youself,and remove the pcie function
|
|
|
|
// #include "rp-pcie-5g.dtsi"
|
2025-04-28 03:36:59 +00:00
|
|
|
|
|
|
|
/* audio */
|
2025-04-28 05:45:15 +00:00
|
|
|
// #include "rp-audio-rt5640.dtsi"
|
2025-04-28 03:36:59 +00:00
|
|
|
|
|
|
|
/* wifi/bt */
|
2025-04-28 05:45:15 +00:00
|
|
|
// #include "rp-wifi-bt-ap6275p-rk3588.dtsi"
|
2025-04-28 03:36:59 +00:00
|
|
|
|
|
|
|
/* hdmi rx */
|
2025-04-28 05:45:15 +00:00
|
|
|
// #include "rp-hdmirx.dtsi"
|
2025-04-28 03:36:59 +00:00
|
|
|
|
|
|
|
/* camera */
|
|
|
|
/***********all camera config********/
|
|
|
|
|
|
|
|
//#include "rp-camera-dcphy0.dtsi"
|
2025-04-28 05:45:15 +00:00
|
|
|
// #include "rp-camera-dcphy1.dtsi"
|
|
|
|
// #include "rp-camera-dphy0.dtsi"
|
|
|
|
// #include "rp-camera-dphy1.dtsi"
|
2025-04-28 03:36:59 +00:00
|
|
|
|
|
|
|
//#include "rp-camera-dcphy0-ov13855.dtsi"
|
|
|
|
//#include "rp-camera-dcphy1-ov13855.dtsi"
|
|
|
|
//#include "rp-camera-dphy0-ov13855.dtsi"
|
|
|
|
//#include "rp-camera-dphy1-ov13855.dtsi"
|
|
|
|
|
|
|
|
//#include "rp-camera-dcphy0-gc8034.dtsi"
|
|
|
|
//#include "rp-camera-dcphy1-gc8034.dtsi"
|
|
|
|
//#include "rp-camera-dphy0-gc8034.dtsi"
|
|
|
|
//#include "rp-camera-dphy1-gc8034.dtsi"
|
|
|
|
|
|
|
|
//#include "rp-camera-dcphy0-imx415.dtsi"
|
|
|
|
//#include "rp-camera-dcphy1-imx415.dtsi"
|
|
|
|
//#include "rp-camera-dphy0-imx415.dtsi"
|
|
|
|
//#include "rp-camera-dphy1-imx415.dtsi"
|
|
|
|
|
|
|
|
/**********4 channel must be disabled hdmi in*********/
|
|
|
|
//#include "rp-camera-dcphy1-gc8034.dtsi"
|
|
|
|
//#include "rp-camera-dphy1-gc8034.dtsi"
|
|
|
|
//#include "rp-camera-dcphy0-imx415.dtsi"
|
|
|
|
//#include "rp-camera-dphy0-imx415.dtsi"
|
|
|
|
/******************************************/
|
|
|
|
|
|
|
|
//#include "rp-lcd-hdmi0.dtsi" //batch ignore
|
|
|
|
//#include "rp-lcd-hdmi1.dtsi" //batch ignore
|
|
|
|
//#include "rp-lcd-typec-dp0.dtsi" //usb edp0, must be enable rp-usb-typec.dtsi, batch ignore
|
2025-04-28 05:45:15 +00:00
|
|
|
// #include "rp-lcd-multi-hdmi0-hdmi1-dp0.dtsi"
|
2025-04-28 03:36:59 +00:00
|
|
|
|
|
|
|
/* lcd */
|
2025-04-28 05:45:15 +00:00
|
|
|
// #include "rp-lcd-mipi0-5-720-1280-v2-boxTP.dtsi"
|
2025-04-28 03:36:59 +00:00
|
|
|
//#include "rp-lcd-mipi0-7-720-1280.dtsi"
|
|
|
|
//#include "rp-lcd-mipi0-8-800-1280-v3.dtsi"
|
|
|
|
//#include "rp-lcd-mipi0-8-1200-1920.dtsi"
|
|
|
|
//#include "rp-lcd-mipi0-10-800-1280-v3.dtsi"
|
|
|
|
//#include "rp-lcd-mipi0-10-1200-1920.dtsi"
|
|
|
|
//#include "rp-lcd-mipi0-10-1920-1200-jc.dtsi"
|
|
|
|
//#include "rp-lcd-edp0-13.3-15.6-1920-1080.dtsi"
|
|
|
|
//#include "rp-lcd-edp1-13.3-15.6-1920-1080.dtsi"
|
|
|
|
//#include "rp-lcd-mipi1-gm8775-lvds-21-1920-1080.dtsi"
|
|
|
|
//#include "rp-lcd-mipi1-gm8775-lvds-10.1-1024-600.dtsi"
|
|
|
|
|
|
|
|
/* mulit lcd */
|
|
|
|
//#include "rp-multi-lcd-edp0-13.3-edp1-13.3-dp0.dtsi"
|
|
|
|
//#include "rp-multi-lcd-edp0-13.3-edp1-15.6-dp0.dtsi"
|
|
|
|
|
|
|
|
/* quadplex lcd */
|
|
|
|
//#include "rp-lcd-quadplex-mipi0-5-720-1280-v2-boxTP-mipi1-gm8775-lvds-10.1-1024-600-edp0-edp1.dtsi"
|
|
|
|
//#include "rp-lcd-quadplex-mipi0-5-720-1280-v2-boxTP-mipi1-gm8775-lvds-10.1-1024-600-edp0-hdmi1.dtsi"
|
|
|
|
//#include "rp-lcd-quadplex-mipi0-5-720-1280-v2-boxTP-mipi1-gm8775-lvds-10.1-1024-600-hdmi0-edp1.dtsi"
|
|
|
|
//#include "rp-lcd-quadplex-mipi0-5-720-1280-v2-boxTP-mipi1-gm8775-lvds-10.1-1024-600-hdmi0-hdmi1.dtsi"
|
|
|
|
/ {
|
|
|
|
model = "dr4-rk3588";
|
|
|
|
|
|
|
|
reserved-memory {
|
|
|
|
#address-cells = <2>;
|
|
|
|
#size-cells = <2>;
|
|
|
|
ranges;
|
|
|
|
dma_trans: dma-trans@3c000000 {
|
|
|
|
reg = <0x0 0x3c000000 0x0 0x04000000>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
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>;
|
|
|
|
};
|
|
|
|
|
|
|
|
fan_gpio_control {
|
|
|
|
compatible = "fan_gpio_control";
|
|
|
|
gpio-pin = <&gpio4 RK_PA7 GPIO_ACTIVE_HIGH>;
|
|
|
|
thermal-zone = "soc-thermal";
|
|
|
|
threshold-temp = <60000>; //60C
|
|
|
|
running-time = <10000>; //10s
|
2025-04-28 05:45:15 +00:00
|
|
|
status = "disable";
|
2025-04-28 03:36:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
rp_power{
|
|
|
|
status = "okay";
|
|
|
|
compatible = "rp_power";
|
|
|
|
rp_not_deep_sleep = <1>;
|
|
|
|
|
|
|
|
//#define GPIO_FUNCTION_OUTPUT 0
|
|
|
|
//#define GPIO_FUNCTION_INPUT 1
|
|
|
|
//#define GPIO_FUNCTION_IRQ 2
|
|
|
|
//#define GPIO_FUNCTION_FLASH 3
|
|
|
|
//#define GPIO_FUNCTION_OUTPUT_CTRL 4
|
|
|
|
|
|
|
|
//fan {
|
|
|
|
// gpio_num = <&gpio4 RK_PA7 GPIO_ACTIVE_HIGH>;
|
|
|
|
// gpio_function = <4>;
|
|
|
|
//};
|
|
|
|
|
2025-04-28 05:45:15 +00:00
|
|
|
// led {
|
|
|
|
// gpio_num = <&gpio4 RK_PA6 GPIO_ACTIVE_HIGH>;
|
|
|
|
// gpio_function = <3>;
|
|
|
|
// };
|
2025-04-28 03:36:59 +00:00
|
|
|
|
|
|
|
usb-host-power {
|
|
|
|
gpio_num = <&gpio2 RK_PC1 GPIO_ACTIVE_HIGH>;
|
|
|
|
gpio_function = <4>;
|
|
|
|
};
|
|
|
|
|
2025-04-28 05:45:15 +00:00
|
|
|
// usb-hub-reset {
|
|
|
|
// gpio_num = <&gpio3 RK_PB2 GPIO_ACTIVE_HIGH>;
|
|
|
|
// gpio_function = <4>;
|
|
|
|
// };
|
2025-04-28 03:36:59 +00:00
|
|
|
};
|
|
|
|
|
2025-04-28 05:45:15 +00:00
|
|
|
// rp_gpio{
|
|
|
|
// status = "okay";
|
|
|
|
// compatible = "rp_gpio";
|
2025-04-28 03:36:59 +00:00
|
|
|
|
2025-04-28 05:45:15 +00:00
|
|
|
// gpio3c7 {
|
|
|
|
// gpio_num = <&gpio3 RK_PC7 GPIO_ACTIVE_HIGH>;
|
|
|
|
// gpio_function = <0>;
|
|
|
|
// };
|
|
|
|
// };
|
2025-04-28 03:36:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
&uart0 {
|
2025-04-28 05:45:15 +00:00
|
|
|
status = "okay";
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&uart0m0_xfer>;
|
|
|
|
fifo-depth =<4096>;
|
|
|
|
rx-fifo-depth =<2048>;
|
|
|
|
tx-fifo-depth =<2048>;
|
|
|
|
dma-names = "tx", "rx";
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
&uart1 {
|
|
|
|
status = "okay";
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&uart1m2_xfer>;
|
|
|
|
fifo-depth =<4096>;
|
|
|
|
rx-fifo-depth =<2048>;
|
|
|
|
tx-fifo-depth =<2048>;
|
|
|
|
dma-names = "tx", "rx";
|
|
|
|
};
|
|
|
|
|
|
|
|
&uart3 {
|
|
|
|
status = "okay";
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&uart3m0_xfer>;
|
|
|
|
fifo-depth =<4096>;
|
|
|
|
rx-fifo-depth =<2048>;
|
|
|
|
tx-fifo-depth =<2048>;
|
|
|
|
dma-names = "tx", "rx";
|
|
|
|
};
|
|
|
|
|
|
|
|
&uart4 {
|
|
|
|
status = "okay";
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&uart4m1_xfer>;
|
|
|
|
fifo-depth =<4096>;
|
|
|
|
rx-fifo-depth =<2048>;
|
|
|
|
tx-fifo-depth =<2048>;
|
|
|
|
dma-names = "tx", "rx";
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
&uart5 {
|
|
|
|
status = "okay";
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&uart5m0_xfer>;
|
|
|
|
fifo-depth =<4096>;
|
|
|
|
rx-fifo-depth =<2048>;
|
|
|
|
tx-fifo-depth =<2048>;
|
|
|
|
dma-names = "tx", "rx";
|
|
|
|
|
2025-04-28 03:36:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
&uart6 {
|
2025-04-28 05:45:15 +00:00
|
|
|
status = "okay";
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&uart6m2_xfer>;
|
|
|
|
fifo-depth =<4096>;
|
|
|
|
rx-fifo-depth =<2048>;
|
|
|
|
tx-fifo-depth =<2048>;
|
|
|
|
dma-names = "tx", "rx";
|
|
|
|
|
2025-04-28 03:36:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
&uart7 {
|
2025-04-28 05:45:15 +00:00
|
|
|
status = "okay";
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&uart7m1_xfer>;
|
|
|
|
fifo-depth =<4096>;
|
|
|
|
rx-fifo-depth =<2048>;
|
|
|
|
tx-fifo-depth =<2048>;
|
|
|
|
dma-names = "tx", "rx";
|
2025-04-28 03:36:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
&uart8 {
|
2025-04-28 05:45:15 +00:00
|
|
|
status = "okay";
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&uart8m0_xfer>;
|
|
|
|
fifo-depth =<4096>;
|
|
|
|
rx-fifo-depth =<2048>;
|
|
|
|
tx-fifo-depth =<2048>;
|
|
|
|
dma-names = "tx", "rx";
|
2025-04-28 03:36:59 +00:00
|
|
|
};
|
|
|
|
|
2025-04-28 05:45:15 +00:00
|
|
|
&uart9 {
|
|
|
|
status = "okay";
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&uart9m2_xfer>;
|
|
|
|
fifo-depth =<4096>;
|
|
|
|
rx-fifo-depth =<2048>;
|
|
|
|
tx-fifo-depth =<2048>;
|
|
|
|
dma-names = "tx", "rx";
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-04-28 03:36:59 +00:00
|
|
|
&can0 {
|
2025-04-28 05:45:15 +00:00
|
|
|
assigned-clocks = <&cru CLK_CAN0>;
|
|
|
|
assigned-clock-rates = <200000000>;
|
|
|
|
status = "okay";
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&can0m0_pins>;
|
|
|
|
|
2025-04-28 03:36:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
&can1 {
|
2025-04-28 05:45:15 +00:00
|
|
|
assigned-clocks = <&cru CLK_CAN1>;
|
|
|
|
assigned-clock-rates = <200000000>;
|
|
|
|
status = "okay";
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&can1m1_pins>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&can2 {
|
|
|
|
assigned-clocks = <&cru CLK_CAN2>;
|
|
|
|
assigned-clock-rates = <200000000>;
|
|
|
|
status = "okay";
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&can2m1_pins>;
|
|
|
|
};
|
|
|
|
|
|
|
|
// &spi2 {
|
|
|
|
// // status = "disabled";
|
|
|
|
// status = "okay";
|
|
|
|
// max-freq = <48000000>;
|
|
|
|
// dev-port = <1>;
|
|
|
|
// spidev0: spidev@00 {
|
|
|
|
// status = "okay";
|
|
|
|
// compatible = "rockchip,spidev";
|
|
|
|
// reg = <0x00>;
|
|
|
|
// spi-max-frequency = <48000000>;
|
|
|
|
// };
|
|
|
|
// };
|
|
|
|
|
2025-04-28 03:36:59 +00:00
|
|
|
|
|
|
|
&i2c4 {
|
2025-04-28 05:45:15 +00:00
|
|
|
status = "disable";
|
2025-04-28 03:36:59 +00:00
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&i2c4m1_xfer>;
|
|
|
|
|
|
|
|
hym8563: hym8563@51 {
|
|
|
|
compatible = "haoyu,hym8563";
|
|
|
|
reg = <0x51>;
|
|
|
|
#clock-cells = <0>;
|
|
|
|
clock-frequency = <32768>;
|
|
|
|
clock-output-names = "hym8563";
|
|
|
|
//pinctrl-names = "default";
|
|
|
|
//pinctrl-0 = <&hym8563_int>;
|
|
|
|
//interrupt-parent = <&gpio0>;
|
|
|
|
//interrupts = <RK_PD4 IRQ_TYPE_LEVEL_LOW>;
|
|
|
|
//wakeup-source;
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
&sdmmc {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&fiq_debugger {
|
|
|
|
rockchip,baudrate = <115200>;
|
|
|
|
};
|
|
|
|
|
2025-04-28 05:45:15 +00:00
|
|
|
// &display_subsystem {
|
|
|
|
// clocks = <&hdptxphy_hdmi_clk0>, <&hdptxphy_hdmi_clk1>;
|
|
|
|
// clock-names = "hdmi0_phy_pll", "hdmi1_phy_pll";
|
|
|
|
// };
|
2025-04-28 03:36:59 +00:00
|
|
|
|
2025-04-28 05:45:15 +00:00
|
|
|
// &hdptxphy_hdmi_clk0 {
|
|
|
|
// status = "okay";
|
|
|
|
// };
|
2025-04-28 03:36:59 +00:00
|
|
|
|
2025-04-28 05:45:15 +00:00
|
|
|
// &hdptxphy_hdmi_clk1 {
|
|
|
|
// status = "okay";
|
|
|
|
// };
|