Samsung TM2 touch key controller
Schema identifier ($id): "http://devicetree.org/schemas/input/cypress,tm2-touchkey.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Stephan Gerhold <stephan@gerhold.net>"
Touch key controllers similar to the TM2 can be found in a wide range of Samsung devices. They are implemented using many different MCUs, but use a similar I2C protocol.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):input.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "cypress,tm2-touchkey", "cypress,midas-touchkey", "cypress,aries-touchkey", "coreriver,tc360-touchkey"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
vdd-supply — not listed as required here #
Optional regulator for LED voltage, 3.3V.
vcc-supply — not listed as required here #
Optional regulator for MCU, 1.8V-3.3V (depending on MCU).
vddio-supply — not listed as required here #
Optional regulator that provides digital I/O voltage, e.g. for pulling up the interrupt line or the I2C pins.
linux,keycodes — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 4
Required in this object (required): "compatible", "reg", "interrupts"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/input/input.h>
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
touchkey@20 {
compatible = "cypress,tm2-touchkey";
reg = <0x20>;
interrupt-parent = <&gpa3>;
interrupts = <2 IRQ_TYPE_EDGE_FALLING>;
vcc-supply = <&ldo32_reg>;
vdd-supply = <&ldo33_reg>;
linux,keycodes = <KEY_MENU KEY_BACK>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)