* [PATCH v8] dt-bindings: iio: Add Infineon DPS310 sensor documentation
@ 2025-10-06 18:10 Eddie James
2025-10-07 15:57 ` Jonathan Cameron
0 siblings, 1 reply; 2+ messages in thread
From: Eddie James @ 2025-10-06 18:10 UTC (permalink / raw)
To: linux-iio
Cc: devicetree, linux-kernel, conor+dt, krzk+dt, robh, andy, nuno.sa,
dlechner, jic23, eajames
The DPS310 is a barometric pressure and temperature sensor with
an I2C interface. Remove it from trivial-devices.yaml and add its
own documentation, with a hwmon iio channel consumer example.
Signed-off-by: Eddie James <eajames@linux.ibm.com>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
---
Changes since v7:
- Add consumer example and update commit message slightly
.../iio/pressure/infineon,dps310.yaml | 48 +++++++++++++++++++
.../devicetree/bindings/trivial-devices.yaml | 2 -
MAINTAINERS | 1 +
3 files changed, 49 insertions(+), 2 deletions(-)
create mode 100644 Documentation/devicetree/bindings/iio/pressure/infineon,dps310.yaml
diff --git a/Documentation/devicetree/bindings/iio/pressure/infineon,dps310.yaml b/Documentation/devicetree/bindings/iio/pressure/infineon,dps310.yaml
new file mode 100644
index 0000000000000..f35ef2ce74d6f
--- /dev/null
+++ b/Documentation/devicetree/bindings/iio/pressure/infineon,dps310.yaml
@@ -0,0 +1,48 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/iio/pressure/infineon,dps310.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Infineon DPS310 barometric pressure and temperature sensor
+
+maintainers:
+ - Eddie James <eajames@linux.ibm.com>
+
+description:
+ The DPS310 is a barometric pressure and temperature sensor with an I2C
+ interface.
+
+properties:
+ compatible:
+ enum:
+ - infineon,dps310
+
+ reg:
+ maxItems: 1
+
+ "#io-channel-cells":
+ const: 0
+
+required:
+ - compatible
+ - reg
+
+additionalProperties: false
+
+examples:
+ - |
+ iio-hwmon {
+ compatible = "iio-hwmon";
+ io-channels = <&dps 0>;
+ };
+ i2c {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ dps: pressure-sensor@76 {
+ compatible = "infineon,dps310";
+ reg = <0x76>;
+ #io-channel-cells = <0>;
+ };
+ };
diff --git a/Documentation/devicetree/bindings/trivial-devices.yaml b/Documentation/devicetree/bindings/trivial-devices.yaml
index 58ff948d93c96..a76c58f3b1de4 100644
--- a/Documentation/devicetree/bindings/trivial-devices.yaml
+++ b/Documentation/devicetree/bindings/trivial-devices.yaml
@@ -127,8 +127,6 @@ properties:
- ibm,cffps2
# IBM On-Chip Controller hwmon device
- ibm,p8-occ-hwmon
- # Infineon barometric pressure and temperature sensor
- - infineon,dps310
# Infineon IR36021 digital POL buck controller
- infineon,ir36021
# Infineon IRPS5401 Voltage Regulator (PMIC)
diff --git a/MAINTAINERS b/MAINTAINERS
index 3773c74b31d6d..bde80ddb99e9d 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -12217,6 +12217,7 @@ INFINEON DPS310 Driver
M: Eddie James <eajames@linux.ibm.com>
L: linux-iio@vger.kernel.org
S: Maintained
+F: Documentation/devicetree/bindings/iio/pressure/infineon,dps310.yaml
F: drivers/iio/pressure/dps310.c
INFINEON PEB2466 ASoC CODEC
--
2.51.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v8] dt-bindings: iio: Add Infineon DPS310 sensor documentation
2025-10-06 18:10 [PATCH v8] dt-bindings: iio: Add Infineon DPS310 sensor documentation Eddie James
@ 2025-10-07 15:57 ` Jonathan Cameron
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Cameron @ 2025-10-07 15:57 UTC (permalink / raw)
To: Eddie James
Cc: linux-iio, devicetree, linux-kernel, conor+dt, krzk+dt, robh,
andy, nuno.sa, dlechner, jic23
On Mon, 6 Oct 2025 13:10:40 -0500
Eddie James <eajames@linux.ibm.com> wrote:
> The DPS310 is a barometric pressure and temperature sensor with
> an I2C interface. Remove it from trivial-devices.yaml and add its
> own documentation, with a hwmon iio channel consumer example.
>
> Signed-off-by: Eddie James <eajames@linux.ibm.com>
> Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
> ---
> Changes since v7:
> - Add consumer example and update commit message slightly
Ah. Sorry I was unclear on my feedback wrt to this. I was just
looking for a statement in the commit message to say that you were
doing this to allow for consumers such as the iio/hwmon bridge.
I wasn't expecting any change to the example.
+ the supplies as per reply on previous version I just sent.
>
> .../iio/pressure/infineon,dps310.yaml | 48 +++++++++++++++++++
> .../devicetree/bindings/trivial-devices.yaml | 2 -
> MAINTAINERS | 1 +
> 3 files changed, 49 insertions(+), 2 deletions(-)
> create mode 100644 Documentation/devicetree/bindings/iio/pressure/infineon,dps310.yaml
>
> diff --git a/Documentation/devicetree/bindings/iio/pressure/infineon,dps310.yaml b/Documentation/devicetree/bindings/iio/pressure/infineon,dps310.yaml
> new file mode 100644
> index 0000000000000..f35ef2ce74d6f
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/iio/pressure/infineon,dps310.yaml
> @@ -0,0 +1,48 @@
> +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/iio/pressure/infineon,dps310.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Infineon DPS310 barometric pressure and temperature sensor
> +
> +maintainers:
> + - Eddie James <eajames@linux.ibm.com>
> +
> +description:
> + The DPS310 is a barometric pressure and temperature sensor with an I2C
> + interface.
> +
> +properties:
> + compatible:
> + enum:
> + - infineon,dps310
> +
> + reg:
> + maxItems: 1
> +
> + "#io-channel-cells":
> + const: 0
> +
> +required:
> + - compatible
> + - reg
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + iio-hwmon {
> + compatible = "iio-hwmon";
> + io-channels = <&dps 0>;
> + };
> + i2c {
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + dps: pressure-sensor@76 {
> + compatible = "infineon,dps310";
> + reg = <0x76>;
> + #io-channel-cells = <0>;
> + };
> + };
> diff --git a/Documentation/devicetree/bindings/trivial-devices.yaml b/Documentation/devicetree/bindings/trivial-devices.yaml
> index 58ff948d93c96..a76c58f3b1de4 100644
> --- a/Documentation/devicetree/bindings/trivial-devices.yaml
> +++ b/Documentation/devicetree/bindings/trivial-devices.yaml
> @@ -127,8 +127,6 @@ properties:
> - ibm,cffps2
> # IBM On-Chip Controller hwmon device
> - ibm,p8-occ-hwmon
> - # Infineon barometric pressure and temperature sensor
> - - infineon,dps310
> # Infineon IR36021 digital POL buck controller
> - infineon,ir36021
> # Infineon IRPS5401 Voltage Regulator (PMIC)
> diff --git a/MAINTAINERS b/MAINTAINERS
> index 3773c74b31d6d..bde80ddb99e9d 100644
> --- a/MAINTAINERS
> +++ b/MAINTAINERS
> @@ -12217,6 +12217,7 @@ INFINEON DPS310 Driver
> M: Eddie James <eajames@linux.ibm.com>
> L: linux-iio@vger.kernel.org
> S: Maintained
> +F: Documentation/devicetree/bindings/iio/pressure/infineon,dps310.yaml
> F: drivers/iio/pressure/dps310.c
>
> INFINEON PEB2466 ASoC CODEC
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-10-07 15:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-06 18:10 [PATCH v8] dt-bindings: iio: Add Infineon DPS310 sensor documentation Eddie James
2025-10-07 15:57 ` Jonathan Cameron
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).