[PATCH/RFT 3/6] dt-bindings: can: renesas,rcar-canfd: Document R-Car V3H2 support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Document support for the CAN-FD Controller in the Renesas R-Car
V3H2 (R8A77980A) SoC, which is similar to CAN-FD on R-Car V3H, but
supports a third channel.

Signed-off-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx>
---
As "renesas,r8a77980a-canfd" already uses "renesas,rcar-gen3-canfd" as a
fallback (which lets us use two channels with existing drivers), and the
driver doesn't have special handling for "renesas,r8a77980-canfd", I see
no need to complicate the bindings with "renesas,r8a77980-canfd" as a
second fallback like:

  - items:
      - const: renesas,r8a77980a-canfd # R-Car V3H2
      - const: renesas,r8a77980-canfd  # R-Car V3H
      - const: renesas,rcar-gen3-canfd # R-Car Gen3 and RZ/G2
---
 .../bindings/net/can/renesas,rcar-canfd.yaml   | 18 ++++++++++++++----
 1 file changed, 14 insertions(+), 4 deletions(-)

diff --git a/Documentation/devicetree/bindings/net/can/renesas,rcar-canfd.yaml b/Documentation/devicetree/bindings/net/can/renesas,rcar-canfd.yaml
index f4ac21c684278b96..481b25d576f850c6 100644
--- a/Documentation/devicetree/bindings/net/can/renesas,rcar-canfd.yaml
+++ b/Documentation/devicetree/bindings/net/can/renesas,rcar-canfd.yaml
@@ -24,6 +24,7 @@ properties:
               - renesas,r8a77965-canfd     # R-Car M3-N
               - renesas,r8a77970-canfd     # R-Car V3M
               - renesas,r8a77980-canfd     # R-Car V3H
+              - renesas,r8a77980a-canfd    # R-Car V3H2
               - renesas,r8a77990-canfd     # R-Car E3
               - renesas,r8a77995-canfd     # R-Car D3
           - const: renesas,rcar-gen3-canfd # R-Car Gen3 and RZ/G2
@@ -242,12 +243,21 @@ allOf:
       properties:
         compatible:
           contains:
-            enum:
-              - renesas,rcar-gen3-canfd
-              - renesas,rzg2l-canfd
+            const: renesas,r8a77980a-canfd
     then:
       patternProperties:
-        "^channel[2-7]$": false
+        "^channel[3-7]$": false
+    else:
+      if:
+        properties:
+          compatible:
+            contains:
+              enum:
+                - renesas,rcar-gen3-canfd
+                - renesas,rzg2l-canfd
+      then:
+        patternProperties:
+          "^channel[2-7]$": false
 
   - if:
       properties:
-- 
2.43.0





[Index of Archives]     [Linux Samsung SOC]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux