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