android13/kernel-5.10/arch/arm64/boot/dts/rockchip/rk3399/rd-rk3399.dts

241 lines
6.4 KiB
Plaintext
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/dts-v1/;
#include "rp-rk3399-board.dtsi"
#include "rpdzkj_config.dtsi"
#include "rp-pmu-rk808.dtsi"
#include "rp-audio-rt5651.dtsi"
#include "rp-gpio-key.dtsi"
#include "rp-adc-key.dtsi"
#include "rp-gmac.dtsi"
#include "rp-mipi-ov13850-camera.dtsi"
//#include "rp-hdmiin.dtsi"
#include "rp-pcie.dtsi"
#include "rp-usb2-host0.dtsi"
#include "rp-usb2-host1.dtsi"
#include "rp-usb3-otg-typeA.dtsi"
//#include "rp-usb3-otg-typeC.dtsi"
#include "rp-usb3_1-host.dtsi"
#include "rp-wifi-sdio.dtsi"
#include "rp-bt-uart0.dtsi"
#include "rp-sdcard-mmc1.dtsi"
#include "rp-lcd-hdmi.dtsi"
//#include "rp-lcd-mipi-5-720-1280.dtsi"
//#include "rp-lcd-mipi-5-720-1280-v2.dtsi"
//#include "rp-lcd-mipi-5.5-720-1280.dtsi"
//#include "rp-lcd-mipi-5.5-720-1280-v2.dtsi"
//#include "rp-lcd-mipi-5.5-1080-1920.dtsi"
//#include "rp-lcd-mipi-7-1024-600.dtsi"
//#include "rp-lcd-mipi-7-800-1280.dtsi"
//#include "rp-lcd-mipi-7-1200-1920.dtsi"
//#include "rp-lcd-mipi-8-800-1280.dtsi"
//#include "rp-lcd-mipi-8-800-1280-new.dtsi"
//#include "rp-lcd-mipi-10-800-1280.dtsi"
//#include "rp-lcd-mipi-10-1920-1200.dtsi"
//#include "rp-lcd-edp-13.3-1920-1080.dtsi"
/ {
model = "rpdzkj rd3399 linux";
compatible = "rockchip,rk3399-excavator-linux", "rockchip,rk3399";
/*fan-gpio {
compatible = "gpio-fan";
gpios = <&gpio1 RK_PC2 GPIO_ACTIVE_HIGH>;
temperature = <&cpu_thermal>;
temp-on = <50000>; // 温度阈值,单位为毫摄氏度
temp-off = <40000>; // 温度恢复阈值,单位为毫摄氏度
};*/
fan_gpio_control {
compatible = "fan_gpio_control";
gpio-pin = <&gpio1 RK_PC2 GPIO_ACTIVE_HIGH>;
temperature-device = "cpu-thermal";
temp-on = <60000>;
time = <10000>;
status = "okay";
};
rp_power{
compatible = "rp_power";
rp_not_deep_sleep = <1>;
status = "okay";
/*
* #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 //output and creat proc ctrl
*
* you can define the gpio function as above
* on gpio_function = <>;
*
*If you want to set the uboot to high level, add the lower properties
* regulator_uboot_on
*/
breathe-led { //usb hub reset pin
gpio_num = <&gpio4 RK_PD0 GPIO_ACTIVE_HIGH>;
gpio_function = <3>;
regulator_uboot_on;
};
power_en-gpio { //usb hub reset pin
gpio_num = <&gpio4 RK_PD6 GPIO_ACTIVE_HIGH>;
gpio_function = <4>;
regulator_uboot_on;
};
3v3_power_en { //usb hub reset pin
gpio_num = <&gpio4 RK_PC6 GPIO_ACTIVE_HIGH>;
gpio_function = <4>;
regulator_uboot_on;
};
hub_rst { //usb hub reset pin
gpio_num = <&gpio1 RK_PD0 GPIO_ACTIVE_HIGH>;
gpio_function = <4>;
regulator_uboot_on;
};
//fan_open { //fan
// gpio_num = <&gpio1 RK_PC2 GPIO_ACTIVE_HIGH>;
// gpio_function = <4>;
// regulator_uboot_on;
//};
};
rp_gpio{
status = "okay";
compatible = "rp_gpio";
base_value = <0>;
gpio4c5 {
gpio_num = <&gpio4 RK_PC5 GPIO_ACTIVE_HIGH>;
gpio_function = <0>; //0:output1:input
};
gpio4d1 {
gpio_num = <&gpio4 RK_PD1 GPIO_ACTIVE_HIGH>;
gpio_function = <0>; //0:output1:input
};
gpio4d3 {
gpio_num = <&gpio4 RK_PD3 GPIO_ACTIVE_HIGH>;
gpio_function = <0>; //0:output1:input
};
};
wireless-bluetooth {
BT,wake_gpio = <&gpio0 RK_PB4 GPIO_ACTIVE_HIGH>;
};
};
&pinctrl {
wireless-bluetooth {
bt_wake_gpio: bt-wake-gpio {
rockchip,pins =
<0 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>;
};
};
};
&io_domains {
status = "okay";
bt656-supply = <&vcc_1v8>; /* bt656_gpio2ab_ms */
audio-supply = <&vcca1v8_codec>; /* audio_gpio3d4a_ms */
sdmmc-supply = <&vcc_sdio>; /* sdmmc_gpio4b_ms */
gpio1830-supply = <&vcc_3v0>; /* gpio1833_gpio4cd_ms */
};
&pmu_io_domains {
status = "okay";
pmu1830-supply = <&vcc_1v8>; //nano usb
};
/*&spi_wk2xxx{
status = "okay";
reset-gpio = <&gpio4 RK_PD5 GPIO_ACTIVE_HIGH>;
irq-gpio = <&gpio0 RK_PB0 IRQ_TYPE_EDGE_FALLING>;//modify
cs-gpio = <&gpio1 RK_PB2 GPIO_ACTIVE_HIGH>;
};*/
&spi1 {
status = "okay";
spi_wk2xxx: spi_wk2xxx@0{
status = "okay";
compatible = "spi-wk2xxx";
reg = <0>;
spi-max-frequency = <10000000>;
reset-gpio = <&gpio4 29 GPIO_ACTIVE_HIGH>;
irq-gpio = <&gpio0 8 IRQ_TYPE_EDGE_FALLING>;
cs-gpio = <&gpio1 10 GPIO_ACTIVE_HIGH>;
};
};
//used to bluetooth
&uart0 {
status = "okay";
//dma-names = "tx", "rx";
//dmas = <&dmac_peri 0>, <&dmac_peri 1>;
};
//conflicts to ethernet
&uart1 {
status = "disabled";
//dma-names = "tx", "rx";
//dmas = <&dmac_peri 2>, <&dmac_peri 3>;
};
//conflicts to debugger
&uart2 {
status = "disabled";
//dma-names = "tx", "rx";
//dmas = <&dmac_peri 4>, <&dmac_peri 5>;
};
//conflicts to ethernet
&uart3 {
status = "disabled";
//dma-names = "tx", "rx";
//dmas = <&dmac_peri 6>, <&dmac_peri 7>;
};
&uart4 {
status = "disabled";
pinctrl-names = "default";
pinctrl-0 = <&uart4_xfer>;
dma-names = "tx", "rx";
dmas = <&dmac_peri 8>, <&dmac_peri 9>;
};
&fiq_debugger {
rockchip,serial-id = <2>; //uart2
rockchip,wake-irq = <0>;
rockchip,irq-mode-enable = <1>;
compatible = "rockchip,fiq-debugger";
rockchip,baudrate = <115200>;
pinctrl-names = "default";
pinctrl-0 = <&uart2c_xfer>;
};