Commit 0f108ccb authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Wim Van Sebroeck
Browse files

dt-bindings: watchdog: re-order entries to match coding convention



The Devicetree bindings coding convention, as used in most of the files
and expressed in Documentation/devicetree/bindings/example-schema.yaml,
expects:
1. "allOf:" block just before "properties:" (or after "required:" for
   more complex cases),
2. additionalProperties/unevaluatedProperties at the end of the file,
   just before the examples section.

Re-order few schemas to match the convention to avoid repeating review
comments for new patches using existing code as template.  No functional
changes.

Signed-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Acked-by: default avatarGuenter Roeck <linux@roeck-us.net>
Acked-by: default avatarRob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20231105184154.43700-1-krzysztof.kozlowski@linaro.org


Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarWim Van Sebroeck <wim@linux-watchdog.org>
parent d1297184
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -6,13 +6,13 @@ $schema: http://devicetree.org/meta-schemas/core.yaml#

title: Allwinner A10 Watchdog

allOf:
  - $ref: watchdog.yaml#

maintainers:
  - Chen-Yu Tsai <wens@csie.org>
  - Maxime Ripard <mripard@kernel.org>

allOf:
  - $ref: watchdog.yaml#

properties:
  compatible:
    oneOf:
+3 −3
Original line number Diff line number Diff line
@@ -6,12 +6,12 @@ $schema: http://devicetree.org/meta-schemas/core.yaml#

title: Alphascale asm9260 Watchdog timer

allOf:
  - $ref: watchdog.yaml#

maintainers:
  - Oleksij Rempel <linux@rempel-privat.de>

allOf:
  - $ref: watchdog.yaml#

properties:
  compatible:
    const: alphascale,asm9260-wdt
+3 −3
Original line number Diff line number Diff line
@@ -6,12 +6,12 @@ $schema: http://devicetree.org/meta-schemas/core.yaml#

title: Apple SoC Watchdog

allOf:
  - $ref: watchdog.yaml#

maintainers:
  - Sven Peter <sven@svenpeter.dev>

allOf:
  - $ref: watchdog.yaml#

properties:
  compatible:
    items:
+3 −3
Original line number Diff line number Diff line
@@ -6,12 +6,12 @@ $schema: http://devicetree.org/meta-schemas/core.yaml#

title: ARM Secure Monitor Call based watchdog

allOf:
  - $ref: watchdog.yaml#

maintainers:
  - Julius Werner <jwerner@chromium.org>

allOf:
  - $ref: watchdog.yaml#

properties:
  compatible:
    enum:
+5 −5
Original line number Diff line number Diff line
@@ -6,14 +6,14 @@ $schema: http://devicetree.org/meta-schemas/core.yaml#

title: BCM63xx and BCM7038 watchdog timer

allOf:
  - $ref: watchdog.yaml#

maintainers:
  - Florian Fainelli <f.fainelli@gmail.com>
  - Justin Chen <justinpopo6@gmail.com>
  - Rafał Miłecki <rafal@milecki.pl>

allOf:
  - $ref: watchdog.yaml#

properties:
  compatible:
    enum:
@@ -29,11 +29,11 @@ properties:
      The clock running the watchdog. If no clock is found the driver will
      default to 27000000 Hz.

unevaluatedProperties: false

required:
  - reg

unevaluatedProperties: false

examples:
  - |
    watchdog@f040a7e8 {
Loading