From mboxrd@z Thu Jan 1 00:00:00 1970 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 DD52FEC8733 for ; Thu, 7 Sep 2023 15:05:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=+kv7EHXq3PS+mRckb8hPN1T5/0EJ+bQCHd5IIDqmdqg=; b=MOc1QsXhuS0rON cwHNL7F9MAT+m5bWNKxIuNvCbJiGTrNLbbW1CfQ0hs1zdBHR/eBJYr78CIa2sahrGUwfr/6jYkJHc x2Dq9G0Mo4Hy99304m6k0K+h6QT1ZVeQadYnqoxuk9vLezyaDHgg7WKNSaKzmfW7kzx7GAnm93yXi wNtQ+hw2Ruo1VPkhuTkHMrtF6wxiNZRkDKwh2o+yPQD4nOwRLtfFI62PbW2xr9A1aGXfqhCr7+efs iU5f/SQWprp9Qq3Hg+WoT/p2sNRwgDffMj3NzDRiyep9YMziuUVFnsSVbYsXsVMGQJXWKTBgt8ST3 DKrekYa6MeIg8gMfsbhw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qeGYh-00CEYD-1A; Thu, 07 Sep 2023 15:04:39 +0000 Received: from perceval.ideasonboard.com ([213.167.242.64]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qeGYd-00CEXU-2o; Thu, 07 Sep 2023 15:04:37 +0000 Received: from pendragon.ideasonboard.com (ftip006315900.acc1.colindale.21cn-nte.bt.net [81.134.214.249]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id DC01831B9; Thu, 7 Sep 2023 17:03:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1694098987; bh=Tu+mxxpH015oWyJsbCEuUxhFMyaqhb+/X6gaqeEsbwg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=oOvU/38KLai0fMlQ+LtyaAWZAT/ZTbDaShtN+HYmdnM9UJCAherctnVcG4dY+shSf 5lfCWRyXTOMkthsUqE8/QPfwwyv596Xv6zntZ/ErZ8QcHM3p7c/wTFeaOZq4DkL+c3 iHzUolfCJeNpZcM4HSKBw56qOH0sYULK5VmhSPHE= Date: Thu, 7 Sep 2023 18:04:48 +0300 From: Laurent Pinchart To: Paul Elder Cc: Kieran Bingham , Krzysztof Kozlowski , 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 Subject: Re: [PATCH 3/3] arm64: dts: mediatek: mt8365-pumpkin: Add overlays for thp7312 cameras Message-ID: <20230907150448.GD17610@pendragon.ideasonboard.com> References: <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> <169399810391.277971.691693692840899613@ping.linuxembedded.co.uk> <20230906111429.GC17308@pendragon.ideasonboard.com> <20230907150408.GC17610@pendragon.ideasonboard.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20230907150408.GC17610@pendragon.ideasonboard.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230907_080436_054496_548820D0 X-CRM114-Status: GOOD ( 34.30 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Sep 07, 2023 at 06:04:09PM +0300, Laurent Pinchart wrote: > On Thu, Sep 07, 2023 at 11:55:13PM +0900, Paul Elder wrote: > > On Wed, Sep 06, 2023 at 02:14:29PM +0300, Laurent Pinchart wrote: > > > On Wed, Sep 06, 2023 at 12:01:43PM +0100, Kieran Bingham wrote: > > > > 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 grouped > > > > > > >>> 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 regulators > > > > > > >>> in overlays ? How do we ensure that their node name will not conflict > > > > > > >>> with the board to which the overlay is attached ? > > > > > > >> > > > > > > >> Top-level nodes (so under /) do not have unit addresses. If they have - > > > > > > >> 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. > > > > > > > > > > > > > > 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 ? > > > > > > > > > > > > Whether you use regulator@0 or regulator-0, you have the same chances of > > > > > > clash. > > > > > > > > > > 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. > > > > > > You would still need to name the node that groups the regulators and > > > clocks in a way that wouldn't clash between multiple overlays and the > > > base board. It would be nice to have nodes that are "private" to an > > > overlay. > > > > What's the best solution to this then :/ > > It seems we don't have a good solution. For now, I'd recommend just > picking a name for the regulator that has a high chance to be unique, > like reg-thp7312-1v2 for instance. Or reg-cam-1v2, or ... The name doesn't matter much really, as long as it's not extremely generic with a high risk of conflict. > > > > And the items are still not on a 'bus' with an address - they just exist > > > > on a presumably externally provided board.... -- Regards, Laurent Pinchart _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel