st,stm32-tsc

Vendor: STMicroelectronics

Note

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

Description

STM32 Tocuh Sensing Controller (TSC) driver

Properties

Top level properties

These property descriptions apply to “st,stm32-tsc” nodes themselves. This page also describes child node properties in the following sections.

Properties not inherited from the base binding file.

Name

Type

Details

resets

phandle-array

Reset information

This property is required.

pinctrl-0

phandles

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

This property is required.

pinctrl-names

string-array

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

This property is required.

st,pulse-generator-prescaler

int

Prescaler for the pulse generator clock (t_pgclk=f_hclk/prescaler).
The prescaler is used to generate the charge transfer pulse. The final
prescaled value is 2^N where N is the value of this property.

This property is required.

Legal values: 1, 2, 4, 8, 16, 32, 64, 128

st,charge-transfer-pulse-high

int

Number of cycles for the high state of the
charge transfer pulse (1 to 16 cycles of t_pgclk).

This property is required.

Legal values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16

st,charge-transfer-pulse-low

int

Number of cycles for the low state of the
charge transfer pulse (1 to 16 cycles of t_pgclk).

This property is required.

Legal values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16

st,spread-spectrum

boolean

Spread spectrum enable

st,spread-spectrum-prescaler

int

Spread spectrum clock prescaler (t_ssclk)

This property is required.

Legal values: 1, 2

st,spread-spectrum-deviation

int

Spread spectrum deviation (1 to 128 cycles of t_ssclk)

This property is required.

st,max-count-value

int

Max number of charge transfer pulses before max count error is generated.
The value of the counter is calculated as 256 * 2^max_count_value.

This property is required.

Legal values: 255, 511, 1023, 2047, 4095, 8191, 16383, 32767

st,synced-acquisition

boolean

Synchronized acquisition enable.
Acquisition starts when START bit and signal on sync pin.
You have to provide a pinctrl for the sync pin.

st,syncpol-rising

boolean

Rising synchronization pin polarity, instead of falling

st,iodef-float

boolean

Set default state (not acqusition) of all channel I/Os to floating.
push-pull down by default.

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.

reset-names

string-array

Name of each reset

Child node properties

Name

Type

Details

group

int

Group number (0 to 7)

This property is required.

Legal values: 0, 1, 2, 3, 4, 5, 6, 7

channel-ios

int

Channel I/Os to be enabled

This property is required.

Legal values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16

sampling-io

int

Channel to be selected for sampling

This property is required.

Legal values: 1, 2, 4, 8

st,use-as-shield

boolean

Use channel as shield. This configures group but
does not enable it for acqusition. channel-io is used
as shield pin and can only have values 1, 2, 4 or 8.