From nobody Tue Nov 24 11:35:59 2026 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1795462693; b=Cty9ekH7a5rBuIUQ4d0QvlB+2O9pIRiidvGhR+sRg2i+FN7QP60iXCvkdjRHIhjcs48t HOgH4B5Ghn3gAIm1XEX0SKv/5J6NP1ibWePDK/Pce5hzuOhalbRJacwl/KljjNUfvk5Xn gbObBi2HiV5WyeXeYiz1rUcOgdQxrEUP3UEBtvQUNY4nPU9za82wGDUyHZQgyX71sPOA5 ZGRww6OhWM/WDpaavLmzHjA9p8GgNohG+UARvcjQWyfM8vnZyT1tx8wswL7EQI7Utlela 8NWwapH4slBOMHkDovkfkMRbMoaO4N63V3agVoZaDvFrDaKfES7Tr2/KcYWoHEM3zOw== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795462693; h=Received:DKIM-Signature:Received:From:Date:Subject:MIME-Version: Content-Type:Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=NgtfBGZW6JnOX8QXxkHMy03vg6zeloIYXjLXT43yxao=; b=wZqD2XbRdxg3wQ0VftyMSdaBJ9dnfzX7JqhmoftuziTecR/2gSeIzQ1sNtnJG7ORxjI7 RXtOc1KzOYVl1GugLYCn+25Pkaegazwr5TMYF/Kl/HGYAxIt9cGWmvMfOG7TSMfF0S6Yc NAdYjpAHjKE1X68/1xrdUIiXKGBvKutk9Vz4o3Elzn2G48BwH28+X+TVR4ShxLb3z4GYn 67EUdzL6CRGfgal7Wlm7l4P9iU76FsaSoMBPCWLwpVy4T5ylsRhgRoiFqRpZVN6J7naX4 PbfsNasPi/gppur3/F3WkTawXcJcNGP224qvNhLtbSmuq+T03+uOhRpe0ihidik3XGw== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=JJAVg+eq; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B23DF606A6A8; Mon, 23 Nov 2026 19:38:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=JJAVg+eq Authentication-Results: smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 ARC-Seal: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; cv=none; t=1795462693; b=n3+/rrp18FUVCHC6Oh8e9F/y7nbL+KpvK22nmNwjVOwGXjmU13CuFVwzo3lxcnYMDgKF ridJ2Rk43iVmS/xBIXoCVktpzgD6u5iyZJGxa1y7hwq4o8W1AbN0cokTY8MSNyTfmJMOv /ur0JDjnUCQ8EtOujglQyuRckjRv3+/A+IHplQ8P2EqGqfL1Ikuf7iElSbCvIVCXu5kw6 EJdbH9r9KGE3FZ9WJCzvqwWGfCnqkqmYLXBY+2JgiuuewOjXc9msBLX7P4m/s1msP8RBX peY/NnpjflOZFDX64Bz1FOmBBwY4aetOMrlUfAs4U/UB+E4ltiykH1f61tcnPxQM+FA== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1795462693; h=DKIM-Signature:Received:From:Date:Subject:MIME-Version:Content-Type: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=NgtfBGZW6JnOX8QXxkHMy03vg6zeloIYXjLXT43yxao=; b=g5bYXM3emvZ4jKXnzo+SkVg81zeS1YZ5oAtzcw0t4uGtOZBbFK8QfnjmTOZMLk++kbgC C5GK125BhmSZm/24/vWQTwhNWaADScloZilhqbIQkhC0nu6Pbm5svQWDFVxM6Gd9HP4Nv FgXNVpC2ha/dovYZyOkReZlog8aiD+OS1b4LtRJr4VF40wR19cyupvrDQ2/DCxa4PXvbP 6DEtRWwrMA0YDX4DLR9q2ld+PWFP9xVwrY87zo7gYIaoa6R8Koml2srO1w3hILXMeNbHe 1mRilUOcUsm1ms7rUQuGOaibhO5WdWQH9c5upL8jR2J06THj/S2lD9TG8ERvYzXDSGw== ARC-Authentication-Results: i=1; smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 Received: from lkml.kernel.org (nexus.subspace.kernel.org [100.80.115.77]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.kernel.org (Postfix) with ESMTPS id 5F2BF1F000D2; Mon, 23 Nov 2026 19:38:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795462693; bh=NgtfBGZW6JnOX8QXxkHMy03vg6zeloIYXjLXT43yxao=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=JJAVg+eqK3xuUrAdKlxpECPFojPb9jlpNoroGKqxsoeVGxStdlEW8ocKvJSY1pGNp DXNDY5I7UiNbchqMyyQsa68D9KhnU4oruQRbRsHK51GcRCJhrTDXlGVR1upsN56QWJ 76UkY2AYkeaWpp+Tb8V6cPoLR1zTI3oMc+WIF8wgu1WqynFBD55LHnio9U/S7Gq2X0 hYjVfT57WvY7s9P8q8PY1Hg6TTquBrL9ma1AoDUizX9OhGelFLF59T/qpNHp4JDKPp PR33mO0YXEcDXok1UeZalnJxg6fsp8J/f6XcfFGTqkLeLdLVzEuD2tQJZofu9VzIm+ OJhpct1pLqVUg== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id BA95A4C680; Mon, 23 Nov 2026 19:38:00 +0000 (UTC) From: Ronald Claveau via B4 Relay Date: Mon, 23 Nov 2026 20:37:33 +0100 Subject: [PATCH v4 01/11] dt-bindings: soc: amlogic: meson-gx-hhi-sysctrl: Fix compatible matching in conditionals X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Message-Id: <20261123-meson-drm-create-hdmitx-phy-v4-1-3fb94f5534ca@aliel.fr> References: <20261123-meson-drm-create-hdmitx-phy-v4-0-3fb94f5534ca@aliel.fr> In-Reply-To: <20261123-meson-drm-create-hdmitx-phy-v4-0-3fb94f5534ca@aliel.fr> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Vinod Koul , Manivannan Sadhasivam , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Ulf Hansson Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, dri-devel@lists.freedesktop.org, Ronald Claveau , linux-pm@vger.kernel.org X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3283; i=linux-kernel-dev@aliel.fr; h=from:subject:message-id; bh=PVKFWIK5TVZ+BrIG2D/sPckomoO1CwEMBpgyzjwKon8=; b=owGbwMvMwCWm1SvKXP3cUInxtFoSQzbLNLYmrzWx6xesXXrHp0OJb+JkngevKnfdfl3Qvjdfq mz3Z4nDHaUsDGJcDLJiiiz9cy1PvLt89MzXPeopMHNYmUCGMHBxCsBEJnky/OHtWfkk//PzqSd6 OyeETfyYP/158dq4CnkxkcOCVzsivrIwMiwz7bwht3NXW+43V5HJbY88wr4dW/Dtqpg3+8f1B6u OirMAAA== X-Developer-Key: i=linux-kernel-dev@aliel.fr; a=openpgp; fpr=DFD863F61375BF917F0012173953305EF1D0EC3E X-Endpoint-Received: by B4 Relay for linux-kernel-dev@aliel.fr/default with auth_id=744 X-Original-From: Ronald Claveau Reply-To: linux-kernel-dev@aliel.fr Content-Transfer-Encoding: quoted-printable From: Ronald Claveau The conditional schemas select on "compatible" with a bare enum. On a list such as: compatible =3D "amlogic,meson-gx-hhi-sysctrl", "syscon", "simple-mfd"; an enum applied to the whole array only matches single-entry lists, so the if: blocks never match as intended and the per-variant constraints are not applied reliably. Wrap the enums in "contains" so that the conditions match on any entry of the compatible list. Doing so exposes the "phy" child node of "amlogic,meson-gx-hhi-sysctrl": it was forbidden (phy: false), but some DT legitimately describe an "amlogic,g12a-mipi-dphy-analog" PHY node under this system controller, which resulted in dtbs_check warnings such as: system-controller@0 (amlogic,meson-gx-hhi-sysctrl): False schema does not allow {'compatible': ['amlogic,g12a-mipi-dphy-analog'], '#phy-cells': 0, ...} Allow the phy child node for amlogic,meson-gx-hhi-sysctrl by referencing the amlogic,g12a-mipi-dphy-analog binding instead of rejecting it. Signed-off-by: Ronald Claveau --- .../soc/amlogic/amlogic,meson-gx-hhi-sysctrl.yaml | 32 +++++++++++++-----= ---- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/Documentation/devicetree/bindings/soc/amlogic/amlogic,meson-gx= -hhi-sysctrl.yaml b/Documentation/devicetree/bindings/soc/amlogic/amlogic,m= eson-gx-hhi-sysctrl.yaml index f3a85c67ce8a..285edac4c082 100644 --- a/Documentation/devicetree/bindings/soc/amlogic/amlogic,meson-gx-hhi-sy= sctrl.yaml +++ b/Documentation/devicetree/bindings/soc/amlogic/amlogic,meson-gx-hhi-sy= sctrl.yaml @@ -40,8 +40,9 @@ allOf: - if: properties: compatible: - enum: - - amlogic,meson-hhi-sysctrl + contains: + enum: + - amlogic,meson-hhi-sysctrl then: properties: clock-controller: @@ -53,9 +54,10 @@ allOf: - if: properties: compatible: - enum: - - amlogic,meson-gx-hhi-sysctrl - - amlogic,meson-axg-hhi-sysctrl + contains: + enum: + - amlogic,meson-gx-hhi-sysctrl + - amlogic,meson-axg-hhi-sysctrl then: properties: clock-controller: @@ -67,9 +69,10 @@ allOf: - if: properties: compatible: - enum: - - amlogic,meson-gx-ao-sysctrl - - amlogic,meson-axg-ao-sysctrl + contains: + enum: + - amlogic,meson-gx-ao-sysctrl + - amlogic,meson-axg-ao-sysctrl then: properties: clock-controller: @@ -81,17 +84,20 @@ allOf: - if: properties: compatible: - enum: - - amlogic,meson-gx-hhi-sysctrl + contains: + enum: + - amlogic,meson-gx-hhi-sysctrl then: properties: - phy: false + phy: + $ref: /schemas/phy/amlogic,g12a-mipi-dphy-analog.yaml =20 - if: properties: compatible: - enum: - - amlogic,meson-axg-hhi-sysctrl + contains: + enum: + - amlogic,meson-axg-hhi-sysctrl then: properties: phy: --=20 2.56.1 From nobody Tue Nov 24 11:35:59 2026 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1795462686; b=VoTAcLaCy2tUfb64m/i7k6VFAhplG16v00sFZNmGDLWNkoJ4xBi1VmI0+B6cm3WRgJ3W oMFjbfsA4FZ7aYCKNvDwis57lmfBj0apj98ZHggfc/eLPusUlQapozIKws1RTACpbmB/B dxzToabhJ6/ggoKEgZjQUQPiYZn5TcBXlozSCqpwZTU0Yo5anfQokRjmXlMbmxepYPOdT iFp/oKPxqqwRshUVUSPhT2haxAJPtlVBkQGSHZ0/Zh8T5MG98wE3OB281vVTgbILUV9jH 1+fzbjyb9Ty8dTW1aGumngy2eAY74rLYs8yeW3bg/XJGyBs6b7MZO9Bc8Ytjk2up+uQ== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795462686; h=Received:DKIM-Signature:Received:From:Date:Subject:MIME-Version: Content-Type:Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=xA1P8zsvk6kqc3xIgg8qAOvV3prxwK2TGoWpI0Dqwlc=; b=Lpd9yyApYC4fiFOZr3BF6f86J+yX6TGMd+IHx/IATJpeCZKvxA/24PV3ToEKmGgHCAN1 pGE8Sx5tpyWNN6dEcUmTUy+Byf6Q7X0dv+UcdSiVczlWeQNHSb00+f/dpSi9RlnrAYOMI 2LUzim2ZT/0ONFBNBnHvNt/2+MlYl7L2ygBgNZ2T7mynMRMEv/0n6yvR73rCIVsnFqyXo DOSQh0Fq+cSN+S80YnWkfDQtnwbD+lobycaLa0hlwGX/geH6rcPgTPUEEb1OxNKaPPVUd kBo4AjY9vvaK7XwfiYyrgjXvmaVmRWO3n5V/wKReNAIZxRKmvkNpv8/nSQODgQMQIWQ== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=nvOF7v5K; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4035E606A31F; Mon, 23 Nov 2026 19:38:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=nvOF7v5K Authentication-Results: smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 ARC-Seal: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; cv=none; t=1795462685; b=pibZ8y0oohBd1zCUOTTNwmdWyOVIaoimFh0swhKFmr5i/gpMI+dlO7DwGb68ylkbAwvS ckPFZLBQPK4rrfzTk3XxaFDhW109koA3bDq0mapGFCEEYw0L09C0ENsDHWcz8DBeAxCcr +lGeg3m4OzvkWrNBl8br/5S7hCe+5kaEStEv1+PPxvapgRpshq92webPaFCl3UaC0gU6v u+qzGL4yXAtwf3hLpqUo8IMmCaPso4lIoCrA+TyFqnCRlylpfAtoMHLoY2sHuCrbSd7/Y yJ1/lCr81E14AT+vKWrd1n8QB0ohFEFNH3dHmmgML25DRdMUR9D4dqWMpYRDaDF+7zQ== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1795462685; h=DKIM-Signature:Received:From:Date:Subject:MIME-Version:Content-Type: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=xA1P8zsvk6kqc3xIgg8qAOvV3prxwK2TGoWpI0Dqwlc=; b=drNHsZDMYMKb8eGuPVh+b73Bwhrh9TUE2WHj1fhj0Ht3uazGilSZDodRjVPxXjUDKAbB c7qdskHAlotSkxC/OiJMHIcHg/bGFeoadwMyeNFYpuRX54RVYd2WS8vpwsX1ivOzHmhHz pFPiTUsYWfurCmGkK5/fX0Of0jHf4su4qTi6Z0RiLXpNykzb4pgzDQC/XsIDypNXOBNPv lRI/KNpGt+u4mGaT/CdSL++hPZXgVVDt3XXdjur0h4QCN22mmQP1AOP5RgNZfqTGm6gyr pu71H/2Kloj0KmEnHTkogas2w3xxZane7B7BMCUbMz1ebUOAp+u5B2iO98nnpdaWSKg== ARC-Authentication-Results: i=1; smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 Received: from lkml.kernel.org (nexus.subspace.kernel.org [100.80.115.77]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.kernel.org (Postfix) with ESMTPS id 5F3211F000E0; Mon, 23 Nov 2026 19:38:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795462685; bh=xA1P8zsvk6kqc3xIgg8qAOvV3prxwK2TGoWpI0Dqwlc=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=nvOF7v5K28Nk6gDFlP1vOrDKmKUNi+/tPywjRqPht8gol+7sOAguD1ARWZYRaEfLc eHO4Zd6FzA/yl1dBIxpD0NRoMSDVKWtMt7IQjrVr1AbfSovmYcVHswzd+nHwLRk4rN 6sXChLPmN8SYBeGBQVc52Aksf2aiHW8eg7Nlx3wMgjlEnen69Ekgy5Wu0BJiK/d0S/ z743k7HZfdsHdHKK0nC9em0pt5xMIap6apjDHns2kpyFetbRq9wUNSOrFP6AcfRaWh SEAeB0yec/ZtHR84oknA8ElWGN/y6Qe1e4RMXLe/7zn+ZIB5XKcoQQf+0QZLN5/LVF j68znT2FC8bUg== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id D60E14C691; Mon, 23 Nov 2026 19:38:00 +0000 (UTC) From: Ronald Claveau via B4 Relay Date: Mon, 23 Nov 2026 20:37:34 +0100 Subject: [PATCH v4 02/11] dt-bindings: phy: amlogic: document the Amlogic Meson HDMI TX PHY X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Message-Id: <20261123-meson-drm-create-hdmitx-phy-v4-2-3fb94f5534ca@aliel.fr> References: <20261123-meson-drm-create-hdmitx-phy-v4-0-3fb94f5534ca@aliel.fr> In-Reply-To: <20261123-meson-drm-create-hdmitx-phy-v4-0-3fb94f5534ca@aliel.fr> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Vinod Koul , Manivannan Sadhasivam , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Ulf Hansson Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, dri-devel@lists.freedesktop.org, Ronald Claveau , linux-pm@vger.kernel.org X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1569; i=linux-kernel-dev@aliel.fr; h=from:subject:message-id; bh=OW3BQ47jww+fAV5FJlCwW3Kume/yYrBTmUUehPnw4ZU=; b=owGbwMvMwCWm1SvKXP3cUInxtFoSQzbLNI7KCe1XNXqWXzV+0yNy7H7pgpC6/xOcpuYckKia2 DC9teRPRykLgxgXg6yYIkv/XMsT7y4fPfN1j3oKzBxWJpAhDFycAjAR4eeMDAsPqXUnewa+V5ZT lD/UfrH0Yd3Jp7sCzi1ibzn095Djch9Ghvlt+eG7ZXy03Kyl+llYlOvObfKZueWdSswc1Rb9t/M bGQE= X-Developer-Key: i=linux-kernel-dev@aliel.fr; a=openpgp; fpr=DFD863F61375BF917F0012173953305EF1D0EC3E X-Endpoint-Received: by B4 Relay for linux-kernel-dev@aliel.fr/default with auth_id=744 X-Original-From: Ronald Claveau Reply-To: linux-kernel-dev@aliel.fr Content-Transfer-Encoding: quoted-printable From: Ronald Claveau Add a YAML binding for the HDMI TX PHY found on Amlogic Meson SoCs. It covers the GXBB, GXL and G12A variants, which are described by their own compatible strings: - amlogic,meson-gxbb-hdmi-tx-phy - amlogic,meson-gxl-hdmi-tx-phy - amlogic,meson-g12a-hdmi-tx-phy The PHY is a child of the HHI system controller. Signed-off-by: Ronald Claveau --- .../bindings/phy/amlogic,meson-hdmi-tx-phy.yaml | 33 ++++++++++++++++++= ++++ 1 file changed, 33 insertions(+) diff --git a/Documentation/devicetree/bindings/phy/amlogic,meson-hdmi-tx-ph= y.yaml b/Documentation/devicetree/bindings/phy/amlogic,meson-hdmi-tx-phy.ya= ml new file mode 100644 index 000000000000..c5dd1036c375 --- /dev/null +++ b/Documentation/devicetree/bindings/phy/amlogic,meson-hdmi-tx-phy.yaml @@ -0,0 +1,33 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/amlogic,meson-hdmi-tx-phy.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Amlogic HDMI TX PHY + +maintainers: + - Ronald Claveau + +properties: + compatible: + enum: + - amlogic,meson-gxbb-hdmi-tx-phy + - amlogic,meson-gxl-hdmi-tx-phy + - amlogic,meson-g12a-hdmi-tx-phy + + "#phy-cells": + const: 0 + +required: + - compatible + - "#phy-cells" + +additionalProperties: false + +examples: + - | + hdmi-phy { + compatible =3D "amlogic,meson-gxbb-hdmi-tx-phy"; + #phy-cells =3D <0>; + }; --=20 2.56.1 From nobody Tue Nov 24 11:35:59 2026 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1795462692; b=DD6J/2KJy0wqyXUaxe2gm5l+XJ7D0moLXoLOUSD+NiRF3V0uXEsDlsArIc2miVlugWyo 4ia8GPG99mHAOtXN/8uZWur4F2R40NWazHr5eX7U+tUv1VgIUQvbjZAlLb9nq4RhJ3gHm mY7Zy7ObY8rSVzM61Y7o40JWrfEG8ahnBUlTO6XvPr502GLTQeVZU3r+GF64gKbN3fW2Y ty01UQRP6+rveL1E+hgvTZvFfDUG1bVStwCPV/WOOkHiDGmTP6bMjaddBFVD7lGJ//HT6 Q+m32/aCExlEeM1SK6Wqkg026p8WlE/qgUpcr10ieghq5qKimUkC8TPy7/zy8GNFhnQ== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795462692; h=Received:DKIM-Signature:Received:From:Date:Subject:MIME-Version: Content-Type:Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=09MIVVUaXPmTOAMRCrsbJMFWfzMJrvosN8N7XD44Bng=; b=kbzP6d6JETJroNgZRPDZNpkiWLa69hihQlFJyFAFjHR9DBkHm4Zub6YcrzzteVLDGJtl dGoBaVMyPJYbDah2ZEvJDQP4EKvXGIXk2p/oTJ9y3n3nFjdx9MVXrIHgTn/g03acE3FYQ z0dPzYgFOCRkNFXEKo3NCJ2qzcplcQMHf3ZlQd98mQrIExBob1asahds0eQOizAFRIX+p BCUNXGHU742sDJ7tEC5VEx6ipLtlEVQ0u/GwyPaZyju2SVF6rcGIS0l4YpppOl8hvI1MN EKAwsP3GHQ64NoUlc2HFViwTyL+uzpgpejD9YxTJfOd030cZ0fJzP2uX3ypUn7i1bDg== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=lTr6omkI; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7CEB7606A685; Mon, 23 Nov 2026 19:38:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=lTr6omkI Authentication-Results: smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 ARC-Seal: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; cv=none; t=1795462690; b=3WON6jWbveOba1sR71S9i+MmHPHiA782rYlFQ372TIxD7NjOuTtKpNKfbCTQBjYX25Rd BKfDw9pesFoxhDocMGuxyYphS0EodvRQYKqzMTIGZS2boEOBZdHs7sXebtdz9RSXEyjR6 JYbESV5FbVoZFALKx8s4nvzkwM1NGGz88RM0lPSZy7Fwqw2bftlrOhFhGR2EAOsJ5/lEV 7xdPJ3jkoMjv/QGmw8WN6FoJ77pu2l/lPuvHttd+yMZV0WdW5PGCuRy5IzAjqioK94O+I L5DCJm/D4UyiHiVLTaP4La99wckwmFTZNlv7fw9YiTAD4ccA+vsdza1t5NomncfKreA== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1795462690; h=DKIM-Signature:Received:From:Date:Subject:MIME-Version:Content-Type: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=09MIVVUaXPmTOAMRCrsbJMFWfzMJrvosN8N7XD44Bng=; b=wev9q6RTNjXoWCmw2ZfYUoPH7bnhN511BUnV4ZxdkQNYi9iMUSVX4eAsi9kY+fLxM12G DBRiO/pTjyRHfkqFz7OY2Z/oFR8B194MO6UFYVSZDlownVcUHHnOCymAwRSGwy614zA41 uVEIbVb1tsYF71LGTGe1Oyh2iARhYmspWeWz7jCOp8Vrg0drwX8R7GdHpAag3ZaspDUU5 z17Gf52RsWFFoD5IKkOukPOnQiXPgb4MVfCLtKEXGkIAjdW8TFmWEwnIem0kf4rGu0ZcQ B/gnDnkeFzHtUsS84YwwTsunUJ2aSFF3Odl7SGlwrfDAQu9gGosQ0PTB9r5otoOMDvg== ARC-Authentication-Results: i=1; smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 Received: from lkml.kernel.org (nexus.subspace.kernel.org [100.80.115.77]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.kernel.org (Postfix) with ESMTPS id 766A21F0089E; Mon, 23 Nov 2026 19:38:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795462690; bh=09MIVVUaXPmTOAMRCrsbJMFWfzMJrvosN8N7XD44Bng=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=lTr6omkIeZZzCAyoLNTsOJkt0oPHEV+71NBV2O0Ubt7f7rme8RQWEStUbHn1GhlER ZQiK6Ck1uOTFVeXBvMPxK3YEh5eRBOKsAGrmDNFYo6YKtZejWxiaAuHH0HatQ8VsVK RkBxySLabDLVMIH67ERJD0F5n6q7otO1L8eL1sD6n6ZOWKVbeKJovKONMMRFE/JDxm XdGjNt+BUdGwyxySu719kFb9AYecTxAbjVautwX3QWQ6FK7z8diMZPuWs8ilFKymoK 8ymAn91xPrVcoyPKaBlNxUN/JRxKmOw+8oiZY240iA25MugnLRNX0JitAeBDDuIzfD kMWJtk8mR70Rg== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id F40EE4C695; Mon, 23 Nov 2026 19:38:00 +0000 (UTC) From: Ronald Claveau via B4 Relay Date: Mon, 23 Nov 2026 20:37:35 +0100 Subject: [PATCH v4 03/11] dt-bindings: soc: amlogic: meson-gx-hhi-sysctrl: Add hdmi-phy child node X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Message-Id: <20261123-meson-drm-create-hdmitx-phy-v4-3-3fb94f5534ca@aliel.fr> References: <20261123-meson-drm-create-hdmitx-phy-v4-0-3fb94f5534ca@aliel.fr> In-Reply-To: <20261123-meson-drm-create-hdmitx-phy-v4-0-3fb94f5534ca@aliel.fr> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Vinod Koul , Manivannan Sadhasivam , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Ulf Hansson Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, dri-devel@lists.freedesktop.org, Ronald Claveau , linux-pm@vger.kernel.org X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1884; i=linux-kernel-dev@aliel.fr; h=from:subject:message-id; bh=GJIY+ibCECHLmuzGiUiB/LupTZ5nNvm+rMxqh5qXGxg=; b=owGbwMvMwCWm1SvKXP3cUInxtFoSQzbLNK6/ITdMEzl4Vtf6yXxZpW4ryJ7ecebS0RO3Ngfr9 fHu953ZUcrCIMbFICumyNI/1/LEu8tHz3zdo54CM4eVCWQIAxenAEzEsZXhf2mIisZd1Y91C36U rHrtx9SY1SPgkK9+NZO7wNxadJ6+AsM/u4OR0Qc3N73hDlLmTDZv+VVXLsgZrXPxoSbblL4vq0v ZAA== X-Developer-Key: i=linux-kernel-dev@aliel.fr; a=openpgp; fpr=DFD863F61375BF917F0012173953305EF1D0EC3E X-Endpoint-Received: by B4 Relay for linux-kernel-dev@aliel.fr/default with auth_id=744 X-Original-From: Ronald Claveau Reply-To: linux-kernel-dev@aliel.fr Content-Transfer-Encoding: quoted-printable From: Ronald Claveau The HDMI TX PHY found on Amlogic Meson SoCs is a child of the HHI system controller. Add an optional "hdmi-phy" child node referencing the amlogic,meson-hdmi-tx-phy binding, and add it to the example. The node is forbidden for the other system controller variants. Signed-off-by: Ronald Claveau --- .../bindings/soc/amlogic/amlogic,meson-gx-hhi-sysctrl.yaml | 11 +++++++= ++++ 1 file changed, 11 insertions(+) diff --git a/Documentation/devicetree/bindings/soc/amlogic/amlogic,meson-gx= -hhi-sysctrl.yaml b/Documentation/devicetree/bindings/soc/amlogic/amlogic,m= eson-gx-hhi-sysctrl.yaml index 285edac4c082..97e47592aff2 100644 --- a/Documentation/devicetree/bindings/soc/amlogic/amlogic,meson-gx-hhi-sy= sctrl.yaml +++ b/Documentation/devicetree/bindings/soc/amlogic/amlogic,meson-gx-hhi-sy= sctrl.yaml @@ -36,6 +36,9 @@ properties: phy: type: object =20 + hdmi-phy: + $ref: /schemas/phy/amlogic,meson-hdmi-tx-phy.yaml + allOf: - if: properties: @@ -50,6 +53,7 @@ allOf: =20 pinctrl: false phy: false + hdmi-phy: false =20 - if: properties: @@ -80,6 +84,7 @@ allOf: =20 power-controller: false phy: false + hdmi-phy: false =20 - if: properties: @@ -104,6 +109,7 @@ allOf: oneOf: - $ref: /schemas/phy/amlogic,g12a-mipi-dphy-analog.yaml - $ref: /schemas/phy/amlogic,meson-axg-mipi-pcie-analog.yaml + hdmi-phy: false =20 required: - compatible @@ -155,6 +161,11 @@ examples: clocks =3D <&clk_vpu>, <&clk_vapb>; clock-names =3D "vpu", "vapb"; }; + + hdmi-phy { + compatible =3D "amlogic,meson-g12a-hdmi-tx-phy"; + #phy-cells =3D <0>; + }; }; }; =20 --=20 2.56.1 From nobody Tue Nov 24 11:35:59 2026 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1795462690; b=bKugvorXNA4pxxdIeI0znJUJi1dFIZDk4KO+VyxPEV5QngDt0LGveCfkmUksCO4OHez8 U1bf3ZOdFntbvUI3eQ29RZoniQ6LvRVUspW4RIWJFCKA/ZQBPJ3i4WUfA/jQpiiU85fgx BO8R8uKeWenEf6IlFg9dJyaiQX3OcSK7AIdkMAzqUC0T29uc7djwr2p+qE3sgee3HlHkp feiOAPM226VHk8NeHgi8jxx0hG8LBVj5RrGvACAhgETBzPatJjzqo3c7hPntlEFxInEiZ 2HTqDzM4cLKFQaUtA4NvI4S5Gyms60C/yRzg9c3Urj8BweGy+fS2EC9cFdKO8FpZPBQ== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795462690; h=Received:DKIM-Signature:Received:From:Date:Subject:MIME-Version: Content-Type:Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=FKOXP4yMwPrbJh3eEJzSEbE/Lx582DWty8qBWqfTFF8=; b=WcaoeVlpHkRUpQOU81St7gcLLjAjqtEqBZu6nwy6fAIetCimM0NblgfMEWO7AtWbFwV7 iqCfY0hGbpnzQU84JRYe15UL2r0kRn57sqrDA5tWd96fOXzDAXienEwnuEIywZWTC8iQa w7f6p60PZ4BsxiA9IZmZSB2YJd+EE70Zj2x1kGLNFW/hsT16uqEQz/ihrGG3zxfqSXLoG ZVoAL7sn59BCvz1kTPLqRL0XoqWuMUuSc41eHxsuuFoQmiboEkjjKDN4UPFRpI6kPsCXH tdj6UyUrCOv4Tdgt7J59bFwBLY3ccG2Nwy+HlYx38dEM+JUTh07O1uhnpfH+HBeldOQ== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=bpMLd7vH; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6FD36606A327; Mon, 23 Nov 2026 19:38:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=bpMLd7vH Authentication-Results: smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 ARC-Seal: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; cv=none; t=1795462689; b=SmXrzXRsu9ll+z3FmK4MqX2ZMHSViuqHm76ITMzpVEEknE4BNGIad+dWaYYuISpgykf9 wFR/bPfxspjebGZQv6Km4h9CUybte7xSkJlQbKAwC440cD6WkWnbC5WqruPKc1PgbIL2K oK1lkB1dCIdOTxmDhMnNm7qhA00+uM8mtMODT6ZdU+uDxq8DoRITGE9JL2tWhYmzlAHhw 1zkGq5CpouJwUsjz3HkBk583TzGpBsnkEyT0KheO3UAUx2NA8Re2NpRQfx6tXEG6aWAHS 0PeRjT7zMXhXjfj+vbHysY/+XybHwVGizozrQo1NlwA4KBQD0U1ljXzC8n1EJ3Czi+Q== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1795462689; h=DKIM-Signature:Received:From:Date:Subject:MIME-Version:Content-Type: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=FKOXP4yMwPrbJh3eEJzSEbE/Lx582DWty8qBWqfTFF8=; b=d2mQO6FEnSj5pe+LXQG020V0YAeXAAX76iPkE87fGg3xJSwt57dy2sOyAPi9MMdVeABo raFX4/kecrHQrs30yjF6x5GyAdiWO+uJdJk+Y55VHt/tc5tDcGAc7TpKmKiUAx10iuIxq X5TobYztFRt6CLkSnJ3w5BBCq9fH6ygZZxs7nW8oGCjoLNwZvHWdVNdkrATHvc+qY5/y5 5r4dqxjq+aQCnJMiIfP8c65fX8hMku8E0fKP/iMcK2kw6TgM1cLr09ml+hile+eeA2l41 x6J01Lkw4Jupis0BklNVhkABsG9P04KzQLw/8dEQfg0/BASYskOYbiUIJ0VE7K2VqYQ== ARC-Authentication-Results: i=1; smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 Received: from lkml.kernel.org (nexus.subspace.kernel.org [100.80.115.77]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.kernel.org (Postfix) with ESMTPS id 948D31F008B2; Mon, 23 Nov 2026 19:38:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795462689; bh=FKOXP4yMwPrbJh3eEJzSEbE/Lx582DWty8qBWqfTFF8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=bpMLd7vHe4wJ2w/27HFCUJtfYO38vBaDvMAsQBrIkitu9uNgdb9ko3eKo3oKrFcvr Uu9RsUwfs6NG+ROwn64jgWtuQxF2FXEZC7yQBqQJ3WTYpRE8L0GABaWg/D+tr7kpt3 2MipHpS7q4slyMjt0YOGqV6IxWRzmpImkK9Scifh8zqw/hzu44tINT2hLHOZPvYo/b BowLJOVpB6grplOMVmSDiWijnuDoqdWERIdjd/IxEK2W8yZPmKc1wHv8q//FR3VlAS y5tZ7JNnGafd5JrmF1SWA1SSeNAPOb4/GW42KgKvwmF11b1gBXJeJCPNMcVO0EwYF8 Iy0OimWFpFm1w== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id 1DAF44C699; Mon, 23 Nov 2026 19:38:01 +0000 (UTC) From: Ronald Claveau via B4 Relay Date: Mon, 23 Nov 2026 20:37:36 +0100 Subject: [PATCH v4 04/11] phy: amlogic: Add Meson HDMI TX PHY driver X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Message-Id: <20261123-meson-drm-create-hdmitx-phy-v4-4-3fb94f5534ca@aliel.fr> References: <20261123-meson-drm-create-hdmitx-phy-v4-0-3fb94f5534ca@aliel.fr> In-Reply-To: <20261123-meson-drm-create-hdmitx-phy-v4-0-3fb94f5534ca@aliel.fr> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Vinod Koul , Manivannan Sadhasivam , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Ulf Hansson Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, dri-devel@lists.freedesktop.org, Ronald Claveau , linux-pm@vger.kernel.org X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=12653; i=linux-kernel-dev@aliel.fr; h=from:subject:message-id; bh=vqCPhKL1YPqx9BNZ7Q6idQmOOAu9TDiJSL8M8T35XXE=; b=owGbwMvMwCWm1SvKXP3cUInxtFoSQzbLNG4NFqYVLcuYeo88eHSgv9t+7+qVJd1LjsdemOUbt 1n+e7Z6RykLgxgXg6yYIkv/XMsT7y4fPfN1j3oKzBxWJpAhDFycAjCR/9yMDEv2MN22i9/3o0tz x2kWxorN4W/9mtzZHgr4l3/7qC0VJcXwVzpi3oITk2R+Gata5jEd1+05tUZc56elKNOc6duaDLZ OYQEA X-Developer-Key: i=linux-kernel-dev@aliel.fr; a=openpgp; fpr=DFD863F61375BF917F0012173953305EF1D0EC3E X-Endpoint-Received: by B4 Relay for linux-kernel-dev@aliel.fr/default with auth_id=744 X-Original-From: Ronald Claveau Reply-To: linux-kernel-dev@aliel.fr Content-Transfer-Encoding: quoted-printable From: Ronald Claveau Add a PHY driver for the HDMI TX PHY found on Amlogic GXBB, GXL, GXM and G12A SoCs. The PHY is controlled through the HHI_HDMI_PHY_CNTL0..5 registers of the HHI system controller, of which the PHY node is a child, so the regmap is obtained from the parent syscon. The driver implements the generic PHY API with the HDMI configuration options: .validate() accepts only 8 bpc and a TMDS character rate covered by the per-SoC table, .configure() programs the analog settings matching that rate, and .power_on()/.power_off() handle the reset sequence and the return to the initial state. The per-SoC register values and rate thresholds are taken from the existing HDMI TX code, so that the PHY handling can be moved out of the display driver. For DTs that do not provide a "phys" property on the HDMI TX node, export meson_hdmi_phy_create_legacy() so that the display driver can still create the PHY itself. It is marked as deprecated and will be removed together with the fallback in meson_dw_hdmi.c. Signed-off-by: Ronald Claveau --- drivers/phy/amlogic/Kconfig | 11 ++ drivers/phy/amlogic/Makefile | 1 + drivers/phy/amlogic/phy-meson-hdmi-tx.c | 319 ++++++++++++++++++++++++++++= ++++ include/linux/phy/phy-meson-hdmi-tx.h | 19 ++ 4 files changed, 350 insertions(+) diff --git a/drivers/phy/amlogic/Kconfig b/drivers/phy/amlogic/Kconfig index ce7ba3eb2a8e..14fcde8d88bc 100644 --- a/drivers/phy/amlogic/Kconfig +++ b/drivers/phy/amlogic/Kconfig @@ -105,3 +105,14 @@ config PHY_MESON_AXG_MIPI_DPHY Enable this to support the Meson MIPI DPHY found in Meson AXG SoCs. If unsure, say N. + +config PHY_MESON_HDMI_TX + tristate "Meson HDMI TX PHY driver" + depends on ARCH_MESON || COMPILE_TEST + depends on OF + select GENERIC_PHY + select MFD_SYSCON + help + Enable this to support the HDMI TX PHY found on Amlogic + GXBB, GXL, GXM and G12A SoCs. + If unsure, say N. diff --git a/drivers/phy/amlogic/Makefile b/drivers/phy/amlogic/Makefile index 91e3b9790c03..fa7165700a93 100644 --- a/drivers/phy/amlogic/Makefile +++ b/drivers/phy/amlogic/Makefile @@ -8,3 +8,4 @@ obj-$(CONFIG_PHY_MESON_G12A_MIPI_DPHY_ANALOG) +=3D phy-meso= n-g12a-mipi-dphy-analog obj-$(CONFIG_PHY_MESON_AXG_PCIE) +=3D phy-meson-axg-pcie.o obj-$(CONFIG_PHY_MESON_AXG_MIPI_PCIE_ANALOG) +=3D phy-meson-axg-mipi-pcie-= analog.o obj-$(CONFIG_PHY_MESON_AXG_MIPI_DPHY) +=3D phy-meson-axg-mipi-dphy.o +obj-$(CONFIG_PHY_MESON_HDMI_TX) +=3D phy-meson-hdmi-tx.o diff --git a/drivers/phy/amlogic/phy-meson-hdmi-tx.c b/drivers/phy/amlogic/= phy-meson-hdmi-tx.c new file mode 100644 index 000000000000..a925d02007a9 --- /dev/null +++ b/drivers/phy/amlogic/phy-meson-hdmi-tx.c @@ -0,0 +1,319 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * Amlogic Meson HDMI TX PHY driver (GXBB / GXL / GXM / G12A) + * + * Copyright (C) 2026 Ronald Claveau + * + * Based on meson_dw_hdmi.c: + * Copyright (C) 2016 BayLibre, SAS + * Author: Neil Armstrong + * Copyright (C) 2015 Amlogic, Inc. All rights reserved. + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#define HHI_HDMI_PHY_CNTL0 0x3a0 /* 0xe8 */ +#define HHI_HDMI_PHY_CNTL1 0x3a4 /* 0xe9 */ +#define PHY_CNTL1_INIT 0x03900000 +#define PHY_INVERT BIT(17) +#define PHY_CNTL1_CTRL_MASK GENMASK(3, 0) +#define PHY_CNTL1_RESET 0xf /* enable + software reset */ +#define PHY_CNTL1_UNRESET 0xe /* enable + unreset */ +#define HHI_HDMI_PHY_CNTL2 0x3a8 /* 0xea */ +#define HHI_HDMI_PHY_CNTL3 0x3ac /* 0xeb */ +#define HHI_HDMI_PHY_CNTL4 0x3b0 /* 0xec */ +#define HHI_HDMI_PHY_CNTL5 0x3b4 /* 0xed */ + +/* The code resets the PHY 3 times in a row */ +#define PHY_RESET_COUNT 3 + +struct meson_hdmi_phy_rate { + unsigned int min_rate; /* TMDS character rate, in Hz */ + u32 cntl0; + u32 cntl3; + u32 cntl5; /* only used if has_cntl5 */ +}; + +struct meson_hdmi_phy_data { + const struct meson_hdmi_phy_rate *rates; + unsigned int num_rates; + unsigned int max_rate; /* Hz, TMDS character rate maximum */ + bool has_cntl5; + u32 cntl0_init; + u32 cntl1_init; +}; + +struct meson_hdmi_phy { + struct regmap *hhi; + const struct meson_hdmi_phy_data *data; +}; + +/* GXBB */ +static const struct meson_hdmi_phy_rate gxbb_rates[] =3D { + /* 5.94Gbps, 3.7125Gbps */ + { 371250000, 0x33353245, 0x2100115b }, + /* 2.97Gbps */ + { 297000000, 0x33634283, 0xb000115b }, + /* 1.485Gbps, down to 159Mbps */ + { 15900000, 0x33632122, 0x2000115b }, +}; + +/* GXL / GXM */ +static const struct meson_hdmi_phy_rate gxl_rates[] =3D { + /* 5.94Gbps, 3.7125Gbps */ + { 371250000, 0x333d3282, 0x2136315b }, + /* 2.97Gbps */ + { 297000000, 0x33303382, 0x2036315b }, + /* 1.485Gbps */ + { 148500000, 0x33303362, 0x2016315b }, + /* 742.5Mbps, down to 159Mbps */ + { 15900000, 0x33604142, 0x0016315b }, +}; + +/* G12A */ +static const struct meson_hdmi_phy_rate g12a_rates[] =3D { + /* 5.94Gbps, 3.7125Gbps */ + { 371250000, 0x37eb65c4, 0x2ab0ff3b, 0x0000080b }, + /* 2.97Gbps */ + { 297000000, 0x33eb6262, 0x2ab0ff3b, 0x00000003 }, + /* 1.485Gbps, down to 159Mbps */ + { 15900000, 0x33eb4242, 0x2ab0ff3b, 0x00000003 }, +}; + +static const struct meson_hdmi_phy_data gxbb_data =3D { + .rates =3D gxbb_rates, + .num_rates =3D ARRAY_SIZE(gxbb_rates), + .max_rate =3D 600000000, /* HDMI 2.0 */ + .cntl0_init =3D 0x0, + .cntl1_init =3D PHY_CNTL1_INIT | PHY_INVERT, +}; + +static const struct meson_hdmi_phy_data gxl_data =3D { + .rates =3D gxl_rates, + .num_rates =3D ARRAY_SIZE(gxl_rates), + .max_rate =3D 600000000, /* HDMI 2.0 */ + .cntl0_init =3D 0x0, + .cntl1_init =3D PHY_CNTL1_INIT, +}; + +static const struct meson_hdmi_phy_data g12a_data =3D { + .rates =3D g12a_rates, + .num_rates =3D ARRAY_SIZE(g12a_rates), + .max_rate =3D 600000000, /* HDMI 2.0 */ + .has_cntl5 =3D true, + .cntl0_init =3D 0x000b4242, /* Bandgap */ + .cntl1_init =3D PHY_CNTL1_INIT, +}; + +static const struct meson_hdmi_phy_rate * +meson_hdmi_phy_find_rate(const struct meson_hdmi_phy_data *data, u64 rate) +{ + unsigned int i; + + if (rate > data->max_rate) + return NULL; + + for (i =3D 0; i < data->num_rates; i++) + if (rate >=3D data->rates[i].min_rate) + return &data->rates[i]; + + return NULL; +} + +/* Fallback to init mode: CNTL1 first, then CNTL0 (order matters) */ +static void meson_hdmi_phy_set_init_state(struct meson_hdmi_phy *priv) +{ + regmap_write(priv->hhi, HHI_HDMI_PHY_CNTL1, priv->data->cntl1_init); + regmap_write(priv->hhi, HHI_HDMI_PHY_CNTL0, priv->data->cntl0_init); +} + +static int meson_hdmi_phy_init(struct phy *phy) +{ + struct meson_hdmi_phy *priv =3D phy_get_drvdata(phy); + + meson_hdmi_phy_set_init_state(priv); + + return 0; +} + +static int meson_hdmi_phy_configure(struct phy *phy, + union phy_configure_opts *opts) +{ + struct meson_hdmi_phy *priv =3D phy_get_drvdata(phy); + const struct meson_hdmi_phy_rate *r; + + r =3D meson_hdmi_phy_find_rate(priv->data, opts->hdmi.tmds_char_rate); + if (!r) + return -EINVAL; + + regmap_write(priv->hhi, HHI_HDMI_PHY_CNTL0, r->cntl0); + regmap_write(priv->hhi, HHI_HDMI_PHY_CNTL3, r->cntl3); + if (priv->data->has_cntl5) + regmap_write(priv->hhi, HHI_HDMI_PHY_CNTL5, r->cntl5); + + /* Disable clock, fifo, fifo_wr */ + regmap_update_bits(priv->hhi, HHI_HDMI_PHY_CNTL1, + PHY_CNTL1_CTRL_MASK, 0); + + return 0; +} + +static int meson_hdmi_phy_validate(struct phy *phy, enum phy_mode mode, + int submode, union phy_configure_opts *opts) +{ + struct meson_hdmi_phy *priv =3D phy_get_drvdata(phy); + + if (mode !=3D PHY_MODE_HDMI) + return -EINVAL; + + if (submode !=3D PHY_HDMI_MODE_TMDS) + return -EINVAL; + + if (opts->hdmi.bpc !=3D 8) + return -EINVAL; + + if (!meson_hdmi_phy_find_rate(priv->data, opts->hdmi.tmds_char_rate)) + return -EINVAL; + + return 0; +} + +static int meson_hdmi_phy_power_on(struct phy *phy) +{ + struct meson_hdmi_phy *priv =3D phy_get_drvdata(phy); + int i; + + /* Reset PHY 3 times in a row */ + for (i =3D 0; i < PHY_RESET_COUNT; i++) { + /* Enable and software reset */ + regmap_update_bits(priv->hhi, HHI_HDMI_PHY_CNTL1, + PHY_CNTL1_CTRL_MASK, PHY_CNTL1_RESET); + fsleep(2000); + + /* Enable and unreset */ + regmap_update_bits(priv->hhi, HHI_HDMI_PHY_CNTL1, + PHY_CNTL1_CTRL_MASK, PHY_CNTL1_UNRESET); + fsleep(2000); + } + + return 0; +} + +static int meson_hdmi_phy_power_off(struct phy *phy) +{ + struct meson_hdmi_phy *priv =3D phy_get_drvdata(phy); + + meson_hdmi_phy_set_init_state(priv); + + return 0; +} + +static const struct phy_ops meson_hdmi_phy_ops =3D { + .init =3D meson_hdmi_phy_init, + .configure =3D meson_hdmi_phy_configure, + .validate =3D meson_hdmi_phy_validate, + .power_on =3D meson_hdmi_phy_power_on, + .power_off =3D meson_hdmi_phy_power_off, + .owner =3D THIS_MODULE, +}; + +static struct phy *meson_hdmi_phy_alloc(struct device *dev, + struct regmap *hhi, + const struct meson_hdmi_phy_data *data) +{ + struct meson_hdmi_phy *priv; + struct phy *phy; + + priv =3D devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL); + if (!priv) + return ERR_PTR(-ENOMEM); + + priv->hhi =3D hhi; + priv->data =3D data; + + phy =3D devm_phy_create(dev, NULL, &meson_hdmi_phy_ops); + if (IS_ERR(phy)) + return phy; + + phy_set_drvdata(phy, priv); + + return phy; +} + +/* + * DEPRECATED: only for DTs without a "phys" property on the HDMI TX node. + * Remove together with the fallback in meson_dw_hdmi.c. + */ +struct phy *meson_hdmi_phy_create_legacy(struct device *dev, + struct regmap *hhi, + enum meson_hdmi_phy_soc soc) +{ + static const struct meson_hdmi_phy_data *const soc_data[] =3D { + [MESON_HDMI_PHY_GXBB] =3D &gxbb_data, + [MESON_HDMI_PHY_GXL] =3D &gxl_data, + [MESON_HDMI_PHY_G12A] =3D &g12a_data, + }; + + if (soc >=3D ARRAY_SIZE(soc_data)) + return ERR_PTR(-EINVAL); + + return meson_hdmi_phy_alloc(dev, hhi, soc_data[soc]); +} +EXPORT_SYMBOL_GPL(meson_hdmi_phy_create_legacy); + +static int meson_hdmi_phy_probe(struct platform_device *pdev) +{ + struct device *dev =3D &pdev->dev; + struct phy_provider *provider; + struct regmap *hhi; + struct phy *phy; + const struct meson_hdmi_phy_data *data; + + data =3D of_device_get_match_data(dev); + if (!data) + return -EINVAL; + + /* The PHY node is a child of the HHI syscon */ + hhi =3D syscon_node_to_regmap(dev->of_node->parent); + if (IS_ERR(hhi)) + return dev_err_probe(dev, PTR_ERR(hhi), + "failed to get HHI regmap\n"); + + phy =3D meson_hdmi_phy_alloc(dev, hhi, data); + if (IS_ERR(phy)) + return dev_err_probe(dev, PTR_ERR(phy), + "failed to create PHY\n"); + + provider =3D devm_of_phy_provider_register(dev, of_phy_simple_xlate); + + return PTR_ERR_OR_ZERO(provider); +} + +static const struct of_device_id meson_hdmi_phy_of_match[] =3D { + { .compatible =3D "amlogic,meson-gxbb-hdmi-tx-phy", .data =3D &gxbb_data = }, + { .compatible =3D "amlogic,meson-gxl-hdmi-tx-phy", .data =3D &gxl_data }, + { .compatible =3D "amlogic,meson-g12a-hdmi-tx-phy", .data =3D &g12a_data = }, + { /* sentinel */ } +}; +MODULE_DEVICE_TABLE(of, meson_hdmi_phy_of_match); + +static struct platform_driver meson_hdmi_phy_driver =3D { + .probe =3D meson_hdmi_phy_probe, + .driver =3D { + .name =3D "meson-hdmi-tx-phy", + .of_match_table =3D meson_hdmi_phy_of_match, + }, +}; +module_platform_driver(meson_hdmi_phy_driver); + +MODULE_AUTHOR("Ronald Claveau "); +MODULE_DESCRIPTION("Amlogic Meson HDMI TX PHY driver"); +MODULE_LICENSE("GPL"); diff --git a/include/linux/phy/phy-meson-hdmi-tx.h b/include/linux/phy/phy-= meson-hdmi-tx.h new file mode 100644 index 000000000000..fe76a5f7efdb --- /dev/null +++ b/include/linux/phy/phy-meson-hdmi-tx.h @@ -0,0 +1,19 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +#ifndef __PHY_MESON_HDMI_TX_H +#define __PHY_MESON_HDMI_TX_H + +struct device; +struct regmap; + +enum meson_hdmi_phy_soc { + MESON_HDMI_PHY_GXBB, + MESON_HDMI_PHY_GXL, /* GXL and GXM */ + MESON_HDMI_PHY_G12A, +}; + +/* DEPRECATED: compat for DTs without "phys" on the HDMI TX node */ +struct phy *meson_hdmi_phy_create_legacy(struct device *dev, + struct regmap *hhi, + enum meson_hdmi_phy_soc soc); + +#endif /* __PHY_MESON_HDMI_TX_H */ --=20 2.56.1 From nobody Tue Nov 24 11:35:59 2026 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1795462697; b=jcuCgli3vK+LshgUzwxNKFfjM0lEkyaSYYK9IsyZBD2JGFRh6ZocYM+eV3gPZ3qHjuC6 pT7gj5HgR8zHC8kXQxAOVIf/uYJ04qXuqG5VyCXf/f3RM6H8USG6XrZEm6CwHG54ATMtx OWkMkllHSlW9UjXld9HulYcXb8BsBdj5Zc0WrfC23ImbjA9wkWvObH2ZIXZdET/4yjoHg ryl0ur0ESGi6yhfZLcNEPtMeNobfdqdcx13mJS6cNkQbrezi7yBlTsMSRwJk5KYXjBYL5 bUhwV/BNnSj6L9ozkaUa3S5K+fbyvmPlj0AFdv1J0AFpq8FjTWrJCiRk0Z8zyShnTwQ== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795462697; h=Received:DKIM-Signature:Received:From:Date:Subject:MIME-Version: Content-Type:Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=y8B3yYureNWw/gPn5TmCorzbaVWuAnwa7i0qf1DFZYY=; b=Nl9i+lQx9K1OiiBVXmOHg+f/i6OFQ1BlecN1LHDY2X6sL0Dm4PerqoojV0/Mxc/ug/r7 srckMlwiBQ2Dzyd0LramF8gio0rL2Ul+BDpZhw+ZdAExk66PrznjctF4y9kdIFn9Toalm IsYsZXl8IQ3VsaNBeDde6aa95LITtA3zIVBluO3b8ajNHC7mBv1J3UGyLoS6T9IGYfq16 mGp3QyEjxHE5mN034nuQ4IMqd3OibHUrBJjOJRo0vqMoQkjoZC0w1CCaZV1+LDaDHqpdb 2SmWTuSMY61EKbVgU0oZs2QORoDOKz9+dFIKg5UiWyjwEdA0ujXFp0Cq4GyZkNcPvzw== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=YGw80R18; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AB399606A680; Mon, 23 Nov 2026 19:38:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=YGw80R18 Authentication-Results: smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 ARC-Seal: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; cv=none; t=1795462696; b=D16+vNgjx7SZYVqA7fghtOIZAOsU70Xt2B1AEh1vH+MfjCslmvS27NfsYP30bomp2rjv mLPxq48oQpSme901AJBlWP2IPVqDMTUPR3lnZNSY4X4LGQ3+DHXhkL5epluZJbS5JepPY aME/fClbiPjYRqXGYk93IrLdNRt/mNn24tuXLnHsOvmhZNyfkSEuOXwp85nctrACvBX19 ebooVP1C9DFe3w+nUfLy+Md4aORkYd4Mb71ir8M15q2AhNBTFcHIkCvAi8h5OWdq5769A f8C0Igd0PcI3IKfWLKq01mDLFRYfNv7/Ei/slk+ei5XYDzr0MQ+jYCCAhfYwe861JRA== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1795462696; h=DKIM-Signature:Received:From:Date:Subject:MIME-Version:Content-Type: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=y8B3yYureNWw/gPn5TmCorzbaVWuAnwa7i0qf1DFZYY=; b=Yz1hh0+8LaSK1dm3xAcHZmM8+qRtfv/98MsuTQTn5wdbhCSHpdQI3xXcP4lqEop5EY5w uMTNcaGR+T8PrAiWS78m8F7QpGxFacO0aeHoMU8vT7v8oYdgx/9teI1jE5HthAUr+Mbzr X3BLc7RoX8C+fcPgBBzaBzZGMUm+TZvWeq8nLxBaK2T36LyxjBm1tZP9/B7pqFaNslNOj BFGWvflw6LJjMmJbUvzKBI3g2aT3jFEZvZIy8fmmvdJ5Rm0Lu2XHhh3FAtQhKrg+OiDvb ivGcz5i154cV4KG35d4BXeonmfrzFI3iFLoKeGeo8AQP4K4wwSwzmNoeaHfw4OiNCtg== ARC-Authentication-Results: i=1; smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 Received: from lkml.kernel.org (nexus.subspace.kernel.org [100.80.115.77]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.kernel.org (Postfix) with ESMTPS id 1BE5C1F000EE; Mon, 23 Nov 2026 19:38:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795462696; bh=y8B3yYureNWw/gPn5TmCorzbaVWuAnwa7i0qf1DFZYY=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=YGw80R18q7FgynHyEeJCHzZsqOO9lttL8RfhmTU9ge7tih9SmIvOWOdeXBH9AuX75 Kai4qqJ1AK7mahIo7RTiXvjvQ6R7yPQHDUnI0bJlnFgtZq295nVcBhoKCQxivtdzs/ PntreUkoJpktJd3gfD0a9XjnBvr0LXKBpOs2YsKkCkSrEpE9c/v3iWo187pleB7dgK LU9bHkaFiVn5lGwR8IO42B19Y0zy4QPQ78ywlR31oZr0Os1j1SNDNeEPggM5XCSRQc c9APEYqt3rDw+BSwIvX6JOjmz8k/adiHop/6LzX3RdZb56mjnDk/cZ24IDMcyoaKKg V7TxCMLgju2hA== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id 38B134C69D; Mon, 23 Nov 2026 19:38:01 +0000 (UTC) From: Ronald Claveau via B4 Relay Date: Mon, 23 Nov 2026 20:37:37 +0100 Subject: [PATCH v4 05/11] dt-bindings: display: amlogic,meson-dw-hdmi: Add phys X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Message-Id: <20261123-meson-drm-create-hdmitx-phy-v4-5-3fb94f5534ca@aliel.fr> References: <20261123-meson-drm-create-hdmitx-phy-v4-0-3fb94f5534ca@aliel.fr> In-Reply-To: <20261123-meson-drm-create-hdmitx-phy-v4-0-3fb94f5534ca@aliel.fr> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Vinod Koul , Manivannan Sadhasivam , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Ulf Hansson Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, dri-devel@lists.freedesktop.org, Ronald Claveau , linux-pm@vger.kernel.org X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1278; i=linux-kernel-dev@aliel.fr; h=from:subject:message-id; bh=gEM9bIkhQe1Q+n5KKc7w/RzPzlM5UABBv5gf7bLSb8c=; b=owGbwMvMwCWm1SvKXP3cUInxtFoSQzbLNN7tUkxefzfp/05Vz1/gdqt9osSBO7bav79/ffHFa k1tx85zHaUsDGJcDLJiiiz9cy1PvLt89MzXPeopMHNYmUCGMHBxCsBEVPUYGV4ZaLtvOGNn89kk go2ls35FSID8azmeX3tDm6+uUK45zMfw31cgfxrXrTd9U5UTPr77HibExz1T5F3HoVcPLDus+yT qeAE= X-Developer-Key: i=linux-kernel-dev@aliel.fr; a=openpgp; fpr=DFD863F61375BF917F0012173953305EF1D0EC3E X-Endpoint-Received: by B4 Relay for linux-kernel-dev@aliel.fr/default with auth_id=744 X-Original-From: Ronald Claveau Reply-To: linux-kernel-dev@aliel.fr Content-Transfer-Encoding: quoted-printable From: Ronald Claveau The HDMI TX PHY now has its own binding and driver. Describe the link between the HDMI TX controller and its PHY with a "phys" property holding a single phandle, and update the example accordingly. The property is optional so that existing DT, which do not describe the PHY, keep validating; the driver falls back to creating the PHY itself in that case. Signed-off-by: Ronald Claveau --- Documentation/devicetree/bindings/display/amlogic,meson-dw-hdmi.yaml | 4 += +++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/display/amlogic,meson-dw-hdm= i.yaml b/Documentation/devicetree/bindings/display/amlogic,meson-dw-hdmi.ya= ml index 416fe263ac92..7ece4ea262bd 100644 --- a/Documentation/devicetree/bindings/display/amlogic,meson-dw-hdmi.yaml +++ b/Documentation/devicetree/bindings/display/amlogic,meson-dw-hdmi.yaml @@ -108,6 +108,9 @@ properties: =20 sound-name-prefix: true =20 + phys: + maxItems: 1 + required: - compatible - reg @@ -136,6 +139,7 @@ examples: power-domains =3D <&pd_vpu>; #address-cells =3D <1>; #size-cells =3D <0>; + phys =3D <&hdmi_tx_phy>; =20 /* VPU VENC Input */ hdmi_tx_venc_port: port@0 { --=20 2.56.1 From nobody Tue Nov 24 11:35:59 2026 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1795462707; b=AkerpbvyEBNBRnPxhHRbhIAsqrzb+od5Zk7275q9HFBFN3fPwM5vS9PGqYDJRL3ESQmj gPtpRIQ6VV6wylCs0TaoWrcxpE1xJ9yjUh1dGbboLeNFrRSpoD0NCnSAAT6zar/wlFHY9 rjjNylOPqMhWHdLGwTJrpMbSRC6PGhLwRcZ+EqvCiigjmVKS4LC33Pdm7vxGwe6OBZLtL 7a05aDKY/F3YFwog5MQUMiojliTtmM8VP2e1vV3q1hEWw89eLDUpaq/cCX5uPzgRFpWfj 6hyaorTG7iAAb5Yel5dCVEAsFShC4C4HhpCKbMW3LAhNMQmau2S77vOiBbMUHq5FRYg== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795462707; h=Received:DKIM-Signature:Received:From:Date:Subject:MIME-Version: Content-Type:Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=rAgcqIqOw6zcaQD0GaowJvtaNg3/b1Y5Y23WzFleRQ4=; b=LgRKGuBzmFpy30XzhgsTtZHvSTNchkm0a/v6vv2MyJ/AgVVI7RSxEdGXrh7ge4+KSW+m 0ICd/Ie6uE8HpvuORF8rWpHoOrTQW56rVlBYdxKFni43VK4Kk/cw2GTHDQIJv7zM1yVio M0objrA95CfhrhJppzhP1N1x736H8RuXvEHkkxTHf1b6oIyOvJyir/T6uVW+Ka2RFVp0P hA13CJWSdwRwMGF2uzVitynwEBml8vwnFlBFPoYNjg5VUovTVvXnfXq0w3I3vP/KOxQth u+V8b+n0Q21H/ZcrnTXjvwdJ48yaT2xciWUJf5C1LON78wysmdPR+EFF++uMr9KB+oQ== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=HmW73Ara; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4D48460A2604; Mon, 23 Nov 2026 19:38:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=HmW73Ara Authentication-Results: smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 ARC-Seal: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; cv=none; t=1795462706; b=2rN2uAjze3pp5fF0gYAwHE+8UrApq6fXslvuW+uSA7LNEZGBPZD/d/JIYPbB9srgKyDq 8EvdG1b/EUDP2VLZT+hZxl4k1yVdepbWYL6SpJkaTM6Mcuh0oNSd54qfJJb481ORvwCOr Qh6yazgqoSr4G1bmCqzEH3ajh0DgtyJiR4nE+tC45bdLNFl4dbwXUlSF5JdPMh0gDciPk qQRiOdfej71eT0m2vL8wryPtdt9lGGiNQoN9ZXnCe/9O7sXwv4jw3a7mY8bSuMALMXGA+ hQao/be+7xIIa2+wk1OjX2gF+cYNfWWHNMWgA9ob21UNnQqpQ590PdfR0PDqfPNgzpA== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1795462706; h=DKIM-Signature:Received:From:Date:Subject:MIME-Version:Content-Type: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=rAgcqIqOw6zcaQD0GaowJvtaNg3/b1Y5Y23WzFleRQ4=; b=QyFoRdH+1dhFbxwDFLdV0gS8E80X5nRhUQ1F4PEVzne26eG1nTqZ+JxVZpBAFe98MLqp C8lnYbpWngwiyx5Sho+/gAJe6Lcg5hBTMJZ0wEVvhn3A/oEbND+DWjoudzk7GOu4juDUY FTUmHAgxHOYTkiELKYMb+ORKBIxbrHGCoTEUoVbk1ibH6+e0zClPr1Ri4Ayu6Jx7TRVRM aDnsjaGYt2wiJJqFF4l49Sxfw73Gpek68aoF55fU3rU6Fab2fHoN5TgSAhGLWNI6QafcT K+Ylw+A0/naW2kJFf0vaklubWWpqiHFmC0egAEtsiZlFHHzaKpN9lIfuUGpOxGz7A5Q== ARC-Authentication-Results: i=1; smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 Received: from lkml.kernel.org (nexus.subspace.kernel.org [100.80.115.77]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.kernel.org (Postfix) with ESMTPS id 205291F000EF; Mon, 23 Nov 2026 19:38:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795462706; bh=rAgcqIqOw6zcaQD0GaowJvtaNg3/b1Y5Y23WzFleRQ4=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=HmW73AraiiBadW4DbSF9YJFTGAESKyalCrmoUim1vH6mVoHwhoSBkNSiEkBzLDris UxJfiBTTx3qqrjCRAqrA8UCO6Kd6xxOfxwc/xuqh+Xm2aPT71qs+jYo1HK9tRLdkCx FcVMaqjO1KUP30/BOrAfMFQzSmXSJFO2b6P+66vwOnWTzGmxBJ71911QIxaWVyzkQd 8+YmUzegY+bHipPYdmmYK6v5dj3ow/Hnc7vS4SHT9xLRDHIM+5kIuQ60ochzYn/Gzl Qd2Uae4SiwVHELIhS4gRhKVC4vt8IhpL0/DRyIjvWimU+Zfq46LB7JfRDUSluxYs6F bUshH96kufdyA== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id 542904C6A1; Mon, 23 Nov 2026 19:38:01 +0000 (UTC) From: Ronald Claveau via B4 Relay Date: Mon, 23 Nov 2026 20:37:38 +0100 Subject: [PATCH v4 06/11] pmdomain: amlogic: meson-ee-pwrc: power up memories for boot-enabled domains X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Message-Id: <20261123-meson-drm-create-hdmitx-phy-v4-6-3fb94f5534ca@aliel.fr> References: <20261123-meson-drm-create-hdmitx-phy-v4-0-3fb94f5534ca@aliel.fr> In-Reply-To: <20261123-meson-drm-create-hdmitx-phy-v4-0-3fb94f5534ca@aliel.fr> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Vinod Koul , Manivannan Sadhasivam , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Ulf Hansson Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, dri-devel@lists.freedesktop.org, Ronald Claveau , linux-pm@vger.kernel.org X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2681; i=linux-kernel-dev@aliel.fr; h=from:subject:message-id; bh=2pSroicxmn87L6WpeMI1TQ71NJdXRXfygd9gmAxHGRQ=; b=owGbwMvMwCWm1SvKXP3cUInxtFoSQzbLNL5sQ++6hzY5B5+Z/bsWLnPZw+y4ppPqnWyGbClfv s+zErU7SlkYxLgYZMUUWfrnWp54d/noma971FNg5rAygQxh4OIUgIkItTH8jzincSxhz4q5twuX X9r7263C0aH5T5X3rMO7Pm3v4VVifMzI8M080Kmb9bSV5dqwPqn5dx3e3PrKt7Lzk2+a0NGHcys 2sAMA X-Developer-Key: i=linux-kernel-dev@aliel.fr; a=openpgp; fpr=DFD863F61375BF917F0012173953305EF1D0EC3E X-Endpoint-Received: by B4 Relay for linux-kernel-dev@aliel.fr/default with auth_id=744 X-Original-From: Ronald Claveau Reply-To: linux-kernel-dev@aliel.fr Content-Transfer-Encoding: quoted-printable From: Ronald Claveau When a power domain is found already powered on at probe time (typically the VPU domain left enabled by the bootloader), the driver registers the genpd in the ON state with GENPD_FLAG_ALWAYS_ON and never calls meson_ee_pwrc_on(). As a result, the memory power-down bits of the domain are not touched. pwrc_ee_is_powered_off() only checks the top-level sleep bit, so a bootloader that enabled the VPU without waking every memory block leaves those memories powered down, and nothing in the genpd framework will wake them since pm_runtime_resume_and_get() is a no-op for an always-on domain. This is a preparatory change: a following patch drops the explicit HHI_MEM_PD_REG0 write from the meson_dw_hdmi driver, which relies on the power domain to power the HDMITX memory. Signed-off-by: Ronald Claveau --- drivers/pmdomain/amlogic/meson-ee-pwrc.c | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/drivers/pmdomain/amlogic/meson-ee-pwrc.c b/drivers/pmdomain/am= logic/meson-ee-pwrc.c index 338f70d77bf0..b3ae5cd7bea8 100644 --- a/drivers/pmdomain/amlogic/meson-ee-pwrc.c +++ b/drivers/pmdomain/amlogic/meson-ee-pwrc.c @@ -392,11 +392,21 @@ static int meson_ee_pwrc_off(struct generic_pm_domain= *domain) return 0; } =20 +static void meson_ee_pwrc_mem_power_up(struct meson_ee_pwrc_domain *dom) +{ + int i; + + for (i =3D 0; i < dom->desc.mem_pd_count; i++) + regmap_update_bits(dom->pwrc->regmap_hhi, + dom->desc.mem_pd[i].reg, + dom->desc.mem_pd[i].mask, 0); +} + static int meson_ee_pwrc_on(struct generic_pm_domain *domain) { struct meson_ee_pwrc_domain *pwrc_domain =3D container_of(domain, struct meson_ee_pwrc_domain, base); - int i, ret; + int ret; =20 if (pwrc_domain->desc.top_pd) regmap_update_bits(pwrc_domain->pwrc->regmap_ao, @@ -404,10 +414,7 @@ static int meson_ee_pwrc_on(struct generic_pm_domain *= domain) pwrc_domain->desc.top_pd->sleep_mask, 0); udelay(20); =20 - for (i =3D 0 ; i < pwrc_domain->desc.mem_pd_count ; ++i) - regmap_update_bits(pwrc_domain->pwrc->regmap_hhi, - pwrc_domain->desc.mem_pd[i].reg, - pwrc_domain->desc.mem_pd[i].mask, 0); + meson_ee_pwrc_mem_power_up(pwrc_domain); =20 udelay(20); =20 @@ -478,6 +485,8 @@ static int meson_ee_pwrc_init_domain(struct platform_de= vice *pdev, * prepare/enable counters won't be in sync. */ if (dom->num_clks && dom->desc.is_powered_off && !dom->desc.is_powered_of= f(dom)) { + meson_ee_pwrc_mem_power_up(dom); + ret =3D clk_bulk_prepare_enable(dom->num_clks, dom->clks); if (ret) return ret; --=20 2.56.1 From nobody Tue Nov 24 11:35:59 2026 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1795462700; b=Tn9CWNxXOAZZJw5vH6fWZ+2s/4HS/DuTC4R+K3hScN6PMMelJ9lTAFsmgkmqYkQxrTBp eSydkrtim1B4npvzMrPRlLnNoyccYNZ8nX99lfNdTXcR2B/KFAVT0E8PToofKTk3DiN7K FeX6zjZHwFq19w16wl83LgxH+cflyNrjebYew8OZEy/cEW1gN7o/NUf0RSQ/NyJN2sUoe bN7KOcMqOJiB9ck4u3V//mfsjpPn/nKMPB4CdSgb5xl8TVnxVLQbT5tMdQz5G6i632UaI sPH87ukGA3o5zWPWRbTA4h7dqsY50GqBvumS27A5ITKuH3bQgVfUUa5/Y0JsC1noslQ== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795462700; h=Received:DKIM-Signature:Received:From:Date:Subject:MIME-Version: Content-Type:Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=jnPu9C8U78zwh2haTTxt6kMsYkBetNfurHLTgZHI+MM=; b=y7sypBtY4DzjCObmHP1qRTXrfYJHhpE7hHhQXp4puTFxA5w6FMIy585TZiQsIzLKp2jq 9eku9/Ew5yUacM8g4uO7T6kpsjl/IbQgvDQ5y1FVTZTKWh45uN8X4B45CxCF+fjNHUER7 NfEvGy0nwzbyNIYRHHwZ+jywHiBgyhqPN0O0n6HKoaWA/i8lCSCj8Q/ZvFqoQFysNMDQe PVfowgyIUokWKbM55nqjgzRKZzYP7qyHQc99vkHSY13VHSohTJTPRSrIs4b3O2rxqpwT3 mxceG7Mw4KYkyIiDhV00aLw8qfLegoxhjHOdQqtLqFOlbyI0rnKvA1fllPBmvDuDjFg== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=mdG9XM7E; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3A9AF60A261F; Mon, 23 Nov 2026 19:38:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=mdG9XM7E Authentication-Results: smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 ARC-Seal: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; cv=none; t=1795462700; b=PtGBAvaCs3Toqe6Ir4zB5F3llg2x1HAXwJeIYze1KfeFfcdtwF2kEOWJZEGbCKxPQC3i hiCk9i3kHt5IfNGASQJMpj3eU8ieHZabdNHICybHfBgzeWNCHsnk4NSUnfFEFKt8LBmUH 4LG2h80A0COeu9ikE1smceYhmgOMvhqUCQpmrvrR62slNanZRlEhvcYzqei+5jCgBTAT/ SPzfnF+cbMn4Oi+yFhA4K56w9Ig4CO6i3UYtLer1l6ur9G0kURfBWbY+AHD8d74S9DFxh /R6u+avqh1f/i4NuhSvnpFyZ/BaYZLpztuEg6O7CZyfUQrPXwadN9+CgJbej+vwyAaA== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1795462700; h=DKIM-Signature:Received:From:Date:Subject:MIME-Version:Content-Type: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=jnPu9C8U78zwh2haTTxt6kMsYkBetNfurHLTgZHI+MM=; b=geITENjSIP8gb4OODgWiikXH+6QqPm8U+CDvwugOzxbxE/gWaUzv7r49k8ALHZasNVLb Sp14n9G9fjImAvyTfjmD99REbD5K66vgXXKnf9NAkdZQvndsBa/nAL3uN5sIGDSfsej5K eFJzLhIEYK4ZLV1wClMJQThm3VOWDZqrysiledDTB6aOul5LBaL5MVLSLp0Djn0YByeAK DgQtQmrUfDPiFhi/ZTlnOVvKMDLYQbXHDCPxGGlAKBhxW/6vBSIJm+JgCOeM7WF6lGH6c f9mPryomkbF34EkIMdHoaznoUM4ppG7/UQCGrXHqnHSBd9lFv4EzHegIH1Hc/jaKQ4g== ARC-Authentication-Results: i=1; smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 Received: from lkml.kernel.org (nexus.subspace.kernel.org [100.80.115.77]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.kernel.org (Postfix) with ESMTPS id 712331F000E0; Mon, 23 Nov 2026 19:38:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795462700; bh=jnPu9C8U78zwh2haTTxt6kMsYkBetNfurHLTgZHI+MM=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=mdG9XM7EvziQLSc36dVIbBEzHAaBv3DNTi5uwyXDRn0buLB9XgVWabiBauK1fMip0 t3Hy9JwYqV3iXVmhzgUECJl/1o/ddHJ75k0B7dTVNLIGLeWpRy3t49SkrObPdLmPa+ jjoaCMWxvPpoWwUVRJkn/yYwizTECjLvs8u+xMOrOZAWtwkYjDl8GXkip92Vza6KL7 Wuz2NUmuVafoU3fSOZgoy9yXVxqSDAbsVPNIayngtzHzNQmD2h6MTY2zBUb//18FC4 HwQS1729xdi7Ij+5OMbqpMFoMPK8R1+sZSQOFrhMYkQGcaMkTTbLCyZ1JGCG1FU8wN nNEpvq7oGqxzA== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id 707E24C6A5; Mon, 23 Nov 2026 19:38:01 +0000 (UTC) From: Ronald Claveau via B4 Relay Date: Mon, 23 Nov 2026 20:37:39 +0100 Subject: [PATCH v4 07/11] drm/meson: dw-hdmi: Drop manual HHI clock and memory PD setup X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Message-Id: <20261123-meson-drm-create-hdmitx-phy-v4-7-3fb94f5534ca@aliel.fr> References: <20261123-meson-drm-create-hdmitx-phy-v4-0-3fb94f5534ca@aliel.fr> In-Reply-To: <20261123-meson-drm-create-hdmitx-phy-v4-0-3fb94f5534ca@aliel.fr> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Vinod Koul , Manivannan Sadhasivam , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Ulf Hansson Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, dri-devel@lists.freedesktop.org, Ronald Claveau , linux-pm@vger.kernel.org X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=4251; i=linux-kernel-dev@aliel.fr; h=from:subject:message-id; bh=Va7r71zAoY5+1f1lapvKRBrSntc7NXGNh523dnCyfas=; b=owGbwMvMwCWm1SvKXP3cUInxtFoSQzbLNIHfK5aqzi3t3uQvwjXf8pbLr5Pv57z8vIRZ+funw FwHzkSFjlIWBjEuBlkxRZb+uZYn3l0+eubrHvUUmDmsTCBDGLg4BWAiMrsZ/ue0ndXWYi1gvRM6 Nbdj0zz+9DxfwU2lbW8fSt9+VRF4rIGR4bV7n0X2BaFnx9nWP+tN/aUh+kXCVm7HitWaRlPld1l MZAAA X-Developer-Key: i=linux-kernel-dev@aliel.fr; a=openpgp; fpr=DFD863F61375BF917F0012173953305EF1D0EC3E X-Endpoint-Received: by B4 Relay for linux-kernel-dev@aliel.fr/default with auth_id=744 X-Original-From: Ronald Claveau Reply-To: linux-kernel-dev@aliel.fr Content-Transfer-Encoding: quoted-printable From: Ronald Claveau meson_dw_hdmi_init() programs two HHI registers by hand: the HDMI clock mux/divider/gate (HHI_HDMI_CLK_CNTL) and the HDMITX memory power-down bits (HHI_MEM_PD_REG0). Both are already covered by resources described in the DT: - the HDMI clock is selected and rated through assigned-clocks (CLKID_HDMI_SEL parented to xtal, CLKID_HDMI at 24 MHz), and gated through the "isfr" clock, which the driver already enables at bind time; - the memory power-down bits are handled by the VPU power domain referenced by "power-domains". Remove the open-coded register writes. Take an explicit runtime PM reference in probe and release it on removal, so that the domain is guaranteed to be on for the lifetime of the device. The driver now relies on runtime PM to power the HDMITX memory, so make it depend on PM. Those properties are optional in the binding and were only added to the in-tree DTs in v6.11, so DTs without them would no longer get the registers programmed by the kernel. This is not a concern in practice: - the DT used by the kernel often comes from U-Boot, which used a DT based on Linux v6.2 before v2024.07 and has used the DT synchronized with Linux since then, matching the v6.11 DT with the clock changes; - U-Boot already sets HHI_HDMI_CLK_CNTL and HHI_MEM_PD_REG0 when probing dw_hdmi, since v2019.04, so both registers are already in the expected state when Linux boots, even with an older U-Boot and DT. The risk of regression is therefore very low. Signed-off-by: Ronald Claveau --- drivers/gpu/drm/meson/Kconfig | 1 + drivers/gpu/drm/meson/meson_dw_hdmi.c | 31 ++++++++++++++++++++++--------- 2 files changed, 23 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/drm/meson/Kconfig b/drivers/gpu/drm/meson/Kconfig index 417f79829cf8..6645665f6038 100644 --- a/drivers/gpu/drm/meson/Kconfig +++ b/drivers/gpu/drm/meson/Kconfig @@ -17,6 +17,7 @@ config DRM_MESON config DRM_MESON_DW_HDMI tristate "HDMI Synopsys Controller support for Amlogic Meson Display" depends on DRM_MESON + depends on PM default y if DRM_MESON select DRM_DW_HDMI imply DRM_DW_HDMI_I2S_AUDIO diff --git a/drivers/gpu/drm/meson/meson_dw_hdmi.c b/drivers/gpu/drm/meson/= meson_dw_hdmi.c index eb33c70f29c3..20a821936b3a 100644 --- a/drivers/gpu/drm/meson/meson_dw_hdmi.c +++ b/drivers/gpu/drm/meson/meson_dw_hdmi.c @@ -12,6 +12,7 @@ #include #include #include +#include #include #include =20 @@ -102,8 +103,6 @@ #define HDMITX_DWC_CTRL_REG 0x18 =20 /* HHI Registers */ -#define HHI_MEM_PD_REG0 0x100 /* 0x40 */ -#define HHI_HDMI_CLK_CNTL 0x1cc /* 0x73 */ #define HHI_HDMI_PHY_CNTL0 0x3a0 /* 0xe8 */ #define HHI_HDMI_PHY_CNTL1 0x3a4 /* 0xe9 */ #define PHY_CNTL1_INIT 0x03900000 @@ -599,12 +598,6 @@ static void meson_dw_hdmi_init(struct meson_dw_hdmi *m= eson_dw_hdmi) { struct meson_drm *priv =3D meson_dw_hdmi->priv; =20 - /* Enable clocks */ - regmap_update_bits(priv->hhi, HHI_HDMI_CLK_CNTL, 0xffff, 0x100); - - /* Bring HDMITX MEM output of power down */ - regmap_update_bits(priv->hhi, HHI_MEM_PD_REG0, 0xff << 8, 0); - /* Reset HDMITX APB & TX & PHY */ reset_control_reset(meson_dw_hdmi->hdmitx_apb); reset_control_reset(meson_dw_hdmi->hdmitx_ctrl); @@ -829,9 +822,29 @@ static int __maybe_unused meson_dw_hdmi_pm_resume(stru= ct device *dev) return 0; } =20 +static void meson_dw_hdmi_pm_put(void *dev) +{ + pm_runtime_put_sync(dev); +} + static int meson_dw_hdmi_probe(struct platform_device *pdev) { - return component_add(&pdev->dev, &meson_dw_hdmi_ops); + struct device *dev =3D &pdev->dev; + int ret; + + ret =3D devm_pm_runtime_enable(dev); + if (ret) + return ret; + + ret =3D pm_runtime_resume_and_get(dev); + if (ret) + return dev_err_probe(dev, ret, "Failed to power on HDMI TX\n"); + + ret =3D devm_add_action_or_reset(dev, meson_dw_hdmi_pm_put, dev); + if (ret) + return ret; + + return component_add(dev, &meson_dw_hdmi_ops); } =20 static void meson_dw_hdmi_remove(struct platform_device *pdev) --=20 2.56.1 From nobody Tue Nov 24 11:35:59 2026 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1795462701; b=OqQEpXW4sRROGoSDyXMCo3pNBfBnBeH6AU8ta58ThWN7uvJKjc+PKENgLyT2mag59wgl RucWnjiGoXPPMOcisT73abPqJUikbXB4cp/emlnNPqKzgZgKDiRsCm8XRK58R7lqMqXZY 8BZ+XZ/yDhGfwtTw+1h/9Rb3DCN7pcNEvDWQwcFFROMpsXJ2Zo2lJhBuH5GPnE1BXLM8i XwvOwNtixJaTFKj7dhi/9hkdv6S6ne4yayeduOZ1pSauliP+aVlrx3pXdbNnK+IdhOe1c vh5YXxYig2sfbLgN8AzJOJFyB5Ax02f/S8d5nHXSOA4t9g23BPazdnqne9+vjHU1GyA== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795462701; h=Received:DKIM-Signature:Received:From:Date:Subject:MIME-Version: Content-Type:Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=Jmj0DPDDKFvXFOMRCT0aoTFsmt441k003J2Ocrs54uk=; b=X96RjHkJ+kMFZaKWksU2HKduhD3hZqqjWbpeZQQM9y5wEWYzYAaGyViza3qpCydcbvB4 UkxmU+GmZc8xX3YRlIIaIQ8OmjTwz+Z/fAJZCHHNjCvhjq0tOIE86vnkCEa0wCv+kFMse TirJW422cR0c1hmKpbjQBCkAv25FNHcB4gJdAx4YabivF9Cxi+B2iT9ISnPCGX+2p1Z1w mvDdFSeDX0ZajsNigwleR5Ytilu978Yjv+LBiqVh+fsTDSB9KGSDcbTOYNcIk3knkEAHF 249BjZrADwO6Us1eEKyJJOoBCI3iTwLGl8EZucXAlI0rT5aQ2TfLTJlgWwtm3STYVvQ== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=gMH9G+pU; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AC7B4606A6A4; Mon, 23 Nov 2026 19:38:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=gMH9G+pU Authentication-Results: smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 ARC-Seal: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; cv=none; t=1795462701; b=o6h7QzjOp4r2gfnwwY0c/h7ZyAaOQnfbn7j4QhtRxKTaBpTs8o2yxIhleAj4A1+ae+3N JXezid6kHAIwCeuDv5E9YisDawwBe3RUk0s+4J5Ymk8nTJX1roNz2u6v7prDYbn75jCBm Fz5IZi7+azUgWaAL8Vu1WFll59Zd6MYiLW9CyZuYrDld9hgshFUHI6TxCt5R1rEsdCoeX 2iVbiCUsLHSPXyt6uzcSArg+eXB8qLXTAC9SjWGbDPD52dgIQu7+oTjRLYnFnn0RODj3t E+PKeWRcDLRkXbktYzhCEKerMtWZOu8RFPEoHKNRkyqIDBjeMcLwIQxvNTgZgW+VNcQ== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1795462701; h=DKIM-Signature:Received:From:Date:Subject:MIME-Version:Content-Type: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=Jmj0DPDDKFvXFOMRCT0aoTFsmt441k003J2Ocrs54uk=; b=FNC3ZkqM5/vhOJViu27358Cgm3Sw9CX/fwBSgtMOYPBKNVO9sREJMEwoDsI0lEQTk9VL AQutTpW9QkL71N5j58jYDKruiFbKp2vMpWspVgAK1LRqXYb7CoS0O4VdPjjfKdIkyhldi /RPtsNCOZmDLT4XqJoyeDtZIpiSy0sj9TBepolsS8FDJlpypdZfFLVJKmc0xQ4ApghmXr RGL2G77etj1zTvNK6TaLxFkAXfisYQGPEUjHyPMrIB905lg//5A5nQw3Sk12sW7QVwZ5y PNIYxAP6RHY/dNJl50LV3Wi3bioNGp0D3Ofjdz06XZyZXZe/BwuU4K0ChMYd5O/fgLg== ARC-Authentication-Results: i=1; smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 Received: from lkml.kernel.org (nexus.subspace.kernel.org [100.80.115.77]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.kernel.org (Postfix) with ESMTPS id 7605B1F000EC; Mon, 23 Nov 2026 19:38:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795462701; bh=Jmj0DPDDKFvXFOMRCT0aoTFsmt441k003J2Ocrs54uk=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=gMH9G+pUdmOOvW1G0nomIkeFy0iM89fbW+wOex76RbW4QEs5Wb9I6kYxgN4Wd0upA YE0xDI5DcMiEGC+IgxuyCyLBz+GVrNanSf+6h4LyLAptyxMsyCGHEnAVRnbBL7iApl DWoSkYIhWays3Sq/Y3PWbCHUBXsZ1aIsND4wpeKbZF91PQBurT3Qx6VJn5zTyBB4Gv HuoK5tjdiw6x0JUxkvAkkYYoL1KlG8A2N+YMcKI+LexudithJCBYsrio6OAN3xNqmq ZmkxNxTuLQ0d9PUecpAETiOM9YkDiKYQ/9Ri/mExcFAd8+noCZIaIxADb+0Ly/Vx8q tcyasMmWmqe1w== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id 8CE584C6A9; Mon, 23 Nov 2026 19:38:01 +0000 (UTC) From: Ronald Claveau via B4 Relay Date: Mon, 23 Nov 2026 20:37:40 +0100 Subject: [PATCH v4 08/11] drm/meson: dw-hdmi: Use the generic PHY framework for the HDMI TX PHY X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Message-Id: <20261123-meson-drm-create-hdmitx-phy-v4-8-3fb94f5534ca@aliel.fr> References: <20261123-meson-drm-create-hdmitx-phy-v4-0-3fb94f5534ca@aliel.fr> In-Reply-To: <20261123-meson-drm-create-hdmitx-phy-v4-0-3fb94f5534ca@aliel.fr> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Vinod Koul , Manivannan Sadhasivam , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Ulf Hansson Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, dri-devel@lists.freedesktop.org, Ronald Claveau , linux-pm@vger.kernel.org X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=16768; i=linux-kernel-dev@aliel.fr; h=from:subject:message-id; bh=2uq/x64YJkkdmSERtY1nWqdjFxoVwi4xfGmLD2wNkPM=; b=owGbwMvMwCWm1SvKXP3cUInxtFoSQzbLNMGj3GIpvzOr17+xFn3KfNq6oviNMz/3jVa+19wh/ o6NUbIdpSwMYlwMsmKKLP1zLU+8u3z0zNc96ikwc1iZQIYwcHEKwER+lTH89928JG7W438Nhe/V F/2eZPHkoXty6CnnA0dnX/Xb1nKu14eR4cP+VSYbt/FetFMKFvRz2SFvtPPOM7aGgBtP/L0S61M eMAIA X-Developer-Key: i=linux-kernel-dev@aliel.fr; a=openpgp; fpr=DFD863F61375BF917F0012173953305EF1D0EC3E X-Endpoint-Received: by B4 Relay for linux-kernel-dev@aliel.fr/default with auth_id=744 X-Original-From: Ronald Claveau Reply-To: linux-kernel-dev@aliel.fr Content-Transfer-Encoding: quoted-printable From: Ronald Claveau The HDMI TX PHY registers (HHI_HDMI_PHY_CNTL0..5) were programmed directly from this driver, with per-SoC tables selected by compatible string. A dedicated PHY driver now exists, so use it through the generic PHY API instead: - phy_init() replaces the initial CNTL0/CNTL1 programming, - phy_configure() replaces meson_hdmi_phy_setup_mode(), the TMDS character rate being derived from the (possibly 4:2:0 halved) pixel clock, with 8 bpc as before, - phy_power_on() replaces the three successive PHY resets, - phy_power_off() replaces the fallback to the initial state in dw_hdmi_phy_disable(). The "hdmi" PHY is looked up through the "phys" property of the HDMI TX node. Device trees that do not provide it keep working: in that case the PHY is created by this driver through meson_hdmi_phy_create_legacy(), using a per-SoC identifier replacing the former cntl0_init/cntl1_init fields, and a warning is printed. This fallback is deprecated and will be removed once all device trees have been converted. meson_dw_hdmi_init() can now fail, so propagate its return value from probe and resume. Select PHY_MESON_HDMI_TX in Kconfig since the driver now depends on it, including for the legacy path. Add a device link with hdmi-tx as consumer and vpu as supplier to get the correct order on suspend/resume. Move the atomic suspend/resume to the .prepare/.complete callbacks. This guarantees: suspend: power_off (prepare) -> phy_exit (suspend) resume : venc_init (resume) -> phy_init (resume) -> power_on (complete) The constraints are: - phy_exit() must come after phy_power_off(), which is done by the atomic disable in drm_mode_config_helper_suspend(). - phy_init() must come after meson_venc_init(), which writes 0 to HHI_HDMI_PHY_CNTL0 and would otherwise clobber the value programmed by phy_init() (bandgap on G12A). - phy_power_on() must come after phy_init(), otherwise the PHY core warns that it was called before phy_init. Signed-off-by: Ronald Claveau --- drivers/gpu/drm/meson/Kconfig | 1 + drivers/gpu/drm/meson/meson_drv.c | 16 ++- drivers/gpu/drm/meson/meson_dw_hdmi.c | 192 +++++++++++++-----------------= ---- 3 files changed, 89 insertions(+), 120 deletions(-) diff --git a/drivers/gpu/drm/meson/Kconfig b/drivers/gpu/drm/meson/Kconfig index 6645665f6038..a91cf851314a 100644 --- a/drivers/gpu/drm/meson/Kconfig +++ b/drivers/gpu/drm/meson/Kconfig @@ -20,6 +20,7 @@ config DRM_MESON_DW_HDMI depends on PM default y if DRM_MESON select DRM_DW_HDMI + select PHY_MESON_HDMI_TX imply DRM_DW_HDMI_I2S_AUDIO =20 config DRM_MESON_DW_MIPI_DSI diff --git a/drivers/gpu/drm/meson/meson_drv.c b/drivers/gpu/drm/meson/meso= n_drv.c index 38bf2811d068..5343323f404a 100644 --- a/drivers/gpu/drm/meson/meson_drv.c +++ b/drivers/gpu/drm/meson/meson_drv.c @@ -422,7 +422,7 @@ static const struct component_master_ops meson_drv_mast= er_ops =3D { .unbind =3D meson_drv_unbind, }; =20 -static int __maybe_unused meson_drv_pm_suspend(struct device *dev) +static int meson_drv_pm_prepare(struct device *dev) { struct meson_drm *priv =3D dev_get_drvdata(dev); =20 @@ -432,6 +432,14 @@ static int __maybe_unused meson_drv_pm_suspend(struct = device *dev) return drm_mode_config_helper_suspend(priv->drm); } =20 +static void meson_drv_pm_complete(struct device *dev) +{ + struct meson_drm *priv =3D dev_get_drvdata(dev); + + if (priv) + drm_mode_config_helper_resume(priv->drm); +} + static int __maybe_unused meson_drv_pm_resume(struct device *dev) { struct meson_drm *priv =3D dev_get_drvdata(dev); @@ -446,7 +454,7 @@ static int __maybe_unused meson_drv_pm_resume(struct de= vice *dev) if (priv->afbcd.ops) priv->afbcd.ops->init(priv); =20 - return drm_mode_config_helper_resume(priv->drm); + return 0; } =20 static void meson_drv_shutdown(struct platform_device *pdev) @@ -553,7 +561,9 @@ static const struct of_device_id dt_match[] =3D { MODULE_DEVICE_TABLE(of, dt_match); =20 static const struct dev_pm_ops meson_drv_pm_ops =3D { - SET_SYSTEM_SLEEP_PM_OPS(meson_drv_pm_suspend, meson_drv_pm_resume) + .prepare =3D meson_drv_pm_prepare, + .complete =3D meson_drv_pm_complete, + SET_SYSTEM_SLEEP_PM_OPS(NULL, meson_drv_pm_resume) }; =20 static struct platform_driver meson_drm_platform_driver =3D { diff --git a/drivers/gpu/drm/meson/meson_dw_hdmi.c b/drivers/gpu/drm/meson/= meson_dw_hdmi.c index 20a821936b3a..ec21d13775b7 100644 --- a/drivers/gpu/drm/meson/meson_dw_hdmi.c +++ b/drivers/gpu/drm/meson/meson_dw_hdmi.c @@ -11,6 +11,8 @@ #include #include #include +#include +#include #include #include #include @@ -102,16 +104,6 @@ #define HDMITX_DWC_DATA_REG 0x14 #define HDMITX_DWC_CTRL_REG 0x18 =20 -/* HHI Registers */ -#define HHI_HDMI_PHY_CNTL0 0x3a0 /* 0xe8 */ -#define HHI_HDMI_PHY_CNTL1 0x3a4 /* 0xe9 */ -#define PHY_CNTL1_INIT 0x03900000 -#define PHY_INVERT BIT(17) -#define HHI_HDMI_PHY_CNTL2 0x3a8 /* 0xea */ -#define HHI_HDMI_PHY_CNTL3 0x3ac /* 0xeb */ -#define HHI_HDMI_PHY_CNTL4 0x3b0 /* 0xec */ -#define HHI_HDMI_PHY_CNTL5 0x3b4 /* 0xed */ - static DEFINE_SPINLOCK(reg_lock); =20 enum meson_venc_source { @@ -131,8 +123,7 @@ struct meson_dw_hdmi_data { unsigned int addr); void (*dwc_write)(struct meson_dw_hdmi *dw_hdmi, unsigned int addr, unsigned int data); - u32 cntl0_init; - u32 cntl1_init; + enum meson_hdmi_phy_soc phy_soc; /* legacy PHY only */ }; =20 struct meson_dw_hdmi { @@ -147,6 +138,8 @@ struct meson_dw_hdmi { u32 irq_stat; struct dw_hdmi *hdmi; struct drm_bridge *bridge; + struct phy *phy; + bool legacy_phy; }; =20 static inline int dw_hdmi_is_compatible(struct meson_dw_hdmi *dw_hdmi, @@ -273,87 +266,6 @@ static inline void dw_hdmi_g12a_dwc_write(struct meson= _dw_hdmi *dw_hdmi, =20 /* Bridge */ =20 -/* Setup PHY bandwidth modes */ -static void meson_hdmi_phy_setup_mode(struct meson_dw_hdmi *dw_hdmi, - const struct drm_display_mode *mode, - bool mode_is_420) -{ - struct meson_drm *priv =3D dw_hdmi->priv; - unsigned int pixel_clock =3D mode->clock; - - /* For 420, pixel clock is half unlike venc clock */ - if (mode_is_420) pixel_clock /=3D 2; - - if (dw_hdmi_is_compatible(dw_hdmi, "amlogic,meson-gxl-dw-hdmi") || - dw_hdmi_is_compatible(dw_hdmi, "amlogic,meson-gxm-dw-hdmi")) { - if (pixel_clock >=3D 371250) { - /* 5.94Gbps, 3.7125Gbps */ - regmap_write(priv->hhi, HHI_HDMI_PHY_CNTL0, 0x333d3282); - regmap_write(priv->hhi, HHI_HDMI_PHY_CNTL3, 0x2136315b); - } else if (pixel_clock >=3D 297000) { - /* 2.97Gbps */ - regmap_write(priv->hhi, HHI_HDMI_PHY_CNTL0, 0x33303382); - regmap_write(priv->hhi, HHI_HDMI_PHY_CNTL3, 0x2036315b); - } else if (pixel_clock >=3D 148500) { - /* 1.485Gbps */ - regmap_write(priv->hhi, HHI_HDMI_PHY_CNTL0, 0x33303362); - regmap_write(priv->hhi, HHI_HDMI_PHY_CNTL3, 0x2016315b); - } else { - /* 742.5Mbps, and below */ - regmap_write(priv->hhi, HHI_HDMI_PHY_CNTL0, 0x33604142); - regmap_write(priv->hhi, HHI_HDMI_PHY_CNTL3, 0x0016315b); - } - } else if (dw_hdmi_is_compatible(dw_hdmi, - "amlogic,meson-gxbb-dw-hdmi")) { - if (pixel_clock >=3D 371250) { - /* 5.94Gbps, 3.7125Gbps */ - regmap_write(priv->hhi, HHI_HDMI_PHY_CNTL0, 0x33353245); - regmap_write(priv->hhi, HHI_HDMI_PHY_CNTL3, 0x2100115b); - } else if (pixel_clock >=3D 297000) { - /* 2.97Gbps */ - regmap_write(priv->hhi, HHI_HDMI_PHY_CNTL0, 0x33634283); - regmap_write(priv->hhi, HHI_HDMI_PHY_CNTL3, 0xb000115b); - } else { - /* 1.485Gbps, and below */ - regmap_write(priv->hhi, HHI_HDMI_PHY_CNTL0, 0x33632122); - regmap_write(priv->hhi, HHI_HDMI_PHY_CNTL3, 0x2000115b); - } - } else if (dw_hdmi_is_compatible(dw_hdmi, - "amlogic,meson-g12a-dw-hdmi")) { - if (pixel_clock >=3D 371250) { - /* 5.94Gbps, 3.7125Gbps */ - regmap_write(priv->hhi, HHI_HDMI_PHY_CNTL0, 0x37eb65c4); - regmap_write(priv->hhi, HHI_HDMI_PHY_CNTL3, 0x2ab0ff3b); - regmap_write(priv->hhi, HHI_HDMI_PHY_CNTL5, 0x0000080b); - } else if (pixel_clock >=3D 297000) { - /* 2.97Gbps */ - regmap_write(priv->hhi, HHI_HDMI_PHY_CNTL0, 0x33eb6262); - regmap_write(priv->hhi, HHI_HDMI_PHY_CNTL3, 0x2ab0ff3b); - regmap_write(priv->hhi, HHI_HDMI_PHY_CNTL5, 0x00000003); - } else { - /* 1.485Gbps, and below */ - regmap_write(priv->hhi, HHI_HDMI_PHY_CNTL0, 0x33eb4242); - regmap_write(priv->hhi, HHI_HDMI_PHY_CNTL3, 0x2ab0ff3b); - regmap_write(priv->hhi, HHI_HDMI_PHY_CNTL5, 0x00000003); - } - } -} - -static inline void meson_dw_hdmi_phy_reset(struct meson_dw_hdmi *dw_hdmi) -{ - struct meson_drm *priv =3D dw_hdmi->priv; - - /* Enable and software reset */ - regmap_update_bits(priv->hhi, HHI_HDMI_PHY_CNTL1, 0xf, 0xf); - - mdelay(2); - - /* Enable and unreset */ - regmap_update_bits(priv->hhi, HHI_HDMI_PHY_CNTL1, 0xf, 0xe); - - mdelay(2); -} - static int dw_hdmi_phy_init(struct dw_hdmi *hdmi, void *data, const struct drm_display_info *display, const struct drm_display_mode *mode) @@ -364,6 +276,9 @@ static int dw_hdmi_phy_init(struct dw_hdmi *hdmi, void = *data, unsigned int wr_clk =3D readl_relaxed(priv->io_base + _REG(VPU_HDMI_SETTING)); bool mode_is_420 =3D false; + unsigned int pixel_clock =3D mode->clock; + union phy_configure_opts opts =3D {}; + int ret; =20 DRM_DEBUG_DRIVER("\"%s\" div%d\n", mode->name, mode->clock > 340000 ? 40 : 10); @@ -392,19 +307,22 @@ static int dw_hdmi_phy_init(struct dw_hdmi *hdmi, voi= d *data, dw_hdmi->data->top_write(dw_hdmi, HDMITX_TOP_TMDS_CLK_PTTN_CNTL, 0x2); =20 /* Setup PHY parameters */ - meson_hdmi_phy_setup_mode(dw_hdmi, mode, mode_is_420); - - /* Disable clock, fifo, fifo_wr */ - regmap_update_bits(priv->hhi, HHI_HDMI_PHY_CNTL1, 0xf, 0); + if (mode_is_420) + pixel_clock /=3D 2; + opts.hdmi.tmds_char_rate =3D (u64)pixel_clock * 1000; + opts.hdmi.bpc =3D 8; + ret =3D phy_configure(dw_hdmi->phy, &opts); + if (ret) + return ret; =20 dw_hdmi_set_high_tmds_clock_ratio(hdmi, display); =20 msleep(100); =20 /* Reset PHY 3 times in a row */ - meson_dw_hdmi_phy_reset(dw_hdmi); - meson_dw_hdmi_phy_reset(dw_hdmi); - meson_dw_hdmi_phy_reset(dw_hdmi); + ret =3D phy_power_on(dw_hdmi->phy); + if (ret) + return ret; =20 /* Temporary Disable VENC video stream */ if (priv->venc.hdmi_use_enci) @@ -443,13 +361,11 @@ static void dw_hdmi_phy_disable(struct dw_hdmi *hdmi, void *data) { struct meson_dw_hdmi *dw_hdmi =3D (struct meson_dw_hdmi *)data; - struct meson_drm *priv =3D dw_hdmi->priv; =20 DRM_DEBUG_DRIVER("\n"); =20 /* Fallback to init mode */ - regmap_write(priv->hhi, HHI_HDMI_PHY_CNTL1, dw_hdmi->data->cntl1_init); - regmap_write(priv->hhi, HHI_HDMI_PHY_CNTL0, dw_hdmi->data->cntl0_init); + phy_power_off(dw_hdmi->phy); } =20 static enum drm_connector_status dw_hdmi_read_hpd(struct dw_hdmi *hdmi, @@ -572,8 +488,7 @@ static const struct meson_dw_hdmi_data meson_dw_hdmi_gx= bb_data =3D { .top_write =3D dw_hdmi_top_write, .dwc_read =3D dw_hdmi_dwc_read, .dwc_write =3D dw_hdmi_dwc_write, - .cntl0_init =3D 0x0, - .cntl1_init =3D PHY_CNTL1_INIT | PHY_INVERT, + .phy_soc =3D MESON_HDMI_PHY_GXBB, }; =20 static const struct meson_dw_hdmi_data meson_dw_hdmi_gxl_data =3D { @@ -581,8 +496,7 @@ static const struct meson_dw_hdmi_data meson_dw_hdmi_gx= l_data =3D { .top_write =3D dw_hdmi_top_write, .dwc_read =3D dw_hdmi_dwc_read, .dwc_write =3D dw_hdmi_dwc_write, - .cntl0_init =3D 0x0, - .cntl1_init =3D PHY_CNTL1_INIT, + .phy_soc =3D MESON_HDMI_PHY_GXL, }; =20 static const struct meson_dw_hdmi_data meson_dw_hdmi_g12a_data =3D { @@ -590,13 +504,13 @@ static const struct meson_dw_hdmi_data meson_dw_hdmi_= g12a_data =3D { .top_write =3D dw_hdmi_g12a_top_write, .dwc_read =3D dw_hdmi_g12a_dwc_read, .dwc_write =3D dw_hdmi_g12a_dwc_write, - .cntl0_init =3D 0x000b4242, /* Bandgap */ - .cntl1_init =3D PHY_CNTL1_INIT, + .phy_soc =3D MESON_HDMI_PHY_G12A, }; =20 -static void meson_dw_hdmi_init(struct meson_dw_hdmi *meson_dw_hdmi) +static int meson_dw_hdmi_init(struct meson_dw_hdmi *meson_dw_hdmi) { struct meson_drm *priv =3D meson_dw_hdmi->priv; + int ret; =20 /* Reset HDMITX APB & TX & PHY */ reset_control_reset(meson_dw_hdmi->hdmitx_apb); @@ -624,8 +538,9 @@ static void meson_dw_hdmi_init(struct meson_dw_hdmi *me= son_dw_hdmi) meson_dw_hdmi->data->top_write(meson_dw_hdmi, HDMITX_TOP_BIST_CNTL, BIT(1= 2)); =20 /* Setup PHY */ - regmap_write(priv->hhi, HHI_HDMI_PHY_CNTL1, meson_dw_hdmi->data->cntl1_in= it); - regmap_write(priv->hhi, HHI_HDMI_PHY_CNTL0, meson_dw_hdmi->data->cntl0_in= it); + ret =3D phy_init(meson_dw_hdmi->phy); + if (ret) + return ret; =20 /* Enable HDMI-TX Interrupt */ meson_dw_hdmi->data->top_write(meson_dw_hdmi, HDMITX_TOP_INTR_STAT_CLR, @@ -634,6 +549,7 @@ static void meson_dw_hdmi_init(struct meson_dw_hdmi *me= son_dw_hdmi) meson_dw_hdmi->data->top_write(meson_dw_hdmi, HDMITX_TOP_INTR_MASKN, HDMITX_TOP_INTR_CORE); =20 + return 0; } =20 static void meson_disable_clk(void *data) @@ -664,10 +580,11 @@ static int meson_dw_hdmi_bind(struct device *dev, str= uct device *master, { struct platform_device *pdev =3D to_platform_device(dev); const struct meson_dw_hdmi_data *match; + struct dw_hdmi_plat_data *dw_plat_data; struct meson_dw_hdmi *meson_dw_hdmi; + struct device_link *link; struct drm_device *drm =3D data; struct meson_drm *priv =3D drm->dev_private; - struct dw_hdmi_plat_data *dw_plat_data; int irq; int ret; =20 @@ -746,7 +663,26 @@ static int meson_dw_hdmi_bind(struct device *dev, stru= ct device *master, return ret; } =20 - meson_dw_hdmi_init(meson_dw_hdmi); + meson_dw_hdmi->phy =3D devm_phy_optional_get(dev, NULL); + if (IS_ERR(meson_dw_hdmi->phy)) + return dev_err_probe(dev, PTR_ERR(meson_dw_hdmi->phy), + "failed to get HDMI PHY\n"); + + if (!meson_dw_hdmi->phy) { + /* DEPRECATED: DT without "phys" */ + dev_warn(dev, "missing \"phys\", using legacy HDMI PHY\n"); + meson_dw_hdmi->phy =3D meson_hdmi_phy_create_legacy(dev, priv->hhi, + meson_dw_hdmi->data->phy_soc); + if (IS_ERR(meson_dw_hdmi->phy)) + return dev_err_probe(dev, PTR_ERR(meson_dw_hdmi->phy), + "failed to create legacy HDMI PHY\n"); + + meson_dw_hdmi->legacy_phy =3D true; + } + + ret =3D meson_dw_hdmi_init(meson_dw_hdmi); + if (ret) + return ret; =20 /* Bridge / Connector */ =20 @@ -767,14 +703,25 @@ static int meson_dw_hdmi_bind(struct device *dev, str= uct device *master, platform_set_drvdata(pdev, meson_dw_hdmi); =20 meson_dw_hdmi->hdmi =3D dw_hdmi_probe(pdev, &meson_dw_hdmi->dw_plat_data); - if (IS_ERR(meson_dw_hdmi->hdmi)) - return PTR_ERR(meson_dw_hdmi->hdmi); + if (IS_ERR(meson_dw_hdmi->hdmi)) { + ret =3D PTR_ERR(meson_dw_hdmi->hdmi); + goto err_hdmi_probe; + } =20 meson_dw_hdmi->bridge =3D of_drm_find_and_get_bridge(pdev->dev.of_node); =20 + link =3D device_link_add(dev, master, DL_FLAG_STATELESS); + if (!link) + dev_warn(dev, "failed to link DRM master (supplier) to HDMI (consumer)\n= "); + DRM_DEBUG_DRIVER("HDMI controller initialized\n"); =20 return 0; + +err_hdmi_probe: + phy_exit(meson_dw_hdmi->phy); + + return ret; } =20 static void meson_dw_hdmi_unbind(struct device *dev, struct device *master, @@ -784,8 +731,14 @@ static void meson_dw_hdmi_unbind(struct device *dev, s= truct device *master, struct platform_device *pdev =3D to_platform_device(dev); int irq =3D platform_get_irq(pdev, 0); =20 + device_link_remove(dev, master); /* (consumer, supplier) */ + devm_free_irq(dev, irq, meson_dw_hdmi); dw_hdmi_unbind(meson_dw_hdmi->hdmi); + + phy_exit(meson_dw_hdmi->phy); + if (meson_dw_hdmi->legacy_phy) + devm_phy_destroy(dev, meson_dw_hdmi->phy); drm_bridge_put(meson_dw_hdmi->bridge); } =20 @@ -801,6 +754,8 @@ static int __maybe_unused meson_dw_hdmi_pm_suspend(stru= ct device *dev) if (!meson_dw_hdmi) return 0; =20 + phy_exit(meson_dw_hdmi->phy); + /* Reset TOP */ meson_dw_hdmi->data->top_write(meson_dw_hdmi, HDMITX_TOP_SW_RESET, 0); @@ -811,11 +766,14 @@ static int __maybe_unused meson_dw_hdmi_pm_suspend(st= ruct device *dev) static int __maybe_unused meson_dw_hdmi_pm_resume(struct device *dev) { struct meson_dw_hdmi *meson_dw_hdmi =3D dev_get_drvdata(dev); + int ret; =20 if (!meson_dw_hdmi) return 0; =20 - meson_dw_hdmi_init(meson_dw_hdmi); + ret =3D meson_dw_hdmi_init(meson_dw_hdmi); + if (ret) + return ret; =20 dw_hdmi_resume(meson_dw_hdmi->hdmi); =20 --=20 2.56.1 From nobody Tue Nov 24 11:35:59 2026 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1795462703; b=fbY2DNfXUbk6cDeFKLORt2UXQ6uR+S6Cd7+jEydeFcCVO1zfhWNubkV4NoFWjywMT09R yTi2IhPgbOyeUsRf1IrC62G04NTC4xGzSGSvWHu1y553YL6mFdEIyMSJDnhmnan63cxwl 8zKTfBWoXiFZJfgfmV9MXW75Yo5lw+yPrEhDq7XjMzG0sPmJqXFJ+GYPYZrRkKbwZYu6h 9rvMcJimLNY8Sdt9XnQ+up4SMTlIhCurqdDw4nd8kBdLcLUiGnzLxKNuSe7q9X5OpaVNS g7oJ6D3vHEq8L+CFiPkxYH5M1TrWzECQZtXZo2KcBZqmugoDH1sE1X11PTqSfGG6Eug== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795462703; h=Received:DKIM-Signature:Received:From:Date:Subject:MIME-Version: Content-Type:Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=+vDV9gxuiMjIN5ig6o5fnYNWGsi3VvCcP9sIBt1qAlo=; b=WCakZos+mfiXFM09wCe/FUxpZgmEm+7Z0/UDYavhyHsKdTwNOLmI6Kqka7woDJTRWqep qmUs2Vmgzotp+LuSK0obgcrUT5Zs7Wea8UhE3atx3S1e7fYxOpOenS99+ukpiiM5Rbu// hQZ22QSzbI+CJJr2gDuStHzX4wRsx4qh882oak4k+3NWjZ5eObJ3s4JKFtbn+KiIwTv6B yOex/PK0EP6ANFu4cYr6QpcSSCN0Kgy5t7C1yjdw8QKFl+g6+5l9zq0cuJF4Ty8gv17Ni FwFfJC4QnEYC0Sa1zGfmYRWRSmoWv4tT5zCo/F0ZppHsAhdFh5LSZxqDkAwMoP0QHhQ== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=DbH1LX1U; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EFD0C60A263A; Mon, 23 Nov 2026 19:38:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=DbH1LX1U Authentication-Results: smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 ARC-Seal: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; cv=none; t=1795462702; b=amVDTO0E74ANGtSbVrojnQjQcprDo1mXLEf8JClPIwYd9L+6krEz0GuvHubibin7XHri OZrbkDKdQB60+rFr5sd0wXjqD8uv1NEA445FUxeZXuPR4Xd3Y3IyFmt50i1CzhHA83pCA so4UOqfBhcpiEQVCbmlu06vpjUcslhy5oWSGo0qL2Jx7E1rdQ5dwK1Ffs761f7qUt0dne 7HcehYoaFuN1kuwRNStXd+qDP/1FgvVKNDWbXWikxpynmKE05cyUb6aBDUVsb3K+Kp3w0 6Vd3NzSrgV1rZtniCQf1GOOVHotITF59XbZ4PclDY89Qqu1giZ/owCTBn1jfA8EBcKg== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1795462702; h=DKIM-Signature:Received:From:Date:Subject:MIME-Version:Content-Type: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=+vDV9gxuiMjIN5ig6o5fnYNWGsi3VvCcP9sIBt1qAlo=; b=tDXaKebNp9D4zZMzaW/xNX9oFHRqbhqxWUvnAtHBL6d+8k6B7VzaNxRZOR5tDq5UFoKF T0neu3TivPpzWkUwDsy45I4b2lhSZNMVWe0rsjKUAyqdhe/DCOXxXD38VbjiYL4fnI9vc aFZX8Cmnl9PR2iPkwvAsnV9zbXiNih86ffDDBCPLJclRteA2W9jaOCTJgAi64QyNaEuYP GZQoBZAl6T7NcmDXxXD9+GX/9I/+CsHCvSRPkqXr2MBRClfxpNqIe6/pxLhYmonJiHKYT qC5z/vJVOlqwN7ZsOIavDG53rbUD6R2/gJ4XADUmheNaPZbF9hKJMcMeVy9BI/0XzZA== ARC-Authentication-Results: i=1; smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 Received: from lkml.kernel.org (nexus.subspace.kernel.org [100.80.115.77]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.kernel.org (Postfix) with ESMTPS id CFF171F000E1; Mon, 23 Nov 2026 19:38:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795462702; bh=+vDV9gxuiMjIN5ig6o5fnYNWGsi3VvCcP9sIBt1qAlo=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=DbH1LX1UuAvhs3qSDLLn9iJFfOOCR2M2Ayg2ghtpQ9ZvEd4Nd9Dtrx5ouwbeXA6Ta P/i7p2XiqvdsViF1LbgypYUzAH6zDk3Y1pEaLm081O5fiC7ycln8YyZU0Qb46n3tCg Hmz7irqB2aOCkWznNzYS/Qe2GgkpiOoU000NO9Gj9rovYVotlphjUP6Hc6cDxIW+lN XSVXKe/DXn3MLIL6SO7OiMwMs+D2BF5PAG8XrIIMUKpdlO/DDySZmUcgtCIzWM+ayq QdY7GzznoNAFGodibWhYn9wroLuo7iooxIQ6i4fTHJrT0Ehcw6EJ57hB1o99vvIrah Tq1QgPCIde0vQ== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id A7A494C6AD; Mon, 23 Nov 2026 19:38:01 +0000 (UTC) From: Ronald Claveau via B4 Relay Date: Mon, 23 Nov 2026 20:37:41 +0100 Subject: [PATCH v4 09/11] arm64: dts: amlogic: Add HDMI TX PHY node for G12 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Message-Id: <20261123-meson-drm-create-hdmitx-phy-v4-9-3fb94f5534ca@aliel.fr> References: <20261123-meson-drm-create-hdmitx-phy-v4-0-3fb94f5534ca@aliel.fr> In-Reply-To: <20261123-meson-drm-create-hdmitx-phy-v4-0-3fb94f5534ca@aliel.fr> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Vinod Koul , Manivannan Sadhasivam , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Ulf Hansson Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, dri-devel@lists.freedesktop.org, Ronald Claveau , linux-pm@vger.kernel.org X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1147; i=linux-kernel-dev@aliel.fr; h=from:subject:message-id; bh=96ezTxgocDNVGkQVkrXP3m6ZHN0B1G+z/JYBO9mFeTE=; b=owGbwMvMwCWm1SvKXP3cUInxtFoSQzbLNOH42B+lxb/Ml9z/9Nlq4bZFganfZs1J25zL7pNqn JKqPqe7o5SFQYyLQVZMkaV/ruWJd5ePnvm6Rz0FZg4rE8gQBi5OAZjIIi+G/+kLXXdrsfHVHHHT V2M1DP65dcXNgGOVXd5fVKW9vyzNv83I0GD0jdWPtXiPT2i1iY1G7rqgjgsn22enJ5/YbJKSOHc 9FwA= X-Developer-Key: i=linux-kernel-dev@aliel.fr; a=openpgp; fpr=DFD863F61375BF917F0012173953305EF1D0EC3E X-Endpoint-Received: by B4 Relay for linux-kernel-dev@aliel.fr/default with auth_id=744 X-Original-From: Ronald Claveau Reply-To: linux-kernel-dev@aliel.fr Content-Transfer-Encoding: quoted-printable From: Ronald Claveau Describe the HDMI TX PHY as a child of the HHI system controller, with the amlogic,meson-g12a-hdmi-tx-phy compatible and reference it from the HDMI TX node through "phys". Signed-off-by: Ronald Claveau --- arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi b/arch/arm64= /boot/dts/amlogic/meson-g12-common.dtsi index 3135566df880..7f9eda4298e9 100644 --- a/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi @@ -210,6 +210,7 @@ hdmi_tx: hdmi-tx@0 { <&clkc CLKID_HTX_PCLK>, <&clkc CLKID_VPU_INTR>; clock-names =3D "isfr", "iahb", "venci"; + phys =3D <&hdmi_tx_phy>; #address-cells =3D <1>; #size-cells =3D <0>; #sound-dai-cells =3D <0>; @@ -1683,6 +1684,11 @@ mipi_analog_dphy: phy { #phy-cells =3D <0>; status =3D "disabled"; }; + + hdmi_tx_phy: hdmi-phy { + compatible =3D "amlogic,meson-g12a-hdmi-tx-phy"; + #phy-cells =3D <0>; + }; }; }; =20 --=20 2.56.1 From nobody Tue Nov 24 11:35:59 2026 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1795462702; b=5H0t0GI37TUzgHFGSe+nECmT8NF1mTLFkJ6Yi6mZaJhCzwVQp70skl+BMjiRjxKr+MSX VeTL4JVsA+c372IJPAulM2PvnPjdwbPKNTXZP59KipOzgB1/x81sh3qqgzneHPtXQFeCI sEZr+pdYvIjZqdy49FXLY72Vo2qmLj7NgP7OZQqFkoJNwTkFHW4NkC6ck8iOYo99h9WCW wNz0PqDQc7mf7JGXx11wdcJp5lG1qAUXZWziuXNpHOQuYbUjM8it7xQ2B2XZO5XTEB4Qq qEsB1HTQn1/OPewMI4eVyaky5nHsS+jscurkuc0xMOoeB+X4aZWm2YmyBZodAZd6J0w== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795462702; h=Received:DKIM-Signature:Received:From:Date:Subject:MIME-Version: Content-Type:Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=5kSP1RnWMSJEJYYJkds0+nXtVqYjbTw1JaXsnE/LlyU=; b=1f0LFx2MTx6jEB98K6qYGVuM4/3pknQe6Z0M6TPfEHtqEAfwlpT+5T4g2K/FzoMiOiwU 1YzyU2864BxpD95nFBN/nDvG6OTv7Wvp8DSwV6kZD8MSxqKeF6YctGXEkSURCYgy1HHBA QA/OFMRXCO0vKW4gaUoCvpV7D65URqreUfRpDOnsd0EP0d+ruy9Zjx/+g7Ew8i1lIoY6O XIylopRZiCKdSxQyVUtkwcKEdzQ6INiy1gDhuI2af4OKTemt8HjKerejUsHm9CnXGIB0p dPfLy94aPTraZIDS7gVzZRRbKKISJp/kXobB597TpJz2ZPoXhIUJyyuqjaeAfv07uuw== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=caJRJWUs; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0831F60A262B; Mon, 23 Nov 2026 19:38:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=caJRJWUs Authentication-Results: smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 ARC-Seal: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; cv=none; t=1795462701; b=nqCtOFIZq2fuuQBoKbqPR0SeJvQflqjstNy1Q+yu9ylg1FY4UxfSoD+wKdbEWh8JdqEf g9uUNauMYMKsgts8eS3YSYLEZiEBZLIFqTVMk+O/otMnNaCn12EE6V0EdPO2uRX+bEuOT nTdA357WfESVArHbIylMksLt8Ebtapegzr1lfpRhd1eg8IUq8rXil0/01y5kiG0kvlhsF pRbqhTuw/5uGGgXaD1b3HEsyG5ZPDO/Y5XKqiMCQYm6y6c8p9VLQ1M2dQARY4zY5xF/7v ZvPl9FxjSl2C/nzKYy6FDbJfEUQVbqR8t9wjYFD0CFG4VrLyCmStiLhM5X9t2Le4jaQ== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1795462701; h=DKIM-Signature:Received:From:Date:Subject:MIME-Version:Content-Type: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=5kSP1RnWMSJEJYYJkds0+nXtVqYjbTw1JaXsnE/LlyU=; b=pnfoyib6qL+Sq2MnUAHw7+/a45LP6yZIoWhWqGCoR0MknPLYPuBC/JRwK5iUKfRcCmaM xJeNoKRZoG3Bt5Crk/UWAKJBc/htFtGtAAw3qsJy4CGpJ0C8TBV7D3KjIO0pptyvd1BRC qBFixdFrKYrsfmudCTNX+KeCgqzz/ua2EoHx0hIJGcDvsYSpICDhkvKi6pOrZejOKSDZN TMLgFpVa0ikXXPk1CXxF36hKkU0klx2D2Ull/ceihF5yNpPf3WQKpRBdX5e5nZ7ApAxHB UaSTM3eRWO9ADpi5mZCKmXapI0pasOricN6BCwIBn90Yj1FqQX9u+sfDuuxpc2UVu9Q== ARC-Authentication-Results: i=1; smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 Received: from lkml.kernel.org (nexus.subspace.kernel.org [100.80.115.77]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.kernel.org (Postfix) with ESMTPS id D62061F00A01; Mon, 23 Nov 2026 19:38:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795462701; bh=5kSP1RnWMSJEJYYJkds0+nXtVqYjbTw1JaXsnE/LlyU=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=caJRJWUsM0119vW9sfuTSKZO6Xwf4QnFuUuK+qleWeMQehyvozhHLMX6jhHMwAdQB 5Qpolqb+qPEDDWgCGeVuSu8hF8cwjHW96lH1h3LIu5zDLdnFrFfbys+rr8ggZVHjiP nkbOa1snbLrL88W5S0iCDflXESygf2svm/FdPJRRxdMTIpMiToMQaOUGNGbLZex5bm P+X9kjBS6gQgkLn8SuYmaFWKqgOe7bW8HgBRHlZxm5pY7XyJRhv81Vg3v5I/xtTIMa 5hd/ErTz4y1AJqaiMAb47xko5ZfdpJfaclDaezQE17MxKpXHzkGlvr1B3CgwTtIMhh 5JvcwLjZlq11A== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id C38484C6B1; Mon, 23 Nov 2026 19:38:01 +0000 (UTC) From: Ronald Claveau via B4 Relay Date: Mon, 23 Nov 2026 20:37:42 +0100 Subject: [PATCH v4 10/11] arm64: dts: amlogic: Add HDMI TX PHY node for GXBB X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Message-Id: <20261123-meson-drm-create-hdmitx-phy-v4-10-3fb94f5534ca@aliel.fr> References: <20261123-meson-drm-create-hdmitx-phy-v4-0-3fb94f5534ca@aliel.fr> In-Reply-To: <20261123-meson-drm-create-hdmitx-phy-v4-0-3fb94f5534ca@aliel.fr> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Vinod Koul , Manivannan Sadhasivam , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Ulf Hansson Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, dri-devel@lists.freedesktop.org, Ronald Claveau , linux-pm@vger.kernel.org X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1081; i=linux-kernel-dev@aliel.fr; h=from:subject:message-id; bh=JfeJFGsdjuVYuSpN9bsRq2rmNT9JvKzwp64cluLxjAw=; b=owGbwMvMwCWm1SvKXP3cUInxtFoSQzbLNJGeb/GPL23k8rp32FN6et1so+Lwfu01jE3iEakL7 gnWb9HqKGVhEONikBVTZOmfa3ni3eWjZ77uUU+BmcPKBDKEgYtTACay/xLDX5kH8nGXV+pFLZmY dNysvVR8H2eScVndjLJpnXe3OO9K6GL4pxP1/Pyij5vjzY8et4w7VpPzYe1R1UUFl/ZWc61amHt hARcA X-Developer-Key: i=linux-kernel-dev@aliel.fr; a=openpgp; fpr=DFD863F61375BF917F0012173953305EF1D0EC3E X-Endpoint-Received: by B4 Relay for linux-kernel-dev@aliel.fr/default with auth_id=744 X-Original-From: Ronald Claveau Reply-To: linux-kernel-dev@aliel.fr Content-Transfer-Encoding: quoted-printable From: Ronald Claveau Describe the HDMI TX PHY as a child of the HHI system controller, with the amlogic,meson-gxbb-hdmi-tx-phy compatible and reference it from the HDMI TX node through "phys". Signed-off-by: Ronald Claveau --- arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi b/arch/arm64/boot/= dts/amlogic/meson-gxbb.dtsi index 5c2fe9dc4f80..09ad9790ebc2 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi @@ -316,6 +316,7 @@ &hdmi_tx { <&clkc CLKID_GCLK_VENCI_INT0>; clock-names =3D "isfr", "iahb", "venci"; power-domains =3D <&pwrc PWRC_GXBB_VPU_ID>; + phys =3D <&hdmi_tx_phy>; =20 assigned-clocks =3D <&clkc CLKID_HDMI_SEL>, <&clkc CLKID_HDMI>; @@ -330,6 +331,11 @@ clkc: clock-controller { clocks =3D <&xtal>; clock-names =3D "xtal"; }; + + hdmi_tx_phy: hdmi-phy { + compatible =3D "amlogic,meson-gxbb-hdmi-tx-phy"; + #phy-cells =3D <0>; + }; }; =20 &hwrng { --=20 2.56.1 From nobody Tue Nov 24 11:35:59 2026 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1795462703; b=ApbxY8qZNY0IbtsjyGse1aQw7WOJ1zZbC1Or8WQe1Eml0P77uBa2on6Zfm64xsJ3yjBH 53GHHvA2BraL1DxCHcJIoyCJ0uOIMpHmpg0Ksq9mCp7yhsMsuHgyKyQ7VAdqV6Otn6AXV Spm86FqaW94n+vaFBlAdMhBL0NdqLiJakd8L0PGXDF25lbnbEELkf5es6aHPItuIAaI/L dDWGlOgrElBmdEGSC3Gd2bbiK8jjS4OnBHimZmKlQf4KdvLVsnWCwyzMO4ofoIhA3csUb UALTkewzn1LCbC3N57MuGu9jI+CPi1syI9ByObXvAZeIpARJSZ4vjZ4HEWspNM0NGeg== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795462703; h=Received:DKIM-Signature:Received:From:Date:Subject:MIME-Version: Content-Type:Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=3ySlJUTZg8+yNINn5sfi2SIyHBWA5zVWlGALJ4M1cgM=; b=CajkJLIwjR/EQPf5FtSVnscp/vJV3I/sLuByQTRNnYnFtZTCt1wqn0SeUfUctmNWMlW6 PRNPIhLwzWQTScC0ej6NAaFQ5pd5//dvEU61WoHO38WmShQFZXxanTcS5/Zguwq+Fp33x kSZEZM6AW03gXaZGQUZ+bR3oROjJKNJ9RnKMhzMk+tM36qCNpS/jzU2ZRAaaPikitjxbZ wbuAXH8nmnjuGkVn4HMVPG0qYgF4IOWF2sVPLEUMJzO/Rbima9iI0omKhvV4HVMNxjdBK uXa7tGPO/S4obnL5yXKew9tWgLcWKrQ0vU4uJ4yfIuKB1qwNyVsZGZW1J9Yd8dAORCA== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=b+rd1ThK; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5BCAF60A380E; Mon, 23 Nov 2026 19:38:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=b+rd1ThK Authentication-Results: smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 ARC-Seal: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; cv=none; t=1795462702; b=h0a2NrpOuE7oQkBNdNDmYWtldGcSPGNw5qK2AIwQ6r3Q/cFOMFtpUeQ5fkmncHl9TviZ uuAEMHlkvr3g98Bs6J6znvT4jKGbC302rlnEqhH6AG+2uVgi/UeRWiCnYdhSVovinGMBV cekVcti5vGcXlYeuurVBruqk4vh6+8m9APzDFnn2pgCM5T6sbhjRaJctPUcSQ864v1epc /gy1eHkRxkIDSZ23Lzp9uLO4Od2gn64Zyg3c50FVD1epJu/MWeiy48mlA1yEaaOWpDV5F jvPiFfCU3I58LDOSVKV7vGAfUi9m26npZX+VretJgOeFVvb4YrjddVKdkKFfBgViHbg== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1795462702; h=DKIM-Signature:Received:From:Date:Subject:MIME-Version:Content-Type: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=3ySlJUTZg8+yNINn5sfi2SIyHBWA5zVWlGALJ4M1cgM=; b=ivDE/YGd1TFz4hSg0/U9dlonbrg+MPir8PxruhAQlf9bypdQLZQpI2EtVdw1/A1XLM4R Qo0ffP8UHUrvuwREghAKXqGAnE4sJYEU98WOnyLcrEkC3ifXk1HxNGJIpacdo64uNw+pp EhZDWda6/EMIfjX45FIO4OBn5XLs4P7dtd8op5uTrsY4bfCIdzk5Il0bjPpZmybvy26yJ 1kw07nLOX4Gh/GY64CXU3u4oYrEmrn8yASgj5b7+1KiXpPfBy+cXnN20e4Wk74HA89NJY VDDO4peT2ywFrssykQAKiabp0HuApUBOVz8sgM4yGcLHVCzNc3Ue7kxHYVKTkLaoiwQ== ARC-Authentication-Results: i=1; smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 Received: from lkml.kernel.org (nexus.subspace.kernel.org [100.80.115.77]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.kernel.org (Postfix) with ESMTPS id D2D7E1F01567; Mon, 23 Nov 2026 19:38:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795462702; bh=3ySlJUTZg8+yNINn5sfi2SIyHBWA5zVWlGALJ4M1cgM=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=b+rd1ThKgoubiqbjN2AE0h/qmGr/RCOybwbPeDCX65Eia0XqmsedjdwGmRUzas1vT eJYgQe3jgx4o+Rjbfs/LtXL49smq2yCbT2fBQ1vOK9DbAyElUbIU4WW966H+QTl3x1 tAfmiuVc6fZtmwcWhZlJq+yIUPDwF1CVsh1+mxijDYtaCGjShSZKPpy6NgW33zvgu3 K0mNAe46NlfgJ3YsEK5gyOJeEkzcFKXacHndBLsboTeQSCPn8b8fmEaPU+jp7dmieP GEDr2kG0uQpBk+OPlD25wFBoMdy8t/SkoIYHJ9Dhq8qJ6w1IbcVCeVihRTO1graf3a RBDJSP/QFOQvA== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id DEC534C6B5; Mon, 23 Nov 2026 19:38:01 +0000 (UTC) From: Ronald Claveau via B4 Relay Date: Mon, 23 Nov 2026 20:37:43 +0100 Subject: [PATCH v4 11/11] arm64: dts: amlogic: Add HDMI TX PHY node for GXL X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Message-Id: <20261123-meson-drm-create-hdmitx-phy-v4-11-3fb94f5534ca@aliel.fr> References: <20261123-meson-drm-create-hdmitx-phy-v4-0-3fb94f5534ca@aliel.fr> In-Reply-To: <20261123-meson-drm-create-hdmitx-phy-v4-0-3fb94f5534ca@aliel.fr> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Vinod Koul , Manivannan Sadhasivam , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Ulf Hansson Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, dri-devel@lists.freedesktop.org, Ronald Claveau , linux-pm@vger.kernel.org X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1074; i=linux-kernel-dev@aliel.fr; h=from:subject:message-id; bh=JP7lAwalWZ4HUjkBJydQfX0hMiglUBnijIXqwFKtcOI=; b=owGbwMvMwCWm1SvKXP3cUInxtFoSQzbLNLFph2LDl/9l8+XbE7wszkmsSG6amugpG7Htm77/s bBeYF/aUcrCIMbFICumyNI/1/LEu8tHz3zdo54CM4eVCWQIAxenAExkzhmG/2Wtkr9SuPazzffh fODmu9nMneeJEdMlY8n4htwXsuJrNRkZltnc1djpVuwbr/XEXmOT4/7FLlnfQg1Kg3cXfN69UF2 GGQA= X-Developer-Key: i=linux-kernel-dev@aliel.fr; a=openpgp; fpr=DFD863F61375BF917F0012173953305EF1D0EC3E X-Endpoint-Received: by B4 Relay for linux-kernel-dev@aliel.fr/default with auth_id=744 X-Original-From: Ronald Claveau Reply-To: linux-kernel-dev@aliel.fr Content-Transfer-Encoding: quoted-printable From: Ronald Claveau Describe the HDMI TX PHY as a child of the HHI system controller, with the amlogic,meson-gxl-hdmi-tx-phy compatible and reference it from the HDMI TX node through "phys". Signed-off-by: Ronald Claveau --- arch/arm64/boot/dts/amlogic/meson-gxl.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxl.dtsi b/arch/arm64/boot/d= ts/amlogic/meson-gxl.dtsi index f257fe3860f7..d205eec1cff7 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxl.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-gxl.dtsi @@ -328,6 +328,7 @@ &hdmi_tx { <&clkc CLKID_GCLK_VENCI_INT0>; clock-names =3D "isfr", "iahb", "venci"; power-domains =3D <&pwrc PWRC_GXBB_VPU_ID>; + phys =3D <&hdmi_tx_phy>; =20 assigned-clocks =3D <&clkc CLKID_HDMI_SEL>, <&clkc CLKID_HDMI>; @@ -342,6 +343,11 @@ clkc: clock-controller { clocks =3D <&xtal>; clock-names =3D "xtal"; }; + + hdmi_tx_phy: hdmi-phy { + compatible =3D "amlogic,meson-gxl-hdmi-tx-phy"; + #phy-cells =3D <0>; + }; }; =20 &hwrng { --=20 2.56.1