xref: /freebsd/sys/contrib/device-tree/Bindings/spi/cadence-quadspi.txt (revision 8ddb146abcdf061be9f2c0db7e391697dafad85c)
1* Cadence Quad SPI controller
2
3Required properties:
4- compatible : should be one of the following:
5	Generic default - "cdns,qspi-nor".
6	For TI 66AK2G SoC - "ti,k2g-qspi", "cdns,qspi-nor".
7	For TI AM654 SoC  - "ti,am654-ospi", "cdns,qspi-nor".
8	For Intel LGM SoC - "intel,lgm-qspi", "cdns,qspi-nor".
9- reg : Contains two entries, each of which is a tuple consisting of a
10	physical address and length. The first entry is the address and
11	length of the controller register set. The second entry is the
12	address and length of the QSPI Controller data area.
13- interrupts : Unit interrupt specifier for the controller interrupt.
14- clocks : phandle to the Quad SPI clock.
15- cdns,fifo-depth : Size of the data FIFO in words.
16- cdns,fifo-width : Bus width of the data FIFO in bytes.
17- cdns,trigger-address : 32-bit indirect AHB trigger address.
18
19Optional properties:
20- cdns,is-decoded-cs : Flag to indicate whether decoder is used or not.
21- cdns,rclk-en : Flag to indicate that QSPI return clock is used to latch
22  the read data rather than the QSPI clock. Make sure that QSPI return
23  clock is populated on the board before using this property.
24
25Optional subnodes:
26Subnodes of the Cadence Quad SPI controller are spi slave nodes with additional
27custom properties:
28- cdns,read-delay : Delay for read capture logic, in clock cycles
29- cdns,tshsl-ns : Delay in nanoseconds for the length that the master
30                  mode chip select outputs are de-asserted between
31		  transactions.
32- cdns,tsd2d-ns : Delay in nanoseconds between one chip select being
33                  de-activated and the activation of another.
34- cdns,tchsh-ns : Delay in nanoseconds between last bit of current
35                  transaction and deasserting the device chip select
36		  (qspi_n_ss_out).
37- cdns,tslch-ns : Delay in nanoseconds between setting qspi_n_ss_out low
38                  and first bit transfer.
39- resets	: Must contain an entry for each entry in reset-names.
40		  See ../reset/reset.txt for details.
41- reset-names	: Must include either "qspi" and/or "qspi-ocp".
42
43Example:
44
45	qspi: spi@ff705000 {
46		compatible = "cdns,qspi-nor";
47		#address-cells = <1>;
48		#size-cells = <0>;
49		reg = <0xff705000 0x1000>,
50		      <0xffa00000 0x1000>;
51		interrupts = <0 151 4>;
52		clocks = <&qspi_clk>;
53		cdns,is-decoded-cs;
54		cdns,fifo-depth = <128>;
55		cdns,fifo-width = <4>;
56		cdns,trigger-address = <0x00000000>;
57		resets = <&rst QSPI_RESET>, <&rst QSPI_OCP_RESET>;
58		reset-names = "qspi", "qspi-ocp";
59
60		flash0: n25q00@0 {
61			...
62			cdns,read-delay = <4>;
63			cdns,tshsl-ns = <50>;
64			cdns,tsd2d-ns = <50>;
65			cdns,tchsh-ns = <4>;
66			cdns,tslch-ns = <4>;
67		};
68	};
69