summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCheng Ming Lin <chengminglin@mxic.com.tw>2026-05-05 04:34:51 +0300
committerMiquel Raynal <miquel.raynal@bootlin.com>2026-05-27 12:06:27 +0300
commitcf496ebf1380bde700c5d1790c31919eea2f4851 (patch)
treeb0b11328bab4b6669af1dc45398858220257d0cc
parent8507c2cc9e4fa402401819f44d1e8a5ef4d11d8b (diff)
downloadlinux-cf496ebf1380bde700c5d1790c31919eea2f4851.tar.xz
dt-bindings: mtd: nand: Add nand-randomizer property
Add the 'nand-randomizer' property to control the data randomizer feature. This is used to improve data reliability by reducing cell-to-cell interference. Depending on the hardware architecture, this property is designed to be generic and can apply to either the NAND chip's internal randomizer or the hardware randomizer engine embedded in the NAND host controller. This property is defined as a uint32 enum (0 or 1) instead of a simple boolean. This design choice explicitly supports the "not present" case. If the property is omitted, the driver will not interfere and will leave the randomizer in its current state (e.g., as already configured by the bootloader or hardware default). Signed-off-by: Cheng Ming Lin <chengminglin@mxic.com.tw> Reviewed-by: Rob Herring (Arm) <robh@kernel.org> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
-rw-r--r--Documentation/devicetree/bindings/mtd/nand-chip.yaml9
1 files changed, 9 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/mtd/nand-chip.yaml b/Documentation/devicetree/bindings/mtd/nand-chip.yaml
index 8800d1d07266..effdc4f99017 100644
--- a/Documentation/devicetree/bindings/mtd/nand-chip.yaml
+++ b/Documentation/devicetree/bindings/mtd/nand-chip.yaml
@@ -23,6 +23,15 @@ properties:
description:
Contains the chip-select IDs.
+ nand-randomizer:
+ description: |
+ Control the data randomizer feature.
+ 0: Disable randomizer.
+ 1: Enable randomizer.
+ If absent, the current hardware state is left unchanged.
+ $ref: /schemas/types.yaml#/definitions/uint32
+ enum: [0, 1]
+
required:
- reg