xref: /freebsd/sys/contrib/device-tree/Bindings/rtc/nxp,pcf2123.yaml (revision 6580f5c38dd5b01aeeaed16b370f1a12423437f0)
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,pcf2123.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: NXP PCF2123 SPI Real Time Clock
8
9maintainers:
10  - Javier Carrasco <javier.carrasco.cruz@gmail.com>
11
12allOf:
13  - $ref: /schemas/spi/spi-peripheral-props.yaml#
14  - $ref: rtc.yaml#
15
16properties:
17  compatible:
18    enum:
19      - nxp,pcf2123
20
21  reg:
22    maxItems: 1
23
24  interrupts:
25    maxItems: 1
26
27required:
28  - compatible
29  - reg
30
31unevaluatedProperties: false
32
33examples:
34  - |
35    #include <dt-bindings/interrupt-controller/arm-gic.h>
36    spi {
37        #address-cells = <1>;
38        #size-cells = <0>;
39
40        rtc@3 {
41            compatible = "nxp,pcf2123";
42            reg = <3>;
43            interrupts = <GIC_SPI 130 IRQ_TYPE_LEVEL_LOW>;
44            spi-cs-high;
45        };
46    };
47...
48