iio: pressure: ms5637: Add variant specific
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest2 patches 9 repliesIn review
- v1 RFC2 patches 3 repliesSuperseded
Changes in v2 from the cover letter
- Rebased on top of the togreg branch in iio.git.
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | dt-bindings: iio: pressure: Add MS5637Documentation/ Documentation/ | +87 | 2 replies | |
| 2/2 | iio: pressure: ms5637: Add variant specific temperature compensationdrivers/ drivers/ drivers/ | +465 | 7 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH v2 0/2] iio: pressure: ms5637: Add variant specific
Hi all,
This series adds temperature compensation and pressure scaling for the MS5637 series (02B, 30BA), MS5803 series (01BA, 02BA, 05BA, 14BA, 30BA), MS5805, MS5837 series (02BA, 30BA), and MS8607. These all share the same temperature compensation formula, but the constants differ between devices. This series adds a ms_tp_comp_consts structure to store these per-device differences and applies the compensation.
---
Changes in v2:
- Rebased on top of the togreg branch in iio.git.
Patch 1:
- Add SPI bindings for the MS5803 family.
- Add compatible strings for the ms5637-02ba and ms5837-02ba.
- Add vdd-supply as a requirement
Patch 2:
- Fix the sens2 calculation in the 2nd order temperature compensation.
- Fix the pressure scaling in ms5637_read_raw.
- Add datasheet citations to each compensation constant structure initialization.
- Addressed automated review feedback from Sashiko
- Formatting
- Remove unrelated formatting changes.
- Change ms_tp_data struct initializations to match the existing format.
- Sort i2c_device_id alphabetically.
Link to v1: https://lore.kernel.org/linux-iio/[email protected]/
Thank you, Jonathan, for the comments on v1.
Best regards,
Louis
Louis Adamian (2):
dt-bindings: iio: pressure: Add MS5637
iio: pressure: ms5637: Add variant specific temperature compensation
.../bindings/iio/pressure/meas,ms5637.yaml | 87 ++++ .../devicetree/bindings/trivial-devices.yaml | 10 - .../iio/common/ms_sensors/ms_sensors_i2c.c | 62 ++- .../iio/common/ms_sensors/ms_sensors_i2c.h | 48 +++ drivers/iio/pressure/ms5637.c | 388 +++++++++++++++++- 5 files changed, 552 insertions(+), 43 deletions(-) create mode 100644 Documentation/devicetree/bindings/iio/pressure/meas,ms5637.yaml
Signature · 1 line
2.54.0