cap11xx.txt 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. Device tree bindings for Microchip CAP11xx based capacitive touch sensors
  2. The node for this device must be a child of a I2C controller node, as the
  3. device communication via I2C only.
  4. Required properties:
  5. compatible: Must contain one of:
  6. "microchip,cap1106"
  7. "microchip,cap1126"
  8. "microchip,cap1188"
  9. reg: The I2C slave address of the device.
  10. interrupts: Property describing the interrupt line the
  11. device's ALERT#/CM_IRQ# pin is connected to.
  12. The device only has one interrupt source.
  13. Optional properties:
  14. autorepeat: Enables the Linux input system's autorepeat
  15. feature on the input device.
  16. microchip,sensor-gain: Defines the gain of the sensor circuitry. This
  17. effectively controls the sensitivity, as a
  18. smaller delta capacitance is required to
  19. generate the same delta count values.
  20. Valid values are 1, 2, 4, and 8.
  21. By default, a gain of 1 is set.
  22. microchip,irq-active-high: By default the interrupt pin is active low
  23. open drain. This property allows using the active
  24. high push-pull output.
  25. linux,keycodes: Specifies an array of numeric keycode values to
  26. be used for the channels. If this property is
  27. omitted, KEY_A, KEY_B, etc are used as
  28. defaults. The array must have exactly six
  29. entries.
  30. Example:
  31. i2c_controller {
  32. cap1106@28 {
  33. compatible = "microchip,cap1106";
  34. interrupt-parent = <&gpio1>;
  35. interrupts = <0 0>;
  36. reg = <0x28>;
  37. autorepeat;
  38. microchip,sensor-gain = <2>;
  39. linux,keycodes = <103>, /* KEY_UP */
  40. <106>, /* KEY_RIGHT */
  41. <108>, /* KEY_DOWN */
  42. <105>, /* KEY_LEFT */
  43. <109>, /* KEY_PAGEDOWN */
  44. <104>; /* KEY_PAGEUP */
  45. #address-cells = <1>;
  46. #size-cells = <0>;
  47. usr@0 {
  48. label = "cap11xx:green:usr0";
  49. reg = <0>;
  50. };
  51. usr@1 {
  52. label = "cap11xx:green:usr1";
  53. reg = <1>;
  54. };
  55. alive@2 {
  56. label = "cap11xx:green:alive";
  57. reg = <2>;
  58. linux,default_trigger = "heartbeat";
  59. };
  60. };
  61. }