summaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/mtd/denali-nand.txt
blob: 504291d2e5c2e5e02b880738c7f453b527dee63c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
* Denali NAND controller

Required properties:
  - compatible : should be one of the following:
      "altr,socfpga-denali-nand"            - for Altera SOCFPGA
      "socionext,uniphier-denali-nand-v5a"  - for Socionext UniPhier (v5a)
      "socionext,uniphier-denali-nand-v5b"  - for Socionext UniPhier (v5b)
  - reg : should contain registers location and length for data and reg.
  - reg-names: Should contain the reg names "nand_data" and "denali_reg"
  - interrupts : The interrupt number.

Optional properties:
  - nand-ecc-step-size: see nand.txt for details.  If present, the value must be
      512        for "altr,socfpga-denali-nand"
      1024       for "socionext,uniphier-denali-nand-v5a"
      1024       for "socionext,uniphier-denali-nand-v5b"
  - nand-ecc-strength: see nand.txt for details.  Valid values are:
      8, 15      for "altr,socfpga-denali-nand"
      8, 16, 24  for "socionext,uniphier-denali-nand-v5a"
      8, 16      for "socionext,uniphier-denali-nand-v5b"
  - nand-ecc-maximize: see nand.txt for details

The device tree may optionally contain sub-nodes describing partitions of the
address space. See partition.txt for more detail.

Examples:

nand: nand@ff900000 {
	#address-cells = <1>;
	#size-cells = <1>;
	compatible = "altr,socfpga-denali-nand";
	reg = <0xff900000 0x100000>, <0xffb80000 0x10000>;
	reg-names = "nand_data", "denali_reg";
	interrupts = <0 144 4>;
};