Skip to contentSkip to conversation

dt-bindings: iio: pressure: Remove vdd-supply and vddio-supply from required list

PATCH In review Frank Li 4 participants 4 messages Oct 22, 2025 – Oct 23, 2025

Subsystems (3)
lore
Share & tools
lore

Frank Li

author maintainer
#0 lore raw

PATCH 1/1 dt-bindings: iio: pressure: Remove vdd-supply and vddio-supply from required list

Some board designs connect vdd and vddio to the system power supply. Remove these properties from the required list and make them optional, since drivers/iio/pressure/mpl3115.c does not use them.

Fix below CHECK_DTBS warnings:
arch/arm64/boot/dts/freescale/imx8qm-mek.dtb: pressure-sensor@60 (fsl,mpl3115): 'vdd-supply' is a required property
from schema $id: http://devicetree.org/schemas/iio/pressure/fsl,mpl3115.yaml#

---
 Documentation/devicetree/bindings/iio/pressure/fsl,mpl3115.yaml | 2 --
 1 file changed, 2 deletions(-)
Documentation/devicetree/bindings/iio/pressure/fsl,mpl3115.yaml +0 -2
index 2933c2e10695e..04703a01cf7af 100644
@@ -47,8 +47,6 @@ properties:
 required:
   - compatible
   - reg
-  - vdd-supply
-  - vddio-supply
 
 additionalProperties: false
 
Signature · 1 line
2.34.1
#1 lore raw
Quoted 3 lines · Frank Li

Some board designs connect vdd and vddio to the system power supply. Remove these properties from the required list and make them optional, since drivers/iio/pressure/mpl3115.c does not use them.

That just reads as if the supplies are still required, just the source of the power has changed.

Quoted 26 lines

Fix below CHECK_DTBS warnings:
arch/arm64/boot/dts/freescale/imx8qm-mek.dtb: pressure-sensor@60 (fsl,mpl3115): 'vdd-supply' is a required property
from schema $id: http://devicetree.org/schemas/iio/pressure/fsl,mpl3115.yaml#

---
 Documentation/devicetree/bindings/iio/pressure/fsl,mpl3115.yaml | 2 --
 1 file changed, 2 deletions(-)
Documentation/devicetree/bindings/iio/pressure/fsl,mpl3115.yaml +0 -2
index 2933c2e10695e..04703a01cf7af 100644
@@ -47,8 +47,6 @@ properties:
 required:
   - compatible
   - reg
-  - vdd-supply
-  - vddio-supply
 
 additionalProperties: false
 
Signature · 1 line
2.34.1
reviewer
#2 lore raw
In reply to Frank Li
Quoted 8 lines · Frank Li

Some board designs connect vdd and vddio to the system power supply. Remove these properties from the required list and make them optional, since drivers/iio/pressure/mpl3115.c does not use them.

Fix below CHECK_DTBS warnings:
arch/arm64/boot/dts/freescale/imx8qm-mek.dtb: pressure-sensor@60 (fsl,mpl3115): 'vdd-supply' is a required property
from schema $id: http://devicetree.org/schemas/iio/pressure/fsl,mpl3115.yaml#

Why not just add the required properties to the .dts file?

Quoted 18 lines
---
 Documentation/devicetree/bindings/iio/pressure/fsl,mpl3115.yaml | 2 --
 1 file changed, 2 deletions(-)
Documentation/devicetree/bindings/iio/pressure/fsl,mpl3115.yaml +0 -2
index 2933c2e10695e..04703a01cf7af 100644
@@ -47,8 +47,6 @@ properties:
 required:
   - compatible
   - reg
-  - vdd-supply
-  - vddio-supply
 
 additionalProperties: false
 
#3 lore raw
Quoted 11 lines · On Wed, 22 Oct 2025 12:03:27 -0500 David Lechner <[email protected]> wrote:
Quoted 8 lines · Frank Li

Some board designs connect vdd and vddio to the system power supply. Remove these properties from the required list and make them optional, since drivers/iio/pressure/mpl3115.c does not use them.

Fix below CHECK_DTBS warnings:
arch/arm64/boot/dts/freescale/imx8qm-mek.dtb: pressure-sensor@60 (fsl,mpl3115): 'vdd-supply' is a required property
from schema $id: http://devicetree.org/schemas/iio/pressure/fsl,mpl3115.yaml#

Why not just add the required properties to the .dts file?

That would be the ideal.

We had a long discussion a few years back around whether supplies like this should be optional or not in dt-bindings. Conclusion (I think at Mark Brown's suggestion) was that the rule should be if power is needed for the chip to function they aren't optional in DT.

The driver doesn't necessarily do anything with them, though it probably should and adding simple support is trivial.

In a given downstream dts if people are happy to have the checks fail then fallback regulators can be used but the binding shouldn't reflect that bit of papering over missing supplies.

So no to this change.

Jonathan

Quoted 21 lines
Quoted 19 lines
---
 Documentation/devicetree/bindings/iio/pressure/fsl,mpl3115.yaml | 2 --
 1 file changed, 2 deletions(-)
Documentation/devicetree/bindings/iio/pressure/fsl,mpl3115.yaml +0 -2
index 2933c2e10695e..04703a01cf7af 100644
@@ -47,8 +47,6 @@ properties:
 required:
   - compatible
   - reg
-  - vdd-supply
-  - vddio-supply
 
 additionalProperties: false