From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.221.42 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796198258; b=qgS+vyAK9i2aLY9L16ptpY4PcAFRSjLlrc/Az6dlLt174SpWZcTdzja6IvLuYAGi7To1 DgDSuqTgkA0c2/aaLf0JZNdcsnXmzRx/L+IsZ9mZLv8c2Yr9DFZfBerQ1Az8LJYkJJlt1 Wo3Ve9aikMWtSMevQIo6uYgYyPLWJRitwDzHNsAJovCdwnU5h3Jnf24spLCb0DZanUZYG D/JFgTrz6ynYTRAPYH+NeTR/PPSrEvm2MhsVBGgE+K/XPVhIgSXSY9BZghqr1+NznXkIC mD0oiChv1EtRk15n3ueBw4bTvR9s+qIMoJLKZi2hc988On1HRx/z0/YJuLjV4n41m+w== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796198258; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Message-ID:Date:MIME-Version:User-Agent:From:Reply-To:Subject:To:Cc: References:Content-Language:Autocrypt:Organization:In-Reply-To: Content-Type:Content-Transfer-Encoding; bh=IX8dPy3S1H3HNP5bfed1w5psNnmlGrwyQRXcNyheXN4=; b=e6T2a+5s6aNt7Zt/GTT0s96yvV8CWm0WV6Xxhm6hWlgmKONw7wfjl+jtxkQFZR2PcKJV L8B5+SpMPw2QKlAxyeFH0YQFfnxVIvXYIru9yiFDb2VGIYbwIGAsCYwgebpkp5A3nefSo BSMdKbuChA7y6zZvPBibg+2P7UUljAULSkXPzA4S5XlNo++4WU8K9IG9kvc5+8pB69zkf iVZ1xFV8+0kzo++rPlTXh8wDmT8cfFElB+jis2wa0P9ZoNpEBZX7iKXl1jwGxyd2fsWj8 LCyje1yYXIIiTvtgwlLG7Jf4/MolslRv5TTAjqCfEgxz9VeIIX6BE1SoQxEic37MhaQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=XLYI9IwY; arc=none smtp.remote-ip=209.85.221.42 Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E747E606A323 for ; Wed, 2 Dec 2026 07:57:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org E747E606A323 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=XLYI9IwY Received: by mail-wr1-f42.google.com with SMTP id ffacd0b85a97d-498f5fa5103so7563681f8f.2 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=vger.kernel.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=XLYI9IwY2zHYyiUXj/Iqt3Bwy1rhClPX3xgzy670hkSi+yV5p5VDMVs9aWgMQ+1F+6 MiMP0Dw/FwbQOBXfJwlAzyaM6l4T+Pp3vDVZN6AtwRKk4AWxZgx+Zq+SfEB90N08uEVo dz1rZIGlC8nnBFIipUu0GecZLUXvhBPhCLIlsPvrZQdsq13NGaJk4hw2tqPmOh7j8f5Y 2SBb7Vc03NP3rZ+lZqJLXBmNHjw7KQ5DcCQAj2CA/tCX8P+ueQWcvNB2o/rq9Gk73qPq qVwGeCO8Ham1UGDdwBFAaCUGwRJj52JDHaIbWuPm7XH2jTuBT/wx8S3yEO5osQw8cisC ZeWA== 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=DnOqIDTTpRlXf6OxQeEqNEkRdmZ7Oenz1+ykRXMN8VcohGCz1KqtMcJgvWtLKUI6yu V+ukpduwT1IyH3h4BOCb9DWlNwJri+ghRAFt4tcafhPTWpiaK1gVDU2F2TPkDTmNIYxc V+PR1a0BikpOgzvbVxfn47Lj4XJ/SvumZhBxB9mH0nQTC6HpS+Rn59KonSLdFTgzpWGI pWDhXmd5iLnZ9kwfC/PvGmVvNFfQpgc6ZzmXaVURu0Vzcm41WGypFGXKpxmoy62aBibM IEI2rvjnm0Q8W7DrLy261STQFEINMlBk8rOMWhI80mSl5N+GsDBZibUdFWDy8V1yevLV +Hcg== X-Forwarded-Encrypted: i=1; AL+hErE9XFo+H+mnSJ/1Ink+AchblP+ANLoPr4QYV4Qn/cvsn+KOMGbaI8lB7HQzrz8n6A6KYBdtaZpRbCNHuAw=@vger.kernel.org X-Gm-Message-State: APuU4Z96TrHVK44wLYHSpNGUa8S/Zbmxo/9MBBM8CE2L5ZViofxvXpC7 +fnjVNGU2D5GNfzquKot6lr6nVzRbl+35WZFE9Iea9YTVy61ov3hYc1pSjFWci4S7rM= X-Gm-Gg: AZFdTZfqE/QLAfCYyyNaugvosZ1IBsxb8WSwCkDdEGNg4rSWDlpLPQnvRHfJ5zO0LSN 5O1sMHTVo3w8JQUt6WMTJ9nDZ2DTMGWCgLZsswYpPfGQKhpagEbzABYJ7gdSDmTp8LUia5Rsuvm u/T4Q13w3lE59OLGYvRxaEmFKqy/87Rd2Sn1DtifroubX70fAFZuo0y+47/8YJy1uGsebskr0dM 90kCD8ErqKnt5mjEGUxfqWK1eXp5L5CpuZCt8Rj2SnV4mZ3yvjkZfpEcA8Ju2TO9YYez7vs1l3Z 1wdd/wdlEWCQpLrfEoeNO6u+LYViLmKfyvonXzSusiKGi3HmcJ+BEDktUJPoWNxEzVvFLJVp7Hc RMHm+JOZaCaFKtykGhxO0kh5JA/PhvkLcQvRWPm0dCZzBJrhqbjhwmiQGRIh3huBwYOBqFyp3LP N/nFCTnD1OyVnAYwKpBp+DecdYRgR9s+3cCcO1W5AAyknNoHswOARQUTqdxwnzH/Rml+0rLsqcB mYsulV1pJfwGV5Ef6XlYAC2EXeW8oiDfho8hoI4PqvNbNMSsDWs+ZJm8KFib5clKSuMsXm2nfnV Xu8zc4pco/q9RV+aTpiMOadZYs7D38ObmFCl+FJLkaFWu4z9xGEi2vhNN3PZNkybZzo54reB1AX 10apbK7HK 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-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 User-Agent: Mozilla Thunderbird From: Neil Armstrong Reply-To: 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 OwIbIwULCQgHAwUVCgkICwUWAgMBAA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EuJC3v+/yZpQzDvGYJvbyix0lHnrCzq43WefRHI5XTT QbM0WUIBIcGmq38+OgUsMYu4NzLu7uZFAcmp6h8g Organization: Linaro In-Reply-To: <20261201-meson-drm-create-hdmitx-phy-v6-2-5ccdf57a6cf5@aliel.fr> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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"; >