arm64: dts: qcom: sm8150: simplify references to pwrkey and resin
authorFelipe Balbi <felipe.balbi@microsoft.com>
Fri, 17 Dec 2021 12:45:46 +0000 (14:45 +0200)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 1 Feb 2022 00:18:05 +0000 (18:18 -0600)
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.

Signed-off-by: Felipe Balbi <felipe.balbi@microsoft.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20211217124546.1192281-1-balbi@kernel.org
arch/arm64/boot/dts/qcom/sm8150-microsoft-surface-duo.dts

index 5901c28e669613df1daa79c8d128a726ec9564dc..a73317e1a824e7b634d37e724399873ea7af1225 100644 (file)
        /* 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 {
        firmware-name = "qcom/sm8150/microsoft/slpi.mdt";
 };
 
+&pon_resin {
+       status = "okay";
+
+       linux,code = <KEY_VOLUMEDOWN>;
+};
+
 &tlmm {
        gpio-reserved-ranges = <126 4>;