xref: /openbmc/linux/Documentation/devicetree/bindings/mtd/cadence-nand-controller.txt (revision 5121b4219972c16e9ac92545a6743af2e99d4abc)
1*5121b421SPiotr Sroka* Cadence NAND controller
2*5121b421SPiotr Sroka
3*5121b421SPiotr SrokaRequired properties:
4*5121b421SPiotr Sroka  - compatible : "cdns,hp-nfc"
5*5121b421SPiotr Sroka  - reg : Contains two entries, each of which is a tuple consisting of a
6*5121b421SPiotr Sroka	  physical address and length. The first entry is the address and
7*5121b421SPiotr Sroka	  length of the controller register set. The second entry is the
8*5121b421SPiotr Sroka	  address and length of the Slave DMA data port.
9*5121b421SPiotr Sroka  - reg-names: should contain "reg" and "sdma"
10*5121b421SPiotr Sroka  - #address-cells: should be 1. The cell encodes the chip select connection.
11*5121b421SPiotr Sroka  - #size-cells : should be 0.
12*5121b421SPiotr Sroka  - interrupts : The interrupt number.
13*5121b421SPiotr Sroka  - clocks: phandle of the controller core clock (nf_clk).
14*5121b421SPiotr Sroka
15*5121b421SPiotr SrokaOptional properties:
16*5121b421SPiotr Sroka  - dmas: shall reference DMA channel associated to the NAND controller
17*5121b421SPiotr Sroka  - cdns,board-delay-ps : Estimated Board delay. The value includes the total
18*5121b421SPiotr Sroka    round trip delay for the signals and is used for deciding on values
19*5121b421SPiotr Sroka    associated with data read capture. The example formula for SDR mode is
20*5121b421SPiotr Sroka    the following:
21*5121b421SPiotr Sroka    board delay = RE#PAD delay + PCB trace to device + PCB trace from device
22*5121b421SPiotr Sroka    + DQ PAD delay
23*5121b421SPiotr Sroka
24*5121b421SPiotr SrokaChild nodes represent the available NAND chips.
25*5121b421SPiotr Sroka
26*5121b421SPiotr SrokaRequired properties of NAND chips:
27*5121b421SPiotr Sroka  - reg: shall contain the native Chip Select ids from 0 to max supported by
28*5121b421SPiotr Sroka    the cadence nand flash controller
29*5121b421SPiotr Sroka
30*5121b421SPiotr SrokaSee Documentation/devicetree/bindings/mtd/nand.txt for more details on
31*5121b421SPiotr Srokageneric bindings.
32*5121b421SPiotr Sroka
33*5121b421SPiotr SrokaExample:
34*5121b421SPiotr Sroka
35*5121b421SPiotr Srokanand_controller: nand-controller@60000000 {
36*5121b421SPiotr Sroka	  compatible = "cdns,hp-nfc";
37*5121b421SPiotr Sroka	  #address-cells = <1>;
38*5121b421SPiotr Sroka	  #size-cells = <0>;
39*5121b421SPiotr Sroka	  reg = <0x60000000 0x10000>, <0x80000000 0x10000>;
40*5121b421SPiotr Sroka	  reg-names = "reg", "sdma";
41*5121b421SPiotr Sroka	  clocks = <&nf_clk>;
42*5121b421SPiotr Sroka	  cdns,board-delay-ps = <4830>;
43*5121b421SPiotr Sroka	  interrupts = <2 0>;
44*5121b421SPiotr Sroka	  nand@0 {
45*5121b421SPiotr Sroka	      reg = <0>;
46*5121b421SPiotr Sroka	      label = "nand-1";
47*5121b421SPiotr Sroka	  };
48*5121b421SPiotr Sroka	  nand@1 {
49*5121b421SPiotr Sroka	      reg = <1>;
50*5121b421SPiotr Sroka	      label = "nand-2";
51*5121b421SPiotr Sroka	  };
52*5121b421SPiotr Sroka
53*5121b421SPiotr Sroka};
54