All of lore.kernel.org
 help / color / mirror / Atom feed
From: Biju Das <biju.das.jz@bp.renesas.com>
To: cip-dev@lists.cip-project.org,
	Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp>,
	Pavel Machek <pavel@denx.de>
Cc: Chris Paterson <chris.paterson2@renesas.com>,
	Biju Das <biju.das.jz@bp.renesas.com>,
	Fabrizio Castro <fabrizio.castro.jz@renesas.com>
Subject: [PATCH 5.10.y-cip 07/23] dt-bindings: watchdog: renesas,wdt: Add r9a09g011 (RZ/V2M) support
Date: Fri, 19 May 2023 09:20:42 +0100	[thread overview]
Message-ID: <20230519082058.109760-8-biju.das.jz@bp.renesas.com> (raw)
In-Reply-To: <20230519082058.109760-1-biju.das.jz@bp.renesas.com>

From: Phil Edworthy <phil.edworthy@renesas.com>

commit d59913b0a5b6b8c52c8fbceca910d4aedbbd4cf1 upstream.

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>
Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
---
 .../bindings/watchdog/renesas,wdt.yaml        | 73 +++++++++++++------
 1 file changed, 52 insertions(+), 21 deletions(-)

diff --git a/Documentation/devicetree/bindings/watchdog/renesas,wdt.yaml b/Documentation/devicetree/bindings/watchdog/renesas,wdt.yaml
index b06c4219b8b9..ba0769d8308d 100644
--- a/Documentation/devicetree/bindings/watchdog/renesas,wdt.yaml
+++ b/Documentation/devicetree/bindings/watchdog/renesas,wdt.yaml
@@ -26,6 +26,11 @@ properties:
               - renesas,r9a07g054-wdt    # RZ/V2L
           - const: renesas,rzg2l-wdt
 
+      - items:
+          - enum:
+              - renesas,r9a09g011-wdt    # RZ/V2M
+          - const: renesas,rzv2m-wdt     # RZ/V2M
+
       - items:
           - enum:
               - renesas,r8a7742-wdt      # RZ/G1H
@@ -59,13 +64,29 @@ properties:
   reg:
     maxItems: 1
 
-  interrupts: true
-
-  interrupt-names: true
-
-  clocks: true
-
-  clock-names: true
+  interrupts:
+    minItems: 1
+    items:
+      - description: Timeout
+      - description: Parity error
+
+  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:
     maxItems: 1
@@ -78,6 +99,7 @@ properties:
 required:
   - compatible
   - reg
+  - interrupts
   - clocks
 
 allOf:
@@ -101,31 +123,38 @@ allOf:
           contains:
             enum:
               - renesas,rzg2l-wdt
+              - renesas,rzv2m-wdt
     then:
       properties:
-        interrupts:
-          maxItems: 2
-        interrupt-names:
-          items:
-            - const: wdt
-            - const: perrout
         clocks:
-          items:
-            - description: Register access clock
-            - description: Main clock
+          minItems: 2
         clock-names:
-          items:
-            - const: pclk
-            - const: oscclk
+          minItems: 2
       required:
         - 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
     else:
       properties:
         interrupts:
           maxItems: 1
-        clocks:
-          maxItems: 1
 
 additionalProperties: false
 
@@ -133,9 +162,11 @@ examples:
   - |
     #include <dt-bindings/clock/r8a7795-cpg-mssr.h>
     #include <dt-bindings/power/r8a7795-sysc.h>
+    #include <dt-bindings/interrupt-controller/arm-gic.h>
     wdt0: watchdog@e6020000 {
             compatible = "renesas,r8a7795-wdt", "renesas,rcar-gen3-wdt";
             reg = <0xe6020000 0x0c>;
+            interrupts = <GIC_SPI 140 IRQ_TYPE_LEVEL_HIGH>;
             clocks = <&cpg CPG_MOD 402>;
             power-domains = <&sysc R8A7795_PD_ALWAYS_ON>;
             resets = <&cpg 402>;
-- 
2.25.1



  parent reply	other threads:[~2023-05-19  8:21 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-19  8:20 [PATCH 5.10.y-cip 00/23] Add RZ/V2M I2C and WDT support Biju Das
2023-05-19  8:20 ` [PATCH 5.10.y-cip 01/23] clk: renesas: r9a09g011: Add TIM clock and reset entries Biju Das
2023-05-19  8:20 ` [PATCH 5.10.y-cip 02/23] arm64: dts: renesas: r9a09g011: Fix unit address format error Biju Das
2023-05-19  8:20 ` [PATCH 5.10.y-cip 03/23] arm64: dts: renesas: r9a09g011: Reword ethernet status Biju Das
2023-05-19  8:20 ` [PATCH 5.10.y-cip 04/23] arm64: dts: renesas: r9a09g011: Add L2 Cache node Biju Das
2023-05-19  8:20 ` [PATCH 5.10.y-cip 05/23] arm64: dts: renesas: r9a09g011: Add system controller node Biju Das
2023-05-19  8:20 ` [PATCH 5.10.y-cip 06/23] clk: renesas: r9a09g011: Add WDT clock and reset entries Biju Das
2023-05-19  8:20 ` Biju Das [this message]
2023-05-19  8:20 ` [PATCH 5.10.y-cip 08/23] watchdog: rzg2l_wdt: Add rzv2m support Biju Das
2023-05-19  8:20 ` [PATCH 5.10.y-cip 09/23] watchdog: rzg2l_wdt: Handle TYPE-B reset for RZ/V2M Biju Das
2023-05-19  8:20 ` [PATCH 5.10.y-cip 10/23] arm64: dts: renesas: r9a09g011: Add watchdog node Biju Das
2023-05-19  8:20 ` [PATCH 5.10.y-cip 11/23] arm64: dts: renesas: rzv2mevk2: Enable watchdog Biju Das
2023-05-19  8:20 ` [PATCH 5.10.y-cip 12/23] driver core: add a helper to setup both the of_node and fwnode of a device Biju Das
2023-05-19  8:20 ` [PATCH 5.10.y-cip 13/23] PM: core: Redefine pm_ptr() macro Biju Das
2023-05-19  8:20 ` [PATCH 5.10.y-cip 14/23] PM: core: Add new *_PM_OPS macros, deprecate old ones Biju Das
2023-05-19 22:13   ` Pavel Machek
2023-05-20 15:00     ` Biju Das
2023-05-23 13:19       ` Pavel Machek
2023-05-23 14:05         ` Biju Das
2023-05-24  7:43           ` Pavel Machek
2023-05-24  7:46             ` Biju Das
2023-05-19  8:20 ` [PATCH 5.10.y-cip 15/23] clk: renesas: r9a09g011: Add IIC clock and reset entries Biju Das
2023-05-19  8:20 ` [PATCH 5.10.y-cip 16/23] dt-bindings: i2c: Document RZ/V2M I2C controller Biju Das
2023-05-19  8:20 ` [PATCH 5.10.y-cip 17/23] dt-bindings: i2c: renesas,rzv2m: Fix SoC specific string Biju Das
2023-05-19  8:20 ` [PATCH 5.10.y-cip 18/23] dt-bindings: i2c: renesas,rzv2m: Change maintainer to Fabrizio Castro Biju Das
2023-05-19  8:20 ` [PATCH 5.10.y-cip 19/23] i2c: Add Renesas RZ/V2M controller Biju Das
2023-05-24  7:50   ` Pavel Machek
2023-05-24 12:35     ` Biju Das
2023-05-19  8:20 ` [PATCH 5.10.y-cip 20/23] arm64: dts: renesas: r9a09g011: Add i2c nodes Biju Das
2023-05-19  8:20 ` [PATCH 5.10.y-cip 21/23] arm64: dts: renesas: r9a09g011: Fix I2C SoC specific strings Biju Das
2023-05-19  8:20 ` [PATCH 5.10.y-cip 22/23] arm64: dts: renesas: rzv2m evk: Enable i2c Biju Das
2023-05-19  8:20 ` [PATCH 5.10.y-cip 23/23] arm64: defconfig: Enable additional support for Renesas platforms Biju Das
2023-05-21 18:55 ` [PATCH 5.10.y-cip 00/23] Add RZ/V2M I2C and WDT support Pavel Machek
     [not found] ` <17613D7F1DB6F5FD.16124@lists.cip-project.org>
2023-05-22 20:12   ` [cip-dev] " Pavel Machek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230519082058.109760-8-biju.das.jz@bp.renesas.com \
    --to=biju.das.jz@bp.renesas.com \
    --cc=chris.paterson2@renesas.com \
    --cc=cip-dev@lists.cip-project.org \
    --cc=fabrizio.castro.jz@renesas.com \
    --cc=nobuhiro1.iwamatsu@toshiba.co.jp \
    --cc=pavel@denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.