From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
To: Edmund Berenson <edmund.berenson@emlix.com>
Cc: Lukasz Zemla <Lukasz.Zemla@woodward.com>,
Linus Walleij <linus.walleij@linaro.org>,
Bartosz Golaszewski <brgl@bgdev.pl>,
Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
linux-gpio@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 1/2] dt-bindings: gpio: max7317: add spi gpio extender documentation
Date: Mon, 3 Apr 2023 14:38:08 +0200 [thread overview]
Message-ID: <2beba334-1c5e-0f68-1d32-57006b4a3321@linaro.org> (raw)
In-Reply-To: <20230403114033.8336-1-edmund.berenson@emlix.com>
On 03/04/2023 13:40, Edmund Berenson wrote:
> Add driver documentation for the maxim max7317 spi
> gpio expander.
Subject: drop second/last, redundant "documentation". The "dt-bindings"
prefix is already stating that these are bindings and documentation.
>
> Co-developed-by: Lukasz Zemla <Lukasz.Zemla@woodward.com>
> Signed-off-by: Lukasz Zemla <Lukasz.Zemla@woodward.com>
> Signed-off-by: Edmund Berenson <edmund.berenson@emlix.com>
> ---
This is v2, so where is the changelog? No cover letter, either.
> .../bindings/gpio/gpio-max7317.yaml | 50 +++++++++++++++++++
> 1 file changed, 50 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/gpio/gpio-max7317.yaml
Filename must be like compatible. "gpio" is not a vendor prefix.
maxim,max7317.yaml
>
> diff --git a/Documentation/devicetree/bindings/gpio/gpio-max7317.yaml b/Documentation/devicetree/bindings/gpio/gpio-max7317.yaml
> new file mode 100644
> index 000000000000..ad5a796c704e
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/gpio/gpio-max7317.yaml
> @@ -0,0 +1,50 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/gpio/gpio-max7317.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Maxim MAX7317 SPI-Interfaced I/O Expander
> +
> +maintainers:
> + - Edmund Berenson <edmund.berenson@emlix.com>
> +
> +description:
> + Bindings for 10-Port Maxim MAX7317 SPI GPIO expanders.
Describe the hardware, not the "bindings". Drop "Bindings for".
> +
> +properties:
> + compatible:
> + const: maxim,max7317
> +
> + reg:
> + maxItems: 1
> +
> + gpio-controller: true
> +
> + '#gpio-cells':
Use consistent quotes, either ' or ".
> + const: 2
> +
> +required:
> + - compatible
> + - reg
> + - gpio-controller
> + - "#gpio-cells"
> +
> +unevaluatedProperties: false
> +
> +allOf:
> + - $ref: /schemas/spi/spi-peripheral-props.yaml#
Fix ordering. allOf goes either before properties or before
unevaluatedProps. See for example example-schema.
> +
> +examples:
> + - |
> + spi {
> + #address-cells = <1>;
> + #size-cells = <0>;
Use 4 spaces for example indentation.
> +
Best regards,
Krzysztof
prev parent reply other threads:[~2023-04-03 12:38 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-03 11:40 [PATCH v2 1/2] dt-bindings: gpio: max7317: add spi gpio extender documentation Edmund Berenson
2023-04-03 11:40 ` [PATCH v2 2/2] gpio: max7317: Add gpio expander driver Edmund Berenson
2023-04-03 16:03 ` Bartosz Golaszewski
2023-04-04 14:05 ` Linus Walleij
2023-05-03 8:37 ` Edmund Berenson
2023-05-03 10:13 ` Michael Walle
2023-04-03 12:38 ` Krzysztof Kozlowski [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2beba334-1c5e-0f68-1d32-57006b4a3321@linaro.org \
--to=krzysztof.kozlowski@linaro.org \
--cc=Lukasz.Zemla@woodward.com \
--cc=brgl@bgdev.pl \
--cc=devicetree@vger.kernel.org \
--cc=edmund.berenson@emlix.com \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robh+dt@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).