001-4.12-05-spi-bcm63xx-hsspi-document-device-tree-bindings.patch 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. From ff759cc25db31bbb3469abb16a0306f110c4c7fa Mon Sep 17 00:00:00 2001
  2. From: Jonas Gorski <[email protected]>
  3. Date: Thu, 10 Sep 2015 14:52:32 +0200
  4. Subject: [PATCH 2/3] dt-bindings: spi: document bcm63xx HS SPI devicetree
  5. bindings
  6. Add documentation for the bindings of the high speed SPI controller found
  7. on newer bcm63xx SoCs.
  8. Signed-off-by: Jonas Gorski <[email protected]>
  9. ---
  10. .../devicetree/bindings/spi/spi-bcm63xx-hsspi.txt | 33 ++++++++++++++++++++++
  11. 1 file changed, 33 insertions(+)
  12. create mode 100644 Documentation/devicetree/bindings/spi/spi-bcm63xx-hsspi.txt
  13. --- /dev/null
  14. +++ b/Documentation/devicetree/bindings/spi/spi-bcm63xx-hsspi.txt
  15. @@ -0,0 +1,33 @@
  16. +Binding for Broadcom BCM6328 High Speed SPI controller
  17. +
  18. +Required properties:
  19. +- compatible: must contain of "brcm,bcm6328-hsspi".
  20. +- reg: Base address and size of the controllers memory area.
  21. +- interrupts: Interrupt for the SPI block.
  22. +- clocks: phandles of the SPI clock and the PLL clock.
  23. +- clock-names: must be "hsspi", "pll".
  24. +- #address-cells: <1>, as required by generic SPI binding.
  25. +- #size-cells: <0>, also as required by generic SPI binding.
  26. +
  27. +Optional properties:
  28. +- num-cs: some controllers have less than 8 cs signals. Defaults to 8
  29. + if absent.
  30. +
  31. +Child nodes as per the generic SPI binding.
  32. +
  33. +Example:
  34. +
  35. + spi@10001000 {
  36. + compatible = "brcm,bcm6328-hsspi";
  37. + reg = <0x10001000 0x600>;
  38. +
  39. + interrupts = <29>;
  40. +
  41. + clocks = <&clkctl 9>, <&hsspi_pll>;
  42. + clock-names = "hsspi", "pll";
  43. +
  44. + num-cs = <2>;
  45. +
  46. + #address-cells = <1>;
  47. + #size-cells = <0>;
  48. + };