1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/rtc/qcom-pm8xxx-rtc.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Qualcomm PM8xxx PMIC RTC device
8
9maintainers:
10  - Satya Priya <skakit@codeaurora.org>
11
12properties:
13  compatible:
14    enum:
15      - qcom,pm8058-rtc
16      - qcom,pm8921-rtc
17      - qcom,pm8941-rtc
18      - qcom,pm8018-rtc
19      - qcom,pmk8350-rtc
20
21  reg:
22    maxItems: 1
23
24  interrupts:
25    maxItems: 1
26
27  allow-set-time:
28    $ref: /schemas/types.yaml#/definitions/flag
29    description:
30      Indicates that the setting of RTC time is allowed by the host CPU.
31
32required:
33  - compatible
34  - reg
35  - interrupts
36
37additionalProperties: false
38
39examples:
40  - |
41    #include <dt-bindings/spmi/spmi.h>
42    spmi_bus: spmi@c440000 {
43      reg = <0x0c440000 0x1100>;
44      #address-cells = <2>;
45      #size-cells = <0>;
46      pmicintc: pmic@0 {
47        reg = <0x0 SPMI_USID>;
48        compatible = "qcom,pm8921";
49        interrupts = <104 8>;
50        #interrupt-cells = <2>;
51        interrupt-controller;
52        #address-cells = <1>;
53        #size-cells = <0>;
54
55        pm8921_rtc: rtc@11d {
56          compatible = "qcom,pm8921-rtc";
57          reg = <0x11d>;
58          interrupts = <0x27 0>;
59        };
60      };
61    };
62...
63