2016-10-25 21:15:50 +08:00
|
|
|
Sigma Designs Tango4 NAND Flash Controller (NFC)
|
|
|
|
|
|
|
|
Required properties:
|
|
|
|
|
|
|
|
- compatible: "sigma,smp8758-nand"
|
|
|
|
- reg: address/size of nfc_reg, nfc_mem, and pbus_reg
|
|
|
|
- dmas: reference to the DMA channel used by the controller
|
2016-12-19 22:30:12 +08:00
|
|
|
- dma-names: "rxtx"
|
2016-10-25 21:15:50 +08:00
|
|
|
- clocks: reference to the system clock
|
|
|
|
- #address-cells: <1>
|
|
|
|
- #size-cells: <0>
|
|
|
|
|
|
|
|
Children nodes represent the available NAND chips.
|
|
|
|
See Documentation/devicetree/bindings/mtd/nand.txt for generic bindings.
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
|
|
|
nandc: nand-controller@2c000 {
|
|
|
|
compatible = "sigma,smp8758-nand";
|
2016-12-19 22:30:12 +08:00
|
|
|
reg = <0x2c000 0x30>, <0x2d000 0x800>, <0x20000 0x1000>;
|
2016-10-25 21:15:50 +08:00
|
|
|
dmas = <&dma0 3>;
|
2016-12-19 22:30:12 +08:00
|
|
|
dma-names = "rxtx";
|
2016-10-25 21:15:50 +08:00
|
|
|
clocks = <&clkgen SYS_CLK>;
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
|
|
|
|
nand@0 {
|
|
|
|
reg = <0>; /* CS0 */
|
|
|
|
nand-ecc-strength = <14>;
|
|
|
|
nand-ecc-step-size = <1024>;
|
|
|
|
};
|
|
|
|
|
|
|
|
nand@1 {
|
|
|
|
reg = <1>; /* CS1 */
|
|
|
|
nand-ecc-strength = <14>;
|
|
|
|
nand-ecc-step-size = <1024>;
|
|
|
|
};
|
|
|
|
};
|