Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2237669pxp; Mon, 21 Mar 2022 14:38:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwgNbSSsbS1f6n4IYN8azd/67ZXn3kBpbONpDyO+Ek49K7fRYMl3Zo3p7DdSljfUTs7r+B7 X-Received: by 2002:a17:902:edc4:b0:151:5fbb:5f44 with SMTP id q4-20020a170902edc400b001515fbb5f44mr15148680plk.34.1647898688373; Mon, 21 Mar 2022 14:38:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647898688; cv=none; d=google.com; s=arc-20160816; b=hKeT4CWuZLqSdc8w1ndq0RyqBDa/TgmOgqtg0BOm9n8IA4CN7LPohJK0S885XQT5gz WcGC5s6prUAZEI2CZo7YuTrhnkToSQwuneU/bWGB66Xximr4g/VsnbbtYQYtIcHftFNH lLU27AEmkMKYBdiSlpfRj4cnpr+PQ/yU0Qsl6VN//GfYRv2UmMQcGYnDR3+ajh9Q9pps hSYnmADNjFOa33bqXhxvOljXFVrNayIxpzP4zeuUSD6RWk6L96GYctWR4X5RK0s1wBnq bXLEMVCnjYZsPU+xfVdX5BXGNQaFdpu6a6cz/W99+Un5DVwlgP6SSRKlwMEsckbypPEL a6WA== 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=TKTgpiFScEcEezkU3gQxHSkOyC+O5+goNNUME43jkTA=; b=TJeBSi/uXPvfQu9COUpFn/AWMkVkWOpK2svEyQARQ/Pxq19IlawtTuPa9LEzcxMkU1 7H8c7DyOmMrZvcy5BIvwFqTm8gObRJN8lmuyHguFdCwsL0lX/vuH+SbH5z12+inuvdmE GU9YUxkHWUfFY5pAgfuM0pqnaUIus3rDJjgjYAejPAk6svxt3cv+6Jo+2ahEDpKj00A+ XkyxiupZnb7wkjUzuv0sQ84axxEKEMzc31t2DB+jIWR2dCKutR4gN2NBp9oa+GAP6MF9 J3zJpgppOHVieDHxRAxmMCeEgJ0OLkq43b3hNq2FCQHRpEv++cv44BuaB2FM1oJawofs DQPQ== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id 196-20020a6301cd000000b003816043ef37si13947741pgb.300.2022.03.21.14.38.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Mar 2022 14:38:08 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E11E520F75; Mon, 21 Mar 2022 14:13:21 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352055AbiCUSWY (ORCPT + 99 others); Mon, 21 Mar 2022 14:22:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231928AbiCUSWX (ORCPT ); Mon, 21 Mar 2022 14:22:23 -0400 Received: from mail-oi1-f182.google.com (mail-oi1-f182.google.com [209.85.167.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C2E1351588; Mon, 21 Mar 2022 11:20:57 -0700 (PDT) Received: by mail-oi1-f182.google.com with SMTP id ay7so17097718oib.8; Mon, 21 Mar 2022 11:20:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=TKTgpiFScEcEezkU3gQxHSkOyC+O5+goNNUME43jkTA=; b=mlHQhCK72BiLlsOLNKQlAknfeMNH470iyAXu8fndwo4LKY158f0PFokIn2KTrQ2J2l zqj6To33nFrIdqA67CqpIv/uq3s5lcmewgo88FYavJv98mXU23fKw9lnnI3kCG4amPkz TdRzUc3dq14lu2ZlrOUs6X5aNBRe+9OM04rEQtITz9fH8Zzi4U2Oes/T5igfDnBdLvmR QaX44JgFMDm/BCdK86HV3tXqqlIbMFQpwbtKMdBOGQK/50Ivi2pX85fVKtz2fzRXdjEq k5+AEn8ERixu41d8YbWxIf7d5jH2SrAR9Y/ZV6PzRoUrerVdteaTxipjHCBSSwHndhpx Qf4w== X-Gm-Message-State: AOAM530hzFAsTYCJDcHtJrefMzIJGM2VCQ2omLN7SCvA0kqx/SzH+tQj NZFfQpXHMLfRkMoRAtiBInn1Ff1jUA== X-Received: by 2002:a05:6808:228f:b0:2ec:c59c:71e9 with SMTP id bo15-20020a056808228f00b002ecc59c71e9mr213176oib.153.1647886857089; Mon, 21 Mar 2022 11:20:57 -0700 (PDT) Received: from robh.at.kernel.org (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id e4-20020a056808148400b002d9be41b179sm8154424oiw.50.2022.03.21.11.20.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Mar 2022 11:20:55 -0700 (PDT) Received: (nullmailer pid 315279 invoked by uid 1000); Mon, 21 Mar 2022 18:20:54 -0000 Date: Mon, 21 Mar 2022 13:20:54 -0500 From: Rob Herring To: Krzysztof Kozlowski Cc: Linus Walleij , Bartosz Golaszewski , Krzysztof Kozlowski , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Laurent Pinchart Subject: Re: [PATCH] dt-bindings: gpio: add common consumer GPIO lines Message-ID: References: <20220315083723.97822-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220315083723.97822-1-krzysztof.kozlowski@canonical.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 On Tue, Mar 15, 2022 at 09:37:23AM +0100, Krzysztof Kozlowski wrote: > Typical GPIO lines like enable, powerdown, reset or wakeup are not > documented as common, which leads to new variations of these (e.g. > pwdn-gpios). Add a common schema which serves also as a documentation > for preferred naming. > > Signed-off-by: Krzysztof Kozlowski > --- > .../bindings/gpio/gpio-consumer-common.yaml | 36 +++++++++++++++++++ > 1 file changed, 36 insertions(+) > create mode 100644 Documentation/devicetree/bindings/gpio/gpio-consumer-common.yaml > > diff --git a/Documentation/devicetree/bindings/gpio/gpio-consumer-common.yaml b/Documentation/devicetree/bindings/gpio/gpio-consumer-common.yaml > new file mode 100644 > index 000000000000..098dc913f9e5 > --- /dev/null > +++ b/Documentation/devicetree/bindings/gpio/gpio-consumer-common.yaml > @@ -0,0 +1,36 @@ > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/gpio/gpio-consumer-common.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Common GPIO lines > + > +maintainers: > + - Bartosz Golaszewski > + - Linus Walleij > + > +# do not select this schema for GPIO hogs > +select: > + properties: > + gpio-hog: false 'select: true' should be sufficient here. > + > +properties: > + enable-gpios: > + $ref: /schemas/types.yaml#/definitions/phandle-array Perhaps some sort of description on these. I think these are always a single line, so 'maxItems: 1'. > + > + reset-gpios: > + $ref: /schemas/types.yaml#/definitions/phandle-array > + > + powerdown-gpios: > + $ref: /schemas/types.yaml#/definitions/phandle-array > + > + pwdn-gpios: > + $ref: /schemas/types.yaml#/definitions/phandle-array > + description: Use powerdown-gpios > + deprecated: true > + > + wakeup-gpios: > + $ref: /schemas/types.yaml#/definitions/phandle-array > + > +additionalProperties: true > -- > 2.32.0 > >