mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 06:04:44 +01:00
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>
This commit is contained in:
parent
e55bbdd4a4
commit
0b1ae6480c
1 changed files with 49 additions and 1 deletions
|
|
@ -26,18 +26,22 @@ properties:
|
|||
- loongson,ls1b-nand-controller
|
||||
- loongson,ls1c-nand-controller
|
||||
- loongson,ls2k0500-nand-controller
|
||||
- loongson,ls2k1000-nand-controller
|
||||
- items:
|
||||
- enum:
|
||||
- loongson,ls1a-nand-controller
|
||||
- const: loongson,ls1b-nand-controller
|
||||
|
||||
reg:
|
||||
maxItems: 2
|
||||
minItems: 2
|
||||
maxItems: 3
|
||||
|
||||
reg-names:
|
||||
minItems: 2
|
||||
items:
|
||||
- const: nand
|
||||
- const: nand-dma
|
||||
- const: dma-config
|
||||
|
||||
dmas:
|
||||
maxItems: 1
|
||||
|
|
@ -54,6 +58,27 @@ required:
|
|||
|
||||
unevaluatedProperties: false
|
||||
|
||||
if:
|
||||
properties:
|
||||
compatible:
|
||||
contains:
|
||||
enum:
|
||||
- loongson,ls2k1000-nand-controller
|
||||
|
||||
then:
|
||||
properties:
|
||||
reg:
|
||||
minItems: 3
|
||||
reg-names:
|
||||
minItems: 3
|
||||
|
||||
else:
|
||||
properties:
|
||||
reg:
|
||||
maxItems: 2
|
||||
reg-names:
|
||||
maxItems: 2
|
||||
|
||||
examples:
|
||||
- |
|
||||
nand-controller@1fe78000 {
|
||||
|
|
@ -72,3 +97,26 @@ examples:
|
|||
nand-ecc-algo = "hamming";
|
||||
};
|
||||
};
|
||||
|
||||
- |
|
||||
nand-controller@1fe26000 {
|
||||
compatible = "loongson,ls2k1000-nand-controller";
|
||||
reg = <0x1fe26000 0x24>,
|
||||
<0x1fe26040 0x4>,
|
||||
<0x1fe00438 0x8>;
|
||||
reg-names = "nand", "nand-dma", "dma-config";
|
||||
dmas = <&apbdma0 0>;
|
||||
dma-names = "rxtx";
|
||||
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
nand@0 {
|
||||
reg = <0>;
|
||||
label = "ls2k1000-nand";
|
||||
nand-use-soft-ecc-engine;
|
||||
nand-ecc-algo = "bch";
|
||||
nand-ecc-strength = <8>;
|
||||
nand-ecc-step-size = <512>;
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue