rmi_i2c.txt 1.7 KB

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