ti,nspire-keypad.txt 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. TI-NSPIRE Keypad
  2. Required properties:
  3. - compatible: Compatible property value should be "ti,nspire-keypad".
  4. - reg: Physical base address of the peripheral and length of memory mapped
  5. region.
  6. - interrupts: The interrupt number for the peripheral.
  7. - scan-interval: How often to scan in us. Based on a APB speed of 33MHz, the
  8. maximum and minimum delay time is ~2000us and ~500us respectively
  9. - row-delay: How long to wait before scanning each row.
  10. - clocks: The clock this peripheral is attached to.
  11. - linux,keymap: The keymap to use
  12. (see Documentation/devicetree/bindings/input/matrix-keymap.txt)
  13. Optional properties:
  14. - active-low: Specify that the keypad is active low (i.e. logical low signifies
  15. a key press).
  16. Example:
  17. input {
  18. compatible = "ti,nspire-keypad";
  19. reg = <0x900E0000 0x1000>;
  20. interrupts = <16>;
  21. scan-interval = <1000>;
  22. row-delay = <200>;
  23. clocks = <&apb_pclk>;
  24. linux,keymap = <
  25. 0x0000001c 0x0001001c 0x00040039
  26. 0x0005002c 0x00060015 0x0007000b
  27. 0x0008000f 0x0100002d 0x01010011
  28. 0x0102002f 0x01030004 0x01040016
  29. 0x01050014 0x0106001f 0x01070002
  30. 0x010a006a 0x02000013 0x02010010
  31. 0x02020019 0x02030007 0x02040018
  32. 0x02050031 0x02060032 0x02070005
  33. 0x02080028 0x0209006c 0x03000026
  34. 0x03010025 0x03020024 0x0303000a
  35. 0x03040017 0x03050023 0x03060022
  36. 0x03070008 0x03080035 0x03090069
  37. 0x04000021 0x04010012 0x04020020
  38. 0x0404002e 0x04050030 0x0406001e
  39. 0x0407000d 0x04080037 0x04090067
  40. 0x05010038 0x0502000c 0x0503001b
  41. 0x05040034 0x0505001a 0x05060006
  42. 0x05080027 0x0509000e 0x050a006f
  43. 0x0600002b 0x0602004e 0x06030068
  44. 0x06040003 0x0605006d 0x06060009
  45. 0x06070001 0x0609000f 0x0708002a
  46. 0x0709001d 0x070a0033 >;
  47. };