Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: mtd: Document Macronix NAND device bindings

Document the bindings used by the Macronix NAND device.

Signed-off-by: Mason Yang <masonccyang@mxic.com.tw>
Reviewed-by: Rob Herring <robh@kernel.org>
[<miquel.raynal@bootlin.com: Fix typos]
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/1581922600-25461-3-git-send-email-masonccyang@mxic.com.tw

authored by

Mason Yang and committed by
Miquel Raynal
7f274f41 84234652

+27
+27
Documentation/devicetree/bindings/mtd/nand-macronix.txt
··· 1 + Macronix NANDs Device Tree Bindings 2 + ----------------------------------- 3 + 4 + Macronix NANDs support randomizer operation for scrambling user data, 5 + which can be enabled with a SET_FEATURE. The penalty when using the 6 + randomizer are subpage accesses prohibited and more time period needed 7 + for program operation, i.e., tPROG 300us to 340us (randomizer enabled). 8 + Enabling the randomizer is a one time persistent and non reversible 9 + operation. 10 + 11 + For more high-reliability concern, if subpage write is not available 12 + with hardware ECC and not enabled at UBI level, then enabling the 13 + randomizer is recommended by default by adding a new specific property 14 + in children nodes. 15 + 16 + Required NAND chip properties in children mode: 17 + - randomizer enable: should be "mxic,enable-randomizer-otp" 18 + 19 + Example: 20 + 21 + nand: nand-controller@unit-address { 22 + 23 + nand@0 { 24 + reg = <0>; 25 + mxic,enable-randomizer-otp; 26 + }; 27 + };