cadence-quadspi.txt 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. * Cadence Quad SPI controller
  2. Required properties:
  3. - compatible : Should be "cdns,qspi-nor".
  4. - reg : Contains two entries, each of which is a tuple consisting of a
  5. physical address and length. The first entry is the address and
  6. length of the controller register set. The second entry is the
  7. address and length of the QSPI Controller data area.
  8. - interrupts : Unit interrupt specifier for the controller interrupt.
  9. - clocks : phandle to the Quad SPI clock.
  10. - cdns,fifo-depth : Size of the data FIFO in words.
  11. - cdns,fifo-width : Bus width of the data FIFO in bytes.
  12. - cdns,trigger-address : 32-bit indirect AHB trigger address.
  13. Optional properties:
  14. - cdns,is-decoded-cs : Flag to indicate whether decoder is used or not.
  15. Optional subnodes:
  16. Subnodes of the Cadence Quad SPI controller are spi slave nodes with additional
  17. custom properties:
  18. - cdns,read-delay : Delay for read capture logic, in clock cycles
  19. - cdns,tshsl-ns : Delay in nanoseconds for the length that the master
  20. mode chip select outputs are de-asserted between
  21. transactions.
  22. - cdns,tsd2d-ns : Delay in nanoseconds between one chip select being
  23. de-activated and the activation of another.
  24. - cdns,tchsh-ns : Delay in nanoseconds between last bit of current
  25. transaction and deasserting the device chip select
  26. (qspi_n_ss_out).
  27. - cdns,tslch-ns : Delay in nanoseconds between setting qspi_n_ss_out low
  28. and first bit transfer.
  29. Example:
  30. qspi: spi@ff705000 {
  31. compatible = "cdns,qspi-nor";
  32. #address-cells = <1>;
  33. #size-cells = <0>;
  34. reg = <0xff705000 0x1000>,
  35. <0xffa00000 0x1000>;
  36. interrupts = <0 151 4>;
  37. clocks = <&qspi_clk>;
  38. cdns,is-decoded-cs;
  39. cdns,fifo-depth = <128>;
  40. cdns,fifo-width = <4>;
  41. cdns,trigger-address = <0x00000000>;
  42. flash0: n25q00@0 {
  43. ...
  44. cdns,read-delay = <4>;
  45. cdns,tshsl-ns = <50>;
  46. cdns,tsd2d-ns = <50>;
  47. cdns,tchsh-ns = <4>;
  48. cdns,tslch-ns = <4>;
  49. };
  50. };