* [PATCH] dt-bindings: pwm: stmpe: convert to DT schema
@ 2026-05-01 7:33 Manish Baing
2026-05-04 10:28 ` Krzysztof Kozlowski
0 siblings, 1 reply; 2+ messages in thread
From: Manish Baing @ 2026-05-01 7:33 UTC (permalink / raw)
To: ukleinek, thierry.reding, linusw, robh, krzk+dt, conor+dt
Cc: mcoquelin.stm32, alexandre.torgue, linux-pwm, devicetree,
linux-stm32, linux-arm-kernel, linux-kernel, manishbaing2789
Convert the STMicroelectronics STMPE PWM controller bindings
from text format to YAML schema.
Signed-off-by: Manish Baing <manishbaing2789@gmail.com>
---
.../devicetree/bindings/pwm/st,stmpe-pwm.txt | 18 --------
.../devicetree/bindings/pwm/st,stmpe-pwm.yaml | 41 +++++++++++++++++++
2 files changed, 41 insertions(+), 18 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/pwm/st,stmpe-pwm.txt
create mode 100644 Documentation/devicetree/bindings/pwm/st,stmpe-pwm.yaml
diff --git a/Documentation/devicetree/bindings/pwm/st,stmpe-pwm.txt b/Documentation/devicetree/bindings/pwm/st,stmpe-pwm.txt
deleted file mode 100644
index f401316e0248..000000000000
--- a/Documentation/devicetree/bindings/pwm/st,stmpe-pwm.txt
+++ /dev/null
@@ -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>;
-};
diff --git a/Documentation/devicetree/bindings/pwm/st,stmpe-pwm.yaml b/Documentation/devicetree/bindings/pwm/st,stmpe-pwm.yaml
new file mode 100644
index 000000000000..4d5b43c9e7fa
--- /dev/null
+++ b/Documentation/devicetree/bindings/pwm/st,stmpe-pwm.yaml
@@ -0,0 +1,41 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/pwm/st,stmpe-pwm.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: STMicroelectronics STMPE PWM controller
+
+maintainers:
+ - Linus Walleij <linus.walleij@linaro.org>
+ - Thierry Reding <thierry.reding@gmail.com>
+
+description:
+ This is a PWM block embedded in the STMicroelectronics STMPE
+ (ST Multi-Purpose Expander) chips. The PWM is registered as a
+ subdevice of the STMPE MFD device.
+
+allOf:
+ - $ref: pwm.yaml#
+
+properties:
+ compatible:
+ const: st,stmpe-pwm
+
+ "#pwm-cells":
+ const: 2
+
+required:
+ - compatible
+ - "#pwm-cells"
+
+additionalProperties: false
+
+examples:
+ - |
+ stmpe {
+ pwm {
+ compatible = "st,stmpe-pwm";
+ #pwm-cells = <2>;
+ };
+ };
--
2.43.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] dt-bindings: pwm: stmpe: convert to DT schema
2026-05-01 7:33 [PATCH] dt-bindings: pwm: stmpe: convert to DT schema Manish Baing
@ 2026-05-04 10:28 ` Krzysztof Kozlowski
0 siblings, 0 replies; 2+ messages in thread
From: Krzysztof Kozlowski @ 2026-05-04 10:28 UTC (permalink / raw)
To: Manish Baing
Cc: ukleinek, thierry.reding, linusw, robh, krzk+dt, conor+dt,
mcoquelin.stm32, alexandre.torgue, linux-pwm, devicetree,
linux-stm32, linux-arm-kernel, linux-kernel
On Fri, May 01, 2026 at 07:33:05AM +0000, Manish Baing wrote:
> Convert the STMicroelectronics STMPE PWM controller bindings
> from text format to YAML schema.
>
> Signed-off-by: Manish Baing <manishbaing2789@gmail.com>
> ---
> .../devicetree/bindings/pwm/st,stmpe-pwm.txt | 18 --------
It is already covered by st,stmpe.yaml, which you were supposed to find
with git grep.
Instead, drop the TXT file.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-05-04 10:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-01 7:33 [PATCH] dt-bindings: pwm: stmpe: convert to DT schema Manish Baing
2026-05-04 10:28 ` Krzysztof Kozlowski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox