[PATCH 1/3] dt-bindings: mtd: sunxi: Add randomized OOB flag
James Hilliard <[email protected]>
| Newsgroups | dev.linux.lists.linux-sunxi,org.infradead.lists.linux-arm-kernel,org.infradead.lists.linux-mtd,org.kernel.vger.linux-devicetree,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <20260810-submit-sunxi-nand-vendor-oob-layout-v1-v1-1-463853a14ad9@gmail.com> |
Allwinner NAND firmware stores the bad block marker through the controller randomizer. The mainline driver instead compensates the first two randomized bytes so that the marker remains plain on flash. On H6 and H616, the firmware also uses a fixed protected user-data placement while mainline fills the OOB space left after ECC. Add an opt-in property for NAND using the randomized normal-page OOB format. Signed-off-by: James Hilliard <[email protected]> --- .../devicetree/bindings/mtd/allwinner,sun4i-a10-nand.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Documentation/devicetree/bindings/mtd/allwinner,sun4i-a10-nand.yaml b/Documentation/devicetree/bindings/mtd/allwinner,sun4i-a10-nand.yaml index 9d061e2216cb..7eda1275135d 100644 --- a/Documentation/devicetree/bindings/mtd/allwinner,sun4i-a10-nand.yaml +++ b/Documentation/devicetree/bindings/mtd/allwinner,sun4i-a10-nand.yaml @@ -79,6 +79,15 @@ patternProperties: minimum: 0 maximum: 1 + allwinner,randomized-oob: + type: boolean + description: + Use the Allwinner randomized normal-page OOB format. This enables + the controller page randomizer, stores the bad block marker through + it instead of compensating the marker so that it remains plain on + flash, and selects the controller-specific protected user-data + placement used by Allwinner NAND firmware. + unevaluatedProperties: false required: -- 2.53.0