The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/contrib/device-tree/Bindings/input/fsl,mpr121-touchkey.yaml

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
    2 %YAML 1.2
    3 ---
    4 $id: http://devicetree.org/schemas/input/fsl,mpr121-touchkey.yaml#
    5 $schema: http://devicetree.org/meta-schemas/core.yaml#
    6 
    7 title: Freescale MPR121 capacitive touch sensor controller
    8 
    9 maintainers:
   10   - Dmitry Torokhov <dmitry.torokhov@gmail.com>
   11 
   12 description: |
   13   The MPR121 supports up to 12 completely independent electrodes/capacitance
   14   sensing inputs in which 8 are multifunctional for LED driving and GPIO.
   15   https://www.nxp.com/docs/en/data-sheet/MPR121.pdf
   16 
   17 allOf:
   18   - $ref: input.yaml#
   19 
   20 anyOf:
   21   - required: [ interrupts ]
   22   - required: [ poll-interval ]
   23 
   24 properties:
   25   compatible:
   26     const: fsl,mpr121-touchkey
   27 
   28   reg:
   29     maxItems: 1
   30 
   31   interrupts:
   32     maxItems: 1
   33 
   34   vdd-supply: true
   35 
   36   linux,keycodes:
   37     minItems: 1
   38     maxItems: 12
   39 
   40   wakeup-source:
   41     description: Use any event on keypad as wakeup event.
   42     type: boolean
   43 
   44 required:
   45   - compatible
   46   - reg
   47   - vdd-supply
   48   - linux,keycodes
   49 
   50 unevaluatedProperties: false
   51 
   52 examples:
   53   - |
   54     // Example with interrupts
   55     #include "dt-bindings/input/input.h"
   56     i2c {
   57         #address-cells = <1>;
   58         #size-cells = <0>;
   59 
   60         touchkey@5a {
   61             compatible = "fsl,mpr121-touchkey";
   62             reg = <0x5a>;
   63             interrupt-parent = <&gpio1>;
   64             interrupts = <28 2>;
   65             autorepeat;
   66             vdd-supply = <&ldo4_reg>;
   67             linux,keycodes = <KEY_0>, <KEY_1>, <KEY_2>, <KEY_3>,
   68                              <KEY_4>, <KEY_5>, <KEY_6>, <KEY_7>,
   69                              <KEY_8>, <KEY_9>, <KEY_A>, <KEY_B>;
   70         };
   71     };
   72 
   73   - |
   74     // Example with polling
   75     #include "dt-bindings/input/input.h"
   76     i2c {
   77         #address-cells = <1>;
   78         #size-cells = <0>;
   79 
   80         touchkey@5a {
   81             compatible = "fsl,mpr121-touchkey";
   82             reg = <0x5a>;
   83             poll-interval = <20>;
   84             autorepeat;
   85             vdd-supply = <&ldo4_reg>;
   86             linux,keycodes = <KEY_0>, <KEY_1>, <KEY_2>, <KEY_3>,
   87                              <KEY_4>, <KEY_5>, <KEY_6>, <KEY_7>,
   88                              <KEY_8>, <KEY_9>, <KEY_A>, <KEY_B>;
   89         };
   90     };

Cache object: 969d822a3f1b4ffc2b4b819dc8cbdb84


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.