Skip to content

Commit

Permalink
dt-bindings: watchdog: nxp,lpc1850-wdt: Convert bindings to dtschema
Browse files Browse the repository at this point in the history
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>
Link: https://lore.kernel.org/r/20240814061210.56213-1-animeshagarwal28@gmail.com
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
  • Loading branch information
Animesh Agarwal authored and Rob Herring (Arm) committed Sep 5, 2024
1 parent 90e0957 commit 0416f00
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 19 deletions.
19 changes: 0 additions & 19 deletions Documentation/devicetree/bindings/watchdog/lpc18xx-wdt.txt

This file was deleted.

52 changes: 52 additions & 0 deletions Documentation/devicetree/bindings/watchdog/nxp,lpc1850-wwdt.yaml
Original file line number Diff line number Diff line change
@@ -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>;
};

0 comments on commit 0416f00

Please sign in to comment.