[PATCH v4 1/2] dt-bindings: mfd: st,stmpe: Add missing properties for PWM subnode
Manish Baing
manishbaing2789 at gmail.com
Sat May 23 10:32:50 PDT 2026
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.
Signed-off-by: Manish Baing <manishbaing2789 at gmail.com>
Acked-by: Conor Dooley <conor.dooley at microchip.com>
Acked-by: Uwe Kleine-König <ukleinek at kernel.org>
---
Documentation/devicetree/bindings/mfd/st,stmpe.yaml | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/Documentation/devicetree/bindings/mfd/st,stmpe.yaml b/Documentation/devicetree/bindings/mfd/st,stmpe.yaml
index df43878fbe18..4bb05d544901 100644
--- a/Documentation/devicetree/bindings/mfd/st,stmpe.yaml
+++ b/Documentation/devicetree/bindings/mfd/st,stmpe.yaml
@@ -127,6 +127,10 @@ properties:
"#pwm-cells":
const: 2
+ required:
+ - compatible
+ - "#pwm-cells"
+
touchscreen:
type: object
$ref: /schemas/input/touchscreen/touchscreen.yaml#
--
2.43.0
More information about the linux-arm-kernel
mailing list