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/G2L 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/G2L 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: Biju Das <biju.das.jz@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
909c8ea1 a3e32b41

+112 -44
+111
Documentation/devicetree/bindings/watchdog/renesas,rzg2l-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,rzg2l-wdt.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Renesas RZ/G2L Watchdog Timer (WDT) Controller 8 + 9 + maintainers: 10 + - Biju Das <biju.das.jz@bp.renesas.com> 11 + 12 + properties: 13 + compatible: 14 + oneOf: 15 + - items: 16 + - enum: 17 + - renesas,r9a07g043-wdt # RZ/G2UL and RZ/Five 18 + - renesas,r9a07g044-wdt # RZ/G2{L,LC} 19 + - renesas,r9a07g054-wdt # RZ/V2L 20 + - renesas,r9a08g045-wdt # RZ/G3S 21 + - const: renesas,rzg2l-wdt 22 + 23 + - items: 24 + - const: renesas,r9a09g011-wdt # RZ/V2M 25 + - const: renesas,rzv2m-wdt # RZ/V2M 26 + 27 + reg: 28 + maxItems: 1 29 + 30 + interrupts: 31 + minItems: 1 32 + items: 33 + - description: Timeout 34 + - description: Parity error 35 + 36 + interrupt-names: 37 + minItems: 1 38 + items: 39 + - const: wdt 40 + - const: perrout 41 + 42 + clocks: 43 + items: 44 + - description: Register access clock 45 + - description: Main clock 46 + 47 + clock-names: 48 + items: 49 + - const: pclk 50 + - const: oscclk 51 + 52 + power-domains: 53 + maxItems: 1 54 + 55 + resets: 56 + maxItems: 1 57 + 58 + timeout-sec: true 59 + 60 + required: 61 + - compatible 62 + - reg 63 + - interrupts 64 + - clocks 65 + - clock-names 66 + - power-domains 67 + - resets 68 + 69 + allOf: 70 + - $ref: watchdog.yaml# 71 + 72 + - if: 73 + properties: 74 + compatible: 75 + contains: 76 + const: renesas,rzg2l-wdt 77 + then: 78 + properties: 79 + interrupts: 80 + minItems: 2 81 + interrupt-names: 82 + minItems: 2 83 + required: 84 + - interrupt-names 85 + else: 86 + properties: 87 + interrupts: 88 + maxItems: 1 89 + interrupt-names: 90 + maxItems: 1 91 + 92 + additionalProperties: false 93 + 94 + examples: 95 + - | 96 + #include <dt-bindings/clock/r9a07g044-cpg.h> 97 + #include <dt-bindings/interrupt-controller/arm-gic.h> 98 + 99 + watchdog@12800800 { 100 + compatible = "renesas,r9a07g044-wdt", 101 + "renesas,rzg2l-wdt"; 102 + reg = <0x12800800 0x400>; 103 + clocks = <&cpg CPG_MOD R9A07G044_WDT0_PCLK>, 104 + <&cpg CPG_MOD R9A07G044_WDT0_CLK>; 105 + clock-names = "pclk", "oscclk"; 106 + interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>, 107 + <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>; 108 + interrupt-names = "wdt", "perrout"; 109 + resets = <&cpg R9A07G044_WDT0_PRESETN>; 110 + power-domains = <&cpg>; 111 + };
+1 -44
Documentation/devicetree/bindings/watchdog/renesas,wdt.yaml
··· 15 15 oneOf: 16 16 - items: 17 17 - enum: 18 - - renesas,r9a07g043-wdt # RZ/G2UL and RZ/Five 19 - - renesas,r9a07g044-wdt # RZ/G2{L,LC} 20 - - renesas,r9a07g054-wdt # RZ/V2L 21 - - renesas,r9a08g045-wdt # RZ/G3S 22 - - const: renesas,rzg2l-wdt 23 - 24 - - items: 25 - - enum: 26 - - renesas,r9a09g011-wdt # RZ/V2M 27 - - const: renesas,rzv2m-wdt # RZ/V2M 28 - 29 - - items: 30 - - enum: 31 18 - renesas,r8a7742-wdt # RZ/G1H 32 19 - renesas,r8a7743-wdt # RZ/G1M 33 20 - renesas,r8a7744-wdt # RZ/G1N ··· 70 83 maxItems: 2 71 84 72 85 interrupts: 73 - minItems: 1 74 - items: 75 - - description: Timeout 76 - - description: Parity error 77 - 78 - interrupt-names: 79 - minItems: 1 80 - items: 81 - - const: wdt 82 - - const: perrout 86 + maxItems: 1 83 87 84 88 clocks: 85 89 minItems: 1 ··· 118 140 contains: 119 141 enum: 120 142 - renesas,r9a09g057-wdt 121 - - renesas,rzg2l-wdt 122 - - renesas,rzv2m-wdt 123 143 then: 124 144 properties: 125 145 clocks: ··· 129 153 else: 130 154 properties: 131 155 clocks: 132 - maxItems: 1 133 - 134 - - if: 135 - properties: 136 - compatible: 137 - contains: 138 - enum: 139 - - renesas,rzg2l-wdt 140 - then: 141 - properties: 142 - interrupts: 143 - minItems: 2 144 - interrupt-names: 145 - minItems: 2 146 - required: 147 - - interrupt-names 148 - else: 149 - properties: 150 - interrupts: 151 156 maxItems: 1 152 157 153 158 - if: