brcm,bcm2835-aux-spi.txt 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. Broadcom BCM2835 auxiliar SPI1/2 controller
  2. The BCM2835 contains two forms of SPI master controller, one known simply as
  3. SPI0, and the other known as the "Universal SPI Master"; part of the
  4. auxiliary block. This binding applies to the SPI1/2 controller.
  5. Required properties:
  6. - compatible: Should be "brcm,bcm2835-aux-spi".
  7. - reg: Should contain register location and length for the spi block
  8. - interrupts: Should contain shared interrupt of the aux block
  9. - clocks: The clock feeding the SPI controller - needs to
  10. point to the auxiliar clock driver of the bcm2835,
  11. as this clock will enable the output gate for the specific
  12. clock.
  13. - cs-gpios: the cs-gpios (native cs is NOT supported)
  14. see also spi-bus.txt
  15. Example:
  16. spi1@7e215080 {
  17. compatible = "brcm,bcm2835-aux-spi";
  18. reg = <0x7e215080 0x40>;
  19. interrupts = <1 29>;
  20. clocks = <&aux_clocks BCM2835_AUX_CLOCK_SPI1>;
  21. #address-cells = <1>;
  22. #size-cells = <0>;
  23. cs-gpios = <&gpio 18>, <&gpio 17>, <&gpio 16>;
  24. };
  25. spi2@7e2150c0 {
  26. compatible = "brcm,bcm2835-aux-spi";
  27. reg = <0x7e2150c0 0x40>;
  28. interrupts = <1 29>;
  29. clocks = <&aux_clocks BCM2835_AUX_CLOCK_SPI2>;
  30. #address-cells = <1>;
  31. #size-cells = <0>;
  32. cs-gpios = <&gpio 43>, <&gpio 44>, <&gpio 45>;
  33. };