spi-gpio.txt 765 B

12345678910111213141516171819202122232425262728293031
  1. SPI-GPIO devicetree bindings
  2. Required properties:
  3. - compatible: should be set to "spi-gpio"
  4. - #address-cells: should be set to <0x1>
  5. - ranges
  6. - gpio-sck: GPIO spec for the SCK line to use
  7. - gpio-miso: GPIO spec for the MISO line to use
  8. - gpio-mosi: GPIO spec for the MOSI line to use
  9. - cs-gpios: GPIOs to use for chipselect lines.
  10. Not needed if num-chipselects = <0>.
  11. - num-chipselects: Number of chipselect lines. Should be <0> if a single device
  12. with no chip select is connected.
  13. Example:
  14. spi {
  15. compatible = "spi-gpio";
  16. #address-cells = <0x1>;
  17. ranges;
  18. gpio-sck = <&gpio 95 0>;
  19. gpio-miso = <&gpio 98 0>;
  20. gpio-mosi = <&gpio 97 0>;
  21. cs-gpios = <&gpio 125 0>;
  22. num-chipselects = <1>;
  23. /* clients */
  24. };