xref: /freebsd/sys/contrib/device-tree/Bindings/rtc/nxp,lpc1788-rtc.yaml (revision 7d0873ebb83b19ba1e8a89e679470d885efe12e3)
1*7d0873ebSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2*7d0873ebSEmmanuel Vadot%YAML 1.2
3*7d0873ebSEmmanuel Vadot---
4*7d0873ebSEmmanuel Vadot$id: http://devicetree.org/schemas/rtc/nxp,lpc1788-rtc.yaml#
5*7d0873ebSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*7d0873ebSEmmanuel Vadot
7*7d0873ebSEmmanuel Vadottitle: NXP LPC1788 real-time clock
8*7d0873ebSEmmanuel Vadot
9*7d0873ebSEmmanuel Vadotdescription:
10*7d0873ebSEmmanuel Vadot  The LPC1788 RTC provides calendar and clock functionality
11*7d0873ebSEmmanuel Vadot  together with periodic tick and alarm interrupt support.
12*7d0873ebSEmmanuel Vadot
13*7d0873ebSEmmanuel Vadotmaintainers:
14*7d0873ebSEmmanuel Vadot  - Javier Carrasco <javier.carrasco.cruz@gmail.com>
15*7d0873ebSEmmanuel Vadot
16*7d0873ebSEmmanuel VadotallOf:
17*7d0873ebSEmmanuel Vadot  - $ref: rtc.yaml#
18*7d0873ebSEmmanuel Vadot
19*7d0873ebSEmmanuel Vadotproperties:
20*7d0873ebSEmmanuel Vadot  compatible:
21*7d0873ebSEmmanuel Vadot    const: nxp,lpc1788-rtc
22*7d0873ebSEmmanuel Vadot
23*7d0873ebSEmmanuel Vadot  reg:
24*7d0873ebSEmmanuel Vadot    maxItems: 1
25*7d0873ebSEmmanuel Vadot
26*7d0873ebSEmmanuel Vadot  clocks:
27*7d0873ebSEmmanuel Vadot    items:
28*7d0873ebSEmmanuel Vadot      - description: RTC clock
29*7d0873ebSEmmanuel Vadot      - description: Register clock
30*7d0873ebSEmmanuel Vadot
31*7d0873ebSEmmanuel Vadot  clock-names:
32*7d0873ebSEmmanuel Vadot    items:
33*7d0873ebSEmmanuel Vadot      - const: rtc
34*7d0873ebSEmmanuel Vadot      - const: reg
35*7d0873ebSEmmanuel Vadot
36*7d0873ebSEmmanuel Vadot  interrupts:
37*7d0873ebSEmmanuel Vadot    maxItems: 1
38*7d0873ebSEmmanuel Vadot
39*7d0873ebSEmmanuel Vadotrequired:
40*7d0873ebSEmmanuel Vadot  - compatible
41*7d0873ebSEmmanuel Vadot  - reg
42*7d0873ebSEmmanuel Vadot  - clocks
43*7d0873ebSEmmanuel Vadot  - clock-names
44*7d0873ebSEmmanuel Vadot  - interrupts
45*7d0873ebSEmmanuel Vadot
46*7d0873ebSEmmanuel VadotunevaluatedProperties: false
47*7d0873ebSEmmanuel Vadot
48*7d0873ebSEmmanuel Vadotexamples:
49*7d0873ebSEmmanuel Vadot  - |
50*7d0873ebSEmmanuel Vadot    #include <dt-bindings/clock/lpc18xx-ccu.h>
51*7d0873ebSEmmanuel Vadot
52*7d0873ebSEmmanuel Vadot    rtc@40046000 {
53*7d0873ebSEmmanuel Vadot        compatible = "nxp,lpc1788-rtc";
54*7d0873ebSEmmanuel Vadot        reg = <0x40046000 0x1000>;
55*7d0873ebSEmmanuel Vadot        clocks = <&creg_clk 0>, <&ccu1 CLK_CPU_BUS>;
56*7d0873ebSEmmanuel Vadot        clock-names = "rtc", "reg";
57*7d0873ebSEmmanuel Vadot        interrupts = <47>;
58*7d0873ebSEmmanuel Vadot    };
59