Skip to contentSkip to conversation

arm64: dts: qcom: trogdor: Add no-hpd to DSI bridge node

PATCH Applied Stephen Boyd 4 participants 5 messages Mar 24, 2021 – May 31, 2021

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: dts: qcom: trogdor: Add no-hpd to DSI bridge node

We should indicate that we're not using the HPD pin on this device, per the binding document. Otherwise if code in the future wants to enable HPD in the bridge when this property is absent we'll be wasting power powering hpd when we don't use it on trogdor boards. We didn't notice this before because the kernel driver blindly disables hpd, but that won't be true for much longer.

Cc Laurent Pinchart <[email protected]>
Cc Douglas Anderson <[email protected]>
Fixes 7ec3e67307f8 ("arm64: dts: qcom: sc7180-trogdor: add initial trogdor and lazor dt")
---
 arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi | 2 ++
 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi +2 -0
index 07c8b2c926c0..298af6d7fb4a 100644
@@ -595,6 +595,8 @@ sn65dsi86_bridge: bridge@2d {
 		clocks = <&rpmhcc RPMH_LN_BB_CLK3>;
 		clock-names = "refclk";
 
+		no-hpd;
+
 		ports {
 			#address-cells = <1>;
 			#size-cells = <0>;
Signature · 1 line
https://chromeos.dev
Reviewed-by on v1 1/1
#1 lore raw

Hi Stephen,

Thank you for the patch.

Quoted 11 lines · Stephen Boyd

We should indicate that we're not using the HPD pin on this device, per the binding document. Otherwise if code in the future wants to enable HPD in the bridge when this property is absent we'll be wasting power powering hpd when we don't use it on trogdor boards. We didn't notice this before because the kernel driver blindly disables hpd, but that won't be true for much longer.

Cc Laurent Pinchart <[email protected]>
Cc Douglas Anderson <[email protected]>
Fixes 7ec3e67307f8 ("arm64: dts: qcom: sc7180-trogdor: add initial trogdor and lazor dt")
Quoted 17 lines
---
 arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi | 2 ++
 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi +2 -0
index 07c8b2c926c0..298af6d7fb4a 100644
@@ -595,6 +595,8 @@ sn65dsi86_bridge: bridge@2d {
 		clocks = <&rpmhcc RPMH_LN_BB_CLK3>;
 		clock-names = "refclk";
 
+		no-hpd;
+
 		ports {
 			#address-cells = <1>;
 			#size-cells = <0>;
Signature · 3 lines
Regards,

Laurent Pinchart
Reviewed-by on v1 1/1
#2 lore raw
In reply to Stephen Boyd

Hi,

Quoted 21 lines · Stephen Boyd

We should indicate that we're not using the HPD pin on this device, per the binding document. Otherwise if code in the future wants to enable HPD in the bridge when this property is absent we'll be wasting power powering hpd when we don't use it on trogdor boards. We didn't notice this before because the kernel driver blindly disables hpd, but that won't be true for much longer.

Cc Laurent Pinchart <[email protected]>
Cc Douglas Anderson <[email protected]>
Fixes 7ec3e67307f8 ("arm64: dts: qcom: sc7180-trogdor: add initial trogdor and lazor dt")
---
 arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi | 2 ++
 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi +0 -0
index 07c8b2c926c0..298af6d7fb4a 100644

arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi sn65dsi86_bridge: bridge@2d { · line 599

Quoted 5 lines
arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi +2 -0
@@ -595,6 +595,8 @@ sn65dsi86_bridge: bridge@2d {
                clocks = <&rpmhcc RPMH_LN_BB_CLK3>;
                clock-names = "refclk";
 
+               no-hpd;
+

Sigh. I can't believe that I added this for cheza in commit 0d1ce0d14bd7 ("arm64: dts: sdm845: Add "no-hpd" to sn65dsi86 on cheza") but forgot trogdor. Thanks.

NOTE: if you were feeling charitable you might consider sending a patch for "sdm850-lenovo-yoga-c630.dts" as well. I don't personally know if HPD is hooked up on that system, but presumably even if it is it's just as useless as it is on other systems where the bridge is used for eDP. If nothing else setting it preserves existing behavior. Someone (I forget who) requested that I word the bindings specifically to say that "no-hpd" was OK to specify in cases like that, since the bindings say:

arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi sn65dsi86_bridge: bridge@2d { · line 601

Quoted 2 lines
arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi +0 -0
     Set if the HPD line on the bridge isn't hooked up to anything or is
     otherwise unusable.

-Doug

#3 lore raw

Quoting Doug Anderson (2021-03-24 08:32:00)

Quoted 5 lines

NOTE: if you were feeling charitable you might consider sending a patch for "sdm850-lenovo-yoga-c630.dts" as well. I don't personally know if HPD is hooked up on that system, but presumably even if it is it's just as useless as it is on other systems where the bridge is used for eDP. If nothing else setting it preserves existing behavior.

Ok I can cook up another patch for this one too.

#4 lore raw
In reply to Stephen Boyd
This patch was applied to qcom/linux.git (refs/heads/for-next):

Hello:

This patch was applied to qcom/linux.git (refs/heads/for-next):

Quoted 8 lines · On Tue, 23 Mar 2021 19:55:34 -0700 you wrote:

We should indicate that we're not using the HPD pin on this device, per the binding document. Otherwise if code in the future wants to enable HPD in the bridge when this property is absent we'll be wasting power powering hpd when we don't use it on trogdor boards. We didn't notice this before because the kernel driver blindly disables hpd, but that won't be true for much longer.

[...]

Here is the summary with links:
- arm64: dts: qcom: trogdor: Add no-hpd to DSI bridge node

    https://git.kernel.org/qcom/c/5f551b5ce555

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html