Devicetree
 help / color / mirror / Atom feed
* [PATCH] arm64: dts: qcom: eliza-evk: Add DSI2HDMI bridge and HDMI output
@ 2026-12-01  8:19 Krzysztof Kozlowski
  2026-12-01  8:34 ` sashiko-bot
  0 siblings, 1 reply; 2+ messages in thread
From: Krzysztof Kozlowski @ 2026-12-01  8:19 UTC (permalink / raw)
  To: Bjorn Andersson, Konrad Dybcio, Abel Vesa, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, linux-arm-msm, devicetree
  Cc: linux-kernel, Krzysztof Kozlowski

Add the DSI2HDMI bridge and HDMI output for Eliza EVK board. Note that
DSI2HDMI is an hat, which could be missing in some setups, and it also
requires matching TZ firmware (meta) configuring the GENIQUP8 to I2C
mode.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>

---

DT bindings for lt9611c compatible used here (not yet merged):
https://lore.kernel.org/all/20261201-lt9611c-v7-v20-0-fbe0e5581b4f@oss.qualcomm.com/
---
 arch/arm64/boot/dts/qcom/eliza-evk.dtsi | 127 ++++++++++++++++++++++++
 1 file changed, 127 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/eliza-evk.dtsi b/arch/arm64/boot/dts/qcom/eliza-evk.dtsi
index 02e58a4bc91d..069df6e0044b 100644
--- a/arch/arm64/boot/dts/qcom/eliza-evk.dtsi
+++ b/arch/arm64/boot/dts/qcom/eliza-evk.dtsi
@@ -27,6 +27,17 @@ key-volume-up {
 		};
 	};
 
+	hdmi-0-connector {
+		compatible = "hdmi-connector";
+		type = "a";
+
+		port {
+			hdmi_0_connector_in: endpoint {
+				remote-endpoint = <&lt9611_out>;
+			};
+		};
+	};
+
 	pmic-glink {
 		compatible = "qcom,eliza-pmic-glink",
 			     "qcom,sm8550-pmic-glink",
@@ -209,6 +220,81 @@ gpio_expander1: gpio@3c {
 	};
 };
 
+&i2c8 {
+	clock-frequency = <400000>;
+
+	status = "okay";
+
+	lt9611_codec: hdmi-bridge@41 {
+		compatible = "lontium,lt9611uxd";
+		reg = <0x41>;
+
+		interrupts-extended = <&tlmm 13 IRQ_TYPE_EDGE_FALLING>;
+		reset-gpios = <&tlmm 16 GPIO_ACTIVE_HIGH>;
+
+		vdd-supply = <&vph_pwr>;
+		vcc-supply = <&vreg_l7b>;
+
+		pinctrl-0 = <&lt9611_default>;
+		pinctrl-names = "default";
+
+		ports {
+			#address-cells = <1>;
+			#size-cells = <0>;
+
+			port@0 {
+				reg = <0>;
+
+				lt9611_a: endpoint {
+					remote-endpoint = <&mdss_dsi0_out>;
+				};
+			};
+
+			port@2 {
+				reg = <2>;
+
+				lt9611_out: endpoint {
+					remote-endpoint = <&hdmi_0_connector_in>;
+				};
+			};
+		};
+	};
+};
+
+&mdss {
+	status = "okay";
+};
+
+&mdss_dp0 {
+	pinctrl-0 = <&usb_dp_sw_active>;
+	pinctrl-1 = <&usb_dp_sw_sleep>;
+	pinctrl-names = "default", "sleep";
+
+	status = "okay";
+};
+
+&mdss_dp0_out {
+	link-frequencies = /bits/ 64 <1620000000 2700000000 5400000000 8100000000>;
+};
+
+&mdss_dsi0 {
+	vdda-supply = <&vreg_l4b>;
+
+	status = "okay";
+};
+
+&mdss_dsi0_out {
+	remote-endpoint = <&lt9611_a>;
+	data-lanes = <0 1 2 3>;
+};
+
+&mdss_dsi0_phy {
+	vdds-supply = <&vreg_l2b>;
+
+	status = "okay";
+};
+
+
 &lpass_vamacro {
 	pinctrl-0 = <&dmic01_default>, <&dmic23_default>,
 		    <&dmic45_default>, <&dmic67_default>;
@@ -323,6 +409,21 @@ right_spkr: speaker@0,1 {
 };
 
 &tlmm {
+	lt9611_default: lt9611-state {
+		irq-pins {
+			pins = "gpio13";
+			function = "gpio";
+			bias-disable;
+		};
+
+		rst-pins {
+			pins = "gpio16";
+			function = "gpio";
+
+			output-high;
+		};
+	};
+
 	sd_cd: sd-cd-state {
 		pins = "gpio58";
 		function = "gpio";
@@ -342,6 +443,32 @@ spkr_2_sd_n_active: spkr-2-sd-n-active-state {
 		drive-strength = <16>;
 		bias-disable;
 	};
+
+	usb_dp_sw_active: usb-dp-sw-active-state {
+		pins = "gpio177", "gpio178";
+		function = "gpio";
+		drive-strength = <8>;
+		bias-disable;
+		output-high;
+	};
+
+	usb_dp_sw_sleep: usb-dp-sw-sleep-state {
+		usb-dp-sw-en-pins {
+			pins = "gpio177";
+			function = "gpio";
+			drive-strength = <8>;
+			bias-disable;
+			output-high;
+		};
+
+		usb-dp-sw-sel-pins {
+			pins = "gpio178";
+			function = "gpio";
+			drive-strength = <8>;
+			bias-disable;
+			output-low;
+		};
+	};
 };
 
 &pcie1 {
-- 
2.53.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] arm64: dts: qcom: eliza-evk: Add DSI2HDMI bridge and HDMI output
  2026-12-01  8:19 [PATCH] arm64: dts: qcom: eliza-evk: Add DSI2HDMI bridge and HDMI output Krzysztof Kozlowski
@ 2026-12-01  8:34 ` sashiko-bot
  0 siblings, 0 replies; 2+ messages in thread
From: sashiko-bot @ 2026-12-01  8:34 UTC (permalink / raw)
  To: Krzysztof Kozlowski, devicetree; +Cc: robh, conor+dt

Thank you for your contribution! Sashiko AI review found 4 potential
issues to consider:
- [High] arm64: dts: qcom: undocumented lontium,lt9611uxd compatible on
  hdmi-bridge@41
- [High] arm64: dts: qcom: unconditional mdss_dsi0 enablement for
  optional hat breaks DP
- [Medium] arm64: dts: qcom: undocumented mdss_dp0 enablement with
  unused sleep pinctrl
- [Medium] arm64: dts: qcom: swapped vdd-supply and vcc-supply on
  hdmi-bridge@41
--

commit 112b7af67ee52eaeb64d1fa1291687875a1db87c
Author: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>

arm64: dts: qcom: eliza-evk: Add DSI2HDMI bridge and HDMI output

This commit adds the Lontium DSI2HDMI bridge on i2c8, the HDMI connector,
and the MDSS DSI0 and DP0 configurations for the Eliza EVK board.

> diff --git a/arch/arm64/boot/dts/qcom/eliza-evk.dtsi b/arch/arm64/boot/dts/qcom/eliza-evk.dtsi
> index 02e58a4bc91d4..069df6e0044b1 100644
> --- a/arch/arm64/boot/dts/qcom/eliza-evk.dtsi
> +++ b/arch/arm64/boot/dts/qcom/eliza-evk.dtsi

[ ... ]

> @@ -209,6 +220,81 @@ gpio_expander1: gpio@3c {
>  	};
>  };
>  
> +&i2c8 {
> +	clock-frequency = <400000>;
> +
> +	status = "okay";
> +
> +	lt9611_codec: hdmi-bridge@41 {
> +		compatible = "lontium,lt9611uxd";
> +		reg = <0x41>;

[Severity: High]
Is "lontium,lt9611uxd" a typo in the compatible string for lt9611_codec?

Documentation/devicetree/bindings/display/bridge/lontium,lt9611.yaml and
the in-tree bridge drivers only define "lontium,lt9611" and
"lontium,lt9611uxc", and the patch note below the tearline refers to
lt9611c bindings rather than lt9611uxd.  With no matching driver or
fallback compatible, hdmi-bridge@41 never probes or calls
mipi_dsi_attach(), which also prevents mdss_dsi0 from registering its DRM
component in dsi_host_attach() and blocks mdss_mdp from binding the
display subsystem.

> +
> +		interrupts-extended = <&tlmm 13 IRQ_TYPE_EDGE_FALLING>;
> +		reset-gpios = <&tlmm 16 GPIO_ACTIVE_HIGH>;
> +
> +		vdd-supply = <&vph_pwr>;
> +		vcc-supply = <&vreg_l7b>;

[Severity: Medium]
Are vdd-supply and vcc-supply swapped on lt9611_codec?

According to Documentation/devicetree/bindings/display/bridge/lontium,lt9611.yaml,
vdd-supply is the 1.8V MIPI PHY power supply and vcc-supply is the 3.3V IO
power supply, whereas in arch/arm64/boot/dts/qcom/eliza-cqs-som.dtsi
vph_pwr is 3.7V and vreg_l7b is the 1.8V RPMh LDO.  Besides reversing the
power-on sequence between the two rails, lt9611_regulator_init() and
lt9611uxc_regulator_init() only call regulator_set_load() on "vdd", so the
load vote is applied as a no-op to the fixed vph_pwr rail instead of
vreg_l7b.

[ ... ]

> +&mdss_dp0 {
> +	pinctrl-0 = <&usb_dp_sw_active>;
> +	pinctrl-1 = <&usb_dp_sw_sleep>;
> +	pinctrl-names = "default", "sleep";
> +
> +	status = "okay";
> +};
> +
> +&mdss_dp0_out {
> +	link-frequencies = /bits/ 64 <1620000000 2700000000 5400000000 8100000000>;
> +};

[Severity: Medium]
Should the mdss_dp0 enablement and USB/DP switch pinctrl configuration be
described in the commit message or split into a separate patch, and will
usb_dp_sw_sleep ever be selected?

The commit message only describes adding the DSI2HDMI bridge and HDMI
output.  In addition, the MSM DisplayPort driver
(drivers/gpu/drm/msm/dp/dp_display.c) never calls
pinctrl_pm_select_sleep_state() or pinctrl_pm_select_default_state(), so
pinctrl_bind_pins() selects usb_dp_sw_active once at probe and permanently
drives gpio178 (usb-dp-sw-sel-pins) high.

> +
> +&mdss_dsi0 {
> +	vdda-supply = <&vreg_l4b>;
> +
> +	status = "okay";
> +};
> +
> +&mdss_dsi0_out {
> +	remote-endpoint = <&lt9611_a>;
> +	data-lanes = <0 1 2 3>;
> +};

[Severity: High]
Does unconditionally enabling mdss_dsi0 and i2c8 in eliza-evk.dtsi rather
than in a Devicetree overlay break the display subsystem when the optional
DSI2HDMI hat is absent or when TZ firmware does not configure GENIQUP8 for
I2C?

During DRM master setup, add_mdp_components() in
drivers/gpu/drm/msm/msm_drv.c adds every available MDP interface (both
mdss_dp0 and mdss_dsi0) to the component match list, while mdss_dsi0 only
registers its component in dsi_host_attach() when the downstream DSI
bridge attaches.  If i2c8 fails to initialize or the hat is not connected
on I2C, the bridge driver fails to probe before calling mipi_dsi_attach(),
leaving mdss_dsi0 unbound and preventing mdss_mdp (including DisplayPort
on mdss_dp0) from binding.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261201081953.140894-2-krzysztof.kozlowski@oss.qualcomm.com?part=1

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-12-01  8:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-01  8:19 [PATCH] arm64: dts: qcom: eliza-evk: Add DSI2HDMI bridge and HDMI output Krzysztof Kozlowski
2026-12-01  8:34 ` sashiko-bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox