0025-dt-bindings-ARM-Mediatek-Document-devicetree-binding.patch 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. From a6de66d3cf5add25f2b8913332117f3334db506e Mon Sep 17 00:00:00 2001
  2. From: Leilk Liu <[email protected]>
  3. Date: Fri, 8 May 2015 16:55:41 +0800
  4. Subject: [PATCH 25/76] dt-bindings: ARM: Mediatek: Document devicetree
  5. bindings for spi bus
  6. Signed-off-by: Leilk Liu <[email protected]>
  7. ---
  8. .../devicetree/bindings/spi/spi-mt65xx.txt | 32 ++++++++++++++++++++
  9. 1 file changed, 32 insertions(+)
  10. create mode 100644 Documentation/devicetree/bindings/spi/spi-mt65xx.txt
  11. --- /dev/null
  12. +++ b/Documentation/devicetree/bindings/spi/spi-mt65xx.txt
  13. @@ -0,0 +1,32 @@
  14. +MTK SPI device
  15. +
  16. +Required properties:
  17. +- compatible: should be one of the following.
  18. + - mediatek,mt8173-spi: for mt8173 platforms
  19. + - mediatek,mt8135-spi: for mt8135 platforms
  20. + - mediatek,mt6589-spi: for mt6589 platforms
  21. +
  22. +- reg: Address and length of the register set for the device
  23. +
  24. +- interrupts: Should contain spi interrupt
  25. +
  26. +- clock-names: tuple listing input clock names.
  27. + Required elements: "main"
  28. +
  29. +- clocks: phandles to input clocks.
  30. +
  31. +- pad-select: should specify spi pad used, only required for MT8173.
  32. + This value should be 0~3.
  33. +
  34. +Example:
  35. +
  36. +- SoC Specific Portion:
  37. +spi: spi@1100a000 {
  38. + compatible = "mediatek,mt8173-spi";
  39. + reg = <0 0x1100a000 0 0x1000>;
  40. + interrupts = <GIC_SPI 110 IRQ_TYPE_LEVEL_LOW>;
  41. + clocks = <&pericfg PERI_SPI0>;
  42. + clock-names = "main";
  43. + pad-select = <1>;
  44. + status = "disabled";
  45. +};