18138c5f0Ssatya priya# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
28138c5f0Ssatya priya%YAML 1.2
38138c5f0Ssatya priya---
48138c5f0Ssatya priya$id: http://devicetree.org/schemas/rtc/qcom-pm8xxx-rtc.yaml#
58138c5f0Ssatya priya$schema: http://devicetree.org/meta-schemas/core.yaml#
68138c5f0Ssatya priya
78138c5f0Ssatya priyatitle: Qualcomm PM8xxx PMIC RTC device
88138c5f0Ssatya priya
98138c5f0Ssatya priyamaintainers:
10fa1f8e6aSSatya Priya  - Satya Priya <quic_c_skakit@quicinc.com>
118138c5f0Ssatya priya
128138c5f0Ssatya priyaproperties:
138138c5f0Ssatya priya  compatible:
14f2fa14b0SNeil Armstrong    oneOf:
15f2fa14b0SNeil Armstrong      - enum:
168138c5f0Ssatya priya          - qcom,pm8058-rtc
178138c5f0Ssatya priya          - qcom,pm8921-rtc
188138c5f0Ssatya priya          - qcom,pm8941-rtc
198138c5f0Ssatya priya          - qcom,pmk8350-rtc
20f2fa14b0SNeil Armstrong      - items:
21f2fa14b0SNeil Armstrong          - enum:
22f2fa14b0SNeil Armstrong              - qcom,pm8018-rtc
23f2fa14b0SNeil Armstrong          - const: qcom,pm8921-rtc
248138c5f0Ssatya priya
258138c5f0Ssatya priya  reg:
26a12ac1f0SDavid Heidelberg    minItems: 1
27a12ac1f0SDavid Heidelberg    maxItems: 2
28a12ac1f0SDavid Heidelberg
29a12ac1f0SDavid Heidelberg  reg-names:
30a12ac1f0SDavid Heidelberg    minItems: 1
31a12ac1f0SDavid Heidelberg    items:
32a12ac1f0SDavid Heidelberg      - const: rtc
33a12ac1f0SDavid Heidelberg      - const: alarm
348138c5f0Ssatya priya
358138c5f0Ssatya priya  interrupts:
368138c5f0Ssatya priya    maxItems: 1
378138c5f0Ssatya priya
388138c5f0Ssatya priya  allow-set-time:
398138c5f0Ssatya priya    $ref: /schemas/types.yaml#/definitions/flag
408138c5f0Ssatya priya    description:
418138c5f0Ssatya priya      Indicates that the setting of RTC time is allowed by the host CPU.
428138c5f0Ssatya priya
43*430aa33aSJohan Hovold  nvmem-cells:
44*430aa33aSJohan Hovold    items:
45*430aa33aSJohan Hovold      - description:
46*430aa33aSJohan Hovold          four-byte nvmem cell holding a little-endian offset from the Unix
47*430aa33aSJohan Hovold          epoch representing the time when the RTC timer was last reset
48*430aa33aSJohan Hovold
49*430aa33aSJohan Hovold  nvmem-cell-names:
50*430aa33aSJohan Hovold    items:
51*430aa33aSJohan Hovold      - const: offset
52*430aa33aSJohan Hovold
5351b3802eSJohan Hovold  wakeup-source: true
5451b3802eSJohan Hovold
558138c5f0Ssatya priyarequired:
568138c5f0Ssatya priya  - compatible
578138c5f0Ssatya priya  - reg
588138c5f0Ssatya priya  - interrupts
598138c5f0Ssatya priya
608138c5f0Ssatya priyaadditionalProperties: false
618138c5f0Ssatya priya
628138c5f0Ssatya priyaexamples:
638138c5f0Ssatya priya  - |
648138c5f0Ssatya priya    #include <dt-bindings/spmi/spmi.h>
658138c5f0Ssatya priya    spmi_bus: spmi@c440000 {
668138c5f0Ssatya priya      reg = <0x0c440000 0x1100>;
678138c5f0Ssatya priya      #address-cells = <2>;
688138c5f0Ssatya priya      #size-cells = <0>;
698138c5f0Ssatya priya      pmicintc: pmic@0 {
708138c5f0Ssatya priya        reg = <0x0 SPMI_USID>;
718138c5f0Ssatya priya        compatible = "qcom,pm8921";
728138c5f0Ssatya priya        interrupts = <104 8>;
738138c5f0Ssatya priya        #interrupt-cells = <2>;
748138c5f0Ssatya priya        interrupt-controller;
758138c5f0Ssatya priya        #address-cells = <1>;
768138c5f0Ssatya priya        #size-cells = <0>;
778138c5f0Ssatya priya
788138c5f0Ssatya priya        pm8921_rtc: rtc@11d {
798138c5f0Ssatya priya          compatible = "qcom,pm8921-rtc";
808138c5f0Ssatya priya          reg = <0x11d>;
818138c5f0Ssatya priya          interrupts = <0x27 0>;
82*430aa33aSJohan Hovold          nvmem-cells = <&rtc_offset>;
83*430aa33aSJohan Hovold          nvmem-cell-names = "offset";
848138c5f0Ssatya priya        };
858138c5f0Ssatya priya      };
868138c5f0Ssatya priya    };
878138c5f0Ssatya priya...
88