From: Jonathan Cameron <jic23@kernel.org>
To: Muhammad Abu Bakar <m.abubakar365@yahoo.com>
Cc: Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
dlechner@baylibre.com, nuno.sa@analog.com, andy@kernel.org,
linux-iio@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/2] dt-bindings: iio: pressure: add Sensirion SDP31
Date: Sun, 20 Sep 2026 01:40:32 +0100 [thread overview]
Message-ID: <20260920014032.2cc3c851@jic23-hlaptop> (raw)
In-Reply-To: <20260919223854.13437-2-m.abubakar365@yahoo.com>
On Sun, 20 Sep 2026 03:38:53 +0500
Muhammad Abu Bakar <m.abubakar365@yahoo.com> wrote:
> Add device tree bindings for the Sensirion SDP31 differential pressure
> sensor, an I2C device that also reports temperature.
>
> Signed-off-by: Muhammad Abu Bakar <m.abubakar365@yahoo.com>
> ---
> .../iio/pressure/sensirion,sdp31.yaml | 40 +++++++++++++++++++
> 1 file changed, 40 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/iio/pressure/sensirion,sdp31.yaml
>
> diff --git a/Documentation/devicetree/bindings/iio/pressure/sensirion,sdp31.yaml b/Documentation/devicetree/bindings/iio/pressure/sensirion,sdp31.yaml
> new file mode 100644
> index 000000000..fc646eca2
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/iio/pressure/sensirion,sdp31.yaml
> @@ -0,0 +1,40 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/iio/pressure/sensirion,sdp31.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Sensirion SDP31 differential pressure sensor
> +
> +maintainers:
> + - Muhammad Abu Bakar <m.abubakar365@yahoo.com>
> +
> +description: |
> + Differential pressure sensor from Sensirion with an I2C interface.
> +
> +properties:
> + compatible:
> + const: sensirion,sdp31
It looks like there several similar parts that only differ in
range. Would be nice to support them all out of the box. Fine
to just test on one in a family like this. If there are more differences
then ignore this feedback!
> +
> + reg:
> + maxItems: 1
> +
> + vdd-supply: true
> +
Where is the irq? Even if a driver doesn't yet support all the
features, the dt binding should describe them if at all possible.
> +required:
> + - compatible
> + - reg
Sashiko correctly points out that devices tend to need vdd-supply to work.
Hence it should be in the required. That's not to say in practice it needs
to be in the dts given the regulator subsystem handling of missing regs
is to fake one on the basis the power is probably always on.
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + i2c {
> + #address-cells = <1>;
> + #size-cells = <0>;
> + pressure@21 {
> + compatible = "sensirion,sdp31";
> + reg = <0x21>;
> + vdd-supply = <&vdd_3v3>;
> + };
> + };
next prev parent reply other threads:[~2026-09-20 0:40 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20260919223854.13437-1-m.abubakar365.ref@yahoo.com>
2026-09-19 22:38 ` [PATCH 0/2] iio: pressure: add Sensirion SDP31 driver Muhammad Abu Bakar
2026-09-19 22:38 ` [PATCH 1/2] dt-bindings: iio: pressure: add Sensirion SDP31 Muhammad Abu Bakar
2026-09-20 0:40 ` Jonathan Cameron [this message]
2026-09-28 20:45 ` Muhammad Abu Bakar
2026-09-19 22:38 ` [PATCH 2/2] iio: pressure: add Sensirion SDP31 driver Muhammad Abu Bakar
2026-09-20 0:53 ` Jonathan Cameron
2026-09-20 0:34 ` [PATCH 0/2] " Jonathan Cameron
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260920014032.2cc3c851@jic23-hlaptop \
--to=jic23@kernel.org \
--cc=andy@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dlechner@baylibre.com \
--cc=krzk+dt@kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=m.abubakar365@yahoo.com \
--cc=nuno.sa@analog.com \
--cc=robh@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®