Commit 002d2fe7 authored by Rob Herring (Arm)'s avatar Rob Herring (Arm) Committed by Miquel Raynal
Browse files

dt-bindings: mtd: partitions: Define "#{address,size}-cells" in specific schemas



Whether "#address-cells" and "#size-cells" are used or not depends on
the specific partition type, so drop them from partitions.yaml and
define them in the specific partition schemas as needed.

Reviewed-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Signed-off-by: default avatarRob Herring (Arm) <robh@kernel.org>
Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
parent 9f30ba0a
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -25,9 +25,11 @@ properties:
          - const: sercomm,sc-partitions
          - const: fixed-partitions

  "#address-cells": true
  "#address-cells":
    enum: [ 1, 2 ]

  "#size-cells": true
  "#size-cells":
    enum: [ 1, 2 ]

patternProperties:
  "@[0-9a-f]+$":
+0 −6
Original line number Diff line number Diff line
@@ -26,12 +26,6 @@ oneOf:
properties:
  compatible: true

  '#address-cells':
    enum: [1, 2]

  '#size-cells':
    enum: [1, 2]

patternProperties:
  "^partition(-.+|@[0-9a-f]+)$":
    $ref: partition.yaml
+0 −4
Original line number Diff line number Diff line
@@ -28,10 +28,6 @@ properties:
      device. On a flash memory with 32KB eraseblocks, 0 means the first
      eraseblock at 0x00000000, 1 means the second eraseblock at 0x00008000 and so on.

  '#address-cells': false

  '#size-cells': false

required:
  - compatible
  - fis-index-block