0029-Documentation-atmel-quadspi-add-binding-file-for-Atm.patch 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. From 771ee7cd27c39617ece8727c70f904c31f7415fb Mon Sep 17 00:00:00 2001
  2. From: Cyrille Pitchen <cyrille.pitchen@atmel.com>
  3. Date: Fri, 8 Jan 2016 17:10:55 +0100
  4. Subject: [PATCH 29/33] Documentation: atmel-quadspi: add binding file for
  5. Atmel QSPI driver
  6. This patch documents the DT bindings for the driver of the Atmel QSPI
  7. controller embedded inside sama5d2x SoCs.
  8. Signed-off-by: Cyrille Pitchen <cyrille.pitchen@atmel.com>
  9. Acked-by: Rob Herring <robh@kernel.org>
  10. Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
  11. ---
  12. .../devicetree/bindings/mtd/atmel-quadspi.txt | 32 ++++++++++++++++++++++
  13. 1 file changed, 32 insertions(+)
  14. create mode 100644 Documentation/devicetree/bindings/mtd/atmel-quadspi.txt
  15. diff --git a/Documentation/devicetree/bindings/mtd/atmel-quadspi.txt b/Documentation/devicetree/bindings/mtd/atmel-quadspi.txt
  16. new file mode 100644
  17. index 0000000..4898070
  18. --- /dev/null
  19. +++ b/Documentation/devicetree/bindings/mtd/atmel-quadspi.txt
  20. @@ -0,0 +1,32 @@
  21. +* Atmel Quad Serial Peripheral Interface (QSPI)
  22. +
  23. +Required properties:
  24. +- compatible: Should be "atmel,sama5d2-qspi".
  25. +- reg: Should contain the locations and lengths of the base registers
  26. + and the mapped memory.
  27. +- reg-names: Should contain the resource reg names:
  28. + - qspi_base: configuration register address space
  29. + - qspi_mmap: memory mapped address space
  30. +- interrupts: Should contain the interrupt for the device.
  31. +- clocks: The phandle of the clock needed by the QSPI controller.
  32. +- #address-cells: Should be <1>.
  33. +- #size-cells: Should be <0>.
  34. +
  35. +Example:
  36. +
  37. +spi@f0020000 {
  38. + compatible = "atmel,sama5d2-qspi";
  39. + reg = <0xf0020000 0x100>, <0xd0000000 0x8000000>;
  40. + reg-names = "qspi_base", "qspi_mmap";
  41. + interrupts = <52 IRQ_TYPE_LEVEL_HIGH 7>;
  42. + clocks = <&spi0_clk>;
  43. + #address-cells = <1>;
  44. + #size-cells = <0>;
  45. + pinctrl-names = "default";
  46. + pinctrl-0 = <&pinctrl_spi0_default>;
  47. + status = "okay";
  48. +
  49. + m25p80@0 {
  50. + ...
  51. + };
  52. +};
  53. --
  54. 2.8.1