Huang Shijie | c7a8a11 | 2014-02-24 18:37:41 +0800 | [diff] [blame] | 1 | * Freescale Quad Serial Peripheral Interface(QuadSPI) |
| 2 | |
| 3 | Required properties: |
Frank Li | 151b49e | 2015-08-04 10:25:41 -0500 | [diff] [blame] | 4 | - compatible : Should be "fsl,vf610-qspi", "fsl,imx6sx-qspi", |
Yao Yuan | 4c9848c | 2015-11-18 17:18:11 +0800 | [diff] [blame] | 5 | "fsl,imx7d-qspi", "fsl,imx6ul-qspi", |
Yao Yuan | 2458fb2 | 2016-01-26 15:23:59 +0800 | [diff] [blame] | 6 | "fsl,ls1021a-qspi" |
| 7 | or |
Yuan Yao | 60f9ae0 | 2016-04-13 18:08:26 +0800 | [diff] [blame] | 8 | "fsl,ls2080a-qspi" followed by "fsl,ls1021a-qspi", |
| 9 | "fsl,ls1043a-qspi" followed by "fsl,ls1021a-qspi" |
Huang Shijie | c7a8a11 | 2014-02-24 18:37:41 +0800 | [diff] [blame] | 10 | - 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 | |
| 17 | Optional 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 Yuan | 471c2aa | 2016-01-26 15:24:01 +0800 | [diff] [blame] | 25 | - big-endian : That means the IP register is big endian |
Huang Shijie | c7a8a11 | 2014-02-24 18:37:41 +0800 | [diff] [blame] | 26 | |
| 27 | Example: |
| 28 | |
| 29 | qspi0: 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 | }; |