2024-03-10 07:57:51 +00:00
|
|
|
From 18dfe3c57801796fb6ca2a17f63893e48298eaa4 Mon Sep 17 00:00:00 2001
|
2023-12-18 12:33:45 +00:00
|
|
|
From: David Wronek <davidwronek@gmail.com>
|
|
|
|
Date: Thu, 24 Aug 2023 11:15:05 +0200
|
2024-03-10 07:57:51 +00:00
|
|
|
Subject: [PATCH 5/8] arm64: dts: qcom: pm6150: Add resin and rtc nodes
|
2023-12-18 12:33:45 +00:00
|
|
|
|
|
|
|
Add support for the RTC which is the same as on other PMICs and add the
|
|
|
|
resin child node to the PM6150 PON device, both disabled by default.
|
|
|
|
|
|
|
|
Signed-off-by: David Wronek <davidwronek@gmail.com>
|
|
|
|
Tested-by: Nikita Travkin <nikita@trvn.ru>
|
|
|
|
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
|
|
|
|
Link: https://lore.kernel.org/r/20230824091737.75813-3-davidwronek@gmail.com
|
|
|
|
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
|
|
|
|
---
|
|
|
|
arch/arm64/boot/dts/qcom/pm6150.dtsi | 16 ++++++++++++++++
|
|
|
|
1 file changed, 16 insertions(+)
|
|
|
|
|
|
|
|
diff --git a/arch/arm64/boot/dts/qcom/pm6150.dtsi b/arch/arm64/boot/dts/qcom/pm6150.dtsi
|
2024-03-10 07:57:51 +00:00
|
|
|
index 7d4d1f2767ed..ddbaf7280b03 100644
|
2023-12-18 12:33:45 +00:00
|
|
|
--- a/arch/arm64/boot/dts/qcom/pm6150.dtsi
|
|
|
|
+++ b/arch/arm64/boot/dts/qcom/pm6150.dtsi
|
2024-03-10 07:57:51 +00:00
|
|
|
@@ -53,6 +53,14 @@ pm6150_pwrkey: pwrkey {
|
2023-12-18 12:33:45 +00:00
|
|
|
bias-pull-up;
|
|
|
|
linux,code = <KEY_POWER>;
|
|
|
|
};
|
|
|
|
+
|
|
|
|
+ pm6150_resin: resin {
|
|
|
|
+ compatible = "qcom,pm8941-resin";
|
|
|
|
+ interrupts = <0x0 0x8 1 IRQ_TYPE_EDGE_BOTH>;
|
|
|
|
+ debounce = <15625>;
|
|
|
|
+ bias-pull-up;
|
|
|
|
+ status = "disabled";
|
|
|
|
+ };
|
|
|
|
};
|
|
|
|
|
|
|
|
pm6150_temp: temp-alarm@2400 {
|
2024-03-10 07:57:51 +00:00
|
|
|
@@ -88,6 +96,14 @@ pm6150_adc_tm: adc-tm@3500 {
|
2023-12-18 12:33:45 +00:00
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
|
|
|
+ pm6150_rtc: rtc@6000 {
|
|
|
|
+ compatible = "qcom,pm8941-rtc";
|
|
|
|
+ reg = <0x6000>, <0x6100>;
|
|
|
|
+ reg-names = "rtc", "alarm";
|
|
|
|
+ interrupts = <0x0 0x61 0x1 IRQ_TYPE_EDGE_RISING>;
|
|
|
|
+ status = "disabled";
|
|
|
|
+ };
|
|
|
|
+
|
2024-03-10 07:57:51 +00:00
|
|
|
pm6150_gpios: gpio@c000 {
|
2023-12-18 12:33:45 +00:00
|
|
|
compatible = "qcom,pm6150-gpio", "qcom,spmi-gpio";
|
|
|
|
reg = <0xc000>;
|
|
|
|
--
|
2024-03-10 07:57:51 +00:00
|
|
|
2.43.2
|
2023-12-18 12:33:45 +00:00
|
|
|
|