Skip to content

Commit ac83f4f

Browse files
robherringmiquelraynal
authored andcommitted
dt-bindings: mtd: partitions: Move "sercomm,scpart-id" to partition.yaml
Defining child node properties specific to the parent schema doesn't work unless all the child node properties are known. They aren't known because any partition can define its own properties. The solution to this is typically something like spi-peripheral-props.yaml, but that's overkill for this single property. Just move it to partition.yaml instead. Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com> Signed-off-by: Rob Herring (Arm) <robh@kernel.org> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
1 parent 30f138c commit ac83f4f

2 files changed

Lines changed: 9 additions & 10 deletions

File tree

Documentation/devicetree/bindings/mtd/partitions/fixed-partitions.yaml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,6 @@ patternProperties:
3333
"@[0-9a-f]+$":
3434
$ref: partition.yaml#
3535

36-
properties:
37-
sercomm,scpart-id:
38-
description: Partition id in Sercomm partition map. Mtd parser
39-
uses this id to find a record in the partition map containing
40-
offset and size of the current partition. The values from
41-
partition map overrides partition offset and size defined in
42-
reg property of the dts. Frequently these values are the same,
43-
but may differ if device has bad eraseblocks on a flash.
44-
$ref: /schemas/types.yaml#/definitions/uint32
45-
4636
required:
4737
- "#address-cells"
4838
- "#size-cells"

Documentation/devicetree/bindings/mtd/partitions/partition.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,15 @@ properties:
126126
- xz
127127
- zstd
128128

129+
sercomm,scpart-id:
130+
description: Partition id in Sercomm partition map. Mtd parser
131+
uses this id to find a record in the partition map containing
132+
offset and size of the current partition. The values from
133+
partition map overrides partition offset and size defined in
134+
reg property of the dts. Frequently these values are the same,
135+
but may differ if device has bad eraseblocks on a flash.
136+
$ref: /schemas/types.yaml#/definitions/uint32
137+
129138
if:
130139
not:
131140
required: [ reg ]

0 commit comments

Comments
 (0)