spi-gpio.txt 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. SPI-GPIO devicetree bindings
  2. This represents a group of 3-n GPIO lines used for bit-banged SPI on dedicated
  3. GPIO lines.
  4. Required properties:
  5. - compatible: should be set to "spi-gpio"
  6. - #address-cells: should be set to <0x1>
  7. - ranges
  8. - sck-gpios: GPIO spec for the SCK line to use
  9. - miso-gpios: GPIO spec for the MISO line to use
  10. - mosi-gpios: GPIO spec for the MOSI line to use
  11. - cs-gpios: GPIOs to use for chipselect lines.
  12. Not needed if num-chipselects = <0>.
  13. - num-chipselects: Number of chipselect lines. Should be <0> if a single device
  14. with no chip select is connected.
  15. Deprecated bindings:
  16. These legacy GPIO line bindings can alternatively be used to define the
  17. GPIO lines used, they should not be used in new device trees.
  18. - gpio-sck: GPIO spec for the SCK line to use
  19. - gpio-miso: GPIO spec for the MISO line to use
  20. - gpio-mosi: GPIO spec for the MOSI line to use
  21. Example:
  22. spi {
  23. compatible = "spi-gpio";
  24. #address-cells = <0x1>;
  25. ranges;
  26. sck-gpios = <&gpio 95 0>;
  27. miso-gpios = <&gpio 98 0>;
  28. mosi-gpios = <&gpio 97 0>;
  29. cs-gpios = <&gpio 125 0>;
  30. num-chipselects = <1>;
  31. /* clients */
  32. };