* [PATCH v2] arm64: dts: mediatek: mt8192-asurada: Add off-on-delay-us for pp3300_mipibrdg
@ 2024-05-02 15:39 Pin-yen Lin
2024-05-28 10:40 ` AngeloGioacchino Del Regno
0 siblings, 1 reply; 2+ messages in thread
From: Pin-yen Lin @ 2024-05-02 15:39 UTC (permalink / raw)
To: Matthias Brugger, AngeloGioacchino Del Regno
Cc: Nícolas F . R . A . Prado, linux-mediatek, Hsin-Te Yuan,
devicetree, linux-arm-kernel, linux-kernel, Pin-yen Lin
Set off-on-delay-us to 500000 us for pp3300_mipibrdg to make sure it
complies with the panel's unprepare delay (the time to power down
completely) of the power sequence. Explicit configuration on the
regulator node is required because mt8192-asurada uses the same power
supply for the panel and the anx7625 DP bridge.
For example, the power sequence could be violated in this sequence:
1. Bridge on: panel goes off, but regulator doesn't turn off (refcount=1).
2. Bridge off: regulator turns off (refcount=0).
3. Bridge resume -> regulator turns on but the bridge driver doesn't
check the delay.
Or in this sequence:
1. Bridge on: panel goes off. The regulator doesn't turn off (refcount=1),
but the .unprepared_time in panel_edp is still updated.
2. Bridge off, regulator goes off (refcount=0).
3. Panel on, but the panel driver uses the wrong .unprepared_time to check
the unprepare delay.
Fixes: f9f00b1f6b9b ("arm64: dts: mediatek: asurada: Add display regulators")
Signed-off-by: Pin-yen Lin <treapking@chromium.org>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
---
Changes in v2:
- Update the commit message
- Collect review tag
arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi b/arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi
index 7a704246678f..08d71ddf3668 100644
--- a/arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi
@@ -147,6 +147,7 @@ pp3300_mipibrdg: regulator-3v3-mipibrdg {
regulator-boot-on;
gpio = <&pio 127 GPIO_ACTIVE_HIGH>;
vin-supply = <&pp3300_g>;
+ off-on-delay-us = <500000>;
};
/* separately switched 3.3V power rail */
--
2.45.0.rc0.197.gbae5840b3b-goog
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH v2] arm64: dts: mediatek: mt8192-asurada: Add off-on-delay-us for pp3300_mipibrdg
2024-05-02 15:39 [PATCH v2] arm64: dts: mediatek: mt8192-asurada: Add off-on-delay-us for pp3300_mipibrdg Pin-yen Lin
@ 2024-05-28 10:40 ` AngeloGioacchino Del Regno
0 siblings, 0 replies; 2+ messages in thread
From: AngeloGioacchino Del Regno @ 2024-05-28 10:40 UTC (permalink / raw)
To: Matthias Brugger, Pin-yen Lin
Cc: AngeloGioacchino Del Regno, Nícolas F . R . A . Prado,
linux-mediatek, Hsin-Te Yuan, devicetree, linux-arm-kernel,
linux-kernel
On Thu, 02 May 2024 23:39:51 +0800, Pin-yen Lin wrote:
> Set off-on-delay-us to 500000 us for pp3300_mipibrdg to make sure it
> complies with the panel's unprepare delay (the time to power down
> completely) of the power sequence. Explicit configuration on the
> regulator node is required because mt8192-asurada uses the same power
> supply for the panel and the anx7625 DP bridge.
>
> For example, the power sequence could be violated in this sequence:
> 1. Bridge on: panel goes off, but regulator doesn't turn off (refcount=1).
> 2. Bridge off: regulator turns off (refcount=0).
> 3. Bridge resume -> regulator turns on but the bridge driver doesn't
> check the delay.
>
> [...]
Applied to v6.10-next/dts64, thanks!
[1/1] arm64: dts: mediatek: mt8192-asurada: Add off-on-delay-us for pp3300_mipibrdg
commit: 476d7adf84deb884e0f8f74417bf5249ab9a95b3
Cheers,
Angelo
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-05-28 10:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-02 15:39 [PATCH v2] arm64: dts: mediatek: mt8192-asurada: Add off-on-delay-us for pp3300_mipibrdg Pin-yen Lin
2024-05-28 10:40 ` AngeloGioacchino Del Regno
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®