Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp1288742rdb; Fri, 1 Dec 2023 11:51:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IFTKOwbJ6lXolAITcVq+0JkwyJnFcMF9D7UIsUMmDNeL+L7IBQ0b/hw0my2VhdbjSLOPtVk X-Received: by 2002:a17:902:8f8c:b0:1d0:6ffe:1e86 with SMTP id z12-20020a1709028f8c00b001d06ffe1e86mr2084plo.105.1701460305298; Fri, 01 Dec 2023 11:51:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701460305; cv=none; d=google.com; s=arc-20160816; b=zU6oLngJvQJUtW9tOqQW6A/wD5v2UJsTJkxyWJZu+uHREVP4FWjzongdy5ZWAj4MEg PmvADqLYiyU3WvAfIEMuxR5qQA+g19Q/btBbwmI8fIeQosPyWZFOV/U933e6mxyEy1Pd F5BljR5DAjLXEfn+/bCFhSkNRE8XVcnO6h/IPYd/U3xkVHUYybMPks1Ogz/1yH+iisam j3GkWQcTUCGRC3oIMkxmzuKLaqUXW8+OneSlOFK8/tGItcU1v5ga2BI+nIA+IFPXWzAE whe9uBauYvRIe291P31Pp4Fc9/XEkOpI2wwqv6UGjYEBxZp60oOkL5LmVpHelr14sZEf dkdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=+PcTgFuGYuEWR0jb4Z0mG0/K7M5Htg+Gk60ZE1CFG2E=; fh=c3lWcx706UW9+TRiB5BDtXZQn/FC0mpFPtapY4PSZB4=; b=SRr1HH5JvbXH/v8N0s4yYNIwcldh4j6zCnJKcNiD6dXhT7w7h1rsHTHlGep2F2PaGR +OQ+P1RVO1UAAM5VmxTV755M35cOBlqPkaUAXGez+RJSzmOSNyJRx4YRbjrMqZcrsG34 fl77UElYgX3c1WHdkO7wMKeb5ZtdKXRzHXV+1btsml/tkmxYMqf48oRJrnICojAv/N56 OjEKTtXt7h83NMkPG/rWVgNIpn3ueXS56c8zPetRTarOf27JfcuOaCe87XlQabL/8Xwb PZAow9JFQVNhCPBu46WlfN3W1Vw5pqgBcwkx3IicDcB/McCQ9vWAgXaeUM4WxCdR/33j K+qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="N/D5xbPM"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id iw15-20020a170903044f00b001cfe52e0204si3580208plb.476.2023.12.01.11.51.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 11:51:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="N/D5xbPM"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 7D55681C0CA4; Fri, 1 Dec 2023 11:51:32 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379538AbjLATvR (ORCPT + 99 others); Fri, 1 Dec 2023 14:51:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379522AbjLATvP (ORCPT ); Fri, 1 Dec 2023 14:51:15 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8421FD67 for ; Fri, 1 Dec 2023 11:51:22 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1E313C433C7; Fri, 1 Dec 2023 19:51:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701460282; bh=EJH7pcH1qCI/9Ve49j/evlBf7hZBafJ34Kx2dvf1CwE=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=N/D5xbPMScGWqU7OkCWVs9XjFjv25Aed2kcWHTEMBMKNE2B1NmJyoyZvm8dHnQsGU FoksU6IMv0AC/uDwyWvh5SVGskGdoPaVXg17zr3jLsUy848EnZiNVeVM8LTvqUbApR Tpd3KHLZfVU6wr+FxneehIT6owf4h9nmYyYkqrSxSU+6oBeWSWB4HJ1S1WkyTRbrJz YO1MoQMMRoyxFZ0eFzGA/dzROW3DdmfJCImwvmsLHa4Gk+t2lR1LIkJb9rSmRg46tF 9j2bYmZ3iQr5REjUNnJsTfuk0r7mXfj+F4dKrdZLM5C5zp9mr+En7tZUlKm+AkXeQY sR6grXNTQy+Aw== Received: by mail-lf1-f50.google.com with SMTP id 2adb3069b0e04-50bbb79f97cso2594668e87.0; Fri, 01 Dec 2023 11:51:22 -0800 (PST) X-Gm-Message-State: AOJu0Yysvo/v6jkzhYgX4czzUXWiN5uPmMOAHq2R+n5eyQvqnNMalEPj 8jy8fBnZIAUQ1FbEGCgB61ytME5/p7HdBngsJg== X-Received: by 2002:ac2:57c9:0:b0:50b:e03b:95f2 with SMTP id k9-20020ac257c9000000b0050be03b95f2mr331377lfo.1.1701460280311; Fri, 01 Dec 2023 11:51:20 -0800 (PST) MIME-Version: 1.0 References: <20231130172834.12653-1-johan+linaro@kernel.org> <20231201144320.GA977713-robh@kernel.org> In-Reply-To: From: Rob Herring Date: Fri, 1 Dec 2023 13:51:06 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] dt-bindings: pinctrl: qcom,pmic-mpp: clean up example To: Johan Hovold Cc: Johan Hovold , Linus Walleij , Bjorn Andersson , Andy Gross , Konrad Dybcio , Krzysztof Kozlowski , Conor Dooley , linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Fri, 01 Dec 2023 11:51:32 -0800 (PST) On Fri, Dec 1, 2023 at 10:56=E2=80=AFAM Johan Hovold wro= te: > > On Fri, Dec 01, 2023 at 08:43:20AM -0600, Rob Herring wrote: > > On Thu, Nov 30, 2023 at 06:28:34PM +0100, Johan Hovold wrote: > > > The Multi-Purpose Pin controller block is part of an SPMI PMIC (which= in > > > turns sits on an SPMI bus) and uses a single value for the register > > > property that corresponds to its base address. > > > > > > Clean up the example by adding a parent PMIC node with proper > > > '#address-cells' and '#size-cells' properties, dropping the incorrect > > > second register value, adding some newline separators and increasing = the > > > indentation to four spaces. > > > > This is fine, but I prefer these MFDs have 1 complete example rather > > than piecemeal examples for each child device. > > Yeah, this is not ideal. The closest thing we've got are the examples > in: > > Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml > > Are you suggesting eventually dropping the examples from the child node > bindings and adding (several) complete examples in the parent one? Yes, but if the child nodes are truly reused across multiple PMICs then, it is probably a worthwhile exception. There's not a great deal of reuse on most MFDs. > I guess there would need to be more than one if you want to cover all > the various child nodes with real examples. We don't want examples to be exhaustive permutations of every possibility either. Rob