Path: blob/master/Documentation/devicetree/bindings/input/fsl,mpr121-touchkey.yaml
26308 views
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/input/fsl,mpr121-touchkey.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Freescale MPR121 capacitive touch sensor controller78maintainers:9- Dmitry Torokhov <dmitry.torokhov@gmail.com>1011description: |12The MPR121 supports up to 12 completely independent electrodes/capacitance13sensing inputs in which 8 are multifunctional for LED driving and GPIO.14https://www.nxp.com/docs/en/data-sheet/MPR121.pdf1516allOf:17- $ref: input.yaml#1819anyOf:20- required: [ interrupts ]21- required: [ poll-interval ]2223properties:24compatible:25const: fsl,mpr121-touchkey2627reg:28maxItems: 12930interrupts:31maxItems: 13233vdd-supply: true3435linux,keycodes:36minItems: 137maxItems: 123839wakeup-source:40description: Use any event on keypad as wakeup event.41type: boolean4243required:44- compatible45- reg46- vdd-supply47- linux,keycodes4849unevaluatedProperties: false5051examples:52- |53// Example with interrupts54#include "dt-bindings/input/input.h"55i2c {56#address-cells = <1>;57#size-cells = <0>;5859touchkey@5a {60compatible = "fsl,mpr121-touchkey";61reg = <0x5a>;62interrupt-parent = <&gpio1>;63interrupts = <28 2>;64autorepeat;65vdd-supply = <&ldo4_reg>;66linux,keycodes = <KEY_0>, <KEY_1>, <KEY_2>, <KEY_3>,67<KEY_4>, <KEY_5>, <KEY_6>, <KEY_7>,68<KEY_8>, <KEY_9>, <KEY_A>, <KEY_B>;69};70};7172- |73// Example with polling74#include "dt-bindings/input/input.h"75i2c {76#address-cells = <1>;77#size-cells = <0>;7879touchkey@5a {80compatible = "fsl,mpr121-touchkey";81reg = <0x5a>;82poll-interval = <20>;83autorepeat;84vdd-supply = <&ldo4_reg>;85linux,keycodes = <KEY_0>, <KEY_1>, <KEY_2>, <KEY_3>,86<KEY_4>, <KEY_5>, <KEY_6>, <KEY_7>,87<KEY_8>, <KEY_9>, <KEY_A>, <KEY_B>;88};89};909192