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 6692B606A323 for ; Wed, 2 Dec 2026 14:31:05 +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=4yRqUTmO; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=kbDyQa3r DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=5pRbT7+ozdzkjuwzzehZdfrYOGK10e7/NYF3f0sC7Xk=; b=4yRqUTmO1oijaTweveubzoZf73 tKI0DRYvE+2dhVfUrZDp2X5jhflwxJkGi/AhEv/ZshMcR2RuNENWHXwiXunYaS39KCCgOGeHksjMJ vfxuUtBzubu+2nmcHHV4n+X6XHazpSMD8yRGkpYxz93AXWrvQbVHiZqGkOSnWVseT2xoEduMt4/SF X1DhnalVXTy0CeVPFKV6SirlLU2Sm0gp28rLllmZtsg2G6KQy5qKkImlzwkY+qquJmOl3v3EkAsyG F0xYO0XFyqrmtjt/nvlnUitMgzVKU0JCFqzXwgTLnfUR7aO3LPPbzY8JeNK+0yKG5BtnUasDXjqW7 mQ6W42bw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYlM8-0000000Bl2c-2BVA; Wed, 02 Dec 2026 14:30:48 +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 1xYlM7-0000000Bl2G-3csq; Wed, 02 Dec 2026 14:30:47 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id 6A54B40629; Wed, 2 Dec 2026 14:30:47 +0000 (UTC) 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-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <07f3e282-f83b-4c89-9ec0-6887f63c1882@linaro.org> X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-5.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no 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 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