xref: /linux/Documentation/devicetree/bindings/rtc/epson,rx6110.yaml (revision 2ed2e359dea752e7758d29a423033031a0b96584)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/rtc/epson,rx6110.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Epson RX6110 Real Time Clock
8
9description:
10  The Epson RX6110 can be used with SPI or I2C busses. The kind of bus depends
11  on the SPISEL pin and cannot be configured via software.
12
13maintainers:
14  - Alexandre Belloni <alexandre.belloni@bootlin.com>
15
16allOf:
17  - $ref: rtc.yaml#
18  - $ref: /schemas/spi/spi-peripheral-props.yaml#
19
20properties:
21  compatible:
22    const: epson,rx6110
23
24  reg:
25    maxItems: 1
26
27  spi-cs-high: true
28  spi-cpha: true
29  spi-cpol: true
30
31required:
32  - compatible
33  - reg
34
35dependencies:
36  spi-cs-high: [ spi-cpha, spi-cpol ]
37  spi-cpha: [ spi-cs-high, spi-cpol ]
38  spi-cpol: [ spi-cs-high, spi-cpha ]
39
40unevaluatedProperties: false
41
42examples:
43  # I2C mode
44  - |
45    i2c {
46      #address-cells = <1>;
47      #size-cells = <0>;
48
49      rtc@32 {
50        compatible = "epson,rx6110";
51        reg = <0x32>;
52      };
53    };
54
55  # SPI mode
56  - |
57    spi {
58      #address-cells = <1>;
59      #size-cells = <0>;
60
61      rtc@3 {
62        compatible = "epson,rx6110";
63        reg = <3>;
64        spi-cs-high;
65        spi-cpha;
66        spi-cpol;
67      };
68    };
69