* [PATCH v2 1/1] dt-bindings: pwm: convert lpc32xx-pwm.txt to yaml format
@ 2025-06-25 16:19 Frank Li
2025-06-27 21:07 ` Rob Herring (Arm)
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Frank Li @ 2025-06-25 16:19 UTC (permalink / raw)
To: Uwe Kleine-König, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Vladimir Zapolskiy, Piotr Wojtaszczyk,
open list:PWM SUBSYSTEM,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
moderated list:ARM/LPC32XX SOC SUPPORT, open list
Cc: imx
Convert pc32xx-pwm.txt to yaml format.
Additional changes:
- add ref to pwm.yaml
- add clocks
- restrict #pwm-cells to 3
Signed-off-by: Frank Li <Frank.Li@nxp.com>
---
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
diff --git a/Documentation/devicetree/bindings/pwm/lpc32xx-pwm.txt b/Documentation/devicetree/bindings/pwm/lpc32xx-pwm.txt
deleted file mode 100644
index 74b5bc5dd19ac..0000000000000
--- a/Documentation/devicetree/bindings/pwm/lpc32xx-pwm.txt
+++ /dev/null
@@ -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>;
-};
diff --git a/Documentation/devicetree/bindings/pwm/nxp,lpc3220-pwm.yaml b/Documentation/devicetree/bindings/pwm/nxp,lpc3220-pwm.yaml
new file mode 100644
index 0000000000000..d8ebb0735c96e
--- /dev/null
+++ b/Documentation/devicetree/bindings/pwm/nxp,lpc3220-pwm.yaml
@@ -0,0 +1,44 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/pwm/nxp,lpc3220-pwm.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: NXP LPC32XX PWM controller
+
+maintainers:
+ - Frank Li <Frank.Li@nxp.com>
+
+properties:
+ compatible:
+ enum:
+ - nxp,lpc3220-pwm
+ - nxp,lpc3220-motor-pwm
+
+ reg:
+ maxItems: 1
+
+ clocks:
+ maxItems: 1
+
+ '#pwm-cells':
+ const: 3
+
+required:
+ - compatible
+ - reg
+ - '#pwm-cells'
+
+allOf:
+ - $ref: pwm.yaml#
+
+unevaluatedProperties: false
+
+examples:
+ - |
+ pwm@4005c000 {
+ compatible = "nxp,lpc3220-pwm";
+ reg = <0x4005c000 0x4>;
+ #pwm-cells = <3>;
+ };
+
--
2.34.1
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH v2 1/1] dt-bindings: pwm: convert lpc32xx-pwm.txt to yaml format
2025-06-25 16:19 [PATCH v2 1/1] dt-bindings: pwm: convert lpc32xx-pwm.txt to yaml format Frank Li
@ 2025-06-27 21:07 ` Rob Herring (Arm)
2025-06-28 1:06 ` Vladimir Zapolskiy
2025-07-01 9:30 ` Uwe Kleine-König
2 siblings, 0 replies; 4+ messages in thread
From: Rob Herring (Arm) @ 2025-06-27 21:07 UTC (permalink / raw)
To: Frank Li
Cc: Vladimir Zapolskiy, devicetree, linux-kernel, Conor Dooley,
linux-pwm, imx, Uwe Kleine-König, Piotr Wojtaszczyk,
linux-arm-kernel, Krzysztof Kozlowski
On Wed, 25 Jun 2025 12:19:08 -0400, Frank Li wrote:
> Convert pc32xx-pwm.txt to yaml format.
>
> Additional changes:
> - add ref to pwm.yaml
> - add clocks
> - restrict #pwm-cells to 3
>
> Signed-off-by: Frank Li <Frank.Li@nxp.com>
> ---
> 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
>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2 1/1] dt-bindings: pwm: convert lpc32xx-pwm.txt to yaml format
2025-06-25 16:19 [PATCH v2 1/1] dt-bindings: pwm: convert lpc32xx-pwm.txt to yaml format Frank Li
2025-06-27 21:07 ` Rob Herring (Arm)
@ 2025-06-28 1:06 ` Vladimir Zapolskiy
2025-07-01 9:30 ` Uwe Kleine-König
2 siblings, 0 replies; 4+ messages in thread
From: Vladimir Zapolskiy @ 2025-06-28 1:06 UTC (permalink / raw)
To: Frank Li, Uwe Kleine-König, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Piotr Wojtaszczyk,
open list:PWM SUBSYSTEM,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
moderated list:ARM/LPC32XX SOC SUPPORT, open list
Cc: imx
On 6/25/25 19:19, Frank Li wrote:
> Convert pc32xx-pwm.txt to yaml format.
>
> Additional changes:
> - add ref to pwm.yaml
> - add clocks
> - restrict #pwm-cells to 3
>
> Signed-off-by: Frank Li <Frank.Li@nxp.com>
Reviewed-by: Vladimir Zapolskiy <vz@mleia.com>
--
Best wishes,
Vladimir
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2 1/1] dt-bindings: pwm: convert lpc32xx-pwm.txt to yaml format
2025-06-25 16:19 [PATCH v2 1/1] dt-bindings: pwm: convert lpc32xx-pwm.txt to yaml format Frank Li
2025-06-27 21:07 ` Rob Herring (Arm)
2025-06-28 1:06 ` Vladimir Zapolskiy
@ 2025-07-01 9:30 ` Uwe Kleine-König
2 siblings, 0 replies; 4+ messages in thread
From: Uwe Kleine-König @ 2025-07-01 9:30 UTC (permalink / raw)
To: Frank Li
Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Vladimir Zapolskiy, Piotr Wojtaszczyk, open list:PWM SUBSYSTEM,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
moderated list:ARM/LPC32XX SOC SUPPORT, open list, imx
[-- Attachment #1: Type: text/plain, Size: 535 bytes --]
Hello Frank,
On Wed, Jun 25, 2025 at 12:19:08PM -0400, Frank Li wrote:
> Convert pc32xx-pwm.txt to yaml format.
>
> Additional changes:
> - add ref to pwm.yaml
> - add clocks
> - restrict #pwm-cells to 3
>
> Signed-off-by: Frank Li <Frank.Li@nxp.com>
> ---
> 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
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-07-01 9:30 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-06-25 16:19 [PATCH v2 1/1] dt-bindings: pwm: convert lpc32xx-pwm.txt to yaml format Frank Li
2025-06-27 21:07 ` Rob Herring (Arm)
2025-06-28 1:06 ` Vladimir Zapolskiy
2025-07-01 9:30 ` Uwe Kleine-König
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®