Signed-off-by: Huang zhibao <hzb@rock-chips.com> Change-Id: I7e0aa5e16cb3d678d0be43605c0c957f1914102d
635 lines
12 KiB
Plaintext
635 lines
12 KiB
Plaintext
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
|
/*
|
|
* Copyright (c) 2025 Rockchip Electronics Co., Ltd.
|
|
*
|
|
*/
|
|
|
|
/dts-v1/;
|
|
|
|
#include "dt-bindings/usb/pd.h"
|
|
#include "rk3562.dtsi"
|
|
#include "rk3562-project.dtsi"
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
#include <dt-bindings/pinctrl/rockchip.h>
|
|
#include <dt-bindings/sensor-dev.h>
|
|
#include <dt-bindings/display/media-bus-format.h>
|
|
|
|
/ {
|
|
model = "Rockchip RK3562 Project Demo V10 Board";
|
|
compatible = "rockchip,rk3562-project-demo-v10", "rockchip,rk3562";
|
|
|
|
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>;
|
|
};
|
|
|
|
hdmi_codec: hdmi-codec {
|
|
status = "okay";
|
|
compatible = "rockchip,dummy-codec";
|
|
#sound-dai-cells = <0>;
|
|
//clocks = <&cru SCLK_I2S2_OUT>;
|
|
//clock-names = "mclk";
|
|
//pinctrl-names = "default";
|
|
//pinctrl-0 = <&i2s2_2ch_mclk>;
|
|
};
|
|
|
|
hdim_in_sound: hdmi-in-sound {
|
|
status = "okay";
|
|
compatible = "simple-audio-card";
|
|
simple-audio-card,format = "i2s";
|
|
//simple-audio-card,bitclock-inversion = <1>;
|
|
simple-audio-card,mclk-fs = <128>;
|
|
simple-audio-card,name = "rockchip,hdmiin";
|
|
simple-audio-card,bitclock-master = <&sound0_master>;
|
|
simple-audio-card,frame-master = <&sound0_master>;
|
|
simple-audio-card,cpu {
|
|
sound-dai = <&sai1>;
|
|
};
|
|
sound0_master:simple-audio-card,codec {
|
|
sound-dai = <&hdmi_codec>;
|
|
};
|
|
};
|
|
|
|
panel-lvds {
|
|
compatible = "simple-panel";
|
|
status = "okay";
|
|
//backlight = <&backlight>;
|
|
reset-delay-ms = <20>;
|
|
enable-delay-ms = <20>;
|
|
prepare-delay-ms = <20>;
|
|
unprepare-delay-ms = <20>;
|
|
disable-delay-ms = <20>;
|
|
bus-format = <MEDIA_BUS_FMT_RGB888_1X7X4_SPWG>;
|
|
width-mm = <164>;
|
|
height-mm = <100>;
|
|
|
|
power-supply = <&vcc3v3_lcd_n>;
|
|
reset-gpios = <&gpio0 RK_PC3 GPIO_ACTIVE_LOW>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&lcd_rst_gpio &lcd_stb_gpio>;
|
|
|
|
display-timings {
|
|
native-mode = <&timing0>;
|
|
|
|
timing0: timing0 {
|
|
clock-frequency = <59370000>;
|
|
hactive = <1280>;
|
|
vactive = <720>;
|
|
hback-porch = <40>;
|
|
hfront-porch = <40>;
|
|
vback-porch = <20>;
|
|
vfront-porch = <20>;
|
|
hsync-len = <20>;
|
|
vsync-len = <2>;
|
|
hsync-active = <0>;
|
|
vsync-active = <0>;
|
|
de-active = <0>;
|
|
pixelclk-active = <0>;
|
|
};
|
|
};
|
|
|
|
ports {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
port@0 {
|
|
reg = <0>;
|
|
panel_in_lvds: endpoint {
|
|
remote-endpoint = <&lvds_out_panel>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
sdio_pwrseq: sdio-pwrseq {
|
|
compatible = "mmc-pwrseq-simple";
|
|
//clocks = <&rk817 1>;
|
|
//clock-names = "ext_clock";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&wifi_enable_h>;
|
|
|
|
/*
|
|
* On the module itself this is one of these (depending
|
|
* on the actual card populated):
|
|
* - SDIO_RESET_L_WL_REG_ON
|
|
* - PDN (power down when low)
|
|
*/
|
|
post-power-on-delay-ms = <200>;
|
|
reset-gpios = <&gpio0 RK_PB3 GPIO_ACTIVE_LOW>;
|
|
};
|
|
|
|
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>;
|
|
};
|
|
|
|
vcc5v0_usb_host: vcc5v0-usb-host {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vcc5v0_usb_host";
|
|
regulator-boot-on;
|
|
regulator-always-on;
|
|
regulator-min-microvolt = <5000000>;
|
|
regulator-max-microvolt = <5000000>;
|
|
enable-active-high;
|
|
gpio = <&gpio4 RK_PB0 GPIO_ACTIVE_HIGH>;
|
|
vin-supply = <&vcc5v0_sys>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&usb_host_pwren>;
|
|
};
|
|
|
|
vbat_3v8: vbat-3v8 {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vbat_3v8";
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-min-microvolt = <3800000>;
|
|
regulator-max-microvolt = <3800000>;
|
|
};
|
|
|
|
vcc_sd: vcc-sd {
|
|
compatible = "regulator-gpio";
|
|
enable-active-low;
|
|
regulator-boot-on;
|
|
gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>;
|
|
regulator-min-microvolt = <3300000>;
|
|
regulator-max-microvolt = <3300000>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&vcc_sd_h>;
|
|
regulator-name = "vcc_sd";
|
|
states = <0 0x0
|
|
3300000 0x1>;
|
|
};
|
|
|
|
vcc3v3_lcd_n: vcc3v3-lcd0-n {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vcc3v3_lcd_n";
|
|
gpio = <&gpio0 RK_PC2 GPIO_ACTIVE_HIGH>;
|
|
enable-active-high;
|
|
regulator-boot-on;
|
|
regulator-state-mem {
|
|
regulator-off-in-suspend;
|
|
};
|
|
};
|
|
|
|
vcc_fan_n: vcc-fan-n {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vcc_fan_n";
|
|
gpio = <&gpio0 RK_PB7 GPIO_ACTIVE_HIGH>;
|
|
enable-active-high;
|
|
regulator-boot-on;
|
|
regulator-always-on;
|
|
regulator-state-mem {
|
|
regulator-off-in-suspend;
|
|
};
|
|
};
|
|
|
|
vcc_sys: vcc-sys {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vcc_sys";
|
|
regulator-always-on;
|
|
regulator-boot-on;
|
|
regulator-min-microvolt = <3800000>;
|
|
regulator-max-microvolt = <3800000>;
|
|
};
|
|
|
|
wireless-wlan {
|
|
compatible = "wlan-platdata";
|
|
rockchip,grf = <&sys_grf>;
|
|
wifi_chip_type = "ap6275s";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&wifi_host_wake_irq>;
|
|
WIFI,host_wake_irq = <&gpio0 RK_PB4 GPIO_ACTIVE_HIGH>;
|
|
WIFI,poweren_gpio = <&gpio0 RK_PB3 GPIO_ACTIVE_HIGH>;
|
|
status = "okay";
|
|
};
|
|
|
|
wireless-bluetooth {
|
|
compatible = "bluetooth-platdata";
|
|
//clocks = <&rk817 1>;
|
|
//clock-names = "ext_clock";
|
|
//wifi-bt-power-toggle;
|
|
uart_rts_gpios = <&gpio1 RK_PD3 GPIO_ACTIVE_LOW>;
|
|
pinctrl-names = "default", "rts_gpio";
|
|
pinctrl-0 = <&uart1m0_rtsn>;
|
|
pinctrl-1 = <&uart1_gpios>;
|
|
BT,reset_gpio = <&gpio0 RK_PC5 GPIO_ACTIVE_HIGH>;
|
|
BT,wake_gpio = <&gpio0 RK_PC7 GPIO_ACTIVE_HIGH>;
|
|
BT,wake_host_irq = <&gpio0 RK_PC6 GPIO_ACTIVE_HIGH>;
|
|
status = "okay";
|
|
};
|
|
};
|
|
|
|
|
|
|
|
&combphy_pu {
|
|
status = "okay";
|
|
};
|
|
|
|
&dsi {
|
|
status = "disabled";
|
|
};
|
|
|
|
&dsi_in_vp0 {
|
|
status = "disabled";
|
|
};
|
|
|
|
&lvds {
|
|
status = "okay";
|
|
|
|
ports {
|
|
port@1 {
|
|
reg = <1>;
|
|
|
|
lvds_out_panel: endpoint {
|
|
remote-endpoint = <&panel_in_lvds>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
&lvds_in_vp0 {
|
|
status = "okay";
|
|
};
|
|
|
|
&pwm3 {
|
|
status = "okay";
|
|
|
|
compatible = "rockchip,remotectl-pwm";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&pwm3m0_pins>;
|
|
assigned-clocks = <&cru CLK_PMU1_PWM0>;
|
|
assigned-clock-rates = <24000000>;
|
|
remote_pwm_id = <3>;
|
|
handle_cpu_id = <1>;
|
|
remote_support_psci = <1>;
|
|
|
|
ir_key1 {
|
|
rockchip,usercode = <0x4040>;
|
|
rockchip,key_table =
|
|
<0xf2 KEY_REPLY>,
|
|
<0xba KEY_BACK>,
|
|
<0xf4 KEY_UP>,
|
|
<0xf1 KEY_DOWN>,
|
|
<0xef KEY_LEFT>,
|
|
<0xee KEY_RIGHT>,
|
|
<0xbd KEY_HOME>,
|
|
<0xea KEY_VOLUMEUP>,
|
|
<0xe3 KEY_VOLUMEDOWN>,
|
|
<0xe2 KEY_SEARCH>,
|
|
<0xb2 KEY_POWER>,
|
|
<0xbc KEY_MUTE>,
|
|
<0xec KEY_MENU>,
|
|
<0xbf 0x190>,
|
|
<0xe0 0x191>,
|
|
<0xe1 0x192>,
|
|
<0xe9 183>,
|
|
<0xe6 248>,
|
|
<0xe8 185>,
|
|
<0xe7 186>,
|
|
<0xf0 388>,
|
|
<0xbe 0x175>;
|
|
};
|
|
|
|
ir_key2 {
|
|
rockchip,usercode = <0xff00>;
|
|
rockchip,key_table =
|
|
<0xf9 KEY_HOME>,
|
|
<0xbf KEY_BACK>,
|
|
<0xfb KEY_MENU>,
|
|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EY_5>,
|
|
<0xb1 KEY_6>,
|
|
<0xfc KEY_7>,
|
|
<0xf8 KEY_8>,
|
|
<0xb0 KEY_9>,
|
|
<0xb6 KEY_0>,
|
|
<0xb5 KEY_BACKSPACE>;
|
|
};
|
|
};
|
|
|
|
&pwm7 {
|
|
status = "okay";
|
|
};
|
|
|
|
&pwm13 {
|
|
status = "okay";
|
|
};
|
|
|
|
&video_phy {
|
|
status = "okay";
|
|
};
|
|
|
|
&pinctrl {
|
|
headphone {
|
|
hp_det: hp-det {
|
|
rockchip,pins = <1 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>;
|
|
};
|
|
};
|
|
|
|
lcd {
|
|
lcd_rst_gpio: lcd-rst-gpio {
|
|
rockchip,pins = <0 RK_PC3 RK_FUNC_GPIO &pcfg_pull_none>;
|
|
};
|
|
lcd_stb_gpio: lcd-stb-gpio {
|
|
rockchip,pins = <0 RK_PC4 RK_FUNC_GPIO &pcfg_pull_down>;
|
|
};
|
|
};
|
|
|
|
sdio-pwrseq {
|
|
wifi_enable_h: wifi-enable-h {
|
|
rockchip,pins = <0 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>;
|
|
};
|
|
};
|
|
|
|
vcc_sd {
|
|
vcc_sd_h: vcc-sd-h {
|
|
rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_down>;
|
|
};
|
|
};
|
|
|
|
usb {
|
|
usb_host_pwren: usb-host-pwren {
|
|
rockchip,pins = <4 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>;
|
|
};
|
|
|
|
};
|
|
|
|
wireless-wlan {
|
|
wifi_host_wake_irq: wifi-host-wake-irq {
|
|
rockchip,pins = <0 RK_PB4 RK_FUNC_GPIO &pcfg_pull_down>;
|
|
};
|
|
};
|
|
|
|
wireless-bluetooth {
|
|
uart1_gpios: uart1-gpios {
|
|
rockchip,pins = <1 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&sai1 {
|
|
status = "okay";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&i2s1m1_lrck
|
|
&i2s1m1_sclk
|
|
&i2s1m1_sdi0>;
|
|
};
|
|
|
|
&sdmmc0 {
|
|
no-sdio;
|
|
no-mmc;
|
|
bus-width = <4>;
|
|
cap-mmc-highspeed;
|
|
cap-sd-highspeed;
|
|
disable-wp;
|
|
sd-uhs-sdr104;
|
|
//vmmc-supply = <&vcc_sd>;
|
|
//vqmmc-supply = <&vccio_sd>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&sdmmc0_bus4 &sdmmc0_clk &sdmmc0_cmd &sdmmc0_det>;
|
|
status = "okay";
|
|
};
|
|
|
|
&sdmmc1 {
|
|
no-sd;
|
|
no-mmc;
|
|
bus-width = <4>;
|
|
disable-wp;
|
|
cap-sd-highspeed;
|
|
cap-sdio-irq;
|
|
keep-power-in-suspend;
|
|
mmc-pwrseq = <&sdio_pwrseq>;
|
|
non-removable;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&sdmmc1_bus4 &sdmmc1_cmd &sdmmc1_clk>;
|
|
sd-uhs-sdr104;
|
|
status = "okay";
|
|
};
|
|
|
|
&u2phy {
|
|
status = "okay";
|
|
};
|
|
|
|
&u2phy_otg {
|
|
status = "okay";
|
|
};
|
|
|
|
&uart1 {
|
|
status = "okay";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&uart1m0_xfer &uart1m0_ctsn>;
|
|
};
|
|
|
|
&usbdrd30 {
|
|
status = "okay";
|
|
};
|
|
|
|
&usbdrd_dwc3 {
|
|
status = "okay";
|
|
|
|
dr_mode = "otg";
|
|
maximum-speed = "high-speed";
|
|
extcon =<&u2phy>;
|
|
phys = <&u2phy_otg>;
|
|
phy-names = "usb2-phy";
|
|
snps,dis_u2_susphy_quirk;
|
|
snps,usb2-lpm-disable;
|
|
};
|
|
|
|
&csi2_dphy0 {
|
|
status = "okay";
|
|
|
|
ports {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
port@0 {
|
|
reg = <0>;
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
hdmi_mipi_in: endpoint@1 {
|
|
reg = <1>;
|
|
remote-endpoint = <&hdmiin_out>;
|
|
data-lanes = <1 2 3 4>;
|
|
};
|
|
};
|
|
port@1 {
|
|
reg = <1>;
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
csidphy0_out: endpoint@0 {
|
|
reg = <0>;
|
|
remote-endpoint = <&mipi0_csi2_input>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
&csi2_dphy0_hw {
|
|
status = "okay";
|
|
};
|
|
|
|
&csi2_dphy1_hw {
|
|
status = "okay";
|
|
};
|
|
|
|
&i2c3 {
|
|
clock-frequency = <100000>;
|
|
pinctrl-0 = <&i2c3m1_xfer>;
|
|
status = "okay";
|
|
|
|
rk628_csi: rk628_csi@50 {
|
|
reg = <0x50>;
|
|
compatible = "rockchip,rk628-csi-v4l2";
|
|
status = "okay";
|
|
power-domains = <&power RK3562_PD_VI>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&rk628_hdmiin_pin>;
|
|
interrupt-parent = <&gpio0>;
|
|
interrupts = <RK_PC5 IRQ_TYPE_LEVEL_HIGH>;
|
|
reset-gpios = <&gpio0 RK_PC7 GPIO_ACTIVE_LOW>;
|
|
plugin-det-gpios = <&gpio0 RK_PC6 GPIO_ACTIVE_LOW>;
|
|
continues-clk = <1>;
|
|
|
|
rockchip,camera-module-index = <0>;
|
|
rockchip,camera-module-facing = "back";
|
|
rockchip,camera-module-name = "HDMI-MIPI";
|
|
rockchip,camera-module-lens-name = "RK628-CSI";
|
|
|
|
multi-dev-info {
|
|
dev-idx-l = <0>;
|
|
dev-idx-r = <1>;
|
|
combine-idx = <0>;
|
|
pixel-offset = <0>;
|
|
dev-num = <2>;
|
|
};
|
|
|
|
port {
|
|
hdmiin_out: endpoint {
|
|
remote-endpoint = <&hdmi_mipi_in>;
|
|
data-lanes = <1 2 3 4>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
&pinctrl {
|
|
hdmiin {
|
|
rk628_hdmiin_pin: rk628-hdmiin-pin {
|
|
rockchip,pins = <0 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>,
|
|
<0 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>,
|
|
<0 RK_PC7 RK_FUNC_GPIO &pcfg_pull_none>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&mipi0_csi2 {
|
|
status = "okay";
|
|
|
|
ports {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
port@0 {
|
|
reg = <0>;
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
mipi0_csi2_input: endpoint@1 {
|
|
reg = <1>;
|
|
remote-endpoint = <&csidphy0_out>;
|
|
};
|
|
};
|
|
|
|
port@1 {
|
|
reg = <1>;
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
mipi0_csi2_output: endpoint@0 {
|
|
reg = <0>;
|
|
remote-endpoint = <&cif_mipi_in1>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
&rkcif {
|
|
status = "okay";
|
|
};
|
|
|
|
&rkcif_mipi_lvds {
|
|
status = "okay";
|
|
|
|
port {
|
|
cif_mipi_in1: endpoint {
|
|
remote-endpoint = <&mipi0_csi2_output>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&rkcif_mmu {
|
|
status = "okay";
|
|
};
|