drm/rockchip: dsi: add rv1126b support

Support 4lane MIPI interface, 1.5Gbps/lane
Max output resolution is 1920x1080@60fps

Change-Id: I6b99b9d42aefd6f07a2bc49c9bb1696d712ed1fa
Signed-off-by: Hongming Zou <hongming.zou@rock-chips.com>
This commit is contained in:
Hongming Zou
2025-03-07 14:49:58 +08:00
committed by Tao Huang
parent f7e3199891
commit ac6249fbe0

View File

@@ -215,6 +215,7 @@
#define RK3568_DSI1_FORCERXMODE BIT(0)
#define RV1126_GRF_DSIPHY_CON 0x10220
#define RV1126B_GRF_DSIPHY_CON 0x80010
#define RV1126_DSI_FORCETXSTOPMODE (0xf << 4)
#define RV1126_DSI_TURNDISABLE (0x1 << 2)
#define RV1126_DSI_FORCERXMODE (0x1 << 0)
@@ -258,6 +259,7 @@ enum soc_type {
RK3562,
RK3568,
RV1126,
RV1126B,
};
struct cmd_header {
@@ -1857,6 +1859,22 @@ static const struct rockchip_dw_dsi_chip_data rv1126_chip_data[] = {
{ /* sentinel */ }
};
static const struct rockchip_dw_dsi_chip_data rv1126b_chip_data[] = {
{
.reg = 0x22120000,
.lanecfg1_grf_reg = RV1126B_GRF_DSIPHY_CON,
.lanecfg1 = HIWORD_UPDATE(0, RV1126_DSI_TURNDISABLE |
RV1126_DSI_FORCERXMODE |
RV1126_DSI_FORCETXSTOPMODE),
.flags = 0,
.max_data_lanes = 4,
.max_bit_rate_per_lane = 1500000000UL,
.soc_type = RV1126B,
},
{ /* sentinel */ }
};
static const struct of_device_id dw_mipi_dsi_rockchip_dt_ids[] = {
#if IS_ENABLED(CONFIG_CPU_PX30)
{
@@ -1905,6 +1923,12 @@ static const struct of_device_id dw_mipi_dsi_rockchip_dt_ids[] = {
.compatible = "rockchip,rv1126-mipi-dsi",
.data = &rv1126_chip_data,
},
#endif
#if IS_ENABLED(CONFIG_CPU_RV1126B)
{
.compatible = "rockchip,rv1126b-mipi-dsi",
.data = &rv1126b_chip_data,
},
#endif
{ /* sentinel */ }
};