Commit d59913b0 authored by Phil Edworthy's avatar Phil Edworthy Committed by Wim Van Sebroeck

dt-bindings: watchdog: renesas,wdt: Add r9a09g011 (RZ/V2M) support

Add the documentation for the r9a09g011 SoC, but in doing so also
reorganise the doc to make it easier to read.
Additionally, make the binding require an interrupt to be specified.
Whilst the driver does not need an interrupt, all of the SoCs that use
this binding actually provide one.
Signed-off-by: default avatarPhil Edworthy <phil.edworthy@renesas.com>
Reviewed-by: default avatarBiju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Reviewed-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: default avatarGuenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20220823093233.8577-2-phil.edworthy@renesas.comSigned-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarWim Van Sebroeck <wim@linux-watchdog.org>
parent 695bfff5
...@@ -31,6 +31,11 @@ properties: ...@@ -31,6 +31,11 @@ properties:
- renesas,r9a07g054-wdt # RZ/V2L - renesas,r9a07g054-wdt # RZ/V2L
- const: renesas,rzg2l-wdt - const: renesas,rzg2l-wdt
- items:
- enum:
- renesas,r9a09g011-wdt # RZ/V2M
- const: renesas,rzv2m-wdt # RZ/V2M
- items: - items:
- enum: - enum:
- renesas,r8a7742-wdt # RZ/G1H - renesas,r8a7742-wdt # RZ/G1H
...@@ -71,13 +76,29 @@ properties: ...@@ -71,13 +76,29 @@ properties:
reg: reg:
maxItems: 1 maxItems: 1
interrupts: true interrupts:
minItems: 1
interrupt-names: true items:
- description: Timeout
clocks: true - description: Parity error
clock-names: true interrupt-names:
minItems: 1
items:
- const: wdt
- const: perrout
clocks:
minItems: 1
items:
- description: Register access clock
- description: Main clock
clock-names:
minItems: 1
items:
- const: pclk
- const: oscclk
power-domains: power-domains:
maxItems: 1 maxItems: 1
...@@ -90,6 +111,7 @@ properties: ...@@ -90,6 +111,7 @@ properties:
required: required:
- compatible - compatible
- reg - reg
- interrupts
- clocks - clocks
allOf: allOf:
...@@ -114,31 +136,38 @@ allOf: ...@@ -114,31 +136,38 @@ allOf:
contains: contains:
enum: enum:
- renesas,rzg2l-wdt - renesas,rzg2l-wdt
- renesas,rzv2m-wdt
then: then:
properties: properties:
interrupts:
maxItems: 2
interrupt-names:
items:
- const: wdt
- const: perrout
clocks: clocks:
items: minItems: 2
- description: Register access clock
- description: Main clock
clock-names: clock-names:
items: minItems: 2
- const: pclk
- const: oscclk
required: required:
- clock-names - clock-names
else:
properties:
clocks:
maxItems: 1
- if:
properties:
compatible:
contains:
enum:
- renesas,rzg2l-wdt
then:
properties:
interrupts:
minItems: 2
interrupt-names:
minItems: 2
required:
- interrupt-names - interrupt-names
else: else:
properties: properties:
interrupts: interrupts:
maxItems: 1 maxItems: 1
clocks:
maxItems: 1
additionalProperties: false additionalProperties: false
...@@ -146,9 +175,11 @@ examples: ...@@ -146,9 +175,11 @@ examples:
- | - |
#include <dt-bindings/clock/r8a7795-cpg-mssr.h> #include <dt-bindings/clock/r8a7795-cpg-mssr.h>
#include <dt-bindings/power/r8a7795-sysc.h> #include <dt-bindings/power/r8a7795-sysc.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
wdt0: watchdog@e6020000 { wdt0: watchdog@e6020000 {
compatible = "renesas,r8a7795-wdt", "renesas,rcar-gen3-wdt"; compatible = "renesas,r8a7795-wdt", "renesas,rcar-gen3-wdt";
reg = <0xe6020000 0x0c>; reg = <0xe6020000 0x0c>;
interrupts = <GIC_SPI 140 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&cpg CPG_MOD 402>; clocks = <&cpg CPG_MOD 402>;
power-domains = <&sysc R8A7795_PD_ALWAYS_ON>; power-domains = <&sysc R8A7795_PD_ALWAYS_ON>;
resets = <&cpg 402>; resets = <&cpg 402>;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment