dt-bindings: iio: Add Infineon DPS310 sensor documentation
Subsystems (3)
Eddie James
maintainerPATCH v8 1/1 dt-bindings: iio: Add Infineon DPS310 sensor documentation
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.
---
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
Documentation/devicetree/bindings/iio/pressure/infineon,dps310.yaml new file +48 -0
@@ -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 <[email protected]> + +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>; + }; + };
Documentation/devicetree/bindings/trivial-devices.yaml +0 -2
@@ -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)
MAINTAINERS +1 -0
@@ -12217,6 +12217,7 @@ INFINEON DPS310 Driver M: Eddie James <[email protected]> L: [email protected] S: Maintained +F: Documentation/devicetree/bindings/iio/pressure/infineon,dps310.yaml F: drivers/iio/pressure/dps310.c INFINEON PEB2466 ASoC CODEC
Signature · 1 line
2.51.0
Quoted 9 lines · On Mon, 6 Oct 2025 13:10:40 -0500 Eddie James <[email protected]> wrote:
The DPS310 is a barometric pressure and temperature sensor with an I2C interface. Remove it from
trivial-devices.yamland add its own documentation, with a hwmon iio channel consumer example.Signed-off-by Eddie James <[email protected]>Reviewed-by Rob Herring (Arm) <[email protected]>---
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.
Quoted 86 lines
.../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.yamlDocumentation/devicetree/bindings/iio/pressure/infineon,dps310.yaml new file +48
-0@@ -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 <[email protected]> + +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>; + }; + };Documentation/devicetree/bindings/trivial-devices.yaml +0
-2@@ -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)MAINTAINERS +1
-0@@ -12217,6 +12217,7 @@ INFINEON DPS310 Driver M: Eddie James <[email protected]> L: [email protected] S: Maintained +F: Documentation/devicetree/bindings/iio/pressure/infineon,dps310.yaml F: drivers/iio/pressure/dps310.c INFINEON PEB2466 ASoC CODEC