Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp1435072rdb; Mon, 2 Oct 2023 09:22:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF5MX99sozJ9zNIX2+XtF1z2y8LT4QDbOXbv2INBJ8s8ROCWipmjAUzPH4giVLwbiqvM3zE X-Received: by 2002:a17:902:eac5:b0:1c6:25b2:b71a with SMTP id p5-20020a170902eac500b001c625b2b71amr11552782pld.2.1696263754745; Mon, 02 Oct 2023 09:22:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696263754; cv=none; d=google.com; s=arc-20160816; b=A+feIXpALW9ke0+Q19XtnJFeN9iGTgAI1rnu0hxZsNUYyvwGh9NrNW47TtvCRhZ+YF AWT5oLq7TpNK8/+A5m46bYl+CSHf5lnHdvDAOnyrC5h08nwIiN8G6YRCZY1+pcTaWPlC jLrBcvwv35FRdt4i6NVrfWNhCXuLH/BniKKQt/7NtO3A9raHuniHPKW+pxkKRYFnyVx2 gp/FlBsBkClJKdkAqqy1raBD+djKKIxPahF969HOlUErAk09Fw9eVVl2nFOJ6+D/+aED /2Yyec1uJcHmLxLXSNPgqdnzIBnDBkJKWzzkTSwllLwITZEHHGDYNPu3XX9qFZWh7bGV x8Gw== 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; bh=2ACOlWAhO01X6kXbAq8JrkdeZdsWlB1Zb/yCO7SBrmY=; fh=xnEIqOjuN5Yn2EwS/WIYZcUF8k5My2QfVaJoxDO3zz0=; b=Ti5SI2hgc3tGmpM6rHayJuY5nWUqTypNqIgCjx0RIng8CUHu5FosZaUNiCPi0ZrMd5 hTW9VuQWqqt2CwXqS3PWVVHLXv7cyz9nvHHu6NquN3xhHxD7ZtL/f8Y+YaN2PzmlcHTL +jOPGr21X236/pYKv7m5Kbb+6E9eSt+rKELiDyn1Hs0Oh8/yi/w4tEoOIdTva3pnef1j IYlIguSJWbCXbG8sNmMzIXpe+DZNmcEt+VuTA3VThpkUkuqwUGvervFL9stCfcTDyj+0 5tGNDWHbIr5iZty1qs5Vae0uOvujCWZKFu9Q33Bg93PKdxxRRVyChhhMWPcQ9/oQyqlw b0fg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id ij24-20020a170902ab5800b001c71e907ee6si13866846plb.124.2023.10.02.09.22.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Oct 2023 09:22:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 9A36F824E7A9; Mon, 2 Oct 2023 07:58:47 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237923AbjJBO6f (ORCPT + 99 others); Mon, 2 Oct 2023 10:58:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237919AbjJBO6f (ORCPT ); Mon, 2 Oct 2023 10:58:35 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 03A4CB3; Mon, 2 Oct 2023 07:58:31 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 20E62C15; Mon, 2 Oct 2023 07:59:10 -0700 (PDT) Received: from pluto (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D53C03F762; Mon, 2 Oct 2023 07:58:29 -0700 (PDT) Date: Mon, 2 Oct 2023 15:58:27 +0100 From: Cristian Marussi To: Rob Herring Cc: AKASHI Takahiro , sudeep.holla@arm.com, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, linus.walleij@linaro.org, Oleksii_Moisieiev@epam.com, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org Subject: Re: [RFC 4/4] dt-bindings: gpio: Add bindings for SCMI pinctrl based gpio Message-ID: References: <20231002021602.260100-1-takahiro.akashi@linaro.org> <20231002021602.260100-5-takahiro.akashi@linaro.org> <20231002144155.GA1675188-robh@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231002144155.GA1675188-robh@kernel.org> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Mon, 02 Oct 2023 07:58:47 -0700 (PDT) On Mon, Oct 02, 2023 at 09:41:55AM -0500, Rob Herring wrote: > On Mon, Oct 02, 2023 at 11:16:02AM +0900, AKASHI Takahiro wrote: > > A dt binding for SCMI pinctrl based gpio driver is defined in this > > commit. It basically conforms to generic pinctrl-gpio mapping framework. [ snip] > > + additionalProperties: false > > + > > +required: > > + - compatible > > + - gpio-controller > > + - "#gpio-cells" > > + - gpio-ranges > > + > > +additionalProperties: false > > + > > +examples: > > + - | > > + #include > > + > > + scmi_gpio_0: scmi_gpio@0 { > > gpio { > > But doesn't SCMI have protocol numbers? > My understanding is that this RFC GPIO driver from Akashi is built completely on Pinctrl facilities (as he says in the cover), it is not indeed a typical pure SCMI driver, it just happen to trigger the use of SCMI if the underlying backend pinctrl driver is pinctrl-scmi; but this driver does not really call directly into any SCMI API by itself, i.e. it does not get and call any SCMI protocol ops. (but it could indeed trigger the backend Pinctrl SCMI driver to issue such call on its behalf AFAIU...) I wonder why it has even a dependency on PINCTRL_SCMI at this point; is not that it could work (generically) even if the backend Pinctrl driver is NOT SCMI ? What makes it usable only against an SCMI Pinctrl backend ? Cannot be a generic GPIO driver based on top of Pinctrl, no matter which Pinctrl backend driver has been configured ? ...I maybe missing something here about Pinctrl AND GPIO frameworks :P Thanks, Cristian