dt-bindings: watchdog: nxp,pnx4008-wdt: convert txt to yaml
Subsystems (2)
PATCH v2 1/1 dt-bindings: watchdog: nxp,pnx4008-wdt: convert txt to yaml
Convert txt file to yaml. Add maintainers from git blame.
Signed-off-by Nik Bune <[email protected]>
---
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/[email protected]/
.../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
Documentation/devicetree/bindings/watchdog/nxp,pnx4008-wdt.yaml new file +34 -0
@@ -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 <[email protected]> + +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>; + };
Documentation/devicetree/bindings/watchdog/pnx4008-wdt.txt deleted +0 -17
@@ -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>; - };
Signature · 1 line
2.34.1
Quoted 5 lines · Nik Bune
Convert txt file to yaml. Add maintainers from git blame.
Signed-off-by Nik Bune <[email protected]>---
Reviewed-by Krzysztof Kozlowski <[email protected]>
Best regards,
Krzysztof