* [PATCH v2] dt-bindings: watchdog: nxp,pnx4008-wdt: convert txt to yaml
@ 2023-11-06 17:54 Nik Bune
2023-11-06 20:40 ` Krzysztof Kozlowski
0 siblings, 1 reply; 2+ messages in thread
From: Nik Bune @ 2023-11-06 17:54 UTC (permalink / raw)
To: wim, linux, robh+dt, krzysztof.kozlowski+dt, conor+dt, skhan, stigge
Cc: Nik Bune, linux-watchdog, devicetree, linux-kernel
Convert txt file to yaml. Add maintainers from git blame.
Signed-off-by: Nik Bune <n2h9z4@gmail.com>
---
Changes in v2 (according to review comments):
- Put allOf: after maintainers: block.
- Put unevaluatedProperties: after required: block.
- Updated example to use lower-case hex.
v1 patch: https://lore.kernel.org/all/20231104182813.80055-1-n2h9z4@gmail.com/
.../bindings/watchdog/nxp,pnx4008-wdt.yaml | 34 +++++++++++++++++++
.../bindings/watchdog/pnx4008-wdt.txt | 17 ----------
2 files changed, 34 insertions(+), 17 deletions(-)
create mode 100644 Documentation/devicetree/bindings/watchdog/nxp,pnx4008-wdt.yaml
delete mode 100644 Documentation/devicetree/bindings/watchdog/pnx4008-wdt.txt
diff --git a/Documentation/devicetree/bindings/watchdog/nxp,pnx4008-wdt.yaml b/Documentation/devicetree/bindings/watchdog/nxp,pnx4008-wdt.yaml
new file mode 100644
index 000000000000..35ef940cbabe
--- /dev/null
+++ b/Documentation/devicetree/bindings/watchdog/nxp,pnx4008-wdt.yaml
@@ -0,0 +1,34 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/watchdog/nxp,pnx4008-wdt.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: NXP PNX watchdog timer
+
+maintainers:
+ - Roland Stigge <stigge@antcom.de>
+
+allOf:
+ - $ref: watchdog.yaml#
+
+properties:
+ compatible:
+ const: nxp,pnx4008-wdt
+
+ reg:
+ maxItems: 1
+
+required:
+ - compatible
+ - reg
+
+unevaluatedProperties: false
+
+examples:
+ - |
+ watchdog@4003c000 {
+ compatible = "nxp,pnx4008-wdt";
+ reg = <0x4003c000 0x1000>;
+ timeout-sec = <10>;
+ };
diff --git a/Documentation/devicetree/bindings/watchdog/pnx4008-wdt.txt b/Documentation/devicetree/bindings/watchdog/pnx4008-wdt.txt
deleted file mode 100644
index 4b76bec62af9..000000000000
--- a/Documentation/devicetree/bindings/watchdog/pnx4008-wdt.txt
+++ /dev/null
@@ -1,17 +0,0 @@
-* NXP PNX watchdog timer
-
-Required properties:
-- compatible: must be "nxp,pnx4008-wdt"
-- reg: physical base address of the controller and length of memory mapped
- region.
-
-Optional properties:
-- timeout-sec: contains the watchdog timeout in seconds.
-
-Example:
-
- watchdog@4003c000 {
- compatible = "nxp,pnx4008-wdt";
- reg = <0x4003C000 0x1000>;
- timeout-sec = <10>;
- };
--
2.34.1
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH v2] dt-bindings: watchdog: nxp,pnx4008-wdt: convert txt to yaml
2023-11-06 17:54 [PATCH v2] dt-bindings: watchdog: nxp,pnx4008-wdt: convert txt to yaml Nik Bune
@ 2023-11-06 20:40 ` Krzysztof Kozlowski
0 siblings, 0 replies; 2+ messages in thread
From: Krzysztof Kozlowski @ 2023-11-06 20:40 UTC (permalink / raw)
To: Nik Bune, wim, linux, robh+dt, krzysztof.kozlowski+dt, conor+dt,
skhan, stigge
Cc: linux-watchdog, devicetree, linux-kernel
On 06/11/2023 18:54, Nik Bune wrote:
> Convert txt file to yaml. Add maintainers from git blame.
>
> Signed-off-by: Nik Bune <n2h9z4@gmail.com>
> ---
>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-11-06 20:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-06 17:54 [PATCH v2] dt-bindings: watchdog: nxp,pnx4008-wdt: convert txt to yaml Nik Bune
2023-11-06 20:40 ` Krzysztof Kozlowski
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®