spi-qup.txt 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. Qualcomm QUP SPI controller Device Tree Bindings
  2. -------------------------------------------
  3. Required properties:
  4. - compatible : Should be "qcom,spi-qup-v1.1.1", "qcom,spi-qup-v2.1.1"
  5. or "qcom,spi-qup-v2.2.1"
  6. - reg : Physical base address and size of SPI registers map.
  7. - clock : Clock phandle (see clock bindings for details).
  8. - #address-cells : Number of cells required to define a chip select
  9. address on the SPI bus. Should be set to 1.
  10. - #size-cells : Should be zero.
  11. - pinctrl-names : Must be "default"
  12. - pinctrl-n : At least one pinctrl phandle
  13. - cs-gpios : Should specify GPIOs used for chipselects.
  14. The gpios will be referred to as reg = <index> in the
  15. SPI child nodes.
  16. Optional properties:
  17. - num-cs : total number of chipselects
  18. Example:
  19. blsp1_spi1: spi@78b5000 {
  20. compatible = "qcom,spi-qup-v2.2.1";
  21. reg = <0x78b5000 0x600>;
  22. clock = <&gcc 23>;
  23. #address-cells = <1>;
  24. #size-cells = <0>;
  25. pinctrl-names = "spi";
  26. pinctrl-0 = <&blsp_spi0>;
  27. num-cs = <2>;
  28. cs-gpios = <&soc_gpios 54 GPIO_ACTIVE_HIGH>, <&soc_gpios 4 GPIO_ACTIVE_HIGH>;
  29. };