[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <0e5b1bcf-21c2-d446-6fd9-5516af417e8d@linaro.org>
Date: Mon, 17 Apr 2023 08:25:59 +0200
From: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
To: Om Parikh <hack3r-0m@...ton.me>
Cc: Wim Van Sebroeck <wim@...ux-watchdog.org>,
Guenter Roeck <linux@...ck-us.net>,
Rob Herring <robh+dt@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
Oleksij Rempel <linux@...pel-privat.de>,
linux-watchdog@...r.kernel.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] dt-bindings: watchdog: alphascale-asm9260: convert to
DT schema
On 17/04/2023 07:17, Om Parikh wrote:
> Makes alphascale-asm9260 dt bindings adhere to the dt json-schema
> by replacing txt file with yaml file.
>
> CHANGELOG from v1:
Changelog goes after ---
> - drop quotes in "$ref" value
> - update compatible string from board name to node name
> - drop "Olof Johansson" from maintainers
> - update "compatible" property from enum to const
> - drop generic reset description
>
> Signed-off-by: Om Parikh <hack3r-0m@...ton.me>
> ---
> .../watchdog/alphascale,asm9260-wdt.yaml | 69 +++++++++++++++++++
> .../bindings/watchdog/alphascale-asm9260.txt | 35 ----------
> 2 files changed, 69 insertions(+), 35 deletions(-)
> create mode 100644 Documentation/devicetree/bindings/watchdog/alphascale,asm9260-wdt.yaml
> delete mode 100644 Documentation/devicetree/bindings/watchdog/alphascale-asm9260.txt
>
> diff --git a/Documentation/devicetree/bindings/watchdog/alphascale,asm9260-wdt.yaml b/Documentation/devicetree/bindings/watchdog/alphascale,asm9260-wdt.yaml
> new file mode 100644
> index 000000000000..aefcb0cf3e3a
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/watchdog/alphascale,asm9260-wdt.yaml
> @@ -0,0 +1,69 @@
> +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/watchdog/alphascale,asm9260-wdt.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Alphascale asm9260 Watchdog timer
> +
> +allOf:
> + - $ref: watchdog.yaml#
> +
> +maintainers:
> + - Oleksij Rempel <linux@...pel-privat.de>
> +
> +properties:
> + compatible:
> + const: alphascale,asm9260-wdt
> +
> + reg:
> + maxItems: 1
> +
> + clocks:
> + items:
> + - description: source clock, used for tick counter
> + - description: ahb gate
> +
> + clock-names:
> + items:
> + - const: mod
> + - const: ahb
> +
> + interrupts:
> + maxItems: 1
> +
> + resets:
> + maxItems: 1
> +
> + reset-names:
> + items:
> + - const: wdt_rst
> +
> + timeout-sec: true
Drop this one, not needed as it comes from watchdog.yaml.
> +
> + alphascale,mode:
> + description: to specify the reset mode of operation
You miss some explanation what is debug for example.
> + $ref: /schemas/types.yaml#/definitions/string
> + enum: [hw, sw, debug]
default: hw
> +
> +required:
> + - compatible
> + - reg
> + - clocks
> + - clock-names
> + - interrupts
> +
> +unevaluatedProperties: false
Best regards,
Krzysztof
Powered by blists - more mailing lists