Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp920265rwb; Wed, 28 Sep 2022 10:41:33 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6qa8M8tmD9OwIz3oSkWRyoWOhfKdu/9oUhK+oDFNC4u+fyrSQT8L+BN0Ao9y0JH19PAxmd X-Received: by 2002:a17:902:b94c:b0:178:336f:13d6 with SMTP id h12-20020a170902b94c00b00178336f13d6mr946178pls.64.1664386893539; Wed, 28 Sep 2022 10:41:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664386893; cv=none; d=google.com; s=arc-20160816; b=J+06h1a5oljUF5E/fb/qdtFz7TL+UD4V3WrmgFm2MFAbpdOrOS3jpgj3MmKlRNOumh msZTmwRhY5QpLBD/c/wgB4djoyL3Z+QT02K29co5RI7bp6vTzEVCkhpWKhbHQ0LOv/fM aDxfBMMqyiDixLZnWNhWRYinhEpIZBsFwJGTSJvMDxEG7ziLz2KKxT4E+uukTzX/0Wrb DdZODp1XLGnJ72KtY2+Dk/XJphd9u4Sc9DekmkhRXiTMH7Td/FBQCcZgdCIsx39Zcc6i rdyD1M7An7A/njA2iK7rCHo6YOmXyvFEHnSlF6azSkjC3LdqnzQI0BlFuuv2BE8GHwgK Fr7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=F57zb+pqoE0Oxjgeeq6AOZyOTgVrYJHWMUNRnvCHJzs=; b=B6j4dYzmWI1bnaHkuto1jAygl/ekDtDOtm06UTfYJ4mzpZgSCbk+eYi5jnls3br64Z Fw+9xGqTrrv4G48igUWPHl4P6Ehghjio41HQoIJK1yhVqYkeZqO+akLKaK3KyHfC9rVp sBqKEhDytGoPINA+R0SwqUfMixRkLJ73qLmer/vN39H+WAPCd8j5lbx1JBrwF97Cx+j7 XfYkS9F0m9qaALO6aaXNWZ+OmSEKHy6fhX9BqR+cObHwSpZEbcte2wZZdLNHdNjaThLw D0YRUhW+KzFI4X+EgyfCt/vciUsS8yxIaHLx9MF0jbHvw/bm+EETrLK3QVJznD7Ru0i5 fazA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AAu5P64T; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q5-20020a170902dac500b0016bf8021664si6426807plx.203.2022.09.28.10.41.20; Wed, 28 Sep 2022 10:41:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AAu5P64T; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234351AbiI1R1u (ORCPT + 99 others); Wed, 28 Sep 2022 13:27:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234625AbiI1R1Y (ORCPT ); Wed, 28 Sep 2022 13:27:24 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BDA56E4D89; Wed, 28 Sep 2022 10:27:21 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 3B6B1B8216E; Wed, 28 Sep 2022 17:27:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D5B70C433D6; Wed, 28 Sep 2022 17:27:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1664386039; bh=GH1UskgjZIUPQJb+x9CDmOVXsZCej5rWpjjvE5I/zpw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=AAu5P64TFUrxKs3oC0J1oqmHOxwrUwzSAZ69obhwH9w2crmKuKqukX4gmzItsVpVl gQYZf/VK7IT4SwAWcqa7UtrnOhgUbL8cVJG40t0o0EFjoqPi1u1HjFwfO9PiaEFKL5 vQguSJBRPOuW4d9P3JJKfPiP544zil80jqw9mUGmYE4lgc/+xquFIcnY4mRjFWMXkj xjMJK0DQ4bBmta8zAzYYZe4OK2fqpUwUxcslwemiQpWdLOPiDTRR12OnbMxFdP68h0 nMtWEyl+tQ93sua2+M3CgyVAGNzoC1Gd/Eeuah8bgwxsVTuV809kC0bzB0K9iezokH TGFElxsq77pdg== Date: Wed, 28 Sep 2022 18:27:13 +0100 From: Mark Brown To: Lee Jones Cc: Chunyan Zhang , Liam Girdwood , Rob Herring , devicetree@vger.kernel.org, Baolin Wang , Orson Zhai , Chunyan Zhang , LKML , Lee Jones Subject: Re: [PATCH v2 2/2] dt-bindings: regulator: Add bindings for Unisoc's SC2730 regulator Message-ID: References: <20211008031953.339461-1-zhang.lyra@gmail.com> <20211008031953.339461-3-zhang.lyra@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="a+ETSZRf0TrB1BfO" Content-Disposition: inline In-Reply-To: X-Cookie: You look tired. X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --a+ETSZRf0TrB1BfO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Sep 26, 2022 at 07:59:08AM +0100, Lee Jones wrote: > On Thu, 22 Sep 2022, Mark Brown wrote: > > If people want to describe the individual regulators that'd be > > less of an issue, it's mainly when you're nesting what's > > effectively another MFD within a parent MFD that it's just noise > > that's being added to the DT. > As I say, I haven't studied this use-case. > These comments were designed to be more generic. > What do you mean by nested MFDs? Given that individual regulators tend to be separate physical IPs in the chip if you create a single device tree node that lumps them together you still need to also represent the individual regulators as well so that collection is functioning like a MFD does except not on a chip boundary. > > > Can you imagine describing an SoC, which can be considered as a huge > > > MFD, with only a single node? > > Honestly we should be arranging things so they're more like that, > > at least using overlays for the internals of the SoC so you don't > > have to rebuild the whole DT for updates to the SoC internals. > Right, there would be one device root node. However each function; > clock providers, regulator controllers, PWMs, GPIOs, networking > (various), reset, watchdog, etc would have their own nodes. Rather > than attempting to describe everything in the parent's node. We don't split things up by function, we split them up by IP - we don't just allocate a compatible for all the networking related functionality simply because there's a networking subsystem in Linux for example. --a+ETSZRf0TrB1BfO Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmM0g/AACgkQJNaLcl1U h9CUCAf/Q6E+WKiJ2KGknP5+06b4wxdfhbz+BpVH7gWrCq9iry5COPHP2d/vtR0D PywhTxxFTjxjL9AHcyxMpkrT7Vp2bHkQD1gdsRehHDgNbTAFMR0G2D8VU3MpxKPO d79P2y8PGARmVuITXGEOMpentnHb+tWYOzNCGKfpjzG8MWsukT0qVYPu9KKpI1d9 2AwAmGy8axUtSUA5atMYN37HDtyB1aP5FaXPmY14MGr/QtifBpt/dNcEduZDxf50 x1E4t6NIr2ratmhawivwudR6ModSXw4AyTYXgcsXuZvDnofhDyTEE44WrExgqbS+ S0h8CtCK7sscoqwfNPXPcxEla76H/Q== =GLRW -----END PGP SIGNATURE----- --a+ETSZRf0TrB1BfO--