Re: [PATCH 1/3] dt-bindings: can: fsl,flexcan: add S32G2/S32G3 SoC support

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

 



On 11/20/2024 11:12 AM, Krzysztof Kozlowski wrote:
On 20/11/2024 09:45, Krzysztof Kozlowski wrote:
On Tue, Nov 19, 2024 at 10:10:51AM +0200, Ciprian Costea wrote:
    reg:
      maxItems: 1
@@ -136,6 +138,23 @@ required:
    - reg
    - interrupts
+allOf:
+  - $ref: can-controller.yaml#
+  - if:
+      properties:
+        compatible:
+          contains:
+            const: nxp,s32g2-flexcan
+    then:
+      properties:
+        interrupts:
+          minItems: 4
+          maxItems: 4

Top level says max is 1. You need to keep there widest constraints.
And list items here instead...

Best regards,
Krzysztof

Hello Krzysztof,

Just to confirm before making any changes:
Are you referring to directly change 'maxItems' to value 4 ? Instead of using this 'if' condition under 'allOf' ?

Best Regards,
Ciprian




[Index of Archives]     [Automotive Discussions]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]     [CAN Bus]

  Powered by Linux