Path: blob/master/Documentation/devicetree/bindings/input/cypress,tm2-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/cypress,tm2-touchkey.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Samsung TM2 touch key controller78maintainers:9- Stephan Gerhold <stephan@gerhold.net>1011description: |12Touch key controllers similar to the TM2 can be found in a wide range of13Samsung devices. They are implemented using many different MCUs, but use14a similar I2C protocol.1516allOf:17- $ref: input.yaml#1819properties:20compatible:21enum:22- cypress,tm2-touchkey23- cypress,midas-touchkey24- cypress,aries-touchkey25- coreriver,tc360-touchkey2627reg:28maxItems: 12930interrupts:31maxItems: 13233vdd-supply:34description: Optional regulator for LED voltage, 3.3V.3536vcc-supply:37description: Optional regulator for MCU, 1.8V-3.3V (depending on MCU).3839vddio-supply:40description: |41Optional regulator that provides digital I/O voltage,42e.g. for pulling up the interrupt line or the I2C pins.4344linux,keycodes:45minItems: 146maxItems: 44748required:49- compatible50- reg51- interrupts5253additionalProperties: false5455examples:56- |57#include <dt-bindings/input/input.h>58#include <dt-bindings/interrupt-controller/irq.h>59i2c {60#address-cells = <1>;61#size-cells = <0>;6263touchkey@20 {64compatible = "cypress,tm2-touchkey";65reg = <0x20>;66interrupt-parent = <&gpa3>;67interrupts = <2 IRQ_TYPE_EDGE_FALLING>;68vcc-supply = <&ldo32_reg>;69vdd-supply = <&ldo33_reg>;70linux,keycodes = <KEY_MENU KEY_BACK>;71};72};737475