From: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
To: Sergiu Moga <sergiu.moga@microchip.com>,
claudiu.beznea@microchip.com, thierry.reding@gmail.com,
u.kleine-koenig@pengutronix.de, lee.jones@linaro.org,
robh+dt@kernel.org, nicolas.ferre@microchip.com,
alexandre.belloni@bootlin.com
Cc: linux-arm-kernel@lists.infradead.org, linux-pwm@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 1/2] dt-bindings: pwm: convert atmel pwm to json-schema
Date: Mon, 7 Mar 2022 15:55:12 +0100 [thread overview]
Message-ID: <4e137401-4b8c-0abc-0c50-d784d579a991@canonical.com> (raw)
In-Reply-To: <20220307144652.162706-2-sergiu.moga@microchip.com>
On 07/03/2022 15:46, Sergiu Moga wrote:
> Convert PWM binding for Atmel/Microchip SoCs to Device Tree Schema
> format.
>
> Signed-off-by: Sergiu Moga <sergiu.moga@microchip.com>
> ---
> .../bindings/pwm/atmel,at91sam-pwm.yaml | 42 +++++++++++++++++++
> .../devicetree/bindings/pwm/atmel-pwm.txt | 35 ----------------
> 2 files changed, 42 insertions(+), 35 deletions(-)
> create mode 100644 Documentation/devicetree/bindings/pwm/atmel,at91sam-pwm.yaml
> delete mode 100644 Documentation/devicetree/bindings/pwm/atmel-pwm.txt
>
> diff --git a/Documentation/devicetree/bindings/pwm/atmel,at91sam-pwm.yaml b/Documentation/devicetree/bindings/pwm/atmel,at91sam-pwm.yaml
> new file mode 100644
> index 000000000000..2d5dd51a6a55
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/pwm/atmel,at91sam-pwm.yaml
> @@ -0,0 +1,42 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +# Copyright (C) 2022 Microchip Technology, Inc. and its subsidiaries
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/pwm/atmel,at91sam-pwm.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Atmel/Microchip PWM controller
> +
> +allOf:
> + - $ref: "pwm.yaml#"
allOf by convention should go between maintaners and properties.
> +
> +maintainers:
> + - Claudiu Beznea <claudiu.beznea@microchip.com>
> +
> +properties:
> + compatible:
> + enum:
> + - atmel,at91sam9rl-pwm
> + - atmel,sama5d3-pwm
> + - atmel,sama5d2-pwm
> + - microchip,sam9x60-pwm
> +
> + reg:
> + maxItems: 1
> +
> + "#pwm-cells":
> + const: 3
> +
> +required:
> + - compatible
> + - reg
> +
> +additionalProperties: true
This has to be either additionalProperties:false or
"unevaluatedProperties:false".
> +
> +examples:
> + - |
> + pwm0: pwm@f8034000 {
> + compatible = "atmel,at91sam9rl-pwm";
> + reg = <0xf8034000 0x400>;
> + #pwm-cells = <3>;
Also please change indentation to 2 or 4 spaces (like we use for all DTS
examples). Four is preferred (only personally).
You also need to update the path in MAINTAINERS.
Best regards,
Krzysztof
next prev parent reply other threads:[~2022-03-07 14:55 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-07 14:46 [PATCH v2 0/2] " Sergiu Moga
2022-03-07 14:46 ` [PATCH v2 1/2] " Sergiu Moga
2022-03-07 14:55 ` Krzysztof Kozlowski [this message]
2022-03-07 15:24 ` Sergiu.Moga
2022-03-07 14:46 ` [PATCH v2 2/2] dt-bindings: pwm: at91: Add SAMA7G5 compatible strings list Sergiu Moga
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=4e137401-4b8c-0abc-0c50-d784d579a991@canonical.com \
--to=krzysztof.kozlowski@canonical.com \
--cc=alexandre.belloni@bootlin.com \
--cc=claudiu.beznea@microchip.com \
--cc=devicetree@vger.kernel.org \
--cc=lee.jones@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pwm@vger.kernel.org \
--cc=nicolas.ferre@microchip.com \
--cc=robh+dt@kernel.org \
--cc=sergiu.moga@microchip.com \
--cc=thierry.reding@gmail.com \
--cc=u.kleine-koenig@pengutronix.de \
/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
all inboxes | Powered by JetHome®