]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
dt-bindings: soc: renesas: mfis: Add R-Car V4H/V4M support
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Tue, 19 May 2026 07:56:18 +0000 (09:56 +0200)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 29 May 2026 12:42:29 +0000 (14:42 +0200)
The above SoCs have only 12 mailboxes and do not have an extra register
space for mailboxes.  Everything is contained in the common register
set.  In addition to adding these SoCs, the other entries get updated to
enforce 2 register spaces and their specific number of interrupts.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://patch.msgid.link/20260519075620.4128-2-wsa+renesas@sang-engineering.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Documentation/devicetree/bindings/soc/renesas/renesas,r8a78000-mfis.yaml

index eef8c0a59e9c0ae7edc59b650890db32d8d7864a..72b9fa67d1f7b8df03eceb5971c303affc3e2376 100644 (file)
@@ -19,25 +19,29 @@ description:
 properties:
   compatible:
     enum:
+      - renesas,r8a779g0-mfis       # R-Car V4H
+      - renesas,r8a779h0-mfis       # R-Car V4M
       - renesas,r8a78000-mfis       # R-Car X5H (AP<->AP, with PRR)
       - renesas,r8a78000-mfis-scp   # R-Car X5H (AP<->SCP, without PRR)
 
   reg:
+    minItems: 1
     maxItems: 2
 
   reg-names:
+    minItems: 1
     items:
       - const: common
       - const: mboxes
 
   interrupts:
-    minItems: 32
+    minItems: 12
     maxItems: 128
     description:
       The interrupts raised by the remote doorbells.
 
   interrupt-names:
-    minItems: 32
+    minItems: 12
     maxItems: 128
     description:
       An interrupt name is constructed with the prefix 'ch'. Then, the
@@ -56,6 +60,26 @@ properties:
       <dt-bindings/soc/renesas,r8a78000-mfis.h>.
 
 allOf:
+  - if:
+      properties:
+        compatible:
+          contains:
+            enum:
+              - renesas,r8a779g0-mfis
+              - renesas,r8a779h0-mfis
+    then:
+      properties:
+        reg:
+          maxItems: 1
+        reg-names:
+          maxItems: 1
+        interrupts:
+          maxItems: 12
+        interrupt-names:
+          maxItems: 12
+          items:
+            pattern: "^ch[0-9]+e$"
+
   - if:
       properties:
         compatible:
@@ -63,6 +87,10 @@ allOf:
             const: renesas,r8a78000-mfis
     then:
       properties:
+        reg:
+          minItems: 2
+        reg-names:
+          minItems: 2
         interrupts:
           minItems: 128
         interrupt-names:
@@ -77,9 +105,15 @@ allOf:
             const: renesas,r8a78000-mfis-scp
     then:
       properties:
+        reg:
+          minItems: 2
+        reg-names:
+          minItems: 2
         interrupts:
+          minItems: 32
           maxItems: 32
         interrupt-names:
+          minItems: 32
           maxItems: 32
           items:
             pattern: "^ch[0-9]+i$"