Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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: Phil Edworthy <phil.edworthy@renesas.com>
Reviewed-by: Biju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20220823093233.8577-2-phil.edworthy@renesas.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>

authored by

Phil Edworthy and committed by
Wim Van Sebroeck
d59913b0 695bfff5

+50 -19
+50 -19
Documentation/devicetree/bindings/watchdog/renesas,wdt.yaml
··· 33 33 34 34 - items: 35 35 - enum: 36 + - renesas,r9a09g011-wdt # RZ/V2M 37 + - const: renesas,rzv2m-wdt # RZ/V2M 38 + 39 + - items: 40 + - enum: 36 41 - renesas,r8a7742-wdt # RZ/G1H 37 42 - renesas,r8a7743-wdt # RZ/G1M 38 43 - renesas,r8a7744-wdt # RZ/G1N ··· 76 71 reg: 77 72 maxItems: 1 78 73 79 - interrupts: true 74 + interrupts: 75 + minItems: 1 76 + items: 77 + - description: Timeout 78 + - description: Parity error 80 79 81 - interrupt-names: true 80 + interrupt-names: 81 + minItems: 1 82 + items: 83 + - const: wdt 84 + - const: perrout 82 85 83 - clocks: true 86 + clocks: 87 + minItems: 1 88 + items: 89 + - description: Register access clock 90 + - description: Main clock 84 91 85 - clock-names: true 92 + clock-names: 93 + minItems: 1 94 + items: 95 + - const: pclk 96 + - const: oscclk 86 97 87 98 power-domains: 88 99 maxItems: 1 ··· 111 90 required: 112 91 - compatible 113 92 - reg 93 + - interrupts 114 94 - clocks 115 95 116 96 allOf: ··· 136 114 contains: 137 115 enum: 138 116 - renesas,rzg2l-wdt 117 + - renesas,rzv2m-wdt 118 + then: 119 + properties: 120 + clocks: 121 + minItems: 2 122 + clock-names: 123 + minItems: 2 124 + required: 125 + - clock-names 126 + else: 127 + properties: 128 + clocks: 129 + maxItems: 1 130 + 131 + - if: 132 + properties: 133 + compatible: 134 + contains: 135 + enum: 136 + - renesas,rzg2l-wdt 139 137 then: 140 138 properties: 141 139 interrupts: 142 - maxItems: 2 140 + minItems: 2 143 141 interrupt-names: 144 - items: 145 - - const: wdt 146 - - const: perrout 147 - clocks: 148 - items: 149 - - description: Register access clock 150 - - description: Main clock 151 - clock-names: 152 - items: 153 - - const: pclk 154 - - const: oscclk 142 + minItems: 2 155 143 required: 156 - - clock-names 157 144 - interrupt-names 158 145 else: 159 146 properties: 160 147 interrupts: 161 - maxItems: 1 162 - clocks: 163 148 maxItems: 1 164 149 165 150 additionalProperties: false ··· 175 146 - | 176 147 #include <dt-bindings/clock/r8a7795-cpg-mssr.h> 177 148 #include <dt-bindings/power/r8a7795-sysc.h> 149 + #include <dt-bindings/interrupt-controller/arm-gic.h> 178 150 wdt0: watchdog@e6020000 { 179 151 compatible = "renesas,r8a7795-wdt", "renesas,rcar-gen3-wdt"; 180 152 reg = <0xe6020000 0x0c>; 153 + interrupts = <GIC_SPI 140 IRQ_TYPE_LEVEL_HIGH>; 181 154 clocks = <&cpg CPG_MOD 402>; 182 155 power-domains = <&sysc R8A7795_PD_ALWAYS_ON>; 183 156 resets = <&cpg 402>;