Atmel capacitive touch device

Schema identifier ($id): "http://devicetree.org/schemas/input/atmel,captouch.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Dharma balasubiramani <dharma.b@microchip.com>"

Atmel capacitive touch device, typically an Atmel touch sensor connected to AtmegaXX MCU running firmware based on Qtouch library.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): input.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "atmel,captouch"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

linux,keycodes — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 8

Required in this object (required): "compatible", "reg", "interrupts", "linux,keycodes"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/input/linux-event-codes.h>
i2c {
  #address-cells = <1>;
  #size-cells = <0>;
  touch@51 {
    compatible = "atmel,captouch";
    reg = <0x51>;
    interrupt-parent = <&tlmm>;
    interrupts = <67 IRQ_TYPE_EDGE_FALLING>;
    linux,keycodes = <BTN_0>, <BTN_1>,
                     <BTN_2>, <BTN_3>,
                     <BTN_4>, <BTN_5>,
                     <BTN_6>, <BTN_7>;
    autorepeat;
  };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Edit this page