Qualcomm PM8xxx PMIC RTC device
Schema identifier ($id): "http://devicetree.org/schemas/rtc/qcom-pm8xxx-rtc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Satya Priya <quic_c_skakit@quicinc.com>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"qcom,pm8058-rtc","qcom,pm8921-rtc","qcom,pm8941-rtc","qcom,pmk8350-rtc"
Rule 2
Array item rules (
items)Item 1
Item 2
Exact value (
const):"qcom,pm8921-rtc"
reg — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
reg-names — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"rtc"
Item 2
Exact value (
const):"alarm"
interrupts — required here #
Maximum number of items (maxItems): 1
allow-set-time — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Indicates that the setting of RTC time is allowed by the host CPU.
nvmem-cells — not listed as required here #
Array item rules (items) #
Item 1
four-byte nvmem cell holding a little-endian offset from the Unix epoch representing the time when the RTC timer was last reset
nvmem-cell-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"offset"
qcom,no-alarm — not listed as required here #
Value type (type): "boolean"
RTC alarm is not owned by the OS
qcom,uefi-rtc-info — not listed as required here #
Value type (type): "boolean"
RTC offset is stored as a four-byte GPS time offset in a 12-byte UEFI variable 882f8c2b-9646-435f-8de5-f208ff80c1bd-RTCInfo
wakeup-source — not listed as required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "reg", "interrupts"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/spmi/spmi.h>
spmi {
#address-cells = <2>;
#size-cells = <0>;
pmic@0 {
compatible = "qcom,pm8941", "qcom,spmi-pmic";
reg = <0x0 SPMI_USID>;
#address-cells = <1>;
#size-cells = <0>;
rtc@6000 {
compatible = "qcom,pm8941-rtc";
reg = <0x6000>, <0x6100>;
reg-names = "rtc", "alarm";
interrupts = <0x0 0x61 0x1 IRQ_TYPE_EDGE_RISING>;
nvmem-cells = <&rtc_offset>;
nvmem-cell-names = "offset";
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)