Skip to contentSkip to conversation

dt-bindings: pwm: convert lpc1850-sct-pwm.txt to yaml format

PATCH In review Frank Li 4 participants 4 messages Jun 2, 2025 – Jun 16, 2025

Subsystems (3)
lore
Share & tools
lore

Frank Li

author maintainer
#0 lore raw

PATCH 1/1 dt-bindings: pwm: convert lpc1850-sct-pwm.txt to yaml format

Convert lpc1850-sct-pwm.txt to yaml format.

Additional changes:
- add ref pwm.yaml.
- add resets property to match existed dts.

---
 .../bindings/pwm/lpc1850-sct-pwm.txt          | 20 --------
 .../bindings/pwm/nxp,lpc1850-sct-pwm.yaml     | 51 +++++++++++++++++++
 2 files changed, 51 insertions(+), 20 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/pwm/lpc1850-sct-pwm.txt
 create mode 100644 Documentation/devicetree/bindings/pwm/nxp,lpc1850-sct-pwm.yaml
Documentation/devicetree/bindings/pwm/lpc1850-sct-pwm.txt deleted +0 -20
deleted file mode 100644
index 43d9f4f08a2e2..0000000000000
@@ -1,20 +0,0 @@
-* NXP LPC18xx State Configurable Timer - Pulse Width Modulator driver
-
-Required properties:
-  - compatible: Should be "nxp,lpc1850-sct-pwm"
-  - reg: Should contain physical base address and length of pwm registers.
-  - clocks: Must contain an entry for each entry in clock-names.
-    See ../clock/clock-bindings.txt for details.
-  - clock-names: Must include the following entries.
-    - pwm: PWM operating clock.
-  - #pwm-cells: Should be 3. See pwm.yaml in this directory for the description
-    of the cells format.
-
-Example:
-  pwm: pwm@40000000 {
-    compatible = "nxp,lpc1850-sct-pwm";
-    reg = <0x40000000 0x1000>;
-    clocks =<&ccu1 CLK_CPU_SCT>;
-    clock-names = "pwm";
-    #pwm-cells = <3>;
-  };
Documentation/devicetree/bindings/pwm/nxp,lpc1850-sct-pwm.yaml new file +51 -0

51 lines not on this page · raw message

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

Convert lpc1850-sct-pwm.txt to yaml format.

Additional changes:
- add ref pwm.yaml.
- add resets property to match existed dts.

Quoted 8 lines
---
 .../bindings/pwm/lpc1850-sct-pwm.txt          | 20 --------
 .../bindings/pwm/nxp,lpc1850-sct-pwm.yaml     | 51 +++++++++++++++++++
 2 files changed, 51 insertions(+), 20 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/pwm/lpc1850-sct-pwm.txt
 create mode 100644 Documentation/devicetree/bindings/pwm/nxp,lpc1850-sct-pwm.yaml
#2 lore raw
In reply to Frank Li

Hello Frank,

Quoted 6 lines · Frank Li
Documentation/devicetree/bindings/pwm/nxp,lpc1850-sct-pwm.yaml new file +6 -0
+properties:
+  compatible:
+    const: nxp,lpc1850-sct-pwm
+
+  reg:
+    maxItems: 1

Documentation/devicetree/bindings/pwm/nxp,lpc1850-sct-pwm.yaml line 27

Quoted 10 lines
Documentation/devicetree/bindings/pwm/nxp,lpc1850-sct-pwm.yaml new file +10 -0
+
+  clocks:
+    maxItems: 1
+
+  clock-names:
+    items:
+      - const: pwm
+
+  resets:
+    maxItems: 1

Please add:

'#pwm-cells':
const: 3

Otherwise looks fine.

Best regards
Uwe

Reviewed-by
#3 lore raw
Quoted 22 lines · Uwe Kleine-König

Hello Frank,

Quoted 6 lines · Frank Li
Documentation/devicetree/bindings/pwm/nxp,lpc1850-sct-pwm.yaml new file +6 -0
+properties:
+  compatible:
+    const: nxp,lpc1850-sct-pwm
+
+  reg:
+    maxItems: 1

Documentation/devicetree/bindings/pwm/nxp,lpc1850-sct-pwm.yaml line 27

Quoted 10 lines
Documentation/devicetree/bindings/pwm/nxp,lpc1850-sct-pwm.yaml new file +10 -0
+
+  clocks:
+    maxItems: 1
+
+  clock-names:
+    items:
+      - const: pwm
+
+  resets:
+    maxItems: 1

Please add:

Quoted 5 lines
   '#pwm-cells':
     const: 3

Otherwise looks fine.

With the requested change applied, please add

--
Best wishes,
Vladimir