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/N1 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/N1
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
a3e32b41 055f0576

+50 -6
+50
Documentation/devicetree/bindings/watchdog/renesas,rzn1-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,rzn1-wdt.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Renesas RZ/N1 Watchdog Timer (WDT) Controller 8 + 9 + maintainers: 10 + - Wolfram Sang <wsa+renesas@sang-engineering.com> 11 + 12 + properties: 13 + compatible: 14 + items: 15 + - const: renesas,r9a06g032-wdt # RZ/N1D 16 + - const: renesas,rzn1-wdt # RZ/N1 17 + 18 + reg: 19 + maxItems: 1 20 + 21 + interrupts: 22 + maxItems: 1 23 + 24 + clocks: 25 + maxItems: 1 26 + 27 + timeout-sec: true 28 + 29 + required: 30 + - compatible 31 + - reg 32 + - interrupts 33 + - clocks 34 + 35 + allOf: 36 + - $ref: watchdog.yaml# 37 + 38 + additionalProperties: false 39 + 40 + examples: 41 + - | 42 + #include <dt-bindings/clock/r9a06g032-sysctrl.h> 43 + #include <dt-bindings/interrupt-controller/arm-gic.h> 44 + 45 + watchdog@40008000 { 46 + compatible = "renesas,r9a06g032-wdt", "renesas,rzn1-wdt"; 47 + reg = <0x40008000 0x1000>; 48 + interrupts = <GIC_SPI 73 IRQ_TYPE_EDGE_RISING>; 49 + clocks = <&sysctrl R9A06G032_CLK_WATCHDOG>; 50 + };
-6
Documentation/devicetree/bindings/watchdog/renesas,wdt.yaml
··· 15 15 oneOf: 16 16 - items: 17 17 - enum: 18 - - renesas,r9a06g032-wdt # RZ/N1D 19 - - const: renesas,rzn1-wdt # RZ/N1 20 - 21 - - items: 22 - - enum: 23 18 - renesas,r9a07g043-wdt # RZ/G2UL and RZ/Five 24 19 - renesas,r9a07g044-wdt # RZ/G2{L,LC} 25 20 - renesas,r9a07g054-wdt # RZ/V2L ··· 129 134 contains: 130 135 enum: 131 136 - renesas,r9a09g077-wdt 132 - - renesas,rzn1-wdt 133 137 then: 134 138 required: 135 139 - power-domains