ti,fdc1004 (on i2c bus)

Description

Texas Instruments FDC1004 4-Channel Capacitance-to-Digital Converter

The FDC1004 is a 4-channel, 16-bit capacitance-to-digital converter with
a ±15 pF input range and a per-channel CAPDAC offset of up to ~100 pF (0..31
steps of 3.125 pF each). Communicates over I2C at up to 400 kHz.

Examples

fdc1004_0: fdc1004@50 {
  compatible = "ti,fdc1004";
  reg = <0x50>;
  measure-rate = <100>;
  ti,capdac = <0 0 0 0>;
};

Properties

Properties not inherited from the base binding file.

Name

Type

Details

measure-rate

int

Measurement rate in samples per second.
100 = 100 S/s, 200 = 200 S/s, 400 = 400 S/s.
Default is 100 S/s, it is the lowest rate which provides
best accuracy.

Default value: 100

Legal values: 100, 200, 400

ti,capdac

array

Per-channel CAPDAC offset for CIN1, CIN2, CIN3, CIN4 respectively.
Each value is an integer from 0 to 31; each step equals 3.125 pF of
offset, shifting the measurement window from [-15, +15] pF to
[CAPDAC*3.125 - 15, CAPDAC*3.125 + 15] pF.
Default is [0, 0, 0, 0] which means no offset.
It centeres the measurement window around GND.
Non-zero values can be used based on individual project
parastitic capacitance at each electrode.

Default value: [0, 0, 0, 0]

supply-gpios

phandle-array

GPIO specifier that controls power to the device.

This property should be provided when the device has a dedicated
switch that controls power to the device.  The supply state is
entirely the responsibility of the device driver.

Contrast with vin-supply.

vin-supply

phandle

Reference to the regulator that controls power to the device.
The referenced devicetree node must have a regulator compatible.

This property should be provided when device power is supplied
by a shared regulator.  The supply state is dependent on the
request status of all devices fed by the regulator.

Contrast with supply-gpios.  If both properties are provided
then the regulator must be requested before the supply GPIOS is
set to an active state, and the supply GPIOS must be set to an
inactive state before releasing the regulator.