Skip to content

Commit 411a121

Browse files
committed
dt-bindings: mtd: qcom: Fix a property position
qcom,boot-partitions is a NAND chip property, not a NAND controller property. Move the description of the property into the NAND chip section and just enable the property in the if/else block. Fixes: 5278cc9 ("dt-bindings: mtd: qcom_nandc: document qcom,boot-partitions binding") Cc: Manivannan Sadhasivam <mani@kernel.org> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Reviewed-by: Rob Herring <robh@kernel.org> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/linux-mtd/20230619092916.3028470-6-miquel.raynal@bootlin.com
1 parent efdd296 commit 411a121

1 file changed

Lines changed: 25 additions & 16 deletions

File tree

Documentation/devicetree/bindings/mtd/qcom,nandc.yaml

Lines changed: 25 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,22 @@ patternProperties:
4545
enum:
4646
- 512
4747

48+
qcom,boot-partitions:
49+
$ref: /schemas/types.yaml#/definitions/uint32-matrix
50+
items:
51+
items:
52+
- description: offset
53+
- description: size
54+
description:
55+
Boot partition use a different layout where the 4 bytes of spare
56+
data are not protected by ECC. Use this to declare these special
57+
partitions by defining first the offset and then the size.
58+
59+
It's in the form of <offset1 size1 offset2 size2 offset3 ...>
60+
and should be declared in ascending order.
61+
62+
Refer to the ipq8064 example on how to use this special binding.
63+
4864
allOf:
4965
- $ref: nand-controller.yaml#
5066

@@ -107,22 +123,15 @@ allOf:
107123
- qcom,ipq806x-nand
108124

109125
then:
110-
properties:
111-
qcom,boot-partitions:
112-
$ref: /schemas/types.yaml#/definitions/uint32-matrix
113-
items:
114-
items:
115-
- description: offset
116-
- description: size
117-
description:
118-
Boot partition use a different layout where the 4 bytes of spare
119-
data are not protected by ECC. Use this to declare these special
120-
partitions by defining first the offset and then the size.
121-
122-
It's in the form of <offset1 size1 offset2 size2 offset3 ...>
123-
and should be declared in ascending order.
124-
125-
Refer to the ipq8064 example on how to use this special binding.
126+
patternProperties:
127+
"^nand@[a-f0-9]$":
128+
properties:
129+
qcom,boot-partitions: true
130+
else:
131+
patternProperties:
132+
"^nand@[a-f0-9]$":
133+
properties:
134+
qcom,boot-partitions: false
126135

127136
required:
128137
- compatible

0 commit comments

Comments
 (0)