spi: dt-bindings: sifive: Add missing 2nd register region
authorRob Herring <robh@kernel.org>
Tue, 12 May 2020 20:45:39 +0000 (15:45 -0500)
committerRob Herring <robh@kernel.org>
Thu, 14 May 2020 19:42:54 +0000 (14:42 -0500)
The 'reg' description and example have a 2nd register region for memory
mapped flash, but the schema says there is only 1 region. Fix this.

Cc: Palmer Dabbelt <palmer@dabbelt.com>
Cc: linux-spi@vger.kernel.org
Cc: linux-riscv@lists.infradead.org
Acked-by: Mark Brown <broonie@kernel.org>
Acked-by: Paul Walmsley <paul.walmsley@sifive.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Documentation/devicetree/bindings/spi/spi-sifive.yaml

index 28040598bfaefa38c75c68e5b8efed524da29d12..fb583e57c1f23c4469cf165026796794e0ccc84c 100644 (file)
@@ -32,11 +32,10 @@ properties:
       https://github.com/sifive/sifive-blocks/tree/master/src/main/scala/devices/spi
 
   reg:
-    maxItems: 1
-
-    description:
-      Physical base address and size of SPI registers map
-      A second (optional) range can indicate memory mapped flash
+    minItems: 1
+    items:
+      - description: SPI registers region
+      - description: Memory mapped flash region
 
   interrupts:
     maxItems: 1