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

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