Skip to contentSkip to conversation

arm64: boot: dts: sm8150: simplify references to pwrkey and resin

PATCH Applied Felipe Balbi 2 participants 2 messages Dec 17, 2021 – Feb 1, 2022

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: boot: dts: sm8150: simplify references to pwrkey and resin

From: Felipe Balbi <[email protected]>

Since commit d0a6ce59ea4e ("arm64: dts: qcom: sm8150: Add support for SONY Xperia 1 / 5 (Kumano platform)"), we can directly refer to pwrkey and resin by their new labels, respectively pon_pwrkey and pon_resin.

Simplify microsof surface duo DTS by utilizing the new labels.

---
 .../dts/qcom/sm8150-microsoft-surface-duo.dts | 20 ++++++++-----------
 1 file changed, 8 insertions(+), 12 deletions(-)
arch/arm64/boot/dts/qcom/sm8150-microsoft-surface-duo.dts +8 -12
index 5901c28e6696..a73317e1a824 100644
@@ -430,18 +430,8 @@ &i2c19 {
 	/* MAX34417 @ 0x1e */
 };
 
-&pon {
-	pwrkey {
-		status = "okay";
-	};
-
-	resin {
-		compatible = "qcom,pm8941-resin";
-		interrupts = <0x0 0x8 0x1 IRQ_TYPE_EDGE_BOTH>;
-		debounce = <15625>;
-		bias-pull-up;
-		linux,code = <KEY_VOLUMEDOWN>;
-	};
+&pon_pwrkey {
+	status = "okay";
 };
 
 &qupv3_id_0 {
@@ -476,6 +466,12 @@ &remoteproc_slpi {
 	firmware-name = "qcom/sm8150/microsoft/slpi.mdt";
 };
 
+&pon_resin {
+	status = "okay";
+
+	linux,code = <KEY_VOLUMEDOWN>;
+};
+
 &tlmm {
 	gpio-reserved-ranges = <126 4>;
 
Signature · 1 line
2.34.1
#1 lore raw

Re: (subset) [PATCH] arm64: boot: dts: sm8150: simplify references to pwrkey and resin

Quoted 9 lines · Felipe Balbi

From: Felipe Balbi <[email protected]>

Since commit d0a6ce59ea4e ("arm64: dts: qcom: sm8150: Add support for SONY Xperia 1 / 5 (Kumano platform)"), we can directly refer to pwrkey and resin by their new labels, respectively pon_pwrkey and pon_resin.

Simplify microsof surface duo DTS by utilizing the new labels.

[...]

Applied, thanks!

[1/1] arm64: boot: dts: sm8150: simplify references to pwrkey and resin

      commit: 2a03c21cca5ffd527c9ea2e88e52e58e1c69331b

Best regards,

Signature · 1 line
Bjorn Andersson <[email protected]>