[PATCH 1/3] dt-bindings: mtd: sunxi: Add randomized OOB flag
From: James Hilliard
Date: Mon Aug 10 2026 - 19:05:53 EST
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 <james.hilliard1@xxxxxxxxx>
---
.../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