Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 852F5EB8FB6 for ; Wed, 6 Sep 2023 11:01:59 +0000 (UTC) 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:Message-ID:Date:To:Cc:From: Subject:References:In-Reply-To:Content-Transfer-Encoding:MIME-Version: Content-Type:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=N42PrMhNFpBpVcotTxriEP2qoUFpOMZJHFS7+bFjaok=; b=hxENSK+igr2nBmtRhIEJ4/Uk0v MbNKYXGMzLDIPtCSYwKgyMVXNsmfgSihSXl6+U7el1TBGzM6Oc0gDm7qAEQ09+tLy4JRzM6C+NOT/ zq75Qf6q53rSpS4Ybmfl7m7P2QipMz8czv/HR0Pmvj4SVl4UZBsAN9cN5OYFzbWMeiqr9tjL6cu8R gi0IBwknRXAaDX5uK0HXYxse01OXEHW2boaLoe0Hvpqc9DnnfZPFcYqPUQ09QBC4CZ1JuxaTUdF8l vUSfGMzyuPfEYkrHjDNTq+uW1JYTzaot9t51p+r3bf17EPasbdlqJyhcHjsPFp667L4ffKKwjUAlz Q03R0lFg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qdqII-008QWw-0U; Wed, 06 Sep 2023 11:01:58 +0000 Received: from perceval.ideasonboard.com ([213.167.242.64]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qdqIE-008QQ4-2U; Wed, 06 Sep 2023 11:01:56 +0000 Received: from pendragon.ideasonboard.com (aztw-30-b2-v4wan-166917-cust845.vm26.cable.virginm.net [82.37.23.78]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 8E58610FC; Wed, 6 Sep 2023 13:00:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1693998019; bh=N42PrMhNFpBpVcotTxriEP2qoUFpOMZJHFS7+bFjaok=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=SbEUUI5pMyrnXwxJU2xkWGB3vQ9UYQV+etGxjYlcPOicAP8wxjjuhmJVpuAwShP0P insCddr5SyORhex+i/cBhj/ab6frUvXj32AYwauuM7NJD9lkKwYaQOROz3ipbOVZkq as2PDOk7YKPIXjBau6fIXyVdcaBAU4Ag979FcxfU= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20230906093531.GO7971@pendragon.ideasonboard.com> References: <20230905233118.183140-1-paul.elder@ideasonboard.com> <20230905233118.183140-4-paul.elder@ideasonboard.com> <502fc7b1-a32d-6901-3a45-d2aa0e0c3849@linaro.org> <20230906083237.GL7971@pendragon.ideasonboard.com> <20230906090058.GB17308@pendragon.ideasonboard.com> <59e07c6a-6f1b-0cc7-dddc-96d2a4050843@linaro.org> <20230906093531.GO7971@pendragon.ideasonboard.com> Subject: Re: [PATCH 3/3] arm64: dts: mediatek: mt8365-pumpkin: Add overlays for thp7312 cameras From: Kieran Bingham Cc: Paul Elder , linux-media@vger.kernel.org, Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Hans Verkuil , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org To: Krzysztof Kozlowski , Laurent Pinchart Date: Wed, 06 Sep 2023 12:01:43 +0100 Message-ID: <169399810391.277971.691693692840899613@ping.linuxembedded.co.uk> User-Agent: alot/0.10 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230906_040154_973488_806BDDC3 X-CRM114-Status: GOOD ( 22.88 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Quoting Laurent Pinchart (2023-09-06 10:35:31) > On Wed, Sep 06, 2023 at 11:21:31AM +0200, Krzysztof Kozlowski wrote: > > On 06/09/2023 11:00, Laurent Pinchart wrote: > > >>> has a regulator@0. There are similar instances for clocks. > > >>> > > >>> I understand why it may not be a good idea, and how the root node is > > >>> indeed not a bus. In some cases, those regulators and clocks are gr= ouped > > >>> in a regulators or clocks node that has a "simple-bus" compatible. = I'm > > >>> not sure if that's a good idea, but at least it should validate. > > >>> > > >>> What's the best practice for discrete board-level clocks and regula= tors > > >>> in overlays ? How do we ensure that their node name will not confli= ct > > >>> with the board to which the overlay is attached ? > > >> > > >> Top-level nodes (so under /) do not have unit addresses. If they hav= e - > > >> it's an error, because it is not a bus. Also, unit address requires = reg. > > >> No reg? No unit address. DTC reports this as warnings as well. > > >=20 > > > I agree with all that, but what's the recommended practice to add > > > top-level clocks and regulators in overlays, in a way that avoids > > > namespace clashes with the base board ? > >=20 > > Whether you use regulator@0 or regulator-0, you have the same chances of > > clash. >=20 > No disagreement there. My question is whether there's a recommended > practice to avoid clashes, or if it's an unsolved problem that gets > ignored for now because there's only 36h in a day and there are more > urgent things to do. Should an overlay add these items to a simple-bus specific to that overlay/device that is being supported? That would 'namespace' the added fixed-clocks/fixed-regulators etc... But maybe it's overengineering or mis-using the simple-bus. And the items are still not on a 'bus' with an address - they just exist on a presumably externally provided board.... -- Kieran