diff mbox series

[2/2] dt-bindings: mtd: gpmi-nand: add new fsl, legacy-bch-geometry flag

Message ID 20210522205136.19465-2-han.xu@nxp.com
State Changes Requested
Delegated to: Miquel Raynal
Headers show
Series [1/2] mtd: nand: raw: gpmi: new bch geometry settings | expand

Commit Message

han.xu May 22, 2021, 8:51 p.m. UTC
New bch geometry setting uses the minimum NAND chip required ecc
strength and step size by default. This flag was designed for backward
compatible. The fsl,use-minimum-ecc flag can be deprecated.

Signed-off-by: Han Xu <han.xu@nxp.com>
---
 Documentation/devicetree/bindings/mtd/gpmi-nand.yaml | 9 +++++++++
 1 file changed, 9 insertions(+)
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/mtd/gpmi-nand.yaml b/Documentation/devicetree/bindings/mtd/gpmi-nand.yaml
index 9d764e654e1d..5f4eddd132a1 100644
--- a/Documentation/devicetree/bindings/mtd/gpmi-nand.yaml
+++ b/Documentation/devicetree/bindings/mtd/gpmi-nand.yaml
@@ -62,6 +62,7 @@  properties:
 
   fsl,use-minimum-ecc:
     type: boolean
+    deprecated: true
     description: |
       Protect this NAND flash with the minimum ECC strength required.
       The required ECC strength is automatically discoverable for some
@@ -69,6 +70,14 @@  properties:
       if this strength is not discoverable or this property is not enabled,
       the software may chooses an implementation-defined ECC scheme.
 
+  fsl,legacy-bch-geometry:
+    type: boolean
+    description: |
+      Enable the legacy bch geometry setting, which will set the data chunk
+      size larger than oob size and chose the maximum ecc strength oob can
+      hold. This flag was designed for backward compatible or old NAND chip
+      support, should be en/disabled in u-boot and kernel at the same time.
+
   fsl,no-blockmark-swap:
     type: boolean
     description: |