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
7title: NXP LPC1788 real-time clock
8
9description:
10  The LPC1788 RTC provides calendar and clock functionality
11  together with periodic tick and alarm interrupt support.
12
13maintainers:
14  - Javier Carrasco <javier.carrasco.cruz@gmail.com>
15
16allOf:
17  - $ref: rtc.yaml#
18
19properties:
20  compatible:
21    oneOf:
22      - items:
23          - enum:
24              - nxp,lpc1850-rtc
25          - const: nxp,lpc1788-rtc
26      - const: nxp,lpc1788-rtc
27
28  reg:
29    maxItems: 1
30
31  clocks:
32    items:
33      - description: RTC clock
34      - description: Register clock
35
36  clock-names:
37    items:
38      - const: rtc
39      - const: reg
40
41  interrupts:
42    maxItems: 1
43
44required:
45  - compatible
46  - reg
47  - clocks
48  - clock-names
49  - interrupts
50
51unevaluatedProperties: false
52
53examples:
54  - |
55    #include <dt-bindings/clock/lpc18xx-ccu.h>
56
57    rtc@40046000 {
58        compatible = "nxp,lpc1788-rtc";
59        reg = <0x40046000 0x1000>;
60        clocks = <&creg_clk 0>, <&ccu1 CLK_CPU_BUS>;
61        clock-names = "rtc", "reg";
62        interrupts = <47>;
63    };
64