Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp379047rdb; Fri, 6 Oct 2023 06:24:14 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHXawjwpy3ybh1InR1BWgzq7MnuG4Id+cPEhm8aciP1XronCDIaRNQleCqfWqTytECmqIjn X-Received: by 2002:a05:6e02:13d0:b0:351:526a:4ac with SMTP id v16-20020a056e0213d000b00351526a04acmr7423194ilj.2.1696598653754; Fri, 06 Oct 2023 06:24:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696598653; cv=none; d=google.com; s=arc-20160816; b=XGvlaGoTrEv8FZApXdJFnVmSAMjypH/3ttTgsu8/IICjFnwvmbkJq3Gglpz/PhdLTF bPIJIbCgVhTUla0e7uvqPXRqlHCPQ/v75gMWRyMnmdCADty65dGaIJrstXz/GB5FycF+ e4BZ/u45VK7RXXNpdxRuLLJZp7ewSb1vThsAQdfafdpgAvgBhVzDIThuPkAIWwHhbt0q JsN+VjvSZrUyFti9BDrwVKcwnLoGdoiRXZHc8hNK7p0e9rcJZzsgLhleBVCnWKgLrDUM Gm5qvMhNr0Kzmhit/VwLxGe7UOP0Lnh2ATEUYj5wOyGaVFJWGT/92yoMiXX7Ra7zaBl4 ArCA== 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=ccfqbTl21j1xnmeM3hFGjRzqVJZhBlift64tzxm/zpo=; fh=RknttdsEklkrKyT5sHoux1R689T93pMTX7VCouYGE+s=; b=wx0ex53bIZ27hPGcM9tLEN+Xa+KNhIklO19LC+lTrT2RWaCx5UDHDnMfTHod1UHcUV Xf3SuzK/VrI6Pyt49kNp8FjkTdzEBs6eLyDsweqWI0ocmCvWRuyoDzhglxULCcqSRbab Hhi0VUK86KIeVsPLGGpmgIrxVDkyxVBH3ZWuYxJJ/dEkUFXbBvMtxUTgbvoupp1vuLk3 k/D0YwLlQ7wWCmx7zBmJlUyxNDfKyF7hpey+YHRyM1tFWhGWrka2C9CFDZpvxzhxROOB JX3hMSagfW51qKjErTUqRvhsVTnaXNq4k3Cm3NhoMZxzBCVdUF5Vk7NNeuqN54GjJ62G QFQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oCjiFyOm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id m1-20020a656a01000000b00573ff14b9e0si4003429pgu.763.2023.10.06.06.24.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 06:24:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oCjiFyOm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (Postfix) with ESMTP id 2770980A52B9; Fri, 6 Oct 2023 06:24:09 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232358AbjJFNXv (ORCPT + 99 others); Fri, 6 Oct 2023 09:23:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51142 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232345AbjJFNXu (ORCPT ); Fri, 6 Oct 2023 09:23:50 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 381DD9E; Fri, 6 Oct 2023 06:23:49 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CA3CFC433C7; Fri, 6 Oct 2023 13:23:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696598628; bh=B5o5NNQIfkr6liManrK89c7NchW+ByGMGplOuW+1c2o=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=oCjiFyOmXoWq3MA4CNJ+zEgduCs4d26hrjyoHn7LLeI9sF6+/Z5vTEFwq8lCvuxjM iuFq5551BnQ10fTpmhKix2oNhTNHaLXHfNg7kYrRjJstvS2U96pcB7dnG3qLg9TUzS K2UpH5JlOVzNpBTCb0RknN2QvU8/RbYQ4hj+RShZUWbDDS2Jp1uGpi7HOkgBiRmFaY AeWA1/GOeNSl0q8m9cEmT9rbdLSwDn3ZXBP4xXZQUv9Ck8ZgbXyKT4A3WN152GPnWP IqVrBFyrQijwrLy4WmGLFuhUwKWXpqlXtejm6NSy0ZAEeo0IMsCzkWwv855Gaa8RA9 MYsXgmqROF++Q== Received: (nullmailer pid 3467386 invoked by uid 1000); Fri, 06 Oct 2023 13:23:46 -0000 Date: Fri, 6 Oct 2023 08:23:46 -0500 From: Rob Herring To: AKASHI Takahiro Cc: sudeep.holla@arm.com, cristian.marussi@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 v2 5/5] dt-bindings: gpio: Add bindings for pinctrl based generic gpio driver Message-ID: <20231006132346.GA3426353-robh@kernel.org> References: <20231005025843.508689-1-takahiro.akashi@linaro.org> <20231005025843.508689-6-takahiro.akashi@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231005025843.508689-6-takahiro.akashi@linaro.org> X-Spam-Status: No, score=2.4 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.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 (morse.vger.email [0.0.0.0]); Fri, 06 Oct 2023 06:24:09 -0700 (PDT) X-Spam-Level: ** On Thu, Oct 05, 2023 at 11:58:43AM +0900, AKASHI Takahiro wrote: > A dt binding for pin controller based generic gpio driver is defined in > this commit. One usable device is Arm's SCMI. You don't need a "generic" binding to have a generic driver. Keep the binding specific and then decide in the OS to whether to use a generic or specific driver. That decision could change over time, but the binding can't. For example, see simple-panel. > > Signed-off-by: AKASHI Takahiro > --- > RFC v2 (Oct 5, 2023) > * rename the binding to pin-control-gpio > * add the "description" > * remove nodename, hog properties, and a consumer example > RFC (Oct 2, 2023) > --- > .../bindings/gpio/pin-control-gpio.yaml | 55 +++++++++++++++++++ > 1 file changed, 55 insertions(+) > create mode 100644 Documentation/devicetree/bindings/gpio/pin-control-gpio.yaml > > diff --git a/Documentation/devicetree/bindings/gpio/pin-control-gpio.yaml b/Documentation/devicetree/bindings/gpio/pin-control-gpio.yaml > new file mode 100644 > index 000000000000..bc935dbd7edb > --- /dev/null > +++ b/Documentation/devicetree/bindings/gpio/pin-control-gpio.yaml > @@ -0,0 +1,55 @@ > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/gpio/pin-control-gpio.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Pin control based generic GPIO controller > + > +description: > + The pin control-based GPIO will facilitate a pin controller's ability > + to drive electric lines high/low and other generic properties of a > + pin controller to perform general-purpose one-bit binary I/O. > + > +maintainers: > + - AKASHI Takahiro > + > +properties: > + compatible: > + const: pin-control-gpio > + > + gpio-controller: true > + > + "#gpio-cells": > + const: 2 > + > + gpio-ranges: true > + > + gpio-ranges-group-names: true > + > +patternProperties: > + "^.+-hog(-[0-9]+)?$": > + type: object > + > + required: > + - gpio-hog > + > +required: > + - compatible > + - gpio-controller > + - "#gpio-cells" > + - gpio-ranges > + > +additionalProperties: false > + > +examples: > + - | > + gpio0: gpio@0 { > + compatible = "pin-control-gpio"; > + gpio-controller; > + #gpio-cells = <2>; > + gpio-ranges = <&scmi_pinctrl 0 10 5>, > + <&scmi_pinctrl 5 0 0>; > + gpio-ranges-group-names = "", > + "pinmux_gpio"; > + }; > -- > 2.34.1 >