iio: pressure: dps310: data-ready trigger
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest2 patches 3 repliesIn review
- v12 patches 3 repliesSuperseded
Changes in v2 from the cover letter
- interrupt on temperature results when pressure is not in the scan, so a temperature only scan no longer waits in the handler
- limit the trigger to this device, as the interrupt depends on its scan
- local regmap pointer in set_state and probe (Andy)
- rebase on iio/testing
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | dt-bindings: iio: pressure: infineon,dps310: Add interruptsDocumentation/ | +10 | 1 reply | |
| 2/2 | iio: pressure: dps310: add a data-ready triggerdrivers/ | +135 | 1 reply |
Reviews trailers per patch
1 of 2 patches has a Reviewed-by or Acked-by.
| Patch | Krzysztof Kozlowski |
|---|---|
| 1/2 | R-b |
| 2/2 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/2] iio: pressure: dps310: data-ready trigger
DPS310 can raise an interrupt on SDO for each new result. Document it and use it for a data-ready trigger, so triggered captures follow the measurements and are stamped with the interrupt time.
With pressure sampled faster than temperature, scans with pressure need the trigger handler fix [1] to keep up. Without it they come at the temperature rate, as with any other trigger.
Tested on a DPS310 breakout (0x77) on a BeagleBone Black with SDO to a GPIO, level-low and falling-edge, with [1] applied: one scan per result at 1 and 8 Hz, also with the rates at 8/1 and 1/8 Hz, stamps steady to 0.2 ms. With pressure at 1 Hz and temperature at 8 Hz, one temperature result a second comes 2.4 ms late and the stamps show it. Without an interrupt nothing changes. Not tested: active high, which needs SDO strapped low (0x76), and ZTS8032.
If the chip stalls, the case the timeout reset is for, the trigger stops firing until the buffer is disabled and a read resets the chip.
v2:
- interrupt on temperature results when pressure is not in the scan, so a temperature only scan no longer waits in the handler
- limit the trigger to this device, as the interrupt depends on its scan
- local regmap pointer in set_state and probe (Andy)
- rebase on iio/testing
v1: https://lore.kernel.org/linux-iio/[email protected]/
[1] https://lore.kernel.org/linux-iio/[email protected]/
Rupesh Majhi (2):
dt-bindings: iio: pressure: infineon,dps310: Add interrupts
iio: pressure: dps310: add a data-ready trigger
.../iio/pressure/infineon,dps310.yaml | 10 ++ drivers/iio/pressure/dps310.c | 139 +++++++++++++++++- 2 files changed, 145 insertions(+), 4 deletions(-)
base-commit: 7c054db85b5a3ce4d5465cc5cc682cc44ae9eabd
Signature · 1 line
2.43.0