Merge remote-tracking branch 'spi/for-5.10' into spi-linus
[linux-2.6-microblaze.git] / Documentation / devicetree / bindings / mtd / mxic-nand.txt
1 Macronix Raw NAND Controller Device Tree Bindings
2 -------------------------------------------------
3
4 Required properties:
5 - compatible: should be "mxic,multi-itfc-v009-nand-controller"
6 - reg: should contain 1 entry for the registers
7 - #address-cells: should be set to 1
8 - #size-cells: should be set to 0
9 - interrupts: interrupt line connected to this raw NAND controller
10 - clock-names: should contain "ps", "send" and "send_dly"
11 - clocks: should contain 3 phandles for the "ps", "send" and
12          "send_dly" clocks
13
14 Children nodes:
15 - children nodes represent the available NAND chips.
16
17 See Documentation/devicetree/bindings/mtd/nand-controller.yaml
18 for more details on generic bindings.
19
20 Example:
21
22         nand: nand-controller@43c30000 {
23                 compatible = "mxic,multi-itfc-v009-nand-controller";
24                 reg = <0x43c30000 0x10000>;
25                 #address-cells = <1>;
26                 #size-cells = <0>;
27                 interrupts = <GIC_SPI 0x1d IRQ_TYPE_EDGE_RISING>;
28                 clocks = <&clkwizard 0>, <&clkwizard 1>, <&clkc 15>;
29                 clock-names = "send", "send_dly", "ps";
30
31                 nand@0 {
32                         reg = <0>;
33                         nand-ecc-mode = "soft";
34                         nand-ecc-algo = "bch";
35                 };
36         };