* [PATCH 0/3] Add support for Sensirion SDP500
@ 2024-01-16 15:23 Petar Stoykov
2024-01-16 15:27 ` Krzysztof Kozlowski
0 siblings, 1 reply; 2+ messages in thread
From: Petar Stoykov @ 2024-01-16 15:23 UTC (permalink / raw)
To: linux-iio
Cc: Jonathan Cameron, Lars-Peter Clausen, Rob Herring,
Andy Shevchenko, Angel Iglesias, Krzysztof Kozlowski,
Conor Dooley, linux-kernel, devicetree
This patch series introduces support for Sensirion SDP500 in the IIO
subsystem. The series is split into three patches:
1. The first patch adds the device tree bindings.
2. The second patch implements the device driver.
3. The third patch updates the MAINTAINERS file.
The driver is relatively simple. It provides a way to read the measured
differential pressure directly in Pa, as the device has a fixed scale
factor of 1/60. When an applications wants to read the pressure value,
3 bytes are read from the device, 2 are data and 1 is CRC8. If the crc
check passes, the calculated pressure value is returned in Pa units.
The initialization of the device just starts the measurement process.
We have been using this device and driver in a product development for
almost a year now. There the pressure is read every 25ms and is used in a
control loop. We have not even seen crc errors. We are using the
"linux-imx" repository and not the mainline one but I see no risky kernel
functions in use so it should be fine here too.
All feedback is appreciated! Thank you for taking the time to review this.
Petar Stoykov (3):
dt-bindings: iio: pressure: Add Sensirion SDP500
iio: pressure: Add driver for Sensirion SDP500
MAINTAINERS: Add Sensirion SDP500
.../bindings/iio/pressure/sdp500.yaml | 38 ++++
MAINTAINERS | 6 +
drivers/iio/pressure/Kconfig | 9 +
drivers/iio/pressure/Makefile | 1 +
drivers/iio/pressure/sdp500.c | 201 ++++++++++++++++++
5 files changed, 255 insertions(+)
create mode 100644 Documentation/devicetree/bindings/iio/pressure/sdp500.yaml
create mode 100644 drivers/iio/pressure/sdp500.c
--
2.30.2
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH 0/3] Add support for Sensirion SDP500
2024-01-16 15:23 [PATCH 0/3] Add support for Sensirion SDP500 Petar Stoykov
@ 2024-01-16 15:27 ` Krzysztof Kozlowski
0 siblings, 0 replies; 2+ messages in thread
From: Krzysztof Kozlowski @ 2024-01-16 15:27 UTC (permalink / raw)
To: Petar Stoykov, linux-iio
Cc: Jonathan Cameron, Lars-Peter Clausen, Rob Herring,
Andy Shevchenko, Angel Iglesias, Krzysztof Kozlowski,
Conor Dooley, linux-kernel, devicetree
On 16/01/2024 16:23, Petar Stoykov wrote:
> This patch series introduces support for Sensirion SDP500 in the IIO
> subsystem. The series is split into three patches:
>
> 1. The first patch adds the device tree bindings.
> 2. The second patch implements the device driver.
> 3. The third patch updates the MAINTAINERS file.
>
You have broken threading making review and applying difficult. git
format-patch -3 --cover-letter and b4 handles it automatically correct,
so use any of them for proper patch submission.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-01-16 15:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-16 15:23 [PATCH 0/3] Add support for Sensirion SDP500 Petar Stoykov
2024-01-16 15:27 ` Krzysztof Kozlowski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).