~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/input/microchip,qt1050.txt

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 Microchip AT42QT1050 Five-channel Touch Sensor IC
  2 
  3 The AT42QT1050 (QT1050) is a QTouchADC sensor device. The device can sense from
  4 one to five keys, dependent on mode. The QT1050 includes all signal processing
  5 functions necessary to provide stable sensing under a wide variety of changing
  6 conditions, and the outputs are fully debounced.
  7 
  8 The touchkey device node should be placed inside an I2C bus node.
  9 
 10 Required properties:
 11 - compatible: Must be "microchip,qt1050"
 12 - reg: The I2C address of the device
 13 - interrupts: The sink for the touchpad's IRQ output,
 14   see ../interrupt-controller/interrupts.txt
 15 
 16 Optional properties:
 17 - wakeup-source: touch keys can be used as a wakeup source
 18 
 19 Each button (key) is represented as a sub-node:
 20 
 21 Each not specified key or key with linux,code set to KEY_RESERVED gets disabled
 22 in HW.
 23 
 24 Subnode properties:
 25 - linux,code: Keycode to emit.
 26 - reg: The key number. Valid values: 0, 1, 2, 3, 4.
 27 
 28 Optional subnode-properties:
 29 
 30 If a optional property is missing or has a invalid value the default value is
 31 taken.
 32 
 33 - microchip,pre-charge-time-ns:
 34   Each touchpad need some time to precharge. The value depends on the mechanical
 35   layout.
 36   Valid value range: 0 - 637500; values must be a multiple of 2500;
 37   default is 0.
 38 - microchip,average-samples:
 39   Number of data samples which are averaged for each read.
 40   Valid values: 1, 4, 16, 64, 256, 1024, 4096, 16384; default is 1.
 41 - microchip,average-scaling:
 42   The scaling factor which is used to scale the average-samples.
 43   Valid values: 1, 2, 4, 8, 16, 32, 64, 128; default is 1.
 44 - microchip,threshold:
 45   Number of counts to register a touch detection.
 46   Valid value range: 0 - 255; default is 20.
 47 
 48 Example:
 49 QT1050 with 3 non continuous keys, key2 and key4 are disabled.
 50 
 51 touchkeys@41 {
 52         compatible = "microchip,qt1050";
 53         reg = <0x41>;
 54         interrupt-parent = <&gpio0>;
 55         interrupts = <17 IRQ_TYPE_EDGE_FALLING>;
 56 
 57         up@0 {
 58                 reg = <0>;
 59                 linux,code = <KEY_UP>;
 60                 microchip,average-samples = <64>;
 61                 microchip,average-scaling = <16>;
 62                 microchip,pre-charge-time-ns = <10000>;
 63         };
 64 
 65         right@1 {
 66                 reg = <1>;
 67                 linux,code = <KEY_RIGHT>;
 68                 microchip,average-samples = <64>;
 69                 microchip,average-scaling = <8>;
 70         };
 71 
 72         down@3 {
 73                 reg = <3>;
 74                 linux,code = <KEY_DOWN>;
 75                 microchip,average-samples = <256>;
 76                 microchip,average-scaling = <16>;
 77         };
 78 };

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php