[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1cf2b0e4-3d3e-4fc0-84b3-f5109d05e684@roeck-us.net>
Date: Fri, 12 May 2023 05:30:41 -0700
From: Guenter Roeck <linux@...ck-us.net>
To: Keguang Zhang <keguang.zhang@...il.com>
Cc: linux-watchdog@...r.kernel.org, devicetree@...r.kernel.org,
linux-mips@...r.kernel.org, linux-kernel@...r.kernel.org,
Wim Van Sebroeck <wim@...ux-watchdog.org>,
Rob Herring <robh+dt@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
Yang Ling <gnaygnil@...il.com>
Subject: Re: [PATCH v2 1/2] dt-bindings: watchdog: Add Loongson-1 watchdog
On Thu, May 11, 2023 at 08:11:58PM +0800, Keguang Zhang wrote:
> Add devicetree binding document for Loongson-1 watchdog.
>
> Signed-off-by: Keguang Zhang <keguang.zhang@...il.com>
Reviewed-by: Guenter Roeck <linux@...ck-us.net>
> ---
> V1 -> V2: Replaced the wildcard compatible string with specific ones
> Use unevaluatedProperties instead of additionalProperties
> (suggested by Krzysztof Kozlowski)
> ---
> .../bindings/watchdog/loongson,ls1x-wdt.yaml | 42 +++++++++++++++++++
> 1 file changed, 42 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/watchdog/loongson,ls1x-wdt.yaml
>
> diff --git a/Documentation/devicetree/bindings/watchdog/loongson,ls1x-wdt.yaml b/Documentation/devicetree/bindings/watchdog/loongson,ls1x-wdt.yaml
> new file mode 100644
> index 000000000000..81690d4b62a6
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/watchdog/loongson,ls1x-wdt.yaml
> @@ -0,0 +1,42 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/watchdog/loongson,ls1x-wdt.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Loongson-1 Watchdog Timer
> +
> +maintainers:
> + - Keguang Zhang <keguang.zhang@...il.com>
> +
> +allOf:
> + - $ref: watchdog.yaml#
> +
> +properties:
> + compatible:
> + enum:
> + - loongson,ls1b-wdt
> + - loongson,ls1c-wdt
> +
> + reg:
> + maxItems: 1
> +
> + clocks:
> + maxItems: 1
> +
> +required:
> + - compatible
> + - reg
> + - clocks
> +
> +unevaluatedProperties: false
> +
> +examples:
> + - |
> + #include <dt-bindings/clock/loongson,ls1x-clk.h>
> + watchdog: watchdog@...5c060 {
> + compatible = "loongson,ls1b-wdt";
> + reg = <0x1fe5c060 0xc>;
> +
> + clocks = <&clkc LS1X_CLKID_APB>;
> + };
> --
> 2.39.2
>
Powered by blists - more mailing lists