diff mbox series

[v2] arm64: dts: qcom: pm8994: Add resin node to PON

Message ID BmEPgqFMiMXOzn9xFz6KSPtOZdWoeJ8zUpGXI_p7U9FBBSgbG2IP6Akuvb-WWzy7MVuBkrhOas158Vd9klSLFmrbSRGEpQGouiAFpsf03Ag=@protonmail.com (mailing list archive)
State Superseded
Headers show
Series [v2] arm64: dts: qcom: pm8994: Add resin node to PON | expand

Commit Message

Yassine Oudjana Feb. 10, 2021, 10:58 a.m. UTC
Add resin as a child node of PON, and specify its key code on apq8096-db820c.

Signed-off-by: Yassine Oudjana <y.oudjana@protonmail.com>
---
 arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi | 18 ++++--------------
 arch/arm64/boot/dts/qcom/pm8994.dtsi         |  6 ++++++
 2 files changed, 10 insertions(+), 14 deletions(-)

--
2.30.0
diff mbox series

Patch

diff --git a/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi b/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi
index defcbd15edf9..8e129bcc20ba 100644
--- a/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi
+++ b/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi
@@ -951,6 +951,10 @@  dai@2 {
 	};
 };

+&resin {
+	linux,code = <KEY_VOLUMEDOWN>;
+};
+
 &sound {
 	compatible = "qcom,apq8096-sndcard";
 	model = "DB820c";
@@ -1026,20 +1030,6 @@  codec {
 	};
 };

-&spmi_bus {
-	pmic@0 {
-		pon@800 {
-			resin {
-				compatible = "qcom,pm8941-resin";
-				interrupts = <0x0 0x8 1 IRQ_TYPE_EDGE_BOTH>;
-				debounce = <15625>;
-				bias-pull-up;
-				linux,code = <KEY_VOLUMEDOWN>;
-			};
-		};
-	};
-};
-
 &ufsphy {
 	status = "okay";

diff --git a/arch/arm64/boot/dts/qcom/pm8994.dtsi b/arch/arm64/boot/dts/qcom/pm8994.dtsi
index 5ffdf37d8e31..b4828188417e 100644
--- a/arch/arm64/boot/dts/qcom/pm8994.dtsi
+++ b/arch/arm64/boot/dts/qcom/pm8994.dtsi
@@ -58,6 +58,12 @@  pwrkey {
 				linux,code = <KEY_POWER>;
 			};

+			resin: resin {
+				compatible = "qcom,pm8941-resin";
+				interrupts = <0x0 0x8 1 IRQ_TYPE_EDGE_BOTH>;
+				debounce = <15625>;
+				bias-pull-up;
+			};
 		};

 		pm8994_temp: temp-alarm@2400 {