Skip to contentSkip to conversation

dt-bindings: pwm: convert lpc32xx-pwm.txt to yaml format

PATCH Superseded Frank Li 4 participants 4 messages Jun 25, 2025 – Jul 1, 2025

Subsystems (4)
lore
Share & tools
lore

Frank Li

author maintainer
#0 lore raw

PATCH v2 1/1 dt-bindings: pwm: convert lpc32xx-pwm.txt to yaml format

Convert pc32xx-pwm.txt to yaml format.

Additional changes:
- add ref to pwm.yaml
- add clocks
- restrict #pwm-cells to 3

---
change in v2
- allow clocks, there are not clocks for nxp,lpc3220-motor-pwm, so not put into required.

---
 .../devicetree/bindings/pwm/lpc32xx-pwm.txt   | 17 -------
 .../bindings/pwm/nxp,lpc3220-pwm.yaml         | 44 +++++++++++++++++++
 2 files changed, 44 insertions(+), 17 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/pwm/lpc32xx-pwm.txt
 create mode 100644 Documentation/devicetree/bindings/pwm/nxp,lpc3220-pwm.yaml
Documentation/devicetree/bindings/pwm/lpc32xx-pwm.txt deleted +0 -17
deleted file mode 100644
index 74b5bc5dd19ac..0000000000000
@@ -1,17 +0,0 @@
-LPC32XX PWM controller
-
-Required properties:
-- compatible: should be "nxp,lpc3220-pwm"
-- reg: physical base address and length of the controller's registers
-
-Examples:
-
-pwm@4005c000 {
-	compatible = "nxp,lpc3220-pwm";
-	reg = <0x4005c000 0x4>;
-};
-
-pwm@4005c004 {
-	compatible = "nxp,lpc3220-pwm";
-	reg = <0x4005c004 0x4>;
-};
Documentation/devicetree/bindings/pwm/nxp,lpc3220-pwm.yaml new file +44 -0

44 lines not on this page · raw message

Signature · 1 line
2.34.1
maintainer Reviewed-by on v2 1/1
#1 lore raw
Quoted 12 lines · Frank Li

Convert pc32xx-pwm.txt to yaml format.

Additional changes:
- add ref to pwm.yaml
- add clocks
- restrict #pwm-cells to 3

---
change in v2
- allow clocks, there are not clocks for nxp,lpc3220-motor-pwm, so not put into required.

Quoted 7 lines
---
 .../devicetree/bindings/pwm/lpc32xx-pwm.txt   | 17 -------
 .../bindings/pwm/nxp,lpc3220-pwm.yaml         | 44 +++++++++++++++++++
 2 files changed, 44 insertions(+), 17 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/pwm/lpc32xx-pwm.txt
 create mode 100644 Documentation/devicetree/bindings/pwm/nxp,lpc3220-pwm.yaml
#3 lore raw
In reply to Frank Li

Hello Frank,

Quoted 7 lines · Frank Li

Convert pc32xx-pwm.txt to yaml format.

Additional changes:
- add ref to pwm.yaml
- add clocks
- restrict #pwm-cells to 3

Quoted 5 lines

---
change in v2
- allow clocks, there are not clocks for nxp,lpc3220-motor-pwm, so not put into required.

Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/ukleinek/linux.git pwm/for-next with the R-b tags for Rob and Vladimir.

Thanks
Uwe