xref: /openbmc/linux/Documentation/devicetree/bindings/mtd/flctl-nand.txt (revision e5451c8f8330e03ad3cfa16048b4daf961af434f)
1*7c8f680eSBastian HechtFLCTL NAND controller
2*7c8f680eSBastian Hecht
3*7c8f680eSBastian HechtRequired properties:
4*7c8f680eSBastian Hecht- compatible : "renesas,shmobile-flctl-sh7372"
5*7c8f680eSBastian Hecht- reg : Address range of the FLCTL
6*7c8f680eSBastian Hecht- interrupts : flste IRQ number
7*7c8f680eSBastian Hecht- nand-bus-width : bus width to NAND chip
8*7c8f680eSBastian Hecht
9*7c8f680eSBastian HechtOptional properties:
10*7c8f680eSBastian Hecht- dmas: DMA specifier(s)
11*7c8f680eSBastian Hecht- dma-names: name for each DMA specifier. Valid names are
12*7c8f680eSBastian Hecht	     "data_tx", "data_rx", "ecc_tx", "ecc_rx"
13*7c8f680eSBastian Hecht
14*7c8f680eSBastian HechtThe DMA fields are not used yet in the driver but are listed here for
15*7c8f680eSBastian Hechtcompleting the bindings.
16*7c8f680eSBastian Hecht
17*7c8f680eSBastian HechtThe device tree may optionally contain sub-nodes describing partitions of the
18*7c8f680eSBastian Hechtaddress space. See partition.txt for more detail.
19*7c8f680eSBastian Hecht
20*7c8f680eSBastian HechtExample:
21*7c8f680eSBastian Hecht
22*7c8f680eSBastian Hecht	flctl@e6a30000 {
23*7c8f680eSBastian Hecht		#address-cells = <1>;
24*7c8f680eSBastian Hecht		#size-cells = <1>;
25*7c8f680eSBastian Hecht		compatible = "renesas,shmobile-flctl-sh7372";
26*7c8f680eSBastian Hecht		reg = <0xe6a30000 0x100>;
27*7c8f680eSBastian Hecht		interrupts = <0x0d80>;
28*7c8f680eSBastian Hecht
29*7c8f680eSBastian Hecht		nand-bus-width = <16>;
30*7c8f680eSBastian Hecht
31*7c8f680eSBastian Hecht		dmas = <&dmac 1 /* data_tx */
32*7c8f680eSBastian Hecht			&dmac 2;> /* data_rx */
33*7c8f680eSBastian Hecht		dma-names = "data_tx", "data_rx";
34*7c8f680eSBastian Hecht
35*7c8f680eSBastian Hecht		system@0 {
36*7c8f680eSBastian Hecht			label = "system";
37*7c8f680eSBastian Hecht			reg = <0x0 0x8000000>;
38*7c8f680eSBastian Hecht		};
39*7c8f680eSBastian Hecht
40*7c8f680eSBastian Hecht		userdata@8000000 {
41*7c8f680eSBastian Hecht			label = "userdata";
42*7c8f680eSBastian Hecht			reg = <0x8000000 0x10000000>;
43*7c8f680eSBastian Hecht		};
44*7c8f680eSBastian Hecht
45*7c8f680eSBastian Hecht		cache@18000000 {
46*7c8f680eSBastian Hecht			label = "cache";
47*7c8f680eSBastian Hecht			reg = <0x18000000 0x8000000>;
48*7c8f680eSBastian Hecht		};
49*7c8f680eSBastian Hecht	};
50