mpr121-touchkey.txt 873 B

123456789101112131415161718192021222324252627282930
  1. * Freescale MPR121 Controllor
  2. Required Properties:
  3. - compatible: Should be "fsl,mpr121-touchkey"
  4. - reg: The I2C slave address of the device.
  5. - interrupts: The interrupt number to the cpu.
  6. - vdd-supply: Phandle to the Vdd power supply.
  7. - linux,keycodes: Specifies an array of numeric keycode values to
  8. be used for reporting button presses. The array can
  9. contain up to 12 entries.
  10. Optional Properties:
  11. - wakeup-source: Use any event on keypad as wakeup event.
  12. - autorepeat: Enable autorepeat feature.
  13. Example:
  14. #include "dt-bindings/input/input.h"
  15. touchkey: mpr121@5a {
  16. compatible = "fsl,mpr121-touchkey";
  17. reg = <0x5a>;
  18. interrupt-parent = <&gpio1>;
  19. interrupts = <28 2>;
  20. autorepeat;
  21. vdd-supply = <&ldo4_reg>;
  22. linux,keycodes = <KEY_0>, <KEY_1>, <KEY_2>, <KEY_3>,
  23. <KEY_4> <KEY_5>, <KEY_6>, <KEY_7>,
  24. <KEY_8>, <KEY_9>, <KEY_A>, <KEY_B>;
  25. };