arm64: dts: qcom: sa8295p-adp: Add RTC node
authorBjorn Andersson <quic_bjorande@quicinc.com>
Mon, 5 Dec 2022 17:43:09 +0000 (09:43 -0800)
committerBjorn Andersson <andersson@kernel.org>
Tue, 6 Dec 2022 17:05:28 +0000 (11:05 -0600)
The first PM8540 PMIC has an available RTC block, describe this in the
SA8295P ADP. Mark it as wakeup-source to allow waking the system from
sleep.

Signed-off-by: Bjorn Andersson <quic_bjorande@quicinc.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221205174309.16733-1-quic_bjorande@quicinc.com
arch/arm64/boot/dts/qcom/sa8295p-adp.dts

index 6c29d7d757e099731dbb98a928f468bd073a6a55..e9830e72dc6c51a18698e597b2eee2392e85136e 100644 (file)
                #address-cells = <1>;
                #size-cells = <0>;
 
+               rtc@6000 {
+                       compatible = "qcom,pm8941-rtc";
+                       reg = <0x6000>;
+                       reg-names = "rtc", "alarm";
+                       interrupts = <0x0 0x61 0x1 IRQ_TYPE_NONE>;
+                       wakeup-source;
+               };
+
                pm8450a_gpios: gpio@c000 {
                        compatible = "qcom,pm8150-gpio", "qcom,spmi-gpio";
                        reg = <0xc000>;