arm64: dts: rockchip: add support rk628 for rk3576 board

RK_TEST1_RK3576_LP5D315P132SD8 V10_20231222YWQ

+ RK_EVB_EXT_HDMItoMIPI_BT1120toHDMI_RK628F V10_20231128LXF:
rk3576 -bt1120-> rk628 -hdmi-> panel

+ RK_RK628_DEMO_HDMIRX2GVI_V10_20230725LXF:
rk3576 -hdmi-> rk628 -gvi-> panel

Type: Function
Redmine ID: N/A
Associated modifications: N/A
Test: N/A

Signed-off-by: Zhibin Huang <zhibin.huang@rock-chips.com>
Change-Id: If5aec0a06a3f538d19f4017e4346a457515d44b0
Signed-off-by: Shunhua Lan <lsh@rock-chips.com>
This commit is contained in:
Zhibin Huang
2024-02-22 14:09:10 +08:00
committed by Tao Huang
parent ffbc0d6aa0
commit d0d7619bfa
3 changed files with 280 additions and 0 deletions

View File

@@ -254,6 +254,8 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3576-test1-v10-eink.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3576-test1-v10-linux.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3576-test1-v10-mcu-k350c4516t.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3576-test1-v10-rgb-Q7050ITH2641AA1T.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3576-test1-v10-rk628-bt1120-2-hdmi.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3576-test1-v10-rk628-hdmi2gvi.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3576-test1-v10-sii9022-bt1120-to-hdmi.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3576-test2-v10.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3576-test2-v10-linux.dtb

View File

@@ -0,0 +1,137 @@
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
* Copyright (c) 2024 Rockchip Electronics Co., Ltd.
*
*/
/dts-v1/;
#include <dt-bindings/display/media-bus-format.h>
#include "rk3576-test1.dtsi"
#include "rk3576-android.dtsi"
/ {
model = "Rockchip RK3576 TEST1 V10 Board + RK EVB EXT HDMItoMIPI BT1120toHDMI RK628F V10";
compatible = "rockchip,rk3576-test1-v10-rk628-bt1120-2-hdmi", "rockchip,rk3576";
rk628_sound: rk628-sound {
compatible = "simple-audio-card";
simple-audio-card,format = "i2s";
simple-audio-card,mclk-fs = <128>;
simple-audio-card,name = "rockchip,hdmi-rk628";
status = "okay";
simple-audio-card,cpu {
sound-dai = <&sai1>;
};
simple-audio-card,codec {
sound-dai = <&i2c3_rk628>;
};
};
};
&mipidcphy0 {
status = "disabled";
};
&dsi {
status = "disabled";
};
&dsi_in_vp1 {
status = "disabled";
};
&route_dsi {
status = "disabled";
};
&gmac0 {
status = "disabled";
};
&gmac1 {
status = "disabled";
};
&sai1 {
status = "disabled";
};
&pcie1 {
status = "disabled";
};
/*
* rk628
*/
&i2c3 {
clock-frequency = <400000>;
pinctrl-0 = <&i2c3m0_xfer>;
status = "okay";
i2c3_rk628: rk628@50 {
compatible = "rockchip,rk628";
reg = <0x50>;
interrupt-parent = <&gpio4>;
interrupts = <6 IRQ_TYPE_LEVEL_HIGH>;
enable-gpios = <&gpio4 RK_PB2 GPIO_ACTIVE_HIGH>;
reset-gpios = <&gpio4 RK_PB1 GPIO_ACTIVE_HIGH>;
status = "okay";
#sound-dai-cells = <0>;
rk628-bt1120-in;
bt1120-yc-swap;
// bt1120-uv-swap;
rk628-hdmi-out;
mode-sync-pol = <0>;
port {
rk628_in_rgb: endpoint {
remote-endpoint = <&rgb_out_rk628>;
};
};
};
};
&rgb {
status = "okay";
pinctrl-names = "default";
/*
* <&bt1120_pins> for bt1120
* <&bt656_pins> for bt656
*/
pinctrl-0 = <&bt1120_pins>;
ports {
port@1 {
reg = <1>;
#address-cells = <1>;
#size-cells = <0>;
rgb_out_rk628: endpoint@0 {
reg = <0>;
remote-endpoint = <&rk628_in_rgb>;
};
};
};
};
&rgb_in_vp2 {
status = "okay";
};
&route_rgb {
status = "okay";
connect = <&vp2_out_rgb>;
};
&sai1 {
status = "okay";
pinctrl-0 = <&sai1m0_lrck &sai1m0_sclk &sai1m0_sdo1>;
rockchip,sai-tx-route = <1 0 2 3>;
};

View File

@@ -0,0 +1,141 @@
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
* Copyright (c) 2024 Rockchip Electronics Co., Ltd.
*
*/
/dts-v1/;
#include <dt-bindings/display/media-bus-format.h>
#include "rk3576-test1.dtsi"
#include "rk3576-android.dtsi"
/ {
model = "Rockchip RK3576 TEST1 V10 Board + RK RK628 DEMO HDMIRX2GVI V10";
compatible = "rockchip,rk3576-test1-v10-rk628-hdmi2gvi", "rockchip,rk3576";
};
&mipidcphy0 {
status = "disabled";
};
&dsi {
status = "disabled";
};
&dsi_in_vp1 {
status = "disabled";
};
&route_dsi {
status = "disabled";
};
&gmac1 {
status = "disabled";
};
&sdmmc {
status = "disabled";
};
/*
* rk628
*/
&i2c5 {
clock-frequency = <400000>;
status = "okay";
i2c5_rk628: rk628@50 {
compatible = "rockchip,rk628";
reg = <0x50>;
reset-gpios = <&gpio2 RK_PA3 GPIO_ACTIVE_LOW>;
status = "okay";
rk628-hdmi-in;
rk628-gvi-out {
/* "rgb666"
* "rgb888"
* "rgb101010"
* "yuyv8"
* "yuyv10"
*/
bus-format = "rgb888";
gvi,lanes = <8>;
//"rockchip,division-mode";
//"rockchip, gvi-frm-rst";
status = "okay";
};
display-timings {
src-timing {
clock-frequency = <594000000>;
hactive = <3840>;
vactive = <2160>;
hback-porch = <296>;
hfront-porch = <176>;
vback-porch = <72>;
vfront-porch = <8>;
hsync-len = <88>;
vsync-len = <10>;
hsync-active = <1>;
vsync-active = <1>;
de-active = <0>;
pixelclk-active = <0>;
};
dst-timing {
clock-frequency = <594000000>;
hactive = <3840>;
vactive = <2160>;
hback-porch = <296>;
hfront-porch = <176>;
vback-porch = <72>;
vfront-porch = <8>;
hsync-len = <88>;
vsync-len = <10>;
hsync-active = <1>;
vsync-active = <1>;
de-active = <0>;
pixelclk-active = <0>;
};
};
};
};
&hdmi {
status = "okay";
force-bus-format = <MEDIA_BUS_FMT_RGB888_1X24>;
force-output;
force_timing {
clock-frequency = <594000000>;
hactive = <3840>;
vactive = <2160>;
hback-porch = <296>;
hfront-porch = <176>;
vback-porch = <72>;
vfront-porch = <8>;
hsync-len = <88>;
vsync-len = <10>;
hsync-active = <1>;
vsync-active = <1>;
de-active = <0>;
pixelclk-active = <0>;
};
};
/*
* uboot does not support 4k resolution
*/
&route_hdmi {
status = "disabled";
};
&hdmi_sound {
status = "okay";
};
&sai6 {
status = "okay";
};