From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796221847; b=WeAFE5l3XWUxrUDrFx/reElY7ZpHlvu3EYpujyCe3n9+Dyh+3QdsnjJ17gmGMG1+AQ2T lZDXkTWCFeegYt7BqsGWNDvJ2BFawxUx5zy4cJ2daTfUhoMpn6tfHAHjhiXGrt893s6MH SscPff19yhU1gi7oN7e9+WcsHTHFo35pod1oRTfZP/knFrhmvo10Vv9yMe2WBCVBusHV5 +VZ25YTHNbyxNzJrbUvVQRU4czPuYjStMj/3u9lLFvaFqHPrUq5V4p9nnq0d0OlswVL5Y EKxsyyjdJSPySI8erBvtsJ4iKqRNd0loeywMXMVczptHKvLnbpPy1WaasuHyZcEm9lg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796221847; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=5pRbT7+ozdzkjuwzzehZdfrYOGK10e7/NYF3f0sC7Xk=; b=ZqXGJjz0AD6/1ojkjjZjWp6M1vAwu+7e4czTiUr4hUSDx/3esyVJp8sUb5sEIxPTb4t3 +MC5gbTcW7kDF2Jp7SfUJoj37XT4KSMRgdxGqqK2N+4B3CUDySGZBYUR3+GE8XsD27Jni T9XSixTD5lS4FdSORxZuGXzpatOn3gua7LGJEQAfLmgkG7KnZrlqOKYyijd4MXM2yrNhz kDRiOzkKyd7w/UhldBygLiF+yDSEZIE6pgQvVJy4AW4+i1TXxXNsuWGndoijBvDkpluaY ec90s359GX6qyLfkrWJ7iTwH1nG8hprQmuGLvrnzKjcq1K/D195rUt0bikijB96XCvA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=kbDyQa3r; arc=none 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 7EAD5606A327; Wed, 2 Dec 2026 14:30:47 +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=kbDyQa3r Received: by smtp.kernel.org (Postfix) with ESMTPSA id BC0D01F00924; Wed, 2 Dec 2026 14:30:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796221847; bh=5pRbT7+ozdzkjuwzzehZdfrYOGK10e7/NYF3f0sC7Xk=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=kbDyQa3r+4tiC/xcj2usuFFP8AeHtGHnpUCi6Dt0q+ctILr73i08taDSkCodad8aS HmCC9DrD58ctgflozA8Q2IZRqoQxuxPntFPGS6CMLoLJrKgwiL8NPy1I7uMvxALKqf El0ERXuiFQbigN1qAE6bloV2K+7VaPvSOEHo/7UhlS11IRkPQCS7iO90r11WhfoAQ8 BVeAb9zJQZbmB0xEA18qLKmUZRdfaS5qBPv8EUVXT1tnYnP7TNUrs+XeJt4SqgmT7t 0cOLIYe8ab6r3MCxunCB7pLTr3L/riD9OrnuieI/VT5i/fqfd6xK1y7gghF9r+9DLL djdDSM9iSovgw== Date: Wed, 2 Dec 2026 15:30:43 +0100 From: Krzysztof Kozlowski To: Neil Armstrong Cc: 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 , 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 Subject: Re: [PATCH v6 02/13] dt-bindings: soc: amlogic: meson-gx-hhi-sysctrl: Add #phy-cells Message-ID: <20261202-rough-furry-bird-6bae58@quoll> References: <20261201-meson-drm-create-hdmitx-phy-v6-0-5ccdf57a6cf5@aliel.fr> <20261201-meson-drm-create-hdmitx-phy-v6-2-5ccdf57a6cf5@aliel.fr> <07f3e282-f83b-4c89-9ec0-6887f63c1882@linaro.org> X-Mailing-List: devicetree@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 Content-Disposition: inline In-Reply-To: <07f3e282-f83b-4c89-9ec0-6887f63c1882@linaro.org> On Wed, Dec 02, 2026 at 08:57:33AM +0100, Neil Armstrong wrote: > 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. Heh, bindings should be rather complete so we see entire picture... but there is a phy already, so what is that for? DSI phys you speak of? > > I disagree with Rob, the HDMI phy subnode is a continuity of the > actual bindings design, the current solution is wrong. The existing phy subnode is wrong, because it has no resources. > > In subtance, HHI is a "system configuration register zone" which is > mix of registers for core system functions like clocks, power domains, And mix of registers means it is not a separate, dedicated and re-usable device. If it was a device re-usable among different blocks/SoCs, then it would have a fixed/constrained reosurces like reg. There is plenty of such examples in case of PMICs (which are also modelled as MFD): they consist of main regulator function and RTC/32khz clocks often on their own I2C address. If your addressing is mixed up with parent and you have no single other resource, then IT IS the parent device. > 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>; > ... Nothing more for the phy, at least according to DTS example. Best regards, Krzysztof