xref: /freebsd/sys/contrib/device-tree/Bindings/rtc/nxp,pcf2127.yaml (revision 1719886f6d08408b834d270c59ffcfd821c8f63a)
1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/rtc/nxp,pcf2127.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: NXP PCF2127 Real Time Clock
8
9allOf:
10  - $ref: rtc.yaml#
11
12maintainers:
13  - Alexandre Belloni <alexandre.belloni@bootlin.com>
14
15properties:
16  compatible:
17    enum:
18      - nxp,pca2129
19      - nxp,pcf2127
20      - nxp,pcf2129
21
22  reg:
23    maxItems: 1
24
25  interrupts:
26    maxItems: 1
27
28  start-year: true
29
30  reset-source: true
31
32required:
33  - compatible
34  - reg
35
36additionalProperties: false
37
38examples:
39  - |
40    #include <dt-bindings/interrupt-controller/irq.h>
41    i2c {
42        #address-cells = <1>;
43        #size-cells = <0>;
44
45        rtc@51 {
46            compatible = "nxp,pcf2127";
47            reg = <0x51>;
48            pinctrl-0 = <&rtc_nint_pins>;
49            interrupts-extended = <&gpio1 16 IRQ_TYPE_LEVEL_HIGH>;
50            reset-source;
51        };
52    };
53
54...
55