Skip to content

Commit 7918a22

Browse files
dt-bindings: rtc: nxp,lpc1788-rtc: convert to dtschema
Convert existing binding to dtschema to support validation. This is a direct conversion with no additions. Reviewed-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Javier Carrasco <[email protected]> Reviewed-by: Rob Herring <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexandre Belloni <[email protected]>
1 parent 971e730 commit 7918a22

File tree

2 files changed

+58
-21
lines changed

2 files changed

+58
-21
lines changed

Documentation/devicetree/bindings/rtc/nxp,lpc1788-rtc.txt

Lines changed: 0 additions & 21 deletions
This file was deleted.
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/rtc/nxp,lpc1788-rtc.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: NXP LPC1788 real-time clock
8+
9+
description:
10+
The LPC1788 RTC provides calendar and clock functionality
11+
together with periodic tick and alarm interrupt support.
12+
13+
maintainers:
14+
- Javier Carrasco <[email protected]>
15+
16+
allOf:
17+
- $ref: rtc.yaml#
18+
19+
properties:
20+
compatible:
21+
const: nxp,lpc1788-rtc
22+
23+
reg:
24+
maxItems: 1
25+
26+
clocks:
27+
items:
28+
- description: RTC clock
29+
- description: Register clock
30+
31+
clock-names:
32+
items:
33+
- const: rtc
34+
- const: reg
35+
36+
interrupts:
37+
maxItems: 1
38+
39+
required:
40+
- compatible
41+
- reg
42+
- clocks
43+
- clock-names
44+
- interrupts
45+
46+
unevaluatedProperties: false
47+
48+
examples:
49+
- |
50+
#include <dt-bindings/clock/lpc18xx-ccu.h>
51+
52+
rtc@40046000 {
53+
compatible = "nxp,lpc1788-rtc";
54+
reg = <0x40046000 0x1000>;
55+
clocks = <&creg_clk 0>, <&ccu1 CLK_CPU_BUS>;
56+
clock-names = "rtc", "reg";
57+
interrupts = <47>;
58+
};

0 commit comments

Comments
 (0)