* [PATCH] dt-bindings: watchdog: nxp,lpc1850-wdt: Convert bindings to dtschema
@ 2024-08-14 6:12 Animesh Agarwal
2024-08-15 15:26 ` Conor Dooley
2024-09-03 17:14 ` Rob Herring (Arm)
0 siblings, 2 replies; 3+ messages in thread
From: Animesh Agarwal @ 2024-08-14 6:12 UTC (permalink / raw)
Cc: Animesh Agarwal, Daniel Baluta, Wim Van Sebroeck, Guenter Roeck,
Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Vladimir Zapolskiy, linux-watchdog, devicetree, linux-arm-kernel,
linux-kernel
Convert the NXP LPC18xx Watchdog Timer bindings to yaml format.
Cc: Daniel Baluta <daniel.baluta@nxp.com>
Signed-off-by: Animesh Agarwal <animeshagarwal28@gmail.com>
---
.../bindings/watchdog/lpc18xx-wdt.txt | 19 -------
.../bindings/watchdog/nxp,lpc1850-wwdt.yaml | 52 +++++++++++++++++++
2 files changed, 52 insertions(+), 19 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/watchdog/lpc18xx-wdt.txt
create mode 100644 Documentation/devicetree/bindings/watchdog/nxp,lpc1850-wwdt.yaml
diff --git a/Documentation/devicetree/bindings/watchdog/lpc18xx-wdt.txt b/Documentation/devicetree/bindings/watchdog/lpc18xx-wdt.txt
deleted file mode 100644
index 09f6b24969e0..000000000000
--- a/Documentation/devicetree/bindings/watchdog/lpc18xx-wdt.txt
+++ /dev/null
@@ -1,19 +0,0 @@
-* NXP LPC18xx Watchdog Timer (WDT)
-
-Required properties:
-- compatible: Should be "nxp,lpc1850-wwdt"
-- reg: Should contain WDT registers location and length
-- clocks: Must contain an entry for each entry in clock-names.
-- clock-names: Should contain "wdtclk" and "reg"; the watchdog counter
- clock and register interface clock respectively.
-- interrupts: Should contain WDT interrupt
-
-Examples:
-
-watchdog@40080000 {
- compatible = "nxp,lpc1850-wwdt";
- reg = <0x40080000 0x24>;
- clocks = <&cgu BASE_SAFE_CLK>, <&ccu1 CLK_CPU_WWDT>;
- clock-names = "wdtclk", "reg";
- interrupts = <49>;
-};
diff --git a/Documentation/devicetree/bindings/watchdog/nxp,lpc1850-wwdt.yaml b/Documentation/devicetree/bindings/watchdog/nxp,lpc1850-wwdt.yaml
new file mode 100644
index 000000000000..52878fdbe3ad
--- /dev/null
+++ b/Documentation/devicetree/bindings/watchdog/nxp,lpc1850-wwdt.yaml
@@ -0,0 +1,52 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/watchdog/nxp,lpc1850-wwdt.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: NXP LPC18xx Watchdog Timer (WDT)
+
+maintainers:
+ - Animesh Agarwal <animeshagarwal28@gmail.com>
+
+properties:
+ compatible:
+ const: nxp,lpc1850-wwdt
+
+ reg:
+ maxItems: 1
+
+ clocks:
+ items:
+ - description: Watchdog counter clock
+ - description: Register interface clock
+
+ clock-names:
+ items:
+ - const: wdtclk
+ - const: reg
+
+ interrupts:
+ maxItems: 1
+
+required:
+ - compatible
+ - reg
+ - clocks
+ - clock-names
+ - interrupts
+
+additionalProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/clock/lpc18xx-cgu.h>
+ #include <dt-bindings/clock/lpc18xx-ccu.h>
+
+ watchdog@40080000 {
+ compatible = "nxp,lpc1850-wwdt";
+ reg = <0x40080000 0x24>;
+ clocks = <&cgu BASE_SAFE_CLK>, <&ccu1 CLK_CPU_WWDT>;
+ clock-names = "wdtclk", "reg";
+ interrupts = <49>;
+ };
--
2.46.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] dt-bindings: watchdog: nxp,lpc1850-wdt: Convert bindings to dtschema
2024-08-14 6:12 [PATCH] dt-bindings: watchdog: nxp,lpc1850-wdt: Convert bindings to dtschema Animesh Agarwal
@ 2024-08-15 15:26 ` Conor Dooley
2024-09-03 17:14 ` Rob Herring (Arm)
1 sibling, 0 replies; 3+ messages in thread
From: Conor Dooley @ 2024-08-15 15:26 UTC (permalink / raw)
To: Animesh Agarwal
Cc: Daniel Baluta, Wim Van Sebroeck, Guenter Roeck, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Vladimir Zapolskiy,
linux-watchdog, devicetree, linux-arm-kernel, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 303 bytes --]
On Wed, Aug 14, 2024 at 11:42:03AM +0530, Animesh Agarwal wrote:
> Convert the NXP LPC18xx Watchdog Timer bindings to yaml format.
>
> Cc: Daniel Baluta <daniel.baluta@nxp.com>
> Signed-off-by: Animesh Agarwal <animeshagarwal28@gmail.com>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] dt-bindings: watchdog: nxp,lpc1850-wdt: Convert bindings to dtschema
2024-08-14 6:12 [PATCH] dt-bindings: watchdog: nxp,lpc1850-wdt: Convert bindings to dtschema Animesh Agarwal
2024-08-15 15:26 ` Conor Dooley
@ 2024-09-03 17:14 ` Rob Herring (Arm)
1 sibling, 0 replies; 3+ messages in thread
From: Rob Herring (Arm) @ 2024-09-03 17:14 UTC (permalink / raw)
To: Animesh Agarwal
Cc: Guenter Roeck, Krzysztof Kozlowski, linux-arm-kernel,
Vladimir Zapolskiy, Wim Van Sebroeck, Conor Dooley,
linux-watchdog, devicetree, linux-kernel, Daniel Baluta
On Wed, 14 Aug 2024 11:42:03 +0530, Animesh Agarwal wrote:
> Convert the NXP LPC18xx Watchdog Timer bindings to yaml format.
>
> Cc: Daniel Baluta <daniel.baluta@nxp.com>
> Signed-off-by: Animesh Agarwal <animeshagarwal28@gmail.com>
> ---
> .../bindings/watchdog/lpc18xx-wdt.txt | 19 -------
> .../bindings/watchdog/nxp,lpc1850-wwdt.yaml | 52 +++++++++++++++++++
> 2 files changed, 52 insertions(+), 19 deletions(-)
> delete mode 100644 Documentation/devicetree/bindings/watchdog/lpc18xx-wdt.txt
> create mode 100644 Documentation/devicetree/bindings/watchdog/nxp,lpc1850-wwdt.yaml
>
Applied, thanks!
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-09-03 17:14 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-14 6:12 [PATCH] dt-bindings: watchdog: nxp,lpc1850-wdt: Convert bindings to dtschema Animesh Agarwal
2024-08-15 15:26 ` Conor Dooley
2024-09-03 17:14 ` Rob Herring (Arm)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox