brintos

brintos / linux-shallow public Read only

0
0
Text · 2.2 KiB · 355b059 Raw
99 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/rtc/abracon,abx80x.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Abracon ABX80X I2C ultra low power RTC/Alarm chip8 9maintainers:10  - linux-rtc@vger.kernel.org11 12properties:13  compatible:14    description:15      The wildcard 'abracon,abx80x' may be used to support a mix16      of different abracon rtc`s. In this case the driver17      must perform auto-detection from ID register.18    enum:19      - abracon,abx80x20      - abracon,ab080121      - abracon,ab080322      - abracon,ab080423      - abracon,ab080524      - abracon,ab180125      - abracon,ab180326      - abracon,ab180427      - abracon,ab180528      - microcrystal,rv180529 30  reg:31    maxItems: 132 33  interrupts:34    maxItems: 135 36  abracon,tc-diode:37    description:38      Trickle-charge diode type.39      Required to enable charging backup battery.40 41      Supported are 'standard' diodes with a 0.6V drop42      and 'schottky' diodes with a 0.3V drop.43    $ref: /schemas/types.yaml#/definitions/string44    enum:45      - standard46      - schottky47 48  abracon,tc-resistor:49    description:50      Trickle-charge resistor value in kOhm.51      Required to enable charging backup battery.52    $ref: /schemas/types.yaml#/definitions/uint3253    enum: [0, 3, 6, 11]54 55dependentRequired:56  abracon,tc-diode: ["abracon,tc-resistor"]57  abracon,tc-resistor: ["abracon,tc-diode"]58 59required:60  - compatible61  - reg62 63allOf:64  - $ref: rtc.yaml#65  - if:66      properties:67        compatible:68          not:69            contains:70              enum:71                - abracon,abx80x72                - abracon,ab080473                - abracon,ab180474                - abracon,ab080575                - abracon,ab180576    then:77      properties:78        abracon,tc-diode: false79        abracon,tc-resistor: false80 81unevaluatedProperties: false82 83examples:84  - |85    #include <dt-bindings/interrupt-controller/irq.h>86 87    i2c {88        #address-cells = <1>;89        #size-cells = <0>;90 91        rtc@69 {92            compatible = "abracon,abx80x";93            reg = <0x69>;94            abracon,tc-diode = "schottky";95            abracon,tc-resistor = <3>;96            interrupts = <44 IRQ_TYPE_EDGE_FALLING>;97        };98    };99