cap11xx.txt 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. };
  46. }