]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
dt-bindings: memory: snps,ddrc-3.80a compatible also need interrupts
authorSherry Sun <sherry.sun@nxp.com>
Mon, 21 Mar 2022 07:51:30 +0000 (15:51 +0800)
committerKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Mon, 4 Apr 2022 16:31:27 +0000 (18:31 +0200)
For the snps,ddrc-3.80a compatible, the interrupts property is also
required, also order the compatibles by name (s goes before x).

Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
Fixes: a9e6b3819b36 ("dt-bindings: memory: Add entry for version 3.80a")
Link: https://lore.kernel.org/r/20220321075131.17811-2-sherry.sun@nxp.com
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Documentation/devicetree/bindings/memory-controllers/synopsys,ddrc-ecc.yaml

index fb7ae38a9c86672d2f7c3afd707af9ba66d975b9..e3bc6ebce0904b5c9c10079503c53200d9deaec1 100644 (file)
@@ -24,9 +24,9 @@ description: |
 properties:
   compatible:
     enum:
+      - snps,ddrc-3.80a
       - xlnx,zynq-ddrc-a05
       - xlnx,zynqmp-ddrc-2.40a
-      - snps,ddrc-3.80a
 
   interrupts:
     maxItems: 1
@@ -43,7 +43,9 @@ allOf:
       properties:
         compatible:
           contains:
-            const: xlnx,zynqmp-ddrc-2.40a
+            enum:
+              - snps,ddrc-3.80a
+              - xlnx,zynqmp-ddrc-2.40a
     then:
       required:
         - interrupts