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: factor out RZ/A watchdog

Renesas created different watchdog IPs but they are all handled in the
same binding documentation. This leads to a lot of conditional handling
which makes it unnecessarily hard to add new items. Factor out the RZ/A
watchdog to make handling easier.

Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>

authored by

Wolfram Sang and committed by
Wim Van Sebroeck
055f0576 7aa31ee9

+51 -7
+51
Documentation/devicetree/bindings/watchdog/renesas,rza-wdt.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/watchdog/renesas,rza-wdt.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Renesas RZ/A Watchdog Timer (WDT) Controller 8 + 9 + maintainers: 10 + - Wolfram Sang <wsa+renesas@sang-engineering.com> 11 + 12 + properties: 13 + compatible: 14 + items: 15 + - enum: 16 + - renesas,r7s72100-wdt # RZ/A1 17 + - renesas,r7s9210-wdt # RZ/A2 18 + - const: renesas,rza-wdt # RZ/A 19 + 20 + reg: 21 + maxItems: 1 22 + 23 + interrupts: 24 + maxItems: 1 25 + 26 + clocks: 27 + maxItems: 1 28 + 29 + timeout-sec: true 30 + 31 + required: 32 + - compatible 33 + - reg 34 + - clocks 35 + 36 + allOf: 37 + - $ref: watchdog.yaml# 38 + 39 + additionalProperties: false 40 + 41 + examples: 42 + - | 43 + #include <dt-bindings/clock/r7s72100-clock.h> 44 + #include <dt-bindings/interrupt-controller/arm-gic.h> 45 + 46 + watchdog@fcfe0000 { 47 + compatible = "renesas,r7s72100-wdt", "renesas,rza-wdt"; 48 + reg = <0xfcfe0000 0x6>; 49 + interrupts = <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>; 50 + clocks = <&p0_clk>; 51 + };
-7
Documentation/devicetree/bindings/watchdog/renesas,wdt.yaml
··· 15 15 oneOf: 16 16 - items: 17 17 - enum: 18 - - renesas,r7s72100-wdt # RZ/A1 19 - - renesas,r7s9210-wdt # RZ/A2 20 - - const: renesas,rza-wdt # RZ/A 21 - 22 - - items: 23 - - enum: 24 18 - renesas,r9a06g032-wdt # RZ/N1D 25 19 - const: renesas,rzn1-wdt # RZ/N1 26 20 ··· 134 140 contains: 135 141 enum: 136 142 - renesas,r9a09g077-wdt 137 - - renesas,rza-wdt 138 143 - renesas,rzn1-wdt 139 144 then: 140 145 required: