From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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.subspace.kernel.org (Postfix) with ESMTPS id 6F30D606A6B0 for ; Tue, 1 Dec 2026 20:13:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=mVbVNANF; dkim=fail reason="signature verification failed" (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=RgSMhbmo DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:Reply-To:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References: Message-Id:MIME-Version:Subject:Date:From:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=wPxUwrP6CQI+1vC+e8GYB0BU7HRSRe8Q1kL2ya6Q43E=; b=mVbVNANFvXkGOlraHXTLqjadKQ LiGRMaO+37/lf0Ea4rBsAMmEAAq3/L8n1YMgTJyPGrYysBpwSrLWv4Usl/PSE7xhSEgAiBSLqvLtT z4AjkdiCJyLCFURr1YD36dLl3vNc7BWaiS0EdjszcUJXTnIqUrzOmfl4aAi182CL9eCBcU2Em1W/b AQqD081DBSLXMFNJqsllH5T/Xf51RW4N43UhiCvl/8CyMuwxxbLUcxX03mlzuvJvzg7rGgHrJ8OWP 9pmXbiwrjuESw3P+KOKPvGyv6mAFffO7PeJLtSd+iDXM65wC2H8Q0Nmgw1NPzas4dY4LAZ0CbMJn5 /x2nt+ww==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYUEa-00000009Jli-30Uz; Tue, 01 Dec 2026 20:13:52 +0000 Received: from sea.source.kernel.org ([172.234.252.31]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYUEZ-00000009JkB-1vty; Tue, 01 Dec 2026 20:13:51 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id 0EF0740B9C; Tue, 1 Dec 2026 20:13:51 +0000 (UTC) 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=1796156030; b=M2ZEBNeeuTsZGDhSE9e6jiWby6M+bZgsJl+jVOfBlKt7BifWK/a+/QQXwQVBHh/Lm1+l 0EnbgS1GIbq55b1TjDhVSUYy3t7HksYGypMqwGthujo5E4kJTG2W3KkGdribtOH43Aqly FERLSCl9ulLfPP2NUTnl8Si+8KRImzusRdzgBYho78iNdX6MVVKxlaBXOza5vd1WKLg4t iArYGmqzhWmL4SMbA1qSlWLhD8tcrTOE6axQVmC/dd8+85DsyBDKvrVFxkVvIbFqlTeWp vMEWUcRgXbu02s8ZTfusaWSapMi5z2e7dglo7sgE7tciIINhip1BhPTeKbsXeDhu/Zw== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1796156030; 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=5Bpp1vGQ+ro1+4BngZ0jruaFtkqZQkp2nVQYn1E2KFQ=; b=FeptRON0xb9ngfNZKk5tSJn46OB+7d+00hAUg53rUM/9rMxLOcDr31L2yGhOTi2BAIO5 IH1ozG/OsNEtFe389nSvCl89zoO3wGZ+Nwg/BJZUik4TLwDqtjMwXxZ9cnJyYPExkBCDF F5y84L26b6FQPXsFopN69/9+4TCnu6mZUsq0LjM36PwXSZJprEMRVuNPIVhj5nxwQAjCD 85veNenInfr4rv9UcxgMNOqKv2BfzaYyBHL/0MQkh9J/PA4WgLLM+eW8OeB52EfWV2zW6 8UkkVGbkwP2tV9xgW9wPADOIGuVxqfebBeYWUk+rxDxUqYrsWjslFd25MlFSYye+Fgg== 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 A43AA1F000C1; Tue, 1 Dec 2026 20:13:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796156030; bh=5Bpp1vGQ+ro1+4BngZ0jruaFtkqZQkp2nVQYn1E2KFQ=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=RgSMhbmo1N3OWerbHqwMA3FGSs7ACfYYhR3C05bCdu3Lc8IrL1BW3tB0fgXIqH7qe vVpZmwWCoOngAvJPk25/FwiKStpD3zCfpgK5emcIK1p/Phkl5d06wjK6AqQvus0ZR+ 695Sr9DEhTFxQ10/05LAh3aTU2/OyHJyQn3VIykmgDO4bMaq0HxqEgA5Q2G+5G2WEU C+2WuMqAghmYV49/NHL5GQng7u1Gdy6xuhQyEE+exRpweQJf4R00/tMXTiBUv+hn/n vAiHKH1QCENSX0xmmdjO8ca1EoSmsolXDSGcUgnjigjzD0MUbtGFmEAcnSWsWH/5P0 VK8BYpYtf+DSQ== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id 25A504F070; Tue, 1 Dec 2026 20:13:41 +0000 (UTC) From: Ronald Claveau via B4 Relay Date: Tue, 01 Dec 2026 21:12:50 +0100 Subject: [PATCH v6 02/13] dt-bindings: soc: amlogic: meson-gx-hhi-sysctrl: Add #phy-cells X-Archived-By: MIME-Version: 1.0 Message-Id: <20261201-meson-drm-create-hdmitx-phy-v6-2-5ccdf57a6cf5@aliel.fr> References: <20261201-meson-drm-create-hdmitx-phy-v6-0-5ccdf57a6cf5@aliel.fr> In-Reply-To: <20261201-meson-drm-create-hdmitx-phy-v6-0-5ccdf57a6cf5@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=3421; i=linux-kernel-dev@aliel.fr; h=from:subject:message-id; bh=nVF1waO1nRvzJFKOFtlVufKw7dggmoqdppaYYXGr2dE=; b=owGbwMvMwCWm1SvKXP3cUInxtFoSQza/VtydEul3l7Uj00RfMGicNZXukne+bV92rYHrrLRIR /Sk5oaOUhYGMS4GWTFFlv65lifeXT565use9RSYOaxMIEMYuDgFYCIvNzEy3Jrol2aQeOvp1s+r uw1lApdOusBRF2FdePz9sUUJ5Tkypgz/lOWPKhVzdlitfBj0a9PcxZcWlGlf27yVVfV4TDbHnG+ L2AE= 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 X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: linux-kernel-dev@aliel.fr Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-amlogic" X-Spam-Status: No, score=-16.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 From: Ronald Claveau The HDMI TX PHY found on GXBB, GXL, GXM and G12A SoCs is controlled through registers of the HHI system controller and has no resources of its own. Instead of describing it as a child node, let the HHI system controller act as the PHY provider, so that the HDMI TX controller can reference it with "phys = <&sysctrl>". The PHY itself is instantiated by the meson-gx-hhi-sysctrl driver as an auxiliary device. Add the "#phy-cells" property (const 0) and forbid it for the other system controller variants. Add it to the example. The HDMI TX PHY registers differ between SoC families, so the driver needs to know which family it is running on. Add SoC-specific compatibles (amlogic,meson-gxbb-hhi-sysctrl, amlogic,meson-gxl-hhi-sysctrl, amlogic,meson-g12a-hhi-sysctrl) to select the PHY variant. Signed-off-by: Ronald Claveau --- .../soc/amlogic/amlogic,meson-gx-hhi-sysctrl.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Documentation/devicetree/bindings/soc/amlogic/amlogic,meson-gx-hhi-sysctrl.yaml b/Documentation/devicetree/bindings/soc/amlogic/amlogic,meson-gx-hhi-sysctrl.yaml index 285edac4c082..f277e22a98ff 100644 --- a/Documentation/devicetree/bindings/soc/amlogic/amlogic,meson-gx-hhi-sysctrl.yaml +++ b/Documentation/devicetree/bindings/soc/amlogic/amlogic,meson-gx-hhi-sysctrl.yaml @@ -14,6 +14,9 @@ properties: items: - enum: - amlogic,meson-hhi-sysctrl + - amlogic,meson-g12a-hhi-sysctrl + - amlogic,meson-gxl-hhi-sysctrl + - amlogic,meson-gxbb-hhi-sysctrl - amlogic,meson-gx-hhi-sysctrl - amlogic,meson-gx-ao-sysctrl - amlogic,meson-axg-hhi-sysctrl @@ -36,6 +39,12 @@ properties: phy: type: object + "#phy-cells": + const: 0 + description: + Present on SoCs where the HDMI TX PHY is controlled through the + HHI registers. The system controller acts as the PHY provider. + allOf: - if: properties: @@ -50,12 +59,16 @@ allOf: pinctrl: false phy: false + "#phy-cells": false - if: properties: compatible: contains: enum: + - amlogic,meson-g12a-hhi-sysctrl + - amlogic,meson-gxl-hhi-sysctrl + - amlogic,meson-gxbb-hhi-sysctrl - amlogic,meson-gx-hhi-sysctrl - amlogic,meson-axg-hhi-sysctrl then: @@ -80,12 +93,14 @@ allOf: power-controller: false phy: false + "#phy-cells": false - if: properties: compatible: contains: enum: + - amlogic,meson-g12a-hhi-sysctrl - amlogic,meson-gx-hhi-sysctrl then: properties: @@ -104,6 +119,7 @@ allOf: oneOf: - $ref: /schemas/phy/amlogic,g12a-mipi-dphy-analog.yaml - $ref: /schemas/phy/amlogic,meson-axg-mipi-pcie-analog.yaml + "#phy-cells": false required: - compatible @@ -124,6 +140,7 @@ examples: sysctrl: system-controller@0 { compatible = "amlogic,meson-gx-hhi-sysctrl", "simple-mfd", "syscon"; reg = <0 0x400>; + #phy-cells = <0>; clock-controller { compatible = "amlogic,gxbb-clkc"; -- 2.56.1 _______________________________________________ linux-amlogic mailing list linux-amlogic@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-amlogic