From nobody Fri Dec 19 21:53:38 2025 Received: from bali.collaboradmins.com (bali.collaboradmins.com [148.251.105.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DEA2236C0BB; Wed, 17 Dec 2025 10:19:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.251.105.195 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765966786; cv=none; b=YDxz0EMBC4ThhnA8YfOHQKhP7rTs13sVg0ftca20RE+J5pozWRiAr2GlYdTwOEGrl3NmGnd1Kk+B28b8ul/GPTHz+Z0osfNB7v0pKea46uhjwDQkLCKOaL0ZMi2ZEGqNU+OIGOPABKMuJr5eBNr4dLrIrM6tSLQXg75KorALqNQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765966786; c=relaxed/simple; bh=FRKo1AwARMqoLFZEk9QOpazS6ahQf/BJkIKaYNCuSC0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=dde9QqZQuFPDIudDazRrWuG+oWXKRzCsdHtMdS0omXyfUCvcLHBonfclt1NCN6J2SMGoanbAMxEVIDqgRNI+HPma6DRcSHY0YUy1kx+WRvpZZv5nUIrVyWAWSb+E87V0LTD40RXwmylsnq0cY3UTtoeutPbLJLxoBMCU3IKJKeo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=ezsn7pd5; arc=none smtp.client-ip=148.251.105.195 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="ezsn7pd5" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1765966782; bh=FRKo1AwARMqoLFZEk9QOpazS6ahQf/BJkIKaYNCuSC0=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=ezsn7pd5tJy020A1BAD6VN/cJ7cMTgOHEHQaGGOA604TLZx+i5EUvCg9Jj+cYnOe9 d/v1JgnKQSGi0SL/+yfJ9tjXt6ulicwceqbIWhGDkaA+hNZYx5VBmAJl+Xwi09YgNt qjdQXzhKbiqbT4K/ltFEpalpTh+fXQQ2Jm9jxW0ThVeVbO1hgNcelxFn60PXeXonFD rN5YfzqaUe5WXuzD4dPE3iEE3w0olXXGNrSXOU8dvCDVm3KVddVWmBZnjpTiI76GMR LldJIA42jR0RooGlMrcLqdbwytE1MVaLxKsxR7OTpOABr7MdYj+gUu1sHbfLwY0CzT rHAi25s6wMYRQ== Received: from yukiji.home (amontpellier-657-1-116-247.w83-113.abo.wanadoo.fr [83.113.51.247]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: laeyraud) by bali.collaboradmins.com (Postfix) with ESMTPSA id 41F0617E13F9; Wed, 17 Dec 2025 11:19:41 +0100 (CET) From: Louis-Alexis Eyraud Date: Wed, 17 Dec 2025 11:19:05 +0100 Subject: [PATCH v2 06/12] arm64: dts: mediatek: mt8390-genio-common: Enable HDMI output Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20251217-mtk-genio-evk-hdmi-support-v2-6-a994976bb39a@collabora.com> References: <20251217-mtk-genio-evk-hdmi-support-v2-0-a994976bb39a@collabora.com> In-Reply-To: <20251217-mtk-genio-evk-hdmi-support-v2-0-a994976bb39a@collabora.com> To: Chunfeng Yun , Vinod Koul , Neil Armstrong , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Chun-Kuang Hu , Philipp Zabel , Guillaume Ranquet Cc: kernel@collabora.com, Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Louis-Alexis Eyraud X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1765966775; l=4058; i=louisalexis.eyraud@collabora.com; s=20250113; h=from:subject:message-id; bh=tvaehzMkqfYCKCJ6Z6JeDcEahAcXLZ26L71FY8FX9n8=; b=m93+1AytD0vl+xyLNbckUMdjGneuDB88dGZzXe08hvJBwBY3x3NIiKWoAgS5f4XMljfL1HhoP 63HxPhXO2JeCl9vypcm8lkSYGNZ8Au1z3iGRdvdBa8vcnPxSEzxqWYO X-Developer-Key: i=louisalexis.eyraud@collabora.com; a=ed25519; pk=CHFBDB2Kqh4EHc6JIqFn69GhxJJAzc0Zr4e8QxtumuM= From: AngeloGioacchino Del Regno Add a node for the HDMI-A connector found on this board, then configure the display pipeline and enable the required DPI1 interface, HDMI controller, its integrated DDC and the HDMI PHY to enable support for the HDMI output provided by these EVKs. Signed-off-by: AngeloGioacchino Del Regno [Louis-Alexis Eyraud: reworded subject and description] Signed-off-by: Louis-Alexis Eyraud --- .../boot/dts/mediatek/mt8390-genio-common.dtsi | 141 +++++++++++++++++= ++++ 1 file changed, 141 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8390-genio-common.dtsi b/arch/a= rm64/boot/dts/mediatek/mt8390-genio-common.dtsi index a2cdecd2b9034e2f295d817e846d6ed1845e686a..5fa1f5fbad18f2bf9b153ae9a02= 9829641e43023 100644 --- a/arch/arm64/boot/dts/mediatek/mt8390-genio-common.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8390-genio-common.dtsi @@ -55,6 +55,20 @@ dmic_codec: dmic-codec { wakeup-delay-ms =3D <30>; }; =20 + connector { + compatible =3D "hdmi-connector"; + label =3D "hdmi"; + type =3D "a"; + ddc-i2c-bus =3D <&hdmi_ddc>; + hdmi-pwr-supply =3D <&hdmi_phy>; + + port { + hdmi_connector_in: endpoint { + remote-endpoint =3D <&hdmi0_out>; + }; + }; + }; + firmware { optee { compatible =3D "linaro,optee-tz"; @@ -328,6 +342,18 @@ &dither0_out { remote-endpoint =3D <&dsi0_in>; }; =20 +&dpi1 { + status =3D "okay"; +}; + +&dpi1_in { + remote-endpoint =3D <&merge5_out>; +}; + +&dpi1_out { + remote-endpoint =3D <&hdmi0_in>; +}; + &gamma0_out { remote-endpoint =3D <&postmask0_in>; }; @@ -337,6 +363,55 @@ &gpu { status =3D "okay"; }; =20 +ðdr0 { + ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + + port@0 { + #address-cells =3D <1>; + #size-cells =3D <0>; + reg =3D <0>; + + ethdr0_in: endpoint@1 { + reg =3D <1>; + remote-endpoint =3D <&vdosys1_ep_ext>; + }; + }; + + port@1 { + #address-cells =3D <1>; + #size-cells =3D <0>; + reg =3D <1>; + + ethdr0_out: endpoint@1 { + reg =3D <1>; + remote-endpoint =3D <&merge5_in>; + }; + }; + }; +}; + +&hdmi { + pinctrl-names =3D "default"; + pinctrl-0 =3D <&hdmi_pins>; + status =3D "okay"; +}; + +&hdmi0_in { + remote-endpoint =3D <&dpi1_out>; +}; + +&hdmi0_out { + remote-endpoint =3D <&hdmi_connector_in>; +}; + +&hdmi_phy { + pinctrl-names =3D "default"; + pinctrl-0 =3D <&hdmi_vreg_pins>; + status =3D "okay"; +}; + &i2c0 { pinctrl-names =3D "default"; pinctrl-0 =3D <&i2c0_pins>; @@ -475,6 +550,35 @@ &i2c6 { status =3D "okay"; }; =20 +&merge5 { + ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + + port@0 { + #address-cells =3D <1>; + #size-cells =3D <0>; + reg =3D <0>; + + merge5_in: endpoint@1 { + reg =3D <1>; + remote-endpoint =3D <ðdr0_out>; + }; + }; + + port@1 { + #address-cells =3D <1>; + #size-cells =3D <0>; + reg =3D <1>; + + merge5_out: endpoint@1 { + reg =3D <1>; + remote-endpoint =3D <&dpi1_in>; + }; + }; + }; +}; + &mfg0 { domain-supply =3D <&mt6359_vproc2_buck_reg>; }; @@ -727,6 +831,31 @@ pins-txd { }; }; =20 + hdmi_vreg_pins: hdmi-vreg-pins { + pins-pwr { + pinmux =3D ; + bias-disable; + }; + }; + + hdmi_pins: hdmi-pins { + pins-hotplug { + pinmux =3D ; + bias-pull-down; + }; + + pins-cec { + pinmux =3D ; + bias-disable; + }; + + pins-ddc { + pinmux =3D , + ; + drive-strength =3D <10>; + }; + }; + i2c0_pins: i2c0-pins { pins { pinmux =3D , @@ -1286,6 +1415,18 @@ connector { }; }; =20 +&vdosys1 { + port { + #address-cells =3D <1>; + #size-cells =3D <0>; + + vdosys1_ep_ext: endpoint@1 { + reg =3D <1>; + remote-endpoint =3D <ðdr0_in>; + }; + }; +}; + &xhci0 { status =3D "okay"; }; --=20 2.52.0