voltage-divider

Description

Voltage Divider

Description for a voltage divider, with optional ability to measure
resistance of the upper leg.

Properties

Properties not inherited from the base binding file.

Name

Type

Details

output-ohms

int

Resistance of the lower leg of the voltage divider

This property is required.

full-ohms

int

Resistance of the full path through the voltage divider.

If absent or zero the driver assumes that the upper leg is a
resistance-based sensor.

power-gpios

phandle-array

Control power to the voltage divider inputs.

If present the corresponding GPIO must be set to an active level
to enable the divider input.

power-on-sample-delay-us

int

Duration to delay sampling after enabling the circuitry with
`power-gpios`. In most cases the switched voltage rail will
require some non-zero time to settle to its final value. The
default value of 100us should be sufficient in most situations.

Default value: 100

skip-calibration

boolean

Skip ADC calibration before taking a measurement.

friendly-name

string

Human readable string describing the sensor. It can be used to
distinguish multiple instances of the same model (e.g., lid accelerometer
vs. base accelerometer in a laptop) to a host operating system.

This property is defined in the Generic Sensor Property Usages of the HID
Usage Tables specification
(https://usb.org/sites/default/files/hut1_3_0.pdf, section 22.5).