ti,opt4048 (on i2c bus)

Description

TI OPT4048 high speed, high precision tristimulus XYZ color sensor.

Properties

Properties not inherited from the base binding file.

Name

Type

Details

conversion-time

int

Conversion time per channel. The default of 100 ms provides a
practical balance between measurement speed and noise performance
for general-purpose ambient light sensing. Applications requiring
faster response should select a shorter conversion time.

0: 600 us, 1: 1 ms, 2: 1.8 ms, 3: 3.4 ms,
4: 6.5 ms, 5: 12.7 ms, 6: 25 ms, 7: 50 ms,
8: 100 ms, 9: 200 ms, 10: 400 ms, 11: 800 ms.

Default value: 8

Legal values: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11

range

int

Full-scale measurement range. The default enables automatic
ranging, allowing the sensor to adapt to changing illumination
without board-specific tuning. A fixed range should be selected
when the illumination level is known.

0: 2.2 klux, 1: 4.5 klux, 2: 9 klux, 3: 18 klux,
4: 36 klux, 5: 72 klux, 6: 144 klux, 12: automatic range.

Default value: 12

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

operating-mode

int

Operating mode. The default enables continuous conversion, which
matches the most common use case of periodically polling ambient
light. One-shot modes should be selected when measurements are
needed only on demand or when reducing power consumption is a
priority.

0: power-down, 1: forced auto-range one-shot,
2: one-shot, 3: continuous.

In one-shot modes, each sample_fetch() call must trigger a
new measurement and wait for its completion.

Default value: 3

Legal values: 0, 1, 2, 3

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).

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.