12eb4d8dcSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 22eb4d8dcSEmmanuel Vadot%YAML 1.2 32eb4d8dcSEmmanuel Vadot--- 42eb4d8dcSEmmanuel Vadot$id: http://devicetree.org/schemas/rtc/qcom-pm8xxx-rtc.yaml# 52eb4d8dcSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 62eb4d8dcSEmmanuel Vadot 72eb4d8dcSEmmanuel Vadottitle: Qualcomm PM8xxx PMIC RTC device 82eb4d8dcSEmmanuel Vadot 92eb4d8dcSEmmanuel Vadotmaintainers: 10b97ee269SEmmanuel Vadot - Satya Priya <quic_c_skakit@quicinc.com> 112eb4d8dcSEmmanuel Vadot 122eb4d8dcSEmmanuel Vadotproperties: 132eb4d8dcSEmmanuel Vadot compatible: 148bab661aSEmmanuel Vadot oneOf: 158bab661aSEmmanuel Vadot - enum: 162eb4d8dcSEmmanuel Vadot - qcom,pm8058-rtc 172eb4d8dcSEmmanuel Vadot - qcom,pm8921-rtc 182eb4d8dcSEmmanuel Vadot - qcom,pm8941-rtc 192eb4d8dcSEmmanuel Vadot - qcom,pmk8350-rtc 208bab661aSEmmanuel Vadot - items: 218bab661aSEmmanuel Vadot - enum: 228bab661aSEmmanuel Vadot - qcom,pm8018-rtc 238bab661aSEmmanuel Vadot - const: qcom,pm8921-rtc 242eb4d8dcSEmmanuel Vadot 252eb4d8dcSEmmanuel Vadot reg: 26e67e8565SEmmanuel Vadot minItems: 1 27e67e8565SEmmanuel Vadot maxItems: 2 28e67e8565SEmmanuel Vadot 29e67e8565SEmmanuel Vadot reg-names: 30e67e8565SEmmanuel Vadot minItems: 1 31e67e8565SEmmanuel Vadot items: 32e67e8565SEmmanuel Vadot - const: rtc 33e67e8565SEmmanuel Vadot - const: alarm 342eb4d8dcSEmmanuel Vadot 352eb4d8dcSEmmanuel Vadot interrupts: 362eb4d8dcSEmmanuel Vadot maxItems: 1 372eb4d8dcSEmmanuel Vadot 382eb4d8dcSEmmanuel Vadot allow-set-time: 392eb4d8dcSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/flag 402eb4d8dcSEmmanuel Vadot description: 412eb4d8dcSEmmanuel Vadot Indicates that the setting of RTC time is allowed by the host CPU. 422eb4d8dcSEmmanuel Vadot 43cb7aa33aSEmmanuel Vadot nvmem-cells: 44cb7aa33aSEmmanuel Vadot items: 45cb7aa33aSEmmanuel Vadot - description: 46cb7aa33aSEmmanuel Vadot four-byte nvmem cell holding a little-endian offset from the Unix 47cb7aa33aSEmmanuel Vadot epoch representing the time when the RTC timer was last reset 48cb7aa33aSEmmanuel Vadot 49cb7aa33aSEmmanuel Vadot nvmem-cell-names: 50cb7aa33aSEmmanuel Vadot items: 51cb7aa33aSEmmanuel Vadot - const: offset 52cb7aa33aSEmmanuel Vadot 538bab661aSEmmanuel Vadot wakeup-source: true 548bab661aSEmmanuel Vadot 552eb4d8dcSEmmanuel Vadotrequired: 562eb4d8dcSEmmanuel Vadot - compatible 572eb4d8dcSEmmanuel Vadot - reg 582eb4d8dcSEmmanuel Vadot - interrupts 592eb4d8dcSEmmanuel Vadot 602eb4d8dcSEmmanuel VadotadditionalProperties: false 612eb4d8dcSEmmanuel Vadot 622eb4d8dcSEmmanuel Vadotexamples: 632eb4d8dcSEmmanuel Vadot - | 64*8d13bc63SEmmanuel Vadot #include <dt-bindings/interrupt-controller/irq.h> 652eb4d8dcSEmmanuel Vadot #include <dt-bindings/spmi/spmi.h> 66*8d13bc63SEmmanuel Vadot 67*8d13bc63SEmmanuel Vadot spmi { 682eb4d8dcSEmmanuel Vadot #address-cells = <2>; 692eb4d8dcSEmmanuel Vadot #size-cells = <0>; 70*8d13bc63SEmmanuel Vadot 71*8d13bc63SEmmanuel Vadot pmic@0 { 72*8d13bc63SEmmanuel Vadot compatible = "qcom,pm8941", "qcom,spmi-pmic"; 732eb4d8dcSEmmanuel Vadot reg = <0x0 SPMI_USID>; 742eb4d8dcSEmmanuel Vadot #address-cells = <1>; 752eb4d8dcSEmmanuel Vadot #size-cells = <0>; 762eb4d8dcSEmmanuel Vadot 77*8d13bc63SEmmanuel Vadot rtc@6000 { 78*8d13bc63SEmmanuel Vadot compatible = "qcom,pm8941-rtc"; 79*8d13bc63SEmmanuel Vadot reg = <0x6000>, <0x6100>; 80*8d13bc63SEmmanuel Vadot reg-names = "rtc", "alarm"; 81*8d13bc63SEmmanuel Vadot interrupts = <0x0 0x61 0x1 IRQ_TYPE_EDGE_RISING>; 82cb7aa33aSEmmanuel Vadot nvmem-cells = <&rtc_offset>; 83cb7aa33aSEmmanuel Vadot nvmem-cell-names = "offset"; 842eb4d8dcSEmmanuel Vadot }; 852eb4d8dcSEmmanuel Vadot }; 862eb4d8dcSEmmanuel Vadot }; 872eb4d8dcSEmmanuel Vadot... 88