Skip to content

Commit 5278cc9

Browse files
Ansuelmiquelraynal
authored andcommitted
dt-bindings: mtd: qcom_nandc: document qcom,boot-partitions binding
Document new qcom,boot-partition binding used to apply special read/write layout to boot partitions. QCOM apply a special layout where spare data is not protected by ECC for some special pages (used for boot partition). Add Documentation on how to declare these special pages. Signed-off-by: Christian Marangi <[email protected]> Reviewed-by: Rob Herring <[email protected]> Reviewed-by: Manivannan Sadhasivam <[email protected]> Signed-off-by: Miquel Raynal <[email protected]> Link: https://lore.kernel.org/linux-mtd/[email protected]
1 parent 862bded commit 5278cc9

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

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

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,31 @@ allOf:
102102
- const: rx
103103
- const: cmd
104104

105+
- if:
106+
properties:
107+
compatible:
108+
contains:
109+
enum:
110+
- qcom,ipq806x-nand
111+
112+
then:
113+
properties:
114+
qcom,boot-partitions:
115+
$ref: /schemas/types.yaml#/definitions/uint32-matrix
116+
items:
117+
items:
118+
- description: offset
119+
- description: size
120+
description:
121+
Boot partition use a different layout where the 4 bytes of spare
122+
data are not protected by ECC. Use this to declare these special
123+
partitions by defining first the offset and then the size.
124+
125+
It's in the form of <offset1 size1 offset2 size2 offset3 ...>
126+
and should be declared in ascending order.
127+
128+
Refer to the ipq8064 example on how to use this special binding.
129+
105130
required:
106131
- compatible
107132
- reg
@@ -135,6 +160,8 @@ examples:
135160
nand-ecc-strength = <4>;
136161
nand-bus-width = <8>;
137162
163+
qcom,boot-partitions = <0x0 0x58a0000>;
164+
138165
partitions {
139166
compatible = "fixed-partitions";
140167
#address-cells = <1>;

0 commit comments

Comments
 (0)