This series adds support for Texas Instruments OPT4041 Ambient light sensor
Get series with b4
b4 am [email protected] change-id 20261007-opt4041-18315d8510dfVersions newest first
- v2 Latest4 patches 9 repliesIn review
- v13 patches 10 repliesSuperseded
Changes in v2 from the cover letter
- Drop tag Assited-by: LLM from commit messages
- Include patch from Andy: Re-use generic struct s32_fract
- Add trailing commas to structs where it was missing
- Sort variables in reverse xmas tree order in opt4001_read_raw_value()
- Return -ENODATA if i2c_get_match() returns NULL
- Update tristate summary and copy the string to MODULE_DESCRIPTION() and to the comment in the top of the driver
- Change the help text to included OPT4001 and OPT4041 on seperate lines
- Link to v1: https://patch.msgid.link/[email protected]
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | dt-bindings: iio: light: opt4001: add opt4041Documentation/ | +7 | 3 replies | |
| 2/4 | iio: light: opt4001: Re-use generic struct s32_fractdrivers/ | +5 | 0 replies | |
| 3/4 | iio: light: opt4001: refactor driver to prepare to support more devicesdrivers/ | +55 | 2 replies | |
| 4/4 | iio: light: opt4001: add support for opt4041drivers/ drivers/ | +66 | 1 reply |
Reviews trailers per patch
3 of 4 patches have a Reviewed-by or Acked-by.
| Patch | Andy Shevchenko | Conor Dooley |
|---|---|---|
| 1/4 | A-b | |
| 2/4 | ||
| 3/4 | R-b | |
| 4/4 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/4] This series adds support for Texas Instruments OPT4041 Ambient light sensor
Extend the opt4001 driver to support OPT4041, since it is so similar to OPT4001. The OPT4041 adds a second channel, a wide band channel ranging from 380nm to 1000nm. The register map is almost the same for both devices. OPT4001 has an internal fifo of size four, OPT4041 has two fifos of size two, one for each channel.
Since OPT4041 has two channels it has one bit in register 0Bh to select which channel is compared to the threshold register. The driver does not support setting the threshold registers, so no new support has been added for this.
The OPT4041 is pin compatible and has the same package as opt4001-sot-5x3. Although the device id is different, I added a new compatible string since the driver already had different compatible strings to differentiate between the two OPT4001.
Datasheet: https://www.ti.com/lit/gpn/opt4041
---
Changes in v2:
- Drop tag Assited-by: LLM from commit messages
- Include patch from Andy: Re-use generic struct s32_fract
- Add trailing commas to structs where it was missing
- Sort variables in reverse xmas tree order in opt4001_read_raw_value()
- Return -ENODATA if i2c_get_match() returns NULL
- Update tristate summary and copy the string to MODULE_DESCRIPTION() and to the comment in the top of the driver
- Change the help text to included OPT4001 and OPT4041 on seperate lines
- Link to v1: https://patch.msgid.link/[email protected]
To: Jonathan Cameron <[email protected]>
To: David Lechner <[email protected]>
To: Nuno Sá <[email protected]>
To: Andy Shevchenko <[email protected]>
To: Rob Herring <[email protected]>
To: Krzysztof Kozlowski <[email protected]>
To: Conor Dooley <[email protected]>
To: Stefan Windfeldt-Prytz <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
---
Andy Shevchenko (1):
iio: light: opt4001: Re-use generic struct s32_fract
Jesper X Nilsson (3):
dt-bindings: iio: light: opt4001: add opt4041
iio: light: opt4001: refactor driver to prepare to support more devices
iio: light: opt4001: add support for opt4041
.../devicetree/bindings/iio/light/ti,opt4001.yaml | 9 +- drivers/iio/light/Kconfig | 6 +- drivers/iio/light/opt4001.c | 164 +++++++++++++++------ 3 files changed, 133 insertions(+), 46 deletions(-)
---
base-commit: a3b3580713f3ac5a32dc2874ee546828977a1d68
change-id: 20261007-opt4041-18315d8510df
Best regards,
Signature · 1 line
Jesper X Nilsson <[email protected]>