xref: /openbmc/linux/Documentation/devicetree/bindings/mtd/cadence-nand-controller.txt (revision 8dd06ef34b6e2f41b29fbf5fc1663780f2524285)
15121b421SPiotr Sroka* Cadence NAND controller
25121b421SPiotr Sroka
35121b421SPiotr SrokaRequired properties:
45121b421SPiotr Sroka  - compatible : "cdns,hp-nfc"
55121b421SPiotr Sroka  - reg : Contains two entries, each of which is a tuple consisting of a
65121b421SPiotr Sroka	  physical address and length. The first entry is the address and
75121b421SPiotr Sroka	  length of the controller register set. The second entry is the
85121b421SPiotr Sroka	  address and length of the Slave DMA data port.
95121b421SPiotr Sroka  - reg-names: should contain "reg" and "sdma"
105121b421SPiotr Sroka  - #address-cells: should be 1. The cell encodes the chip select connection.
115121b421SPiotr Sroka  - #size-cells : should be 0.
125121b421SPiotr Sroka  - interrupts : The interrupt number.
135121b421SPiotr Sroka  - clocks: phandle of the controller core clock (nf_clk).
145121b421SPiotr Sroka
155121b421SPiotr SrokaOptional properties:
165121b421SPiotr Sroka  - dmas: shall reference DMA channel associated to the NAND controller
175121b421SPiotr Sroka  - cdns,board-delay-ps : Estimated Board delay. The value includes the total
185121b421SPiotr Sroka    round trip delay for the signals and is used for deciding on values
195121b421SPiotr Sroka    associated with data read capture. The example formula for SDR mode is
205121b421SPiotr Sroka    the following:
215121b421SPiotr Sroka    board delay = RE#PAD delay + PCB trace to device + PCB trace from device
225121b421SPiotr Sroka    + DQ PAD delay
235121b421SPiotr Sroka
245121b421SPiotr SrokaChild nodes represent the available NAND chips.
255121b421SPiotr Sroka
265121b421SPiotr SrokaRequired properties of NAND chips:
275121b421SPiotr Sroka  - reg: shall contain the native Chip Select ids from 0 to max supported by
285121b421SPiotr Sroka    the cadence nand flash controller
295121b421SPiotr Sroka
30*a40df28cSMauro Carvalho ChehabSee Documentation/devicetree/bindings/mtd/nand-controller.yaml for more details on
315121b421SPiotr Srokageneric bindings.
325121b421SPiotr Sroka
335121b421SPiotr SrokaExample:
345121b421SPiotr Sroka
355121b421SPiotr Srokanand_controller: nand-controller@60000000 {
365121b421SPiotr Sroka	  compatible = "cdns,hp-nfc";
375121b421SPiotr Sroka	  #address-cells = <1>;
385121b421SPiotr Sroka	  #size-cells = <0>;
395121b421SPiotr Sroka	  reg = <0x60000000 0x10000>, <0x80000000 0x10000>;
405121b421SPiotr Sroka	  reg-names = "reg", "sdma";
415121b421SPiotr Sroka	  clocks = <&nf_clk>;
425121b421SPiotr Sroka	  cdns,board-delay-ps = <4830>;
435121b421SPiotr Sroka	  interrupts = <2 0>;
445121b421SPiotr Sroka	  nand@0 {
455121b421SPiotr Sroka	      reg = <0>;
465121b421SPiotr Sroka	      label = "nand-1";
475121b421SPiotr Sroka	  };
485121b421SPiotr Sroka	  nand@1 {
495121b421SPiotr Sroka	      reg = <1>;
505121b421SPiotr Sroka	      label = "nand-2";
515121b421SPiotr Sroka	  };
525121b421SPiotr Sroka
535121b421SPiotr Sroka};
54