From nobody Fri Dec 19 21:58:31 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 9065C329C65; Tue, 9 Dec 2025 16:34:51 +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=1765298094; cv=none; b=V0BjTJNQa+/FCvVoYUpOI+TOAPguR2z3OJ5s+mdbp7s7BEVvR/XWkjl6XmRq6U64eqGkUCi3LIZsW8jRmJh59liBzNDPpSNo7Fy/Ee5Ab/G06rHnf5UjIt9ZP7Yu30CjDS8NEXsN+VkqrPMWjbVvH2jaivj+eLknZRMaxiv0d1o= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765298094; c=relaxed/simple; bh=FRKo1AwARMqoLFZEk9QOpazS6ahQf/BJkIKaYNCuSC0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Nfnc7hjGoGkwOIQMftTccGGL854Ii/QAkNqsD70WvYJTrs0wETc0h3XoFpQpCMi5ITCdsP37O2O4kLqqeNG2h9Xh9KUN16TcFSsoUu7+hoEdxphaA5uvkriboclPyF5mJjG7lfhE8/wuhNruWGo+N/8qKNIIJes1UUt0IPy280A= 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=KPh1k2JP; 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="KPh1k2JP" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1765298090; bh=FRKo1AwARMqoLFZEk9QOpazS6ahQf/BJkIKaYNCuSC0=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=KPh1k2JPrEfbnr9WiA4BOo1Dh88ZxnWBRrro3fx3qrWJS8aIGzPD6TXxtLQxPXMqM wvWhfmrXJL2OvowGk9jJkFEPeiH58nYrd0GpYv08XfC5VPh9MQqqIlEXzWcY0tebpE XMZ6iH2FJ5wRcEq9jZneLmuoC/0Wt/eV2ZZeyNa6tMYADbv/4gaTVuvs/zypGMEImk 6N4mhnBMkAoPcnVf35DRSmWyK+TiVs+Kv7BhWC7A7VVHESEBCYGVqwrrjEbpp8sCtH UyL9cTZ4yIw0/HJrSr2sDhr5Emt0ZDeIDdYwRW5ovPzC900/99tV3TGINkOTodDKEp pGWpy7rj+34iQ== 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 4F72117E1572; Tue, 9 Dec 2025 17:34:49 +0100 (CET) From: Louis-Alexis Eyraud Date: Tue, 09 Dec 2025 17:34:36 +0100 Subject: [PATCH 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: <20251209-mtk-genio-evk-hdmi-support-v1-6-9a6106effba6@collabora.com> References: <20251209-mtk-genio-evk-hdmi-support-v1-0-9a6106effba6@collabora.com> In-Reply-To: <20251209-mtk-genio-evk-hdmi-support-v1-0-9a6106effba6@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=1765298083; l=4058; i=louisalexis.eyraud@collabora.com; s=20250113; h=from:subject:message-id; bh=tvaehzMkqfYCKCJ6Z6JeDcEahAcXLZ26L71FY8FX9n8=; b=doWEPLBwLfmtwSzsnRHzkHB+nRsImGBbOOTIhC+2EcNFKUE52YRv77ALSWS32OjgeH9KsutAK 2xSAo4yHrOxB1JYh87TdcCXsJsVbg6kCJsxqZzbHQpYF/dKBKMPaZrF 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