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

dt-bindings: mtd: loongson,ls1b-nand-controller: Document the Loongson-2K1000 NAND controller

Add new compatible for the Loongson-2K NAND controller used for
Loongson-2K1000 SoC.

Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Signed-off-by: Binbin Zhou <zhoubinbin@loongson.cn>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>

authored by

Binbin Zhou and committed by
Miquel Raynal
0b1ae648 e55bbdd4

+49 -1
+49 -1
Documentation/devicetree/bindings/mtd/loongson,ls1b-nand-controller.yaml
··· 26 26 - loongson,ls1b-nand-controller 27 27 - loongson,ls1c-nand-controller 28 28 - loongson,ls2k0500-nand-controller 29 + - loongson,ls2k1000-nand-controller 29 30 - items: 30 31 - enum: 31 32 - loongson,ls1a-nand-controller 32 33 - const: loongson,ls1b-nand-controller 33 34 34 35 reg: 35 - maxItems: 2 36 + minItems: 2 37 + maxItems: 3 36 38 37 39 reg-names: 40 + minItems: 2 38 41 items: 39 42 - const: nand 40 43 - const: nand-dma 44 + - const: dma-config 41 45 42 46 dmas: 43 47 maxItems: 1 ··· 57 53 - dma-names 58 54 59 55 unevaluatedProperties: false 56 + 57 + if: 58 + properties: 59 + compatible: 60 + contains: 61 + enum: 62 + - loongson,ls2k1000-nand-controller 63 + 64 + then: 65 + properties: 66 + reg: 67 + minItems: 3 68 + reg-names: 69 + minItems: 3 70 + 71 + else: 72 + properties: 73 + reg: 74 + maxItems: 2 75 + reg-names: 76 + maxItems: 2 60 77 61 78 examples: 62 79 - | ··· 95 70 label = "ls1x-nand"; 96 71 nand-use-soft-ecc-engine; 97 72 nand-ecc-algo = "hamming"; 73 + }; 74 + }; 75 + 76 + - | 77 + nand-controller@1fe26000 { 78 + compatible = "loongson,ls2k1000-nand-controller"; 79 + reg = <0x1fe26000 0x24>, 80 + <0x1fe26040 0x4>, 81 + <0x1fe00438 0x8>; 82 + reg-names = "nand", "nand-dma", "dma-config"; 83 + dmas = <&apbdma0 0>; 84 + dma-names = "rxtx"; 85 + 86 + #address-cells = <1>; 87 + #size-cells = <0>; 88 + 89 + nand@0 { 90 + reg = <0>; 91 + label = "ls2k1000-nand"; 92 + nand-use-soft-ecc-engine; 93 + nand-ecc-algo = "bch"; 94 + nand-ecc-strength = <8>; 95 + nand-ecc-step-size = <512>; 98 96 }; 99 97 };