1*c66ec88fSEmmanuel VadotSigma Designs Tango4 NAND Flash Controller (NFC) 2*c66ec88fSEmmanuel Vadot 3*c66ec88fSEmmanuel VadotRequired properties: 4*c66ec88fSEmmanuel Vadot 5*c66ec88fSEmmanuel Vadot- compatible: "sigma,smp8758-nand" 6*c66ec88fSEmmanuel Vadot- reg: address/size of nfc_reg, nfc_mem, and pbus_reg 7*c66ec88fSEmmanuel Vadot- dmas: reference to the DMA channel used by the controller 8*c66ec88fSEmmanuel Vadot- dma-names: "rxtx" 9*c66ec88fSEmmanuel Vadot- clocks: reference to the system clock 10*c66ec88fSEmmanuel Vadot- #address-cells: <1> 11*c66ec88fSEmmanuel Vadot- #size-cells: <0> 12*c66ec88fSEmmanuel Vadot 13*c66ec88fSEmmanuel VadotChildren nodes represent the available NAND chips. 14*c66ec88fSEmmanuel VadotSee Documentation/devicetree/bindings/mtd/nand-controller.yaml for generic bindings. 15*c66ec88fSEmmanuel Vadot 16*c66ec88fSEmmanuel VadotExample: 17*c66ec88fSEmmanuel Vadot 18*c66ec88fSEmmanuel Vadot nandc: nand-controller@2c000 { 19*c66ec88fSEmmanuel Vadot compatible = "sigma,smp8758-nand"; 20*c66ec88fSEmmanuel Vadot reg = <0x2c000 0x30>, <0x2d000 0x800>, <0x20000 0x1000>; 21*c66ec88fSEmmanuel Vadot dmas = <&dma0 3>; 22*c66ec88fSEmmanuel Vadot dma-names = "rxtx"; 23*c66ec88fSEmmanuel Vadot clocks = <&clkgen SYS_CLK>; 24*c66ec88fSEmmanuel Vadot #address-cells = <1>; 25*c66ec88fSEmmanuel Vadot #size-cells = <0>; 26*c66ec88fSEmmanuel Vadot 27*c66ec88fSEmmanuel Vadot nand@0 { 28*c66ec88fSEmmanuel Vadot reg = <0>; /* CS0 */ 29*c66ec88fSEmmanuel Vadot nand-ecc-strength = <14>; 30*c66ec88fSEmmanuel Vadot nand-ecc-step-size = <1024>; 31*c66ec88fSEmmanuel Vadot }; 32*c66ec88fSEmmanuel Vadot 33*c66ec88fSEmmanuel Vadot nand@1 { 34*c66ec88fSEmmanuel Vadot reg = <1>; /* CS1 */ 35*c66ec88fSEmmanuel Vadot nand-ecc-strength = <14>; 36*c66ec88fSEmmanuel Vadot nand-ecc-step-size = <1024>; 37*c66ec88fSEmmanuel Vadot }; 38*c66ec88fSEmmanuel Vadot }; 39