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 4B633E81DF4 for ; Fri, 6 Oct 2023 13:24:18 +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=CNAPuu2w0hSXJab+6d1lmNE7g5GDOoA7Wwv71RvOHpk=; b=QbgXRsBJBXWRQK 0Eh9UAnZVDDg9PyUmDj41/Sx9wIY8BSgy+iB94OiLL3ZMO/2BzKmogf+qpMt/1Kno4l2dkew9/ox7 EJf3zQN1mvyi8QkfkF57vI/1k6cmn/bqvGnwkmj5fhZIxKVWcaOBywnsn+mzPv6jBr5u2e0VExE3i ezXPcPvhsPEaRx/hnPI1KO3kJd/SEy+axUPexJU72vCKk6V1055s71KwsYWUqtOXvqEw/v26LbHN6 bymFl0HtDChu5q2iNWDQYuQI3aRaB+grwta5SreSRPH2CKylYtvBH8xphaT1kae9kOGLynMsTpjGX f1i1+efR1t5zgE5m1COQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qoko6-005sPh-38; Fri, 06 Oct 2023 13:23:54 +0000 Received: from ams.source.kernel.org ([2604:1380:4601:e00::1]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qoko3-005sOC-1y for linux-arm-kernel@lists.infradead.org; Fri, 06 Oct 2023 13:23:53 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by ams.source.kernel.org (Postfix) with ESMTP id 77B29B82775; Fri, 6 Oct 2023 13:23:49 +0000 (UTC) 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-Disposition: inline In-Reply-To: <20231005025843.508689-6-takahiro.akashi@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231006_062351_940426_83B14BF7 X-CRM114-Status: GOOD ( 20.12 ) 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, 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 > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel