drm/bridge: adv7533: Reset DSI receiver logic
Subsystems (3)
PATCH 1/1 drm/bridge: adv7533: Reset DSI receiver logic
Reset DSI receiver logic during power on. The need for this change was discovered when investigating issue with ADV7535. The symptom of the problem was that ADV7535 continuously outputs a black image. This happened for about 10% of the times that ADV7535 was powered on. The rest of the times the image was as expected.
The solution in this patch (placement of reset and sleep time of 200ms) is implemented as outlined by the Analog Devices support team.
--- drivers/gpu/drm/bridge/adv7511/adv7533.c | 9 +++++++++ 1 file changed, 9 insertions(+)
drivers/gpu/drm/bridge/adv7511/adv7533.c +9 -0
@@ -67,6 +67,15 @@ void adv7533_dsi_power_on(struct adv7511 *adv) {struct mipi_dsi_device *dsi = adv->dsi; +/* +* Reset DSI receiver block logic to avoid ADV7535 startup problem. +* Without this reset it sometimes continuously fails to receive +* incoming DSI packets and outputs black image. +*/ +regmap_write (adv->regmap_cec,0x26 ,0x18 ); +msleep (200 ); +regmap_write (adv->regmap_cec,0x26 ,0x38 ); +if (adv->use_timing_gen)adv7511_dsi_config_timing_gen (adv);
---
base-commit: 59b723cd2adbac2a34fc8e12c74ae26ae45bf230
change-id: 20241108-adv7533-dsi-reset-488c6fbb5e42
Best regards,
Signature · 1 line
Stefan Ekenberg <[email protected]>
Quoted 8 lines · Stefan Ekenberg
Reset DSI receiver logic during power on. The need for this change was discovered when investigating issue with ADV7535. The symptom of the problem was that ADV7535 continuously outputs a black image. This happened for about 10% of the times that ADV7535 was powered on. The rest of the times the image was as expected.
The solution in this patch (placement of reset and sleep time of 200ms) is implemented as outlined by the Analog Devices support team.
Is this reset sequence specific only to adv7535? Is it applicable to adv7533? adv7511?
Quoted 35 lines
Signed-off-by Stefan Ekenberg <[email protected]>--- drivers/gpu/drm/bridge/adv7511/adv7533.c | 9 +++++++++ 1 file changed, 9 insertions(+)drivers/gpu/drm/bridge/adv7511/adv7533.c +9
-1@@ -67,6 +67,15 @@ void adv7533_dsi_power_on(struct adv7511 *adv) {struct mipi_dsi_device *dsi = adv->dsi; +/* +* Reset DSI receiver block logic to avoid ADV7535 startup problem. +* Without this reset it sometimes continuously fails to receive +* incoming DSI packets and outputs black image. +*/ +regmap_write (adv->regmap_cec,0x26 ,0x18 ); +msleep (200 ); +regmap_write (adv->regmap_cec,0x26 ,0x38 ); +if (adv->use_timing_gen)adv7511_dsi_config_timing_gen (adv); ---base-commit:
59b723cd2adbac2a34fc8e12c74ae26ae45bf230
change-id: 20241108-adv7533-dsi-reset-488c6fbb5e42Best regards,
Signature · 1 line
Stefan Ekenberg <[email protected]>
Signature · 2 lines
With best wishes Dmitry
Quoted 7 lines · Dmitry Baryshkov
Quoted 6 lines · Stefan Ekenberg
Reset DSI receiver logic during power on. The need for this change was discovered when investigating issue with ADV7535. The symptom of the problem was that ADV7535 continuously outputs a black image. This happened for about 10% of the times that ADV7535 was powered on. The rest of the times the image was as expected.
Quoted 5 lines
Quoted 2 lines
The solution in this patch (placement of reset and sleep time of 200ms) is implemented as outlined by the Analog Devices support team.
Is this reset sequence specific only to adv7535? Is it applicable to adv7533? adv7511?
I know that it is not applicable for ADV7511 (that chip doesn't have any MIPI DSI receiver). It might be applicable for ADV7533 but unfortunately I don't know. I have only used AD7535 and therefore never tested anything on ADV7533.
Quoted 37 lines
Quoted 36 lines
Signed-off-by Stefan Ekenberg <[email protected]>--- drivers/gpu/drm/bridge/adv7511/adv7533.c | 9 +++++++++ 1 file changed, 9 insertions(+)drivers/gpu/drm/bridge/adv7511/adv7533.c +9
-1@@ -67,6 +67,15 @@ void adv7533_dsi_power_on(struct adv7511 *adv) {struct mipi_dsi_device *dsi = adv->dsi; +/* +* Reset DSI receiver block logic to avoid ADV7535 startup problem. +* Without this reset it sometimes continuously fails to receive +* incoming DSI packets and outputs black image. +*/ +regmap_write (adv->regmap_cec,0x26 ,0x18 ); +msleep (200 ); +regmap_write (adv->regmap_cec,0x26 ,0x38 ); +if (adv->use_timing_gen)adv7511_dsi_config_timing_gen (adv); ---base-commit:
59b723cd2adbac2a34fc8e12c74ae26ae45bf230
change-id: 20241108-adv7533-dsi-reset-488c6fbb5e42Best regards,
Signature · 1 line
Stefan Ekenberg <[email protected]>
Biju Das
Tested-byHi Stefan Ekenberg <[email protected]>,
Quoted 16 lines
-----Original Message-----
From: dri-devel <[email protected]> On Behalf Of Stefan Ekenberg
Sent: 15 November 2024 09:02
Subject: Re: [PATCH] drm/bridge: adv7533: Reset DSI receiver logicQuoted 10 lines · Dmitry Baryshkov
Quoted 8 lines · Stefan Ekenberg
Reset DSI receiver logic during power on. The need for this change was discovered when investigating issue with ADV7535. The symptom of the problem was that ADV7535 continuously outputs a black image. This happened for about 10% of the times that ADV7535 was powered on. The rest of the times the image was as expected.
The solution in this patch (placement of reset and sleep time of 200ms) is implemented as outlined by the Analog Devices support team.
Quoted 10 lines
Quoted 2 lines
Is this reset sequence specific only to adv7535? Is it applicable to adv7533? adv7511?
I know that it is not applicable for ADV7511 (that chip doesn't have any MIPI DSI receiver). It might be applicable for ADV7533 but unfortunately I don't know. I have only used AD7535 and therefore never tested anything on ADV7533.
Quoted 3 lines
Quoted 3 lines
Signed-off-by Stefan Ekenberg <[email protected]>
With and without the patch, display works on Renesas RZ/V2L SMARC board which is connected to ADV7535 device.
Cheers,
Biju
Quoted 34 lines
Quoted 34 lines
Quoted 33 lines
--- drivers/gpu/drm/bridge/adv7511/adv7533.c | 9 +++++++++ 1 file changed, 9 insertions(+)drivers/gpu/drm/bridge/adv7511/adv7533.c +9
-1@@ -67,6 +67,15 @@ void adv7533_dsi_power_on(struct adv7511 *adv) {struct mipi_dsi_device *dsi = adv->dsi; +/* +* Reset DSI receiver block logic to avoid ADV7535 startup problem. +* Without this reset it sometimes continuously fails to receive +* incoming DSI packets and outputs black image. +*/ +regmap_write (adv->regmap_cec,0x26 ,0x18 ); +msleep (200 ); +regmap_write (adv->regmap_cec,0x26 ,0x38 ); +if (adv->use_timing_gen)adv7511_dsi_config_timing_gen (adv); ---base-commit:
59b723cd2adbac2a34fc8e12c74ae26ae45bf230
change-id: 20241108-adv7533-dsi-reset-488c6fbb5e42Best regards,
--
Stefan Ekenberg <[email protected]>