rmi_spi.txt 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. Synaptics RMI4 SPI Device Binding
  2. The Synaptics RMI4 core is able to support RMI4 devices using different
  3. transports and different functions. This file describes the device tree
  4. bindings for devices using the SPI transport driver. Complete documentation
  5. for other transports and functions can be found in
  6. Documentation/devicetree/bindings/input/rmi4.
  7. Required Properties:
  8. - compatible: syna,rmi4-spi
  9. - reg: Chip select address for the device
  10. - #address-cells: Set to 1 to indicate that the function child nodes
  11. consist of only on uint32 value.
  12. - #size-cells: Set to 0 to indicate that the function child nodes do not
  13. have a size property.
  14. Optional Properties:
  15. - interrupts: interrupt which the rmi device is connected to.
  16. - interrupt-parent: The interrupt controller.
  17. See Documentation/devicetree/bindings/interrupt-controller/interrupts.txt
  18. - spi-rx-delay-us: microsecond delay after a read transfer.
  19. - spi-tx-delay-us: microsecond delay after a write transfer.
  20. Function Parameters:
  21. Parameters specific to RMI functions are contained in child nodes of the rmi device
  22. node. Documentation for the parameters of each function can be found in:
  23. Documentation/devicetree/bindings/input/rmi4/rmi_f*.txt.
  24. Example:
  25. spi@7000d800 {
  26. rmi4-spi-dev@0 {
  27. compatible = "syna,rmi4-spi";
  28. reg = <0x0>;
  29. #address-cells = <1>;
  30. #size-cells = <0>;
  31. spi-max-frequency = <4000000>;
  32. spi-cpha;
  33. spi-cpol;
  34. interrupt-parent = <&gpio>;
  35. interrupts = <TEGRA_GPIO(K, 2) 0x2>;
  36. spi-rx-delay-us = <30>;
  37. rmi4-f01@1 {
  38. reg = <0x1>;
  39. syna,nosleep-mode = <1>;
  40. };
  41. rmi4-f11@11 {
  42. reg = <0x11>;
  43. touchscreen-inverted-y;
  44. syna,sensor-type = <2>;
  45. };
  46. };
  47. };