dt-bindings: mfd: st,stmpe: fix PWM schema and drop legacy binding
Subsystems (4)
PATCH v3 1/1 dt-bindings: mfd: st,stmpe: fix PWM schema and drop legacy binding
The st,stmpe-pwm binding is already covered by the MFD schema in Documentation/devicetree/bindings/mfd/st,stmpe.yaml. However, the PWM subnode was missing a 'required' properties block. This allowed Device Tree nodes to pass validation even if the 'compatible' string was omitted. This omission could lead to probe failures at runtime.
Fix the schema by adding the missing 'required' block and remove the obsolete and redundant text binding file.
---
Changes in v3:
- Added 'required' properties to the pwm subnode in st,stmpe.yaml to close a validation gap identified by the Sashiko.
- Updated commit message and description to reflect MFD subsystem changes.
Changes in v2:
- Droppped the TXT file instead of converting to YAML, as the functionality is already covered by st,stmpe.yaml.
.../devicetree/bindings/mfd/st,stmpe.yaml | 4 ++++ .../devicetree/bindings/pwm/st,stmpe-pwm.txt | 18 ------------------ 2 files changed, 4 insertions(+), 18 deletions(-) delete mode 100644 Documentation/devicetree/bindings/pwm/st,stmpe-pwm.txt
Documentation/devicetree/bindings/mfd/st,stmpe.yaml +4 -0
@@ -127,6 +127,10 @@ properties: "#pwm-cells": const: 2 + required: + - compatible + - "#pwm-cells" + touchscreen: type: object $ref: /schemas/input/touchscreen/touchscreen.yaml#
Documentation/devicetree/bindings/pwm/st,stmpe-pwm.txt deleted +0 -18
@@ -1,18 +0,0 @@ -== ST STMPE PWM controller == - -This is a PWM block embedded in the ST Microelectronics STMPE -(ST Multi-Purpose Expander) chips. The PWM is registered as a -subdevices of the STMPE MFD device. - -Required properties: -- compatible: should be: - - "st,stmpe-pwm" -- #pwm-cells: should be 2. See pwm.yaml in this directory for a description of - the cells format. - -Example: - -pwm0: pwm { - compatible = "st,stmpe-pwm"; - #pwm-cells = <2>; -};
Signature · 1 line
2.43.0
pw-bot: not-applicable
Quoted 11 lines · Manish Baing
The st,stmpe-pwm binding is already covered by the MFD schema in
Documentation/devicetree/bindings/mfd/st,stmpe.yaml. However, the PWM subnode was missing a 'required' properties block. This allowed Device Tree nodes to pass validation even if the 'compatible' string was omitted. This omission could lead to probe failures at runtime.Fix the schema by adding the missing 'required' block and remove the obsolete and redundant text binding file.
Signed-off-by Manish Baing <[email protected]>
Lee: If you want to apply that patch, that's fine for me (take my
for that). If I should take it, I'm happily taking your's :-)
Best regards
Uwe
Uwe Kleine-König
maintainerHello,
Quoted 17 lines · Manish Baing
The st,stmpe-pwm binding is already covered by the MFD schema in
Documentation/devicetree/bindings/mfd/st,stmpe.yaml. However, the PWM subnode was missing a 'required' properties block. This allowed Device Tree nodes to pass validation even if the 'compatible' string was omitted. This omission could lead to probe failures at runtime.Fix the schema by adding the missing 'required' block and remove the obsolete and redundant text binding file.
Signed-off-by Manish Baing <[email protected]>---
Changes in v3:
- Added 'required' properties to the pwm subnode in st,stmpe.yaml to close a validation gap identified by the Sashiko.
- Updated commit message and description to reflect MFD subsystem changes.
Quoted 6 lines
Changes in v2:
- Droppped the TXT file instead of converting to YAML, as the functionality is already covered by st,stmpe.yaml..../devicetree/bindings/mfd/st,stmpe.yaml | 4 ++++ .../devicetree/bindings/pwm/st,stmpe-pwm.txt | 18 ------------------
If the patch was split into two, each touching just one of the files, there would be no need for merge coordination. Also logically it's two patches. Would you mind splitting?
Best regards
Uwe
Hi Uwe,
Quoted 3 lines
If the patch was split into two, each touching just one of the files, there would be no need for merge coordination. Also logically it's two patches. Would you mind splitting?
That makes perfect sense. I will split this into a two-patch series (one for the MFD YAML fix and one for the PWM TXT deletion) and submit it shortly as v4.
Thanks for the feedback!
Thanks and Regards,
Manish
Quoted 34 lines · Uwe Kleine-König
Hello,
Quoted 17 lines · Manish Baing
The st,stmpe-pwm binding is already covered by the MFD schema in
Documentation/devicetree/bindings/mfd/st,stmpe.yaml. However, the PWM subnode was missing a 'required' properties block. This allowed Device Tree nodes to pass validation even if the 'compatible' string was omitted. This omission could lead to probe failures at runtime.Fix the schema by adding the missing 'required' block and remove the obsolete and redundant text binding file.
Signed-off-by Manish Baing <[email protected]>---
Changes in v3:
- Added 'required' properties to the pwm subnode in st,stmpe.yaml to close a validation gap identified by the Sashiko.
- Updated commit message and description to reflect MFD subsystem changes.Quoted 6 lines
Changes in v2:
- Droppped the TXT file instead of converting to YAML, as the functionality is already covered by st,stmpe.yaml..../devicetree/bindings/mfd/st,stmpe.yaml | 4 ++++ .../devicetree/bindings/pwm/st,stmpe-pwm.txt | 18 ------------------If the patch was split into two, each touching just one of the files, there would be no need for merge coordination. Also logically it's two patches. Would you mind splitting?
Best regards
Uwe