Skip to contentSkip to conversation

Support Honeywell mprls0025pa pressure sensor

PATCH In review Andreas Klinger 3 participants 9 messages May 16, 2023 – Jun 4, 2023

Subsystems (3)
lore
Share & tools
lore

Andreas Klinger

author maintainer
#0 lore raw

v5 cover Support Honeywell mprls0025pa pressure sensor

Support Honeywell mprls0025pa pressure sensor.

This patch series adds support for Honeywell mprls0025pa pressure sensor series. There are a variety of sensors with different pressure ranges supported.

Changes in v5:
- Patch 1: "dt-bindings: iio: pressure: Support Honeywell mprls0025pa sensor"
- add Reviewd-by tag
- preserve formating in description
- Patch 2: "iio: pressure: Honeywell mprls0025pa pressure sensor"
- make use of div_s64_rem()
- document calculation
- reorder includes
- use NANO from units.h
- Patch 3: "MAINTAINERS: Add Honeywell mprls0025pa sensor"
- no changes

Changes in v4:
- Patch 1: "dt-bindings: iio: pressure: Support Honeywell mprls0025pa sensor"
- change line length to 80 characters
- make vdd-supply mandatory
- Patch 2: "iio: pressure: Honeywell mprls0025pa pressure sensor"
- change line length to 80 characters
- change regulator vcc to devm_regulator_get_enable()
- switch to probe_new
- many changes from the review
- Patch 3: "MAINTAINERS: Add Honeywell mprls0025pa sensor"
- no changes

Changes in v3:
- Patch 1: "dt-bindings: iio: pressure: Support Honeywell mprls0025pa sensor"
- fix errors while doing dt_binding_check
- add vdd-supply
- Patch 2: "iio: pressure: Honeywell mpr pressure sensor"
- change to _RAW interface
- add transfer function
- add regulator
- move to device_property_xxx functions
- many more changes from the feedbacks
- Patch 3: "MAINTAINERS: Add Honeywell mpr sensor"
- change file names

Changes in v2:
- Patch 1: "dt-bindings: iio: pressure: Support Honeywell mprls0025pa sensor"
- change the global sensor decription of mpr to the specific sensor

    mprls0025pa

- change compatible string
- rename the file to honeywell,mprls0025pa.yaml
- honeywell,pmin-pascal and honeywell,pmax-pascal: add unit pascal to property names
- add new property honeywell,transfer-function
- Patch 2: "iio: pressure: Honeywell mpr pressure sensor"
- no change so far
- will be changed and send out as new version when the dt definition is settled down
- Patch 3: "MAINTAINERS: Add Honeywell mpr sensor"
- no change so far

Andreas Klinger (3):
dt-bindings: iio: pressure: Support Honeywell mprls0025pa sensor
iio: pressure: Honeywell mprls0025pa pressure sensor
MAINTAINERS: Add Honeywell mprls0025pa sensor

 .../iio/pressure/honeywell,mprls0025pa.yaml   | 104 ++++
 MAINTAINERS                                   |   7 +
 drivers/iio/pressure/Kconfig                  |  13 +
 drivers/iio/pressure/Makefile                 |   1 +
 drivers/iio/pressure/mprls0025pa.c            | 450 ++++++++++++++++++
 5 files changed, 575 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/iio/pressure/honeywell,mprls0025pa.yaml
 create mode 100644 drivers/iio/pressure/mprls0025pa.c

base-commit: 457391b0380335d5e9a5babdec90ac53928b23b4

Signature · 1 line
2.30.2
author maintainer
#1 lore raw

PATCH v5 1/3 dt-bindings: iio: pressure: Support Honeywell mprls0025pa sensor

Honeywell mprls0025pa is a pressure sensor series. There are many different models with different pressure ranges, units and transfer functions.

The range and transfer function need to be set up in the dt. Therefore new properties honeywell,pmin-pascal, honeywell,pmax-pascal, honeywell,transfer-function are introduced.

Add dt-bindings.

---
 .../iio/pressure/honeywell,mprls0025pa.yaml   | 104 ++++++++++++++++++
 1 file changed, 104 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/iio/pressure/honeywell,mprls0025pa.yaml
Documentation/devicetree/bindings/iio/pressure/honeywell,mprls0025pa.yaml new file +104 -0
new file mode 100644
index 000000000000..c0a923febf13
@@ -0,0 +1,104 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/iio/pressure/honeywell,mprls0025pa.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Honeywell mprls0025pa pressure sensor
+
+maintainers:
+  - Andreas Klinger <[email protected]>
+
+description: |
+  Honeywell pressure sensor of model mprls0025pa.
+
+  This sensor has an I2C and SPI interface. Only the I2C interface is
+  implemented.
+
+  There are many models with different pressure ranges available. The vendor
+  calls them "mpr series". All of them have the identical programming model and
+  differ in the pressure range, unit and transfer function.
+
+  To support different models one need to specify the pressure range as well as
+  the transfer function. Pressure range needs to be converted from its unit to
+  pascal.
+
+  The transfer function defines the ranges of numerical values delivered by the
+  sensor. The minimal range value stands for the minimum pressure and the
+  maximum value also for the maximum pressure with linear relation inside the
+  range.
+
+  Specifications about the devices can be found at:
+    https://prod-edam.honeywell.com/content/dam/honeywell-edam/sps/siot/en-us/
+      products/sensors/pressure-sensors/board-mount-pressure-sensors/
+      micropressure-mpr-series/documents/
+      sps-siot-mpr-series-datasheet-32332628-ciid-172626.pdf
+
+properties:
+  compatible:
+    const: honeywell,mprls0025pa
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    maxItems: 1
+
+  reset-gpios:
+    description:
+      Optional GPIO for resetting the device.
+      If not present the device is not resetted during the probe.
+    maxItems: 1
+
+  honeywell,pmin-pascal:
+    description:
+      Minimum pressure value the sensor can measure in pascal.
+    $ref: /schemas/types.yaml#/definitions/uint32
+
+  honeywell,pmax-pascal:
+    description:
+      Maximum pressure value the sensor can measure in pascal.
+    $ref: /schemas/types.yaml#/definitions/uint32
+
+  honeywell,transfer-function:
+    description: |
+      Transfer function which defines the range of valid values delivered by the
+      sensor.
+      1 - A, 10% to 90% of 2^24 (1677722 .. 15099494)
+      2 - B, 2.5% to 22.5% of 2^24 (419430 .. 3774874)
+      3 - C, 20% to 80% of 2^24 (3355443 .. 13421773)
+    $ref: /schemas/types.yaml#/definitions/uint32
+
+  vdd-supply:
+    description: provide VDD power to the sensor.
+
+required:
+  - compatible
+  - reg
+  - honeywell,pmin-pascal
+  - honeywell,pmax-pascal
+  - honeywell,transfer-function
+  - vdd-supply
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/gpio/gpio.h>
+    #include <dt-bindings/interrupt-controller/irq.h>
+    i2c {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        pressure@18 {
+            compatible = "honeywell,mprls0025pa";
+            reg = <0x18>;
+            reset-gpios = <&gpio3 19 GPIO_ACTIVE_HIGH>;
+            interrupt-parent = <&gpio3>;
+            interrupts = <21 IRQ_TYPE_EDGE_FALLING>;
+            honeywell,pmin-pascal = <0>;
+            honeywell,pmax-pascal = <172369>;
+            honeywell,transfer-function = <1>;
+            vdd-supply = <&vcc_3v3>;
+        };
+    };
Signature · 11 lines
2.30.2


-- 
Andreas Klinger
Grabenreith 27
84508 Burgkirchen
+49 8623 919966
[email protected]
www.it-klinger.de
www.grabenreith.de
author maintainer
#2 lore raw

PATCH v5 2/3 iio: pressure: Honeywell mprls0025pa pressure sensor

In reply to Andreas Klinger

Honeywell mprls0025pa is a series of pressure sensors.

Add initial I2C support.

Note:
- IIO buffered mode is supported
- SPI mode is not supported

---
 drivers/iio/pressure/Kconfig       |  13 +
 drivers/iio/pressure/Makefile      |   1 +
 drivers/iio/pressure/mprls0025pa.c | 450 +++++++++++++++++++++++++++++
 3 files changed, 464 insertions(+)
 create mode 100644 drivers/iio/pressure/mprls0025pa.c
drivers/iio/pressure/Kconfig +13 -0
index c9453389e4f7..43aef35ce778 100644
@@ -148,6 +148,19 @@ config MPL3115
 	  To compile this driver as a module, choose M here: the module
 	  will be called mpl3115.
 
+config MPRLS0025PA
+	tristate "Honeywell MPRLS0025PA (MicroPressure sensors series)"
+	depends on I2C
+	select IIO_BUFFER
+	select IIO_TRIGGERED_BUFFER
+	help
+	  Say Y here to build support for the Honeywell MicroPressure pressure
+	  sensor series. There are many different types with different pressure
+	  range. These ranges can be set up in the device tree.
+
+	  To compile this driver as a module, choose M here: the module will be
+	  called mprls0025pa.
+
 config MS5611
 	tristate "Measurement Specialties MS5611 pressure sensor driver"
 	select IIO_BUFFER
drivers/iio/pressure/Makefile +1 -0
index 083ae87ff48f..c90f77210e94 100644
@@ -19,6 +19,7 @@ obj-$(CONFIG_MPL115) += mpl115.o
 obj-$(CONFIG_MPL115_I2C) += mpl115_i2c.o
 obj-$(CONFIG_MPL115_SPI) += mpl115_spi.o
 obj-$(CONFIG_MPL3115) += mpl3115.o
+obj-$(CONFIG_MPRLS0025PA) += mprls0025pa.o
 obj-$(CONFIG_MS5611) += ms5611_core.o
 obj-$(CONFIG_MS5611_I2C) += ms5611_i2c.o
 obj-$(CONFIG_MS5611_SPI) += ms5611_spi.o
drivers/iio/pressure/mprls0025pa.c new file +450 -0

450 lines not on this page · raw message

Signature · 1 line
2.30.2
#3 lore raw

Re: [PATCH v5 2/3] iio: pressure: Honeywell mprls0025pa pressure sensor

Tue, May 16, 2023 at 01:32:45PM +0200, Andreas Klinger kirjoitti:

Quoted 7 lines

Honeywell mprls0025pa is a series of pressure sensors.

Add initial I2C support.

Note:
- IIO buffered mode is supported
- SPI mode is not supported

...

Quoted 1 line

+ * Data sheet:

Datasheet

Quoted 4 lines

+ * https://prod-edam.honeywell.com/content/dam/honeywell-edam/sps/siot/en-us/

+ *    products/sensors/pressure-sensors/board-mount-pressure-sensors/
+ *    micropressure-mpr-series/documents/
+ *    sps-siot-mpr-series-datasheet-32332628-ciid-172626.pdf

Is it URL? Can we have it clickable, i.e. unwrapped?

...

Missing bits.h

Quoted 8 lines
drivers/iio/pressure/mprls0025pa.c new file +8 -0
+#include <linux/delay.h>
+#include <linux/device.h>
+#include <linux/i2c.h>
+#include <linux/math64.h>
+#include <linux/mod_devicetable.h>
+#include <linux/module.h>
+#include <linux/property.h>
+#include <linux/units.h>

...

Quoted 2 lines

+/*
+ * support _RAW sysfs interface:

Support

Quoted 23 lines

+ *
+ * Calculation formula from the datasheet:
+ * pressure = (press_cnt - outputmin) * scale + pmin
+ * with:
+ * * pressure - measured pressure in Pascal
+ * * press_cnt - raw value read from sensor
+ * * pmin - minimum pressure range value of sensor (data->pmin)
+ * * pmax - maximum pressure range value of sensor (data->pmax)
+ * * outputmin - minimum numerical range raw value delivered by sensor
+ * (mpr_func_spec.output_min)
+ * * outputmax - maximum numerical range raw value delivered by sensor
+ * (mpr_func_spec.output_max)
+ * * scale - (pmax - pmin) / (outputmax - outputmin)
+ *
+ * formula of the userspace:
+ * pressure = (raw + offset) * scale
+ *
+ * Values given to the userspace in sysfs interface:
+ * * raw - press_cnt
+ * * offset - (-1 * outputmin) - pmin / scale
+ * note: With all sensors from the datasheet pmin = 0
+ * which reduces the offset to (-1 * outputmin)
+ */

...

Quoted 5 lines

+/*
+ * transfer function A: 10% to 90% of 2^24
+ * transfer function B: 2.5% to 22.5% of 2^24
+ * transfer function C: 20% to 80% of 2^24
+ */

Kernel doc?

Quoted 5 lines
drivers/iio/pressure/mprls0025pa.c new file +5 -0
+enum mpr_func_id {
+	MPR_FUNCTION_A,
+	MPR_FUNCTION_B,
+	MPR_FUNCTION_C,
+};

...

drivers/iio/pressure/mprls0025pa.c line 82

Quoted 4 lines
drivers/iio/pressure/mprls0025pa.c new file +4 -0
+struct mpr_func_spec {
+	u32			output_min;
+	u32			output_max;
+};

Can the linear_range.h be used for this?

...

Quoted 22 lines
drivers/iio/pressure/mprls0025pa.c new file +22 -0
+struct mpr_data {
+	struct i2c_client	*client;
+	struct mutex		lock;		/*
+						 * access to device during read
+						 */
+	u32			pmin;		/* minimal pressure in pascal */
+	u32			pmax;		/* maximal pressure in pascal */
+	enum mpr_func_id	function;	/* transfer function */
+	u32			outmin;		/*
+						 * minimal numerical range raw
+						 * value from sensor
+						 */
+	u32			outmax;		/*
+						 * maximal numerical range raw
+						 * value from sensor
+						 */
+	int                     scale;          /* int part of scale */
+	int                     scale2;         /* nano part of scale */
+	int                     offset;         /* int part of offset */
+	int                     offset2;        /* nano part of offset */
+	struct gpio_desc	*gpiod_reset;	/* reset */
+	int			irq;		/*

drivers/iio/pressure/mprls0025pa.c line 126

Quoted 10 lines
drivers/iio/pressure/mprls0025pa.c new file +10 -0
+						 * end of conversion irq;
+						 * used to distinguish between
+						 * irq mode and reading in a
+						 * loop until data is ready
+						 */
+	struct completion	completion;	/* handshake from irq to read */
+	struct mpr_chan		chan;		/*
+						 * channel values for buffered
+						 * mode
+						 */

Why not kernel doc?

Quoted 1 line

+};

...

drivers/iio/pressure/mprls0025pa.c line 148

Quoted 3 lines
drivers/iio/pressure/mprls0025pa.c new file +3 -0
+static void mpr_reset(struct mpr_data *data)
+{
+	if (data->gpiod_reset) {

Actually this dups gpiod_*() checks, so only needed by udelay().

drivers/iio/pressure/mprls0025pa.c line 151

Quoted 3 lines
drivers/iio/pressure/mprls0025pa.c new file +3 -0
+		gpiod_set_value(data->gpiod_reset, 0);
+		udelay(10);
+		gpiod_set_value(data->gpiod_reset, 1);

Why not sleeping for all of them?

Quoted 2 lines
(quoted diff) +2 -0
+	}
+}

...

drivers/iio/pressure/mprls0025pa.c line 189

Quoted 3 lines
drivers/iio/pressure/mprls0025pa.c new file +3 -0
+	if (ret != sizeof(wdata)) {
+		dev_err(dev, "received size doesn't fit - ret: %d / %u\n", ret,
+							(u32)sizeof(wdata));

Casting? Use proper specifier, i.e. %zu.

Quoted 2 lines
(quoted diff) +2 -0
+		return -EIO;
+	}

...

drivers/iio/pressure/mprls0025pa.c line 203

Quoted 4 lines
drivers/iio/pressure/mprls0025pa.c new file +4 -0
+		/* wait until status indicates data is ready */
+		for (i = 0; i < nloops; i++) {
+			/*
+			 * datasheet only says to wait at least 5 ms for the

Datasheet

Quoted 9 lines
drivers/iio/pressure/mprls0025pa.c new file +9 -0
+			 * data but leave the maximum response time open
+			 * --> let's try it nloops (10) times which seems to be
+			 *     quite long
+			 */
+			usleep_range(5000, 10000);
+			status = i2c_smbus_read_byte(data->client);
+			if (status < 0) {
+				dev_err(dev,
+					"error while reading, status: %d\n",

drivers/iio/pressure/mprls0025pa.c line 222

Quoted 10 lines
drivers/iio/pressure/mprls0025pa.c new file +10 -0
+					status);
+				return status;
+			}
+			if (!(status & MPR_I2C_BUSY))
+				break;
+		}
+		if (i == nloops) {
+			dev_err(dev, "timeout while reading\n");
+			return -ETIMEDOUT;
+		}

iopoll.h provides a macro for this. Reduces codebase a lot in this case.

Quoted 1 line
(quoted diff) +1 -0
+	}

...

Review

Quoted 2 lines
(quoted diff) +2 -0
+		dev_err(dev, "received size doesn't fit - ret: %d / %u\n", ret,
+							(u32)sizeof(buf));

Use proper specifier.

...

drivers/iio/pressure/mprls0025pa.c line 241

Quoted 6 lines
drivers/iio/pressure/mprls0025pa.c new file +6 -0
+	if (buf[0] & MPR_I2C_BUSY) {
+		/*
+		 * it should never be the case that status still indicates
+		 * business
+		 */
+		dev_err(dev, "data still not ready: %08x\n", buf[0]);

Why 8? Is the buffer is of 32-bit values?

Quoted 2 lines
(quoted diff) +2 -0
+		return -ETIMEDOUT;
+	}

...

Quoted 1 line

+err:

err_unlock:

Quoted 4 lines
drivers/iio/pressure/mprls0025pa.c new file +4 -0
+	mutex_unlock(&data->lock);
+	iio_trigger_notify_done(indio_dev->trig);
+
+	return IRQ_HANDLED;

...

drivers/iio/pressure/mprls0025pa.c line 333

Quoted 3 lines
drivers/iio/pressure/mprls0025pa.c new file +3 -0
+	indio_dev = devm_iio_device_alloc(dev, sizeof(*data));
+	if (!indio_dev)
+		return dev_err_probe(dev, -ENOMEM, "couldn't get iio_dev\n");

-ENOMEM shouldn't be without error message, we will get one in that case.

...

drivers/iio/pressure/mprls0025pa.c line 353

Quoted 1 line
drivers/iio/pressure/mprls0025pa.c new file +1 -0
+	if (dev_fwnode(dev)) {

Why not simply use defaults?

Quoted 7 lines
drivers/iio/pressure/mprls0025pa.c new file +7 -0
+		ret = device_property_read_u32(dev, "honeywell,pmin-pascal",
+								&data->pmin);
+		if (ret)
+			return dev_err_probe(dev, ret,
+				"honeywell,pmin-pascal could not be read\n");
+		ret = device_property_read_u32(dev, "honeywell,pmax-pascal",
+								&data->pmax);

drivers/iio/pressure/mprls0025pa.c line 370

Quoted 10 lines
drivers/iio/pressure/mprls0025pa.c new file +10 -0
+		if (ret)
+			return dev_err_probe(dev, ret,
+				"honeywell,pmax-pascal could not be read\n");
+		ret = device_property_read_u32(dev,
+				"honeywell,transfer-function", &data->function);
+		if (ret)
+			return dev_err_probe(dev, ret,
+				"honeywell,transfer-function could not be read\n");
+		if (data->function > MPR_FUNCTION_C)
+			return dev_err_probe(dev, -EINVAL,

-ERANGE ?

Quoted 9 lines
drivers/iio/pressure/mprls0025pa.c new file +9 -0
+				"honeywell,transfer-function %d invalid\n",
+								data->function);
+	} else {
+		/* when loaded as i2c device we need to use default values */
+		dev_notice(dev, "firmware node not found; using defaults\n");
+		data->pmin = 0;
+		data->pmax = 172369; /* 25 psi */
+		data->function = MPR_FUNCTION_A;
+	}

...

drivers/iio/pressure/mprls0025pa.c line 389

Quoted 2 lines
drivers/iio/pressure/mprls0025pa.c new file +2 -0
+	/*
+	 * multiply with NANO before dividing by scale and later divide by NANO

Multiply

Quoted 2 lines
drivers/iio/pressure/mprls0025pa.c new file +2 -0
+	 * again.
+	 */

...

drivers/iio/pressure/mprls0025pa.c line 416

Quoted 3 lines
drivers/iio/pressure/mprls0025pa.c new file +3 -0
+	if (ret)
+		return dev_err_probe(dev, ret,
+					"iio triggered buffer setup failed\n");

One line?

...

drivers/iio/pressure/mprls0025pa.c line 421

Quoted 3 lines
drivers/iio/pressure/mprls0025pa.c new file +3 -0
+	if (ret)
+		return dev_err_probe(dev, ret,
+					"unable to register iio device\n");

Ditto.

Signature · 2 lines
With Best Regards,
Andy Shevchenko
maintainer
#4 lore raw

Re: [PATCH v5 2/3] iio: pressure: Honeywell mprls0025pa pressure sensor

Quoted 6 lines

drivers/iio/pressure/mprls0025pa.c line 353

Quoted 4 lines
drivers/iio/pressure/mprls0025pa.c new file +1 -0
+	if (dev_fwnode(dev)) {  

Why not simply use defaults?

Potential for inconsistent set if a firmware provides some but not others? (at least that was my assumption that could well be wrong)

Quoted 18 lines
Quoted 18 lines
drivers/iio/pressure/mprls0025pa.c new file +17 -0
+		ret = device_property_read_u32(dev, "honeywell,pmin-pascal",
+								&data->pmin);
+		if (ret)
+			return dev_err_probe(dev, ret,
+				"honeywell,pmin-pascal could not be read\n");
+		ret = device_property_read_u32(dev, "honeywell,pmax-pascal",
+								&data->pmax);
+		if (ret)
+			return dev_err_probe(dev, ret,
+				"honeywell,pmax-pascal could not be read\n");
+		ret = device_property_read_u32(dev,
+				"honeywell,transfer-function", &data->function);
+		if (ret)
+			return dev_err_probe(dev, ret,
+				"honeywell,transfer-function could not be read\n");
+		if (data->function > MPR_FUNCTION_C)
+			return dev_err_probe(dev, -EINVAL,  
author maintainer
#5 lore raw

PATCH v5 3/3 MAINTAINERS: Add Honeywell mprls0025pa sensor

In reply to Andreas Klinger

Add myself as a maintainer for Honeywell mprls0025pa sensor.

---
 MAINTAINERS | 7 +++++++
 1 file changed, 7 insertions(+)
MAINTAINERS +7 -0
index c6545eb54104..7b68ec3fba88 100644
@@ -9361,6 +9361,13 @@ F:	lib/test_hmm*
 F:	mm/hmm*
 F:	tools/testing/selftests/mm/*hmm*
 
+HONEYWELL MPRLS0025PA PRESSURE SENSOR SERIES IIO DRIVER
+M:	Andreas Klinger <[email protected]>
+L:	[email protected]
+S:	Maintained
+F:	Documentation/devicetree/bindings/iio/pressure/honeywell,mprls0025pa.yaml
+F:	drivers/iio/pressure/mprls0025pa.c
+
 HOST AP DRIVER
 M:	Jouni Malinen <[email protected]>
 L:	[email protected]
Signature · 1 line
2.30.2
maintainer
#6 lore raw
In reply to Andreas Klinger
Quoted 1 line · On Tue, 16 May 2023 13:30:44 +0200 Andreas Klinger <[email protected]> wrote:

Support Honeywell mprls0025pa pressure sensor.

Series applied to the togreg branch of iio.git and initially pushed out as testing for 0-day to see if it can find anything we missed.

Thanks,

Jonathan

Quoted 73 lines

This patch series adds support for Honeywell mprls0025pa pressure sensor series. There are a variety of sensors with different pressure ranges supported.

Changes in v5:
- Patch 1: "dt-bindings: iio: pressure: Support Honeywell mprls0025pa sensor"
- add Reviewd-by tag
- preserve formating in description
- Patch 2: "iio: pressure: Honeywell mprls0025pa pressure sensor"
- make use of div_s64_rem()
- document calculation
- reorder includes
- use NANO from units.h
- Patch 3: "MAINTAINERS: Add Honeywell mprls0025pa sensor"
- no changes

Changes in v4:
- Patch 1: "dt-bindings: iio: pressure: Support Honeywell mprls0025pa sensor"
- change line length to 80 characters
- make vdd-supply mandatory
- Patch 2: "iio: pressure: Honeywell mprls0025pa pressure sensor"
- change line length to 80 characters
- change regulator vcc to devm_regulator_get_enable()
- switch to probe_new
- many changes from the review
- Patch 3: "MAINTAINERS: Add Honeywell mprls0025pa sensor"
- no changes

Changes in v3:
- Patch 1: "dt-bindings: iio: pressure: Support Honeywell mprls0025pa sensor"
- fix errors while doing dt_binding_check
- add vdd-supply
- Patch 2: "iio: pressure: Honeywell mpr pressure sensor"
- change to _RAW interface
- add transfer function
- add regulator
- move to device_property_xxx functions
- many more changes from the feedbacks
- Patch 3: "MAINTAINERS: Add Honeywell mpr sensor"
- change file names

Changes in v2:
- Patch 1: "dt-bindings: iio: pressure: Support Honeywell mprls0025pa sensor"
- change the global sensor decription of mpr to the specific sensor

    mprls0025pa

- change compatible string
- rename the file to honeywell,mprls0025pa.yaml
- honeywell,pmin-pascal and honeywell,pmax-pascal: add unit pascal to property names
- add new property honeywell,transfer-function
- Patch 2: "iio: pressure: Honeywell mpr pressure sensor"
- no change so far
- will be changed and send out as new version when the dt definition is settled down
- Patch 3: "MAINTAINERS: Add Honeywell mpr sensor"
- no change so far

Andreas Klinger (3):
dt-bindings: iio: pressure: Support Honeywell mprls0025pa sensor
iio: pressure: Honeywell mprls0025pa pressure sensor
MAINTAINERS: Add Honeywell mprls0025pa sensor

 .../iio/pressure/honeywell,mprls0025pa.yaml   | 104 ++++
 MAINTAINERS                                   |   7 +
 drivers/iio/pressure/Kconfig                  |  13 +
 drivers/iio/pressure/Makefile                 |   1 +
 drivers/iio/pressure/mprls0025pa.c            | 450 ++++++++++++++++++
 5 files changed, 575 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/iio/pressure/honeywell,mprls0025pa.yaml
 create mode 100644 drivers/iio/pressure/mprls0025pa.c

base-commit: 457391b0380335d5e9a5babdec90ac53928b23b4

#7 lore raw

Sat, May 20, 2023 at 05:24:05PM +0100, Jonathan Cameron kirjoitti:

Quoted 6 lines
Quoted 1 line · On Tue, 16 May 2023 13:30:44 +0200 Andreas Klinger <[email protected]> wrote:

Support Honeywell mprls0025pa pressure sensor.

Series applied to the togreg branch of iio.git and initially pushed out as testing for 0-day to see if it can find anything we missed.

Hmm... Should the comments I'm about to leave be addressed as followups?

Signature · 2 lines
With Best Regards,
Andy Shevchenko
maintainer
#8 lore raw
Quoted 10 lines · On Mon, 29 May 2023 01:09:19 +0300 [email protected] wrote:

Sat, May 20, 2023 at 05:24:05PM +0100, Jonathan Cameron kirjoitti:

Quoted 6 lines
Quoted 1 line · On Tue, 16 May 2023 13:30:44 +0200 Andreas Klinger <[email protected]> wrote:

Support Honeywell mprls0025pa pressure sensor.

Series applied to the togreg branch of iio.git and initially pushed out as testing for 0-day to see if it can find anything we missed.

Hmm... Should the comments I'm about to leave be addressed as followups?

Yes please. As with previous, whilst good comments, nothing significant enough that I'd want to rebase the tree.
Perhaps filter out the least important ones (one line vs two line on 81 char lines) though.

Jonathan