blob: c34aa6f8a42445fd9072d4134c3b4933b0da1a01 [file] [log] [blame]
Huang Shijiec7a8a112014-02-24 18:37:41 +08001* Freescale Quad Serial Peripheral Interface(QuadSPI)
2
3Required properties:
Frank Li151b49e2015-08-04 10:25:41 -05004 - compatible : Should be "fsl,vf610-qspi", "fsl,imx6sx-qspi",
Yao Yuan4c9848c2015-11-18 17:18:11 +08005 "fsl,imx7d-qspi", "fsl,imx6ul-qspi",
Yao Yuan2458fb22016-01-26 15:23:59 +08006 "fsl,ls1021a-qspi"
7 or
Yuan Yao60f9ae02016-04-13 18:08:26 +08008 "fsl,ls2080a-qspi" followed by "fsl,ls1021a-qspi",
9 "fsl,ls1043a-qspi" followed by "fsl,ls1021a-qspi"
Huang Shijiec7a8a112014-02-24 18:37:41 +080010 - reg : the first contains the register location and length,
11 the second contains the memory mapping address and length
12 - reg-names: Should contain the reg names "QuadSPI" and "QuadSPI-memory"
13 - interrupts : Should contain the interrupt for the device
14 - clocks : The clocks needed by the QuadSPI controller
15 - clock-names : the name of the clocks
16
17Optional properties:
18 - fsl,qspi-has-second-chip: The controller has two buses, bus A and bus B.
19 Each bus can be connected with two NOR flashes.
20 Most of the time, each bus only has one NOR flash
21 connected, this is the default case.
22 But if there are two NOR flashes connected to the
23 bus, you should enable this property.
24 (Please check the board's schematic.)
Yao Yuan471c2aa2016-01-26 15:24:01 +080025 - big-endian : That means the IP register is big endian
Huang Shijiec7a8a112014-02-24 18:37:41 +080026
27Example:
28
29qspi0: quadspi@40044000 {
30 compatible = "fsl,vf610-qspi";
31 reg = <0x40044000 0x1000>, <0x20000000 0x10000000>;
32 reg-names = "QuadSPI", "QuadSPI-memory";
33 interrupts = <0 24 IRQ_TYPE_LEVEL_HIGH>;
34 clocks = <&clks VF610_CLK_QSPI0_EN>,
35 <&clks VF610_CLK_QSPI0>;
36 clock-names = "qspi_en", "qspi";
37
38 flash0: s25fl128s@0 {
39 ....
40 };
41};