Re: [PATCH 05/11] drm/msm/dsi: add DSI support for SA8775P

From: Ayushi Makhija
Date: Tue Mar 04 2025 - 04:37:19 EST


On 2/25/2025 10:48 PM, Dmitry Baryshkov wrote:
> On Tue, Feb 25, 2025 at 05:48:18PM +0530, Ayushi Makhija wrote:
>> Add DSI Controller v2.5.1 support for SA8775P SoC.
>>
>> Signed-off-by: Ayushi Makhija <quic_amakhija@xxxxxxxxxxx>
>> ---
>> drivers/gpu/drm/msm/dsi/dsi_cfg.c | 18 ++++++++++++++++++
>> drivers/gpu/drm/msm/dsi/dsi_cfg.h | 1 +
>> 2 files changed, 19 insertions(+)
>>
>> diff --git a/drivers/gpu/drm/msm/dsi/dsi_cfg.c b/drivers/gpu/drm/msm/dsi/dsi_cfg.c
>> index 7754dcec33d0..71881d9370af 100644
>> --- a/drivers/gpu/drm/msm/dsi/dsi_cfg.c
>> +++ b/drivers/gpu/drm/msm/dsi/dsi_cfg.c
>> @@ -221,6 +221,22 @@ static const struct msm_dsi_config sc7280_dsi_cfg = {
>> },
>> };
>>
>> +static const struct regulator_bulk_data sa8775p_dsi_regulators[] = {
>> + { .supply = "vdda", .init_load_uA = 30100 }, /* 1.2 V */
>> + { .supply = "refgen" },
>> +};
>
> sc7280 has 8350 uA here. I'd say, having those two next to each other is
> suspicious. Could you please doublecheck it?
>
> LGTM otherwise
>

Hi Dmitry,
Thanks, for the review.

This chipset is being used in Auto, and I have taken the init load values from the downstream code.
After you raised the doubt, I checked in the power grid for the DSI ctrl 1p2 supply (mdss0_dsi0 && mdss0_dsi1) and found the load is 8300 uA.
I also checked DSI PHY 0p9 supply (mdss0_dsi0_phy & mdss0_dsi1_phy) load and it seems the downstream SW values are incorrect for the PHY as well.
Correct value for 0p9 supply as per the Power grid is 48000 uA.
I have tested using update load and it's working fine. I will update the both in my next patchset.

Thanks,
Ayushi