renesas,ra-ctsu-button

Vendor: Renesas Electronics Corporation

Note

An implementation of a driver matching this compatible is available in drivers/input/input_renesas_ra_ctsu.c.

Description

Renesas RA Capacitive Touch Button instance.

This node is a renesas,ra-ctsu grandchild node and applies filters and calculations
to detect an input event on a group which is the child of renesas,ra-ctsu.
For more information see input/renesas,ra-ctsu.yaml

Example:

#include <dt-bindings/input/input-event-codes.h>

&ctsu {
  compatible = "renesas,ra-ctsu";

  group1 {
    ...
    button1 {
      compatible = "renesas,ra-ctsu-button";
      elements = <0>;
      threshold = <769>;
      hysteresis = <38>;
      event-code = <INPUT_KEY_0>;
    };

    button2 {
      compatible = "renesas,ra-ctsu-button";
      elements = <1>;
      threshold = <769>;
      hysteresis = <38>;
      event-code = <INPUT_KEY_1>;
    };
  };
};

Notes: The order of the CTSU button nodes in the same group must follow these elements index.

Properties

Properties not inherited from the base binding file.

Name

Type

Details

event-code

int

The key code for the device. This is used to identify the device in the
input subsystem. It should be one of the values defined in
include/input-event-codes.h.

This property is required.

elements

int

Element number from CTSU group that this button located on.

threshold

int

Touch/non-touch judgement threshold for automatic judgement.

hysteresis

int

Threshold hysteresis for chattering prevention for automatic judgement.