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