microchip,ptc-controller

Description

Microchip Peripheral Touch Controller

Microchip Peripheral Touch Driver

Base binding for Microchip Peripheral Touch Controller.
This defines common properties shared across all PTC versions.
  - module name="PTC"

Properties

Top level properties

These property descriptions apply to “microchip,ptc-controller” nodes themselves. This page also describes child node properties in the following sections.

Properties not inherited from the base binding file.

Name

Type

Details

run-in-standby-en

int

def-touch-measurement-period-ms

int

Measurement Period

Measurement period is the total time required to acquire (including oversampling)
and process touch signals of all active buttons.
By default, the system has been configured with a measurement period of 20 milliseconds

Default value: 20

def-ptc-cal-option

string

PTC Calibration Option

Set sensor calibration mode for charge share delay, Prescaler or series resistor.
By default, the system has been configured with a calibration option of CAL_AUTO_TUNE_NONE

Default value: CAL_AUTO_TUNE_NONE

Legal values: CAL_AUTO_TUNE_NONE, CAL_AUTO_TUNE_RSEL, CAL_AUTO_TUNE_PRSC, CAL_AUTO_TUNE_CSD

def-ptc-tau-target

string

PTC Tau Target

Calibration option to ensure full charge transfer.

Legal values: CAL_CHRG_2TAU, CAL_CHRG_3TAU, CAL_CHRG_4TAU, CAL_CHRG_5TAU

def-sel-freq-init

string

Startup Acquisition Frequency

By default, the system has been configured with a Startup frequency of FREQ_SEL_0

Default value: FREQ_SEL_0

Legal values: FREQ_SEL_0, FREQ_SEL_1, FREQ_SEL_2, FREQ_SEL_3, FREQ_SEL_4, FREQ_SEL_5, FREQ_SEL_6, FREQ_SEL_7, FREQ_SEL_8, FREQ_SEL_9, FREQ_SEL_10, FREQ_SEL_11, FREQ_SEL_12, FREQ_SEL_13, FREQ_SEL_14, FREQ_SEL_15, FREQ_SEL_SPREAD

def-num-channels

int

Define Number Of Channels

Defines the number of sensor nodes in the acquisition set
By default, the system has been configured with a value of 1

Default value: 1

def-num-sensors

int

Define Number Of Key Sensors

Defines the number of sensor nodes in the key module
By default, the system has been configured with a value of 1

Default value: 1

def-touch-det-int

int

Detect Integration

De-bounce counter for additional measurements to confirm touch detection
By default, the system has been configured with a value of 4

Default value: 4

def-anti-tch-det-int

int

Anti-touch Detect Integration

De-bounce counter for additional measurements to confirm away from touch signal
to initiate Away from touch re-calibration

By default, the system has been configured with a value of 5

Default value: 5

def-anti-tch-recal-thrshld

string

Anti-touch Recalibration Threshold

Threshold beyond with automatic sensor recalibration is initiated.

List of available values
+===================+================================+
|       Type        |    Description                 |
+===================+================================+
|     RECAL_100     |   100% of the threshold value  |
+-------------------+--------------------------------+
|     RECAL_50      |   50% of the threshold value   |
+-------------------+--------------------------------+
|     RECAL_25      |   25% of the threshold value   |
+-------------------+--------------------------------+
|     RECAL_12_5    |   12.5% of the threshold value |
+-------------------+--------------------------------+
|     RECAL_6_25    |   6.25% of the threshold value |
+-------------------+--------------------------------+
|     MAX_RECAL     |               -                |
+-------------------+--------------------------------+

By default, the system has been configured with a value of RECAL_100

Default value: RECAL_100

Legal values: RECAL_100, RECAL_50, RECAL_25, RECAL_12_5, RECAL_6_25, MAX_RECAL

def-tch-drift-rate

int

Touch Drift Rate

Rate at which sensor reference value is adjusted towards sensor signal value
when signal value is greater than reference.
Basetime is 200ms

Formula to compute the drift period
--------------------
| value x Basetime |
--------------------

By default, the system has been configured with a value of 20
which means 20 x 200ms = 4 seconds

Default value: 20

def-anti-tch-drift-rate

int

Anti-touch Drift Rate

Rate at which sensor reference value is adjusted towards sensor signal value
when signal value is less than reference.
Basetime is 200ms

Formula to compute the anti-touch drift period
--------------------
| value x Basetime |
--------------------

By default, the system has been configured with a value of 5
which means 5 x 200ms = 1 second

Default value: 5

def-drift-hold-time

int

Drift Hold Time

Time to restrict drift on all sensor when one or more sensors are activated.
Basetime is 200ms

Formula to compute the drift hold Time
--------------------
| value x Basetime |
--------------------

By default, the system has been configured with a value of 20
which means 20 x 200ms = 4 seconds

Default value: 20

def-reburst-mode

string

Reburst Mode

Set mode for additional sensor measurements based on touch activity.

List Of Reburst Modes
+===========================+===========================+
|       Mode                | Description               |
+===========================+===========================+
|                           | Reburst is never set,     |
|     REBURST_NONE          | measurements according to |
|                           | application schedule      |
+---------------------------+---------------------------+
|                           | Reburst is set, all       |
|     REBURST_UNRESOLVED    | sensors suspended         |
|                           | but those in same AKS     |
|                           | as the target sensor      |
+---------------------------+---------------------------+
|     REBURST_ALL           | Reburst is set,           |
|                           | no sensors are suspended  |
+---------------------------+---------------------------+

By default, the system has been configured with a value of REBURST_UNRESOLVED

Default value: REBURST_UNRESOLVED

Legal values: REBURST_NONE, REBURST_UNRESOLVED, REBURST_ALL

def-max-on-duration

int

Max-On Duration

Number of repeat measurements to
confirm anti-touch recalibration required

Basetime is 200ms

Formula to compute the Max-On Duration
--------------------
| value x Basetime |
--------------------

data-streamer-port

phandle

Datastreamer

Add a communication port node to visualize the touch run-time data
using Microchip Data Visualizer Software

num-freq-steps

int

Number Of Frequency Steps for Frequency Hop Operation

Default value: 3

def-median-filter-frequencies

string-array

Median Filter Frequencies

It is for Frequency Hop Operation.
PTC Sampling Delay Selection

The user must select the frequencies based on the noisy condition.

The frequencies should be selected based on the configured
num-freq-steps value. By default, the system is configured
with a num-freq-steps value of 3; therefore, def-median-filter-frequencies
is defined using the following three frequency values.

By default, the system has been configured with a frequencies of
FREQ_SEL_0, FREQ_SEL_3 and FREQ_SEL_7

Default value: [FREQ_SEL_0, FREQ_SEL_1, FREQ_SEL_2]

Legal values: FREQ_SEL_0, FREQ_SEL_1, FREQ_SEL_2, FREQ_SEL_3, FREQ_SEL_4, FREQ_SEL_5, FREQ_SEL_6, FREQ_SEL_7, FREQ_SEL_8, FREQ_SEL_9, FREQ_SEL_10, FREQ_SEL_11, FREQ_SEL_12, FREQ_SEL_13, FREQ_SEL_14, FREQ_SEL_15, FREQ_SEL_SPREAD

def-freq-autotune-enable

int

Frequency Hop Auto-tune

The frequency hop auto-tune module is the super set of frequency hop module
with additionally providing noise monitoring and tuning the frequency
according to the measured noise factor.

Frequency Hop + Noise monitoring = Frequency Hop Auto-Tune

List of available options
+===========+===========================+
| value     |  Frequency Hop Auto-tune  |
+===========+===========================+
| 0         |     DISABLE               |
+-----------+---------------------------+
| 1         |     ENABLE                |
+-----------+---------------------------+

Default value: 1

Legal values: 0, 1

freq-autotune-max-variance

int

Frequency Hop Auto-tune Max variance

sets the maximum variance for Frequency Hop Auto tune.

Default value: 15

freq-autotune-count-in

int

Frequency Hop Auto-tune Count In

sets the Tune in count for Frequency Hop Auto tune.

Default value: 6

def-num-scrollers

int

Define Number Of scrollers

Defines the number of scrollers (sliders or wheels).

pinctrl-0

phandles

Pin configuration/s for the first state. Content is specific to the
selected pin controller driver implementation.

pinctrl-1

phandles

Pin configuration/s for the second state. See pinctrl-0.

pinctrl-2

phandles

Pin configuration/s for the third state. See pinctrl-0.

pinctrl-3

phandles

Pin configuration/s for the fourth state. See pinctrl-0.

pinctrl-4

phandles

Pin configuration/s for the fifth state. See pinctrl-0.

pinctrl-names

string-array

Names for the provided states. The number of names needs to match the
number of states.

Child node properties

Name

Type

Details

x-mask

array

Node X Mask

It could be shield for self-cap measurement (or)
drive line for mutual-cap measurement.

x-names

string-array

X Mask Names

Define X-Mask Names

y-mask

array

Node Y Mask

y-mask is the sensing electrode connected directly to touch sensor.

y-names

string-array

y-mask names.

csd

int

Charge Share Delay (CSD)
Number of delay cycles to ensure charging of sensor node capacitances.

threshold

int

Channel Threshold

The Detect Threshold parameter of a sensor defines
how much its Signal must increase above its Reference level
to be qualified as a potential touch event.

hysteresis

string

Channel Hysteresis

Sensor detection hysteresis value and is expressed
as a percentage of the sensor detection threshold setting.

List of available Channel Hysteresis options
+===================+================================+
|       Type        |    Description                 |
+===================+================================+
|     HYST_50       |   50% of the threshold value   |
+-------------------+--------------------------------+
|     HYST_25       |   25% of the threshold value   |
+-------------------+--------------------------------+
|     HYST_12_5     |   12.5% of the threshold value |
+-------------------+--------------------------------+
|     HYST_6_25     |   6.25% of the threshold value |
+-------------------+--------------------------------+
|     MAX_HYST      |                                |
+-------------------+--------------------------------+

Default value: HYST_25

Legal values: HYST_50, HYST_25, HYST_12_5, HYST_6_25, MAX_HYST

aks-group

string

Channel AKS (Adjacent Key Suppression) Group

Grouping of key sensors controlling
simultaneous touch detect

Default value: NO_AKS_GROUP

Legal values: NO_AKS_GROUP, AKS_GROUP_1, AKS_GROUP_2, AKS_GROUP_3, AKS_GROUP_4, AKS_GROUP_5, AKS_GROUP_6, AKS_GROUP_7, MAX_AKS_GROUP