Skip to content

Commit 0416f00

Browse files
AnimeshAgarwal28robherring
authored andcommitted
dt-bindings: watchdog: nxp,lpc1850-wdt: Convert bindings to dtschema
Convert the NXP LPC18xx Watchdog Timer bindings to yaml format. Cc: Daniel Baluta <[email protected]> Signed-off-by: Animesh Agarwal <[email protected]> Reviewed-by: Conor Dooley <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Rob Herring (Arm) <[email protected]>
1 parent 90e0957 commit 0416f00

File tree

2 files changed

+52
-19
lines changed

2 files changed

+52
-19
lines changed

Documentation/devicetree/bindings/watchdog/lpc18xx-wdt.txt

Lines changed: 0 additions & 19 deletions
This file was deleted.
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/watchdog/nxp,lpc1850-wwdt.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: NXP LPC18xx Watchdog Timer (WDT)
8+
9+
maintainers:
10+
- Animesh Agarwal <[email protected]>
11+
12+
properties:
13+
compatible:
14+
const: nxp,lpc1850-wwdt
15+
16+
reg:
17+
maxItems: 1
18+
19+
clocks:
20+
items:
21+
- description: Watchdog counter clock
22+
- description: Register interface clock
23+
24+
clock-names:
25+
items:
26+
- const: wdtclk
27+
- const: reg
28+
29+
interrupts:
30+
maxItems: 1
31+
32+
required:
33+
- compatible
34+
- reg
35+
- clocks
36+
- clock-names
37+
- interrupts
38+
39+
additionalProperties: false
40+
41+
examples:
42+
- |
43+
#include <dt-bindings/clock/lpc18xx-cgu.h>
44+
#include <dt-bindings/clock/lpc18xx-ccu.h>
45+
46+
watchdog@40080000 {
47+
compatible = "nxp,lpc1850-wwdt";
48+
reg = <0x40080000 0x24>;
49+
clocks = <&cgu BASE_SAFE_CLK>, <&ccu1 CLK_CPU_WWDT>;
50+
clock-names = "wdtclk", "reg";
51+
interrupts = <49>;
52+
};

0 commit comments

Comments
 (0)