rmi_i2c.txt 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. Synaptics RMI4 I2C 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 I2C 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-i2c
  9. - reg: I2C address
  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. See Documentation/devicetree/bindings/interrupt-controller/interrupts.txt
  17. - syna,reset-delay-ms: The number of milliseconds to wait after resetting the
  18. device.
  19. - syna,startup-delay-ms: The number of milliseconds to wait after powering on
  20. the device.
  21. - vdd-supply: VDD power supply.
  22. See ../regulator/regulator.txt
  23. - vio-supply: VIO power supply
  24. See ../regulator/regulator.txt
  25. Function Parameters:
  26. Parameters specific to RMI functions are contained in child nodes of the rmi device
  27. node. Documentation for the parameters of each function can be found in:
  28. Documentation/devicetree/bindings/input/rmi4/rmi_f*.txt.
  29. Example:
  30. &i2c1 {
  31. rmi4-i2c-dev@2c {
  32. compatible = "syna,rmi4-i2c";
  33. reg = <0x2c>;
  34. #address-cells = <1>;
  35. #size-cells = <0>;
  36. interrupt-parent = <&gpio>;
  37. interrupts = <4 2>;
  38. rmi4-f01@1 {
  39. reg = <0x1>;
  40. syna,nosleep-mode = <1>;
  41. };
  42. rmi4-f11@11 {
  43. reg = <0x11>;
  44. touchscreen-inverted-y;
  45. syna,sensor-type = <2>;
  46. };
  47. };
  48. };