xref: /freebsd/sys/contrib/device-tree/Bindings/rtc/nxp,pcf2127.yaml (revision bdd1243df58e60e85101c09001d9812a789b6bc4)
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    const: nxp,pcf2127
18
19  reg:
20    maxItems: 1
21
22  interrupts:
23    maxItems: 1
24
25  start-year: true
26
27  reset-source: true
28
29required:
30  - compatible
31  - reg
32
33additionalProperties: false
34
35examples:
36  - |
37    #include <dt-bindings/interrupt-controller/irq.h>
38    i2c {
39        #address-cells = <1>;
40        #size-cells = <0>;
41
42        rtc@51 {
43            compatible = "nxp,pcf2127";
44            reg = <0x51>;
45            pinctrl-0 = <&rtc_nint_pins>;
46            interrupts-extended = <&gpio1 16 IRQ_TYPE_LEVEL_HIGH>;
47            reset-source;
48        };
49    };
50
51...
52