Back to home page

OSCL-LXR

 
 

    


0001 Macronix Raw NAND Controller Device Tree Bindings
0002 -------------------------------------------------
0003 
0004 Required properties:
0005 - compatible: should be "mxic,multi-itfc-v009-nand-controller"
0006 - reg: should contain 1 entry for the registers
0007 - #address-cells: should be set to 1
0008 - #size-cells: should be set to 0
0009 - interrupts: interrupt line connected to this raw NAND controller
0010 - clock-names: should contain "ps", "send" and "send_dly"
0011 - clocks: should contain 3 phandles for the "ps", "send" and
0012          "send_dly" clocks
0013 
0014 Children nodes:
0015 - children nodes represent the available NAND chips.
0016 
0017 See Documentation/devicetree/bindings/mtd/nand-controller.yaml
0018 for more details on generic bindings.
0019 
0020 Example:
0021 
0022         nand: nand-controller@43c30000 {
0023                 compatible = "mxic,multi-itfc-v009-nand-controller";
0024                 reg = <0x43c30000 0x10000>;
0025                 #address-cells = <1>;
0026                 #size-cells = <0>;
0027                 interrupts = <GIC_SPI 0x1d IRQ_TYPE_EDGE_RISING>;
0028                 clocks = <&clkwizard 0>, <&clkwizard 1>, <&clkc 15>;
0029                 clock-names = "send", "send_dly", "ps";
0030 
0031                 nand@0 {
0032                         reg = <0>;
0033                         nand-ecc-mode = "soft";
0034                         nand-ecc-algo = "bch";
0035                 };
0036         };