Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/rtc/qcom-pm8xxx-rtc.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: Qualcomm PM8xxx PMIC RTC device
0008 
0009 maintainers:
0010   - Satya Priya <quic_c_skakit@quicinc.com>
0011 
0012 properties:
0013   compatible:
0014     enum:
0015       - qcom,pm8058-rtc
0016       - qcom,pm8921-rtc
0017       - qcom,pm8941-rtc
0018       - qcom,pm8018-rtc
0019       - qcom,pmk8350-rtc
0020 
0021   reg:
0022     minItems: 1
0023     maxItems: 2
0024 
0025   reg-names:
0026     minItems: 1
0027     items:
0028       - const: rtc
0029       - const: alarm
0030 
0031   interrupts:
0032     maxItems: 1
0033 
0034   allow-set-time:
0035     $ref: /schemas/types.yaml#/definitions/flag
0036     description:
0037       Indicates that the setting of RTC time is allowed by the host CPU.
0038 
0039 required:
0040   - compatible
0041   - reg
0042   - interrupts
0043 
0044 additionalProperties: false
0045 
0046 examples:
0047   - |
0048     #include <dt-bindings/spmi/spmi.h>
0049     spmi_bus: spmi@c440000 {
0050       reg = <0x0c440000 0x1100>;
0051       #address-cells = <2>;
0052       #size-cells = <0>;
0053       pmicintc: pmic@0 {
0054         reg = <0x0 SPMI_USID>;
0055         compatible = "qcom,pm8921";
0056         interrupts = <104 8>;
0057         #interrupt-cells = <2>;
0058         interrupt-controller;
0059         #address-cells = <1>;
0060         #size-cells = <0>;
0061 
0062         pm8921_rtc: rtc@11d {
0063           compatible = "qcom,pm8921-rtc";
0064           reg = <0x11d>;
0065           interrupts = <0x27 0>;
0066         };
0067       };
0068     };
0069 ...