dt-bindings: mfd/pwm: Split st,stmpe cleanup into separate patches
Subsystems (4)
v4 cover dt-bindings: mfd/pwm: Split st,stmpe cleanup into separate patches
Hello,
This series splits the previous single patch into two distinct changes to avoid cross-subsystem merge coordination, as requested by Uwe.
The first patch addresses a validation gap in the MFD YAML schema, and the second patch drops the redundant legacy PWM text binding.
Changes in v4:
- Split single patch into a 2-patch series based on feedback from Uwe Kleine-König to prevent cross-subsystem merge conflicts.
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:
- Drop the TXT file instead of converting to YAML, as the functionality is already covered by st,stmpe.yaml.
- Update the commit subject and description to reflect the drop.
Manish Baing (2):
dt-bindings: mfd: st,stmpe: Add missing properties for PWM subnode
dt-bindings: pwm: stmpe: drop legacy binding
.../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
Signature · 1 line
2.43.0
PATCH v4 1/2 dt-bindings: mfd: st,stmpe: Add missing properties for PWM subnode
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.
--- Documentation/devicetree/bindings/mfd/st,stmpe.yaml | 4 ++++ 1 file changed, 4 insertions(+)
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#
Signature · 1 line
2.43.0
Re: [PATCH v4 1/2] dt-bindings: mfd: st,stmpe: Add missing properties for PWM subnode
Quoted 7 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.
Quoted 5 lines
Fix the schema by adding the missing 'required' block.
Signed-off-by Manish Baing <[email protected]>Acked-by Conor Dooley <[email protected]>Acked-by Uwe Kleine-König <[email protected]>
Yours,
Linus Walleij
Re: (subset) [PATCH v4 1/2] dt-bindings: mfd: st,stmpe: Add missing properties for PWM subnode
In reply to Manish BaingQuoted 8 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.[...]
Applied, thanks!
[1/2] dt-bindings: mfd: st,stmpe: Add missing properties for PWM subnode
commit: b07f7904e0523170856876e4412be852377d492a
--
Lee Jones [李琼斯]
PATCH v4 2/2 dt-bindings: pwm: stmpe: drop legacy binding
In reply to Manish BaingThe st,stmpe-pwm binding is already covered by the MFD schema Documentation/devicetree/bindings/mfd/st,stmpe.yaml. Remove the obsolete and redundant text binding file.
--- .../devicetree/bindings/pwm/st,stmpe-pwm.txt | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 Documentation/devicetree/bindings/pwm/st,stmpe-pwm.txt
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
Uwe Kleine-König
maintainerRe: [PATCH v4 2/2] dt-bindings: pwm: stmpe: drop legacy binding
Quoted 7 lines · Manish Baing
The st,stmpe-pwm binding is already covered by the MFD schema
Documentation/devicetree/bindings/mfd/st,stmpe.yaml. Remove the obsolete and redundant text binding file.Signed-off-by Manish Baing <[email protected]>Acked-by Conor Dooley <[email protected]>Reviewed-by Uwe Kleine-König <[email protected]>
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/ukleinek/linux.git pwm/for-next with Rob's ack from v2.
Best regards
Uwe