xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/spi/spi-img-spfi.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunIMG Synchronous Peripheral Flash Interface (SPFI) controller
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunRequired properties:
4*4882a593Smuzhiyun- compatible: Must be "img,spfi".
5*4882a593Smuzhiyun- reg: Must contain the base address and length of the SPFI registers.
6*4882a593Smuzhiyun- interrupts: Must contain the SPFI interrupt.
7*4882a593Smuzhiyun- clocks: Must contain an entry for each entry in clock-names.
8*4882a593Smuzhiyun  See ../clock/clock-bindings.txt for details.
9*4882a593Smuzhiyun- clock-names: Must include the following entries:
10*4882a593Smuzhiyun  - spfi: SPI operating clock
11*4882a593Smuzhiyun  - sys: SPI system interface clock
12*4882a593Smuzhiyun- dmas: Must contain an entry for each entry in dma-names.
13*4882a593Smuzhiyun  See ../dma/dma.txt for details.
14*4882a593Smuzhiyun- dma-names: Must include the following entries:
15*4882a593Smuzhiyun  - rx
16*4882a593Smuzhiyun  - tx
17*4882a593Smuzhiyun- cs-gpios: Must specify the GPIOs used for chipselect lines.
18*4882a593Smuzhiyun- #address-cells: Must be 1.
19*4882a593Smuzhiyun- #size-cells: Must be 0.
20*4882a593Smuzhiyun
21*4882a593SmuzhiyunOptional properties:
22*4882a593Smuzhiyun- img,supports-quad-mode: Should be set if the interface supports quad mode
23*4882a593Smuzhiyun  SPI transfers.
24*4882a593Smuzhiyun- spfi-max-frequency: Maximum speed supported by the spfi block.
25*4882a593Smuzhiyun
26*4882a593SmuzhiyunExample:
27*4882a593Smuzhiyun
28*4882a593Smuzhiyunspi@18100f00 {
29*4882a593Smuzhiyun	compatible = "img,spfi";
30*4882a593Smuzhiyun	reg = <0x18100f00 0x100>;
31*4882a593Smuzhiyun	interrupts = <GIC_SHARED 22 IRQ_TYPE_LEVEL_HIGH>;
32*4882a593Smuzhiyun	clocks = <&spi_clk>, <&system_clk>;
33*4882a593Smuzhiyun	clock-names = "spfi", "sys";
34*4882a593Smuzhiyun	dmas = <&mdc 9 0xffffffff 0>, <&mdc 10 0xffffffff 0>;
35*4882a593Smuzhiyun	dma-names = "rx", "tx";
36*4882a593Smuzhiyun
37*4882a593Smuzhiyun	#address-cells = <1>;
38*4882a593Smuzhiyun	#size-cells = <0>;
39*4882a593Smuzhiyun};
40