Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add TCS3472 and VEML6040 sensor support (and a few others) #6448

Open
wants to merge 8 commits into
base: rpi-6.6.y
Choose a base branch
from

Conversation

pelwell
Copy link
Contributor

@pelwell pelwell commented Oct 29, 2024

Add support for the I2C sensors requested in #6446, and a few other related devices.

javiercarrascocruz and others added 7 commits October 30, 2024 09:48
commit b89710b upstream.

Currently there are only two modifiers for ultraviolet light: a generic
one for any ultraviolet light (IIO_MOD_LIGHT_UV) and one for deep
ultraviolet (IIO_MOD_LIGHT_DUV), which is also referred as ultraviolet
C (UV-C) band and covers short-wave ultraviolet.

There are still no modifiers for the long-wave and medium-wave
ultraviolet bands. These two bands are the main components used to
obtain the UV index on the Earth's surface.

Add modifiers for the ultraviolet A (UV-A) and ultraviolet B (UV-B)
bands.

Signed-off-by: Javier Carrasco <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Cameron <[email protected]>
commit 6f6c72a upstream.

The new modifiers should have added to the end of the enum, so they do
not affect the existing entries.

No modifiers were added since then, so they can be moved safely to the
end of the list.

Move IIO_MOD_LIGHT_UVA and IIO_MOD_LIGHT_UVB to the end of iio_modifier.

Fixes: b89710b ("iio: add modifiers for A and B ultraviolet light")
Suggested-by: Paul Cercueil <[email protected]>
Signed-off-by: Javier Carrasco <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Cameron <[email protected]>
commit 3b82f43 upstream.

The Vishay VEMl6075 is a low power, 16-bit resolution UVA and UVB
light sensor with I2C interface and noise compensation (visible and
infrarred).

Every UV channel generates an output signal measured in counts per
integration period, where the integration time is configurable.

This driver adds support for both UV channels and the ultraviolet
index (UVI) inferred from them according to the device application note
with open-air (no teflon) coefficients.

Signed-off-by: Javier Carrasco <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Cameron <[email protected]>
Add config settings for the HTS221, VEML6075 and AS73211 sensors.

Link: raspberrypi#6446

Signed-off-by: Phil Elwell <[email protected]>
Extend the i2c-sensor overlay with support for the HTS221, VEML6075
and AS73211 sensors.

Link: raspberrypi#6446

Signed-off-by: Phil Elwell <[email protected]>
Enable support for the TCS3472 family of light sensors.

Link: raspberrypi#6446

Signed-off-by: Phil Elwell <[email protected]>
Extend the i2c-sensor overlay with support for the VEML6040 and TCS3472
family of light sensors.

Link: raspberrypi#6446

Signed-off-by: Phil Elwell <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants