cap1106.txt 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. Device tree bindings for Microchip CAP1106, 6 channel capacitive touch sensor
  2. The node for this driver must be a child of a I2C controller node, as the
  3. device communication via I2C only.
  4. Required properties:
  5. compatible: Must be "microchip,cap1106"
  6. reg: The I2C slave address of the device.
  7. Only 0x28 is valid.
  8. interrupts: Property describing the interrupt line the
  9. device's ALERT#/CM_IRQ# pin is connected to.
  10. The device only has one interrupt source.
  11. Optional properties:
  12. autorepeat: Enables the Linux input system's autorepeat
  13. feature on the input device.
  14. microchip,sensor-gain: Defines the gain of the sensor circuitry. This
  15. effectively controls the sensitivity, as a
  16. smaller delta capacitance is required to
  17. generate the same delta count values.
  18. Valid values are 1, 2, 4, and 8.
  19. By default, a gain of 1 is set.
  20. linux,keycodes: Specifies an array of numeric keycode values to
  21. be used for the channels. If this property is
  22. omitted, KEY_A, KEY_B, etc are used as
  23. defaults. The array must have exactly six
  24. entries.
  25. Example:
  26. i2c_controller {
  27. cap1106@28 {
  28. compatible = "microchip,cap1106";
  29. interrupt-parent = <&gpio1>;
  30. interrupts = <0 0>;
  31. reg = <0x28>;
  32. autorepeat;
  33. microchip,sensor-gain = <2>;
  34. linux,keycodes = <103 /* KEY_UP */
  35. 106 /* KEY_RIGHT */
  36. 108 /* KEY_DOWN */
  37. 105 /* KEY_LEFT */
  38. 109 /* KEY_PAGEDOWN */
  39. 104>; /* KEY_PAGEUP */
  40. };
  41. }