From nobody Tue Dec 23 09:39:02 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 1995936CDFB; Wed, 17 Dec 2025 10:19:46 +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=1765966789; cv=none; b=s5f0p4VAvdhz4lQJK4aN4Fbv1EUyXHriQClvI/2B/tfxqxA2F86CjUnOdk6Z3NmaiQEbDhrhKZ8VRtVrF4c7CTc5BFZ0jNWY+OXrUDRW+JMsgId5K8KBIfHNaIlJ/2Ek7SL+SHAqkca60qCKHS27Uayzh/fCQfFkh2GK7wP48hw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765966789; c=relaxed/simple; bh=k+v8SYao3ZD64CLFD+XjDGMvWoE/ID1iLX1nmD/fyWk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ZYfAxen5C4hpEjb/vXR+f+KhX1UEQCzjpuj+wRl+M80bFYzSKE+dAJwlhWy0DU+SCitGfnsZMacKcQTIQ06lpT7VMyfixMW+scg0j12bt0QTSsL9VtE7Kg/AJP1tCwV0nPmuwA8L6Mf8HUgvL7f87SWjC0jaNFjI96G8e532mVo= 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=oN0Gpeyr; 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="oN0Gpeyr" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1765966785; bh=k+v8SYao3ZD64CLFD+XjDGMvWoE/ID1iLX1nmD/fyWk=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=oN0GpeyrTaG7FAbrXrOQDRUW8PaNc0qv08Xtp6Ug6ImU8nzcseEHtvuKS+48eytzM 5tDaw053BaWHbN2u5rmYgVn+Xowz/yMLRbFVTHTPS8OE0+NnOSb3xKHJvItn90nZ6P kofqUzQ389+xNcUEf7C0ddnGYF1zZqOVqXTaVbzslIC5B6s3MtzfqqYd5Lr9wTDje6 Vu+srGEOJ2ukqmaLJm+ziKNy3IxCL62j+SOoJb/3jFy1/SwzFo3isSB3c5OaOEDgC4 n1c1mdfzU1QvM4T6Ol1PyAPl2TO7o6zDDnvwVgTwhRQGHmFgGPgT18fQJ5GOH2Dkpm ADpDWYouEQEIA== 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 B5E9F17E1146; Wed, 17 Dec 2025 11:19:44 +0100 (CET) From: Louis-Alexis Eyraud Date: Wed, 17 Dec 2025 11:19:09 +0100 Subject: [PATCH v2 10/12] arm64: dts: mediatek: mt8395-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-10-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=3939; i=louisalexis.eyraud@collabora.com; s=20250113; h=from:subject:message-id; bh=k+v8SYao3ZD64CLFD+XjDGMvWoE/ID1iLX1nmD/fyWk=; b=iCH9l+9ECj5gnRoKQfLZvXchacGc8ddZF3G59cMvsTh43xSFWn0a4o6ef0unqV0vSNnuwJKdZ sWawKAMLLb/C+BIwqG7ehZkrNL08ZA4JnnKlp7GFh0GnhDps9rEF/o1 X-Developer-Key: i=louisalexis.eyraud@collabora.com; a=ed25519; pk=CHFBDB2Kqh4EHc6JIqFn69GhxJJAzc0Zr4e8QxtumuM= Add a definition for the on-board HDMI connector, enable and add the relevant configuration for the HDMI PHY and controller, and define the pins used by those. Signed-off-by: Louis-Alexis Eyraud --- .../boot/dts/mediatek/mt8395-genio-common.dtsi | 142 +++++++++++++++++= ++++ 1 file changed, 142 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8395-genio-common.dtsi b/arch/a= rm64/boot/dts/mediatek/mt8395-genio-common.dtsi index 2b7167804e71d0ced33c048ecb2040667b5fece1..345fc5ac9e039de8660ae325f36= ae6265ef3a7c8 100644 --- a/arch/arm64/boot/dts/mediatek/mt8395-genio-common.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8395-genio-common.dtsi @@ -26,6 +26,20 @@ chosen { stdout-path =3D "serial0:921600n8"; }; =20 + connector { + compatible =3D "hdmi-connector"; + label =3D "hdmi"; + type =3D "a"; + ddc-i2c-bus =3D <&hdmitx_ddc>; + hdmi-pwr-supply =3D <&hdmi_phy>; + + port { + hdmi_connector_in: endpoint { + remote-endpoint =3D <&hdmi0_out>; + }; + }; + }; + firmware { optee { compatible =3D "linaro,optee-tz"; @@ -247,6 +261,18 @@ &dmic_codec { wakeup-delay-ms =3D <200>; }; =20 +&dpi1 { + status =3D "okay"; +}; + +&dpi1_in { + remote-endpoint =3D <&merge5_out>; +}; + +&dpi1_out { + remote-endpoint =3D <&hdmi0_in>; +}; + &dsi0 { #address-cells =3D <1>; #size-cells =3D <0>; @@ -313,6 +339,35 @@ eth_phy0: ethernet-phy@1 { }; }; =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>; + }; + }; + }; +}; + &gamma0_out { remote-endpoint =3D <&dither0_in>; }; @@ -329,6 +384,27 @@ &i2c0 { status =3D "okay"; }; =20 +&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"; +}; + &i2c1 { clock-frequency =3D <400000>; pinctrl-0 =3D <&i2c1_pins>; @@ -533,6 +609,35 @@ mt6360_ssusb_sbu_ep: endpoint { }; }; =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 <&mt6315_7_vbuck1>; }; @@ -762,6 +867,31 @@ pins { }; }; =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-ddc { + pinmux =3D , + ; + drive-strength =3D <10>; + }; + + pins-cec { + pinmux =3D ; + bias-disable; + }; + }; + i2c0_pins: i2c0-pins { pins { pinmux =3D , @@ -1212,6 +1342,18 @@ vdosys0_ep_main: endpoint@0 { }; }; =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