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 47554606A31A for ; Wed, 2 Dec 2026 07:57:49 +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=MJpb2ClX; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=zi/EXwUZ DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:Reply-To:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:References:Cc:To:Subject: From:MIME-Version:Date:Message-ID:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=+GS3a1bAP6pnYtBekuysbpw96mr6NzMhwYPIL6MoOFU=; b=MJpb2ClXz8mEcghxmlQ1fBUEI0 8AqRwcQhcD31LMj9d1tmF3dAx0b4ZlYLtLF17HYylkOkGi18mw2jVa0Zcb1kgNOrCkmSuo2OvRO7U qNB1RHrFOUmwjtdaBa72ElO1g8i0mK1JfMMVB3fVtvhSig3JkPXrjySbKRuSjE4mrvBv1JctSuk0T +yu4J6WahljhgygLzHA1A/lxt31o5nLlbMYGmdC5cItZ9qF9lBeyuqvudhwS0YwsT1bKi4SU4AaL0 FrGuZro/mbAcnLEoirvzWO59bAQSLt/OcRZOXuZhlCqZdFaaaYCBEqnPzvoR2zNNVqlKTrxqlSO45 VrL/co8Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYfDj-0000000AacM-3xv2; Wed, 02 Dec 2026 07:57:43 +0000 Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYfDe-0000000Aab7-2XK6 for linux-amlogic@lists.infradead.org; Wed, 02 Dec 2026 07:57:42 +0000 Received: by mail-wr1-x42b.google.com with SMTP id ffacd0b85a97d-4a32576da88so7339920f8f.3 for ; Tue, 01 Dec 2026 23:57:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1796198255; x=1796803055; darn=lists.infradead.org; h=content-transfer-encoding:content-type:in-reply-to:organization :autocrypt:content-language:references:cc:to:subject:reply-to:from :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to:content-type; bh=IX8dPy3S1H3HNP5bfed1w5psNnmlGrwyQRXcNyheXN4=; b=zi/EXwUZy6v8HCZwkArbDIubYuh23sRBvyj5LB/EDqWUo+27LhMCYUKqocHPDhYobP w2mTXtIQI/5ihS75W+HE0G03bWbN0D9w7MeVY7ZMoC5qsIyOYiHWv13JsRx51JVvLwLc ni2S9sC66XSHgjxisokim/e54/MgFe/B2PVNxPTF0OYKMBLSU25AZRECQHdgghvwNDOd v5dac+Tr94EEnFis3XmTkPp0fmpo7yDfhghYBzPr3P55NsOI29sbX2hr6ExPMdjAoMnV MSUMFhcbFC8fbJMTn2lujzIviVK1Wd1FGTG/iIXG8BqmAEm/OgKkDAx793UT3DOlvL96 8XvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796198255; x=1796803055; h=content-transfer-encoding:content-type:in-reply-to:organization :autocrypt:content-language:references:cc:to:subject:reply-to:from :user-agent:mime-version:date:message-id:x-gm-gg:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to:content-type; bh=IX8dPy3S1H3HNP5bfed1w5psNnmlGrwyQRXcNyheXN4=; b=EIZ5etEiUu1EFzXFctN7SONingJWyd/z3Xkvpl9VkCupSmOQEIOsAP1eDLohaLC7qq We1obcmI7haJ+GAPb6Hk1lYN5GMQjmMOO7r1KsB4DUArwayrbc4dmKOc1tYulNMXcpnY 5wXBZ24mMheHpjpSLRJbrly+6rQBI9QKmupadXEA7S2bTQH9oEjSoW1f7eYLK+BDaAxl UKjfD5h5VO76XYYNE/klUZA9eSuYFd9agCpP91UYBGF64vpRqiRCwA78G8pSUnYzIHN5 FB/1uX6/29yGdn6jof21WdAF06mFgixuzaXeBz4AA91rt8AEo21v3Q0INX/49A1J7jZi 1ATg== X-Forwarded-Encrypted: i=1; AL+hErH07HBrkLU3QXovErZam0uKfxetSzw8yo+W4enF1QfuhseXwyNhvSasJhf0yP8DOfPzE26A01jXMn7avxBV@lists.infradead.org X-Gm-Message-State: APuU4Z9ztxRTtZYm/Mq2/0hB3+vupQXY84sKBxegBNsGEABdoo8L9LJx B8sUMBTOvDG6T9SFDEJv/IRq/cXZVUt4l581plK61FWXR6KR0qPTfc02KLB9HAdcKUk= X-Gm-Gg: AZFdTZd6MvIQVBkSg81Oyx17QuXs4dSpwxoxAx9VBPs3rAcIN4FCWHEEvuimsL1iMx2 JzKo+IhLz/Oeg9HSSokeCDQMvD5L62mc67tW3uP7larf7AgeFCtwizxZ6RORClIe8yqPo9QXJQb aQw+or1toqFMTYkcfnrmhTYRB/eh56IwkgKIwZse/ncpfP1t/CPNVV5pQW23/X009RUo08xGu6c cpfknc+Vkfb8MnDoAoGKJvfG04YPRg83mqjaoVUxbx4vwiHDVrT2oNOJOgMR/OB6gW2U6TOfrYp FTygZTRcM7OckXuS7QCvg/aCdnb37bRjpnrPbDytLIiCtb0JfoZtD+0CEsjrTtJlCatRs6KJ8cA l9VEZU8YCqMCm0Q0AIGB/yf93zCoHeopGdqcUvgGBxoRlJQcx/6TTZwBo9RDzuA/emvBXpHnGsK gZqwJ2EYV/0bGMI2Iy2qVs/jFwjtAxLQD0vrW4RY/lrFWPOBzk+/5ekusBw+NkbPe5YzaXSvmR7 uZXHsjeiESeeUx7mP6JQP31rDRpo4eim6qUCv7168bRBbYtVX3q3Z9lkCeyl6Xj3GQG0+Lm+LjQ bQowu/+eiy/e6nqUa7kDcUJdHInd9Voyc+ExWttjf2shC/0xmoNxPoIv6jr9FyJ+BCnuNsR6yoi 9/j116IJP X-Received: by 2002:a05:6000:2f85:b0:4a7:557:fcc with SMTP id ffacd0b85a97d-4abb8ac1227mr67116966f8f.53.1796198255016; Tue, 01 Dec 2026 23:57:35 -0800 (PST) Received: from ?IPV6:2a01:e0a:106d:1080:70ee:b799:4e14:5156? ([2a01:e0a:106d:1080:70ee:b799:4e14:5156]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab6c340df4sm85816870f8f.55.2026.12.01.23.57.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 01 Dec 2026 23:57:34 -0800 (PST) Message-ID: <07f3e282-f83b-4c89-9ec0-6887f63c1882@linaro.org> Date: Wed, 2 Dec 2026 08:57:33 +0100 X-Archived-By: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Neil Armstrong Subject: Re: [PATCH v6 02/13] dt-bindings: soc: amlogic: meson-gx-hhi-sysctrl: Add #phy-cells To: linux-kernel-dev@aliel.fr, Rob Herring , Krzysztof Kozlowski , Conor Dooley , 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, linux-pm@vger.kernel.org References: <20261201-meson-drm-create-hdmitx-phy-v6-0-5ccdf57a6cf5@aliel.fr> <20261201-meson-drm-create-hdmitx-phy-v6-2-5ccdf57a6cf5@aliel.fr> Content-Language: en-US, fr Autocrypt: addr=neil.armstrong@linaro.org; keydata= xsBNBE1ZBs8BCAD78xVLsXPwV/2qQx2FaO/7mhWL0Qodw8UcQJnkrWmgTFRobtTWxuRx8WWP GTjuhvbleoQ5Cxjr+v+1ARGCH46MxFP5DwauzPekwJUD5QKZlaw/bURTLmS2id5wWi3lqVH4 BVF2WzvGyyeV1o4RTCYDnZ9VLLylJ9bneEaIs/7cjCEbipGGFlfIML3sfqnIvMAxIMZrvcl9 qPV2k+KQ7q+aXavU5W+yLNn7QtXUB530Zlk/d2ETgzQ5FLYYnUDAaRl+8JUTjc0CNOTpCeik 80TZcE6f8M76Xa6yU8VcNko94Ck7iB4vj70q76P/J7kt98hklrr85/3NU3oti3nrIHmHABEB AAHNKk5laWwgQXJtc3Ryb25nIDxuZWlsLmFybXN0cm9uZ0BsaW5hcm8ub3JnPsLAkQQTAQoA OwIbIwULCQgHAwUVCgkICwUWAgMBAAIeAQIXgBYhBInsPQWERiF0UPIoSBaat7Gkz/iuBQJk Q5wSAhkBAAoJEBaat7Gkz/iuyhMIANiD94qDtUTJRfEW6GwXmtKWwl/mvqQtaTtZID2dos04 YqBbshiJbejgVJjy+HODcNUIKBB3PSLaln4ltdsV73SBcwUNdzebfKspAQunCM22Mn6FBIxQ GizsMLcP/0FX4en9NaKGfK6ZdKK6kN1GR9YffMJd2P08EO8mHowmSRe/ExAODhAs9W7XXExw UNCY4pVJyRPpEhv373vvff60bHxc1k/FF9WaPscMt7hlkbFLUs85kHtQAmr8pV5Hy9ezsSRa GzJmiVclkPc2BY592IGBXRDQ38urXeM4nfhhvqA50b/nAEXc6FzqgXqDkEIwR66/Gbp0t3+r yQzpKRyQif3OwE0ETVkGzwEIALyKDN/OGURaHBVzwjgYq+ZtifvekdrSNl8TIDH8g1xicBYp QTbPn6bbSZbdvfeQPNCcD4/EhXZuhQXMcoJsQQQnO4vwVULmPGgtGf8PVc7dxKOeta+qUh6+ SRh3vIcAUFHDT3f/Zdspz+e2E0hPV2hiSvICLk11qO6cyJE13zeNFoeY3ggrKY+IzbFomIZY 4yG6xI99NIPEVE9lNBXBKIlewIyVlkOaYvJWSV+p5gdJXOvScNN1epm5YHmf9aE2ZjnqZGoM Mtsyw18YoX9BqMFInxqYQQ3j/HpVgTSvmo5ea5qQDDUaCsaTf8UeDcwYOtgI8iL4oHcsGtUX oUk33HEAEQEAAcLAXwQYAQIACQUCTVkGzwIbDAAKCRAWmrexpM/4rrXiB/sGbkQ6itMrAIfn M7IbRuiSZS1unlySUVYu3SD6YBYnNi3G5EpbwfBNuT3H8//rVvtOFK4OD8cRYkxXRQmTvqa3 3eDIHu/zr1HMKErm+2SD6PO9umRef8V82o2oaCLvf4WeIssFjwB0b6a12opuRP7yo3E3gTCS KmbUuLv1CtxKQF+fUV1cVaTPMyT25Od+RC1K+iOR0F54oUJvJeq7fUzbn/KdlhA8XPGzwGRy 4zcsPWvwnXgfe5tk680fEKZVwOZKIEuJC3v+/yZpQzDvGYJvbyix0lHnrCzq43WefRHI5XTT QbM0WUIBIcGmq38+OgUsMYu4NzLu7uZFAcmp6h8g Organization: Linaro In-Reply-To: <20261201-meson-drm-create-hdmitx-phy-v6-2-5ccdf57a6cf5@aliel.fr> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261201_235739_449771_58988975 X-CRM114-Status: GOOD ( 23.60 ) X-Spam-Score: -2.1 (--) 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: Neil Armstrong Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-amlogic" X-Spam-Status: No, score=-15.4 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_SANE_1 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 Hi, On 12/1/26 21:12, Ronald Claveau via B4 Relay wrote: > 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. There's multiple PHYs in the HHI register zone, you can't consider the HHI zone exposes an HDMI PHY and keep the dsi phy subnodes. I disagree with Rob, the HDMI phy subnode is a continuity of the actual bindings design, the current solution is wrong. In subtance, HHI is a "system configuration register zone" which is mix of registers for core system functions like clocks, power domains, DSI analog PHY, HDMI phy (and plenty of other core registers). As of today, the bindings is: hhi: system-controller@0 { compatible = "amlogic,meson-gx-hhi-sysctrl", "simple-mfd", "syscon"; reg = <0 0 0 0x400>; clkc: clock-controller { compatible = "amlogic,g12a-clkc"; #clock-cells = <1>; ... }; pwrc: power-controller { compatible = "amlogic,meson-g12a-pwrc"; #power-domain-cells = <1>; ... }; mipi_analog_dphy: phy { compatible = "amlogic,g12a-mipi-dphy-analog"; #phy-cells = <0>; ... }; } There's no reg, because the registers used by those functions are not linear for the clocks and pwrc, and even if the phy registers are linear they are in the middle of the clock and pwrc registers, this is why we omitted the reg property. The HDMI will probably be the last one so it makes sense to document it the same way as the mipi_analog_dphy The alternative would be to add #phy-cells = <1> and expose the HDMI _and_ the mipi_analog_dphy, but this would break DT compatibility with older DT using "amlogic,g12a-mipi-dphy-analog" as the mipi_analog_dphy provider. Neil > > 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"; > _______________________________________________ linux-amlogic mailing list linux-amlogic@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-amlogic