xref: /linux/Documentation/devicetree/bindings/rtc/intersil,isl12022.yaml (revision 03c11eb3b16dc0058589751dfd91f254be2be613)
1ffc00528SRasmus Villemoes# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2ffc00528SRasmus Villemoes%YAML 1.2
3ffc00528SRasmus Villemoes---
4ffc00528SRasmus Villemoes$id: http://devicetree.org/schemas/rtc/intersil,isl12022.yaml#
5ffc00528SRasmus Villemoes$schema: http://devicetree.org/meta-schemas/core.yaml#
6ffc00528SRasmus Villemoes
7ffc00528SRasmus Villemoestitle: Intersil ISL12022 Real-time Clock
8ffc00528SRasmus Villemoes
9ffc00528SRasmus Villemoesmaintainers:
10ffc00528SRasmus Villemoes  - Alexandre Belloni <alexandre.belloni@bootlin.com>
11ffc00528SRasmus Villemoes
12ffc00528SRasmus Villemoesproperties:
13ffc00528SRasmus Villemoes  compatible:
14ffc00528SRasmus Villemoes    const: isil,isl12022
15ffc00528SRasmus Villemoes
16ffc00528SRasmus Villemoes  reg:
17ffc00528SRasmus Villemoes    maxItems: 1
18ffc00528SRasmus Villemoes
19ffc00528SRasmus Villemoes  interrupts:
20ffc00528SRasmus Villemoes    maxItems: 1
21ffc00528SRasmus Villemoes
22*ab246c89SRasmus Villemoes  '#clock-cells':
23*ab246c89SRasmus Villemoes    const: 0
24*ab246c89SRasmus Villemoes
2569b569c1SRasmus Villemoes  isil,battery-trip-levels-microvolt:
2669b569c1SRasmus Villemoes    description:
2769b569c1SRasmus Villemoes      The battery voltages at which the first alarm and second alarm
2869b569c1SRasmus Villemoes      should trigger (normally ~85% and ~75% of nominal V_BAT).
2969b569c1SRasmus Villemoes    items:
3069b569c1SRasmus Villemoes      - enum: [2125000, 2295000, 2550000, 2805000, 3060000, 4250000, 4675000]
3169b569c1SRasmus Villemoes      - enum: [1875000, 2025000, 2250000, 2475000, 2700000, 3750000, 4125000]
3269b569c1SRasmus Villemoes
33ffc00528SRasmus Villemoesrequired:
34ffc00528SRasmus Villemoes  - compatible
35ffc00528SRasmus Villemoes  - reg
36ffc00528SRasmus Villemoes
37ffc00528SRasmus VillemoesallOf:
38ffc00528SRasmus Villemoes  - $ref: rtc.yaml#
39*ab246c89SRasmus Villemoes  # If #clock-cells is present, interrupts must not be present
40*ab246c89SRasmus Villemoes  - if:
41*ab246c89SRasmus Villemoes      required:
42*ab246c89SRasmus Villemoes        - '#clock-cells'
43*ab246c89SRasmus Villemoes    then:
44*ab246c89SRasmus Villemoes      properties:
45*ab246c89SRasmus Villemoes        interrupts: false
46ffc00528SRasmus Villemoes
47ffc00528SRasmus VillemoesunevaluatedProperties: false
48ffc00528SRasmus Villemoes
49ffc00528SRasmus Villemoesexamples:
50ffc00528SRasmus Villemoes  - |
51ffc00528SRasmus Villemoes    #include <dt-bindings/interrupt-controller/irq.h>
52ffc00528SRasmus Villemoes    i2c {
53ffc00528SRasmus Villemoes        #address-cells = <1>;
54ffc00528SRasmus Villemoes        #size-cells = <0>;
55ffc00528SRasmus Villemoes
56ffc00528SRasmus Villemoes        rtc@6f {
57ffc00528SRasmus Villemoes            compatible = "isil,isl12022";
58ffc00528SRasmus Villemoes            reg = <0x6f>;
59ffc00528SRasmus Villemoes            interrupts-extended = <&gpio1 5 IRQ_TYPE_LEVEL_LOW>;
6069b569c1SRasmus Villemoes            isil,battery-trip-levels-microvolt = <2550000>, <2250000>;
61ffc00528SRasmus Villemoes        };
62ffc00528SRasmus Villemoes    };
63ffc00528SRasmus Villemoes
64ffc00528SRasmus Villemoes...
65