mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 17:13:52 +02:00
drm/rockchip: dsi: Add support for rk3506
The dsi controller found on RK3506 supports up to 2 lanes. Signed-off-by: Hongming Zou <hongming.zou@rock-chips.com> Signed-off-by: Chaoyi Chen <chaoyi.chen@rock-chips.com> Signed-off-by: Heiko Stuebner <heiko@sntech.de> Link: https://patch.msgid.link/20251106020632.92-8-kernel@airkyi.com
This commit is contained in:
parent
7919273e49
commit
cabeacc7ea
|
|
@ -198,6 +198,11 @@
|
|||
#define RK3568_DSI0_TURNDISABLE BIT(2)
|
||||
#define RK3568_DSI0_FORCERXMODE BIT(0)
|
||||
|
||||
#define RK3506_SYS_GRF_SOC_CON6 0x0018
|
||||
#define RK3506_DSI_FORCETXSTOPMODE (0xf << 4)
|
||||
#define RK3506_DSI_TURNDISABLE BIT(2)
|
||||
#define RK3506_DSI_FORCERXMODE BIT(0)
|
||||
|
||||
/*
|
||||
* Note these registers do not appear in the datasheet, they are
|
||||
* however present in the BSP driver which is where these values
|
||||
|
|
@ -1661,6 +1666,18 @@ static const struct rockchip_dw_dsi_chip_data rk3399_chip_data[] = {
|
|||
{ /* sentinel */ }
|
||||
};
|
||||
|
||||
static const struct rockchip_dw_dsi_chip_data rk3506_chip_data[] = {
|
||||
{
|
||||
.reg = 0xff640000,
|
||||
.lanecfg1_grf_reg = RK3506_SYS_GRF_SOC_CON6,
|
||||
.lanecfg1 = (FIELD_PREP_WM16_CONST(RK3506_DSI_TURNDISABLE, 0) |
|
||||
FIELD_PREP_WM16_CONST(RK3506_DSI_FORCERXMODE, 0) |
|
||||
FIELD_PREP_WM16_CONST(RK3506_DSI_FORCETXSTOPMODE, 0)),
|
||||
.max_data_lanes = 2,
|
||||
},
|
||||
{ /* sentinel */ }
|
||||
};
|
||||
|
||||
static const struct rockchip_dw_dsi_chip_data rk3568_chip_data[] = {
|
||||
{
|
||||
.reg = 0xfe060000,
|
||||
|
|
@ -1711,6 +1728,9 @@ static const struct of_device_id dw_mipi_dsi_rockchip_dt_ids[] = {
|
|||
}, {
|
||||
.compatible = "rockchip,rk3399-mipi-dsi",
|
||||
.data = &rk3399_chip_data,
|
||||
}, {
|
||||
.compatible = "rockchip,rk3506-mipi-dsi",
|
||||
.data = &rk3506_chip_data,
|
||||
}, {
|
||||
.compatible = "rockchip,rk3568-mipi-dsi",
|
||||
.data = &rk3568_chip_data,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user