Merge tag 'mips_5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux
[linux-2.6-microblaze.git] / Documentation / devicetree / bindings / rtc / qcom-pm8xxx-rtc.yaml
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
7 title: Qualcomm PM8xxx PMIC RTC device
8
9 maintainers:
10   - Satya Priya <skakit@codeaurora.org>
11
12 properties:
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
32 required:
33   - compatible
34   - reg
35   - interrupts
36
37 additionalProperties: false
38
39 examples:
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 ...