[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CACRpkdZATQubzrzqq2b4VY+W3Pb9RfzOGRiF+34YhEqpSKyUZg@mail.gmail.com>
Date: Sat, 26 Mar 2022 01:28:06 +0100
From: Linus Walleij <linus.walleij@...aro.org>
To: Krzysztof Kozlowski <krzysztof.kozlowski@...onical.com>
Cc: Bartosz Golaszewski <brgl@...ev.pl>,
Rob Herring <robh+dt@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
linux-gpio@...r.kernel.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org,
Laurent Pinchart <laurent.pinchart@...asonboard.com>
Subject: Re: [PATCH] dt-bindings: gpio: add common consumer GPIO lines
On Tue, Mar 15, 2022 at 9:37 AM Krzysztof Kozlowski
<krzysztof.kozlowski@...onical.com> 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 <krzysztof.kozlowski@...onical.com>
I like the idea!
> + enable-gpios:
> + $ref: /schemas/types.yaml#/definitions/phandle-array
> +
> + 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
I would underscore either on each one or in a global description:
that lines on components that indicate they are active low
such as RESETN, RESET* etc MUST have the flag in the
second cell set to GPIO_ACTIVE_LOW.
Yours,
Linus Walleij
Powered by blists - more mailing lists