[PATCH v1] rockchip: video: mipi: add more compatible strings for rk3288/rk3399

Kever Yang kever.yang at rock-chips.com
Mon Apr 18 05:21:47 CEST 2022


On 2022/4/16 16:25, Johan Jonker wrote:
> The rk3288/RK3399 DT synced from Linux contains some different
> compatible strings in the mipi node then origanal used in U-boot.
> Allow both options to be backwards compatible and to be able
> to handle recent rk3288.dtsi and rk3399.dtsi files.
>
> Signed-off-by: Johan Jonker <jbx6244 at gmail.com>
Reviewed-by: Kever Yang <kever.yang at rock-chips.com>

Thanks,
- Kever
> ---
>
> Fix for rk3288.dtsi and rk3399.dtsi sync from Linux.
> Not tested with hardware.
> ---
>   drivers/video/rockchip/rk3288_mipi.c | 1 +
>   drivers/video/rockchip/rk3399_mipi.c | 1 +
>   2 files changed, 2 insertions(+)
>
> diff --git a/drivers/video/rockchip/rk3288_mipi.c b/drivers/video/rockchip/rk3288_mipi.c
> index 7e48dd83..c0dffa3c 100644
> --- a/drivers/video/rockchip/rk3288_mipi.c
> +++ b/drivers/video/rockchip/rk3288_mipi.c
> @@ -174,6 +174,7 @@ static const struct dm_display_ops rk_mipi_dsi_ops = {
>   };
>   
>   static const struct udevice_id rk_mipi_dsi_ids[] = {
> +	{ .compatible = "rockchip,rk3288-mipi-dsi" },
>   	{ .compatible = "rockchip,rk3288_mipi_dsi" },
>   	{ }
>   };
> diff --git a/drivers/video/rockchip/rk3399_mipi.c b/drivers/video/rockchip/rk3399_mipi.c
> index 91733504..7fc79ba9 100644
> --- a/drivers/video/rockchip/rk3399_mipi.c
> +++ b/drivers/video/rockchip/rk3399_mipi.c
> @@ -165,6 +165,7 @@ static const struct dm_display_ops rk_mipi_dsi_ops = {
>   };
>   
>   static const struct udevice_id rk_mipi_dsi_ids[] = {
> +	{ .compatible = "rockchip,rk3399-mipi-dsi" },
>   	{ .compatible = "rockchip,rk3399_mipi_dsi" },
>   	{ }
>   };


More information about the U-Boot mailing list