OSDN Git Service

arm64: dts: qcom: *8350* Consolidate PON/RESIN usage
authorKonrad Dybcio <konrad.dybcio@somainline.org>
Sun, 14 Nov 2021 01:27:46 +0000 (02:27 +0100)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Sat, 20 Nov 2021 22:24:58 +0000 (16:24 -0600)
Disable PON/RESIN keys by default and keep the RESIN keycode set-per-board, as
these settings are not common between devices (one cannot even assume all
devices have buttons nowadays..).

Signed-off-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20211114012755.112226-7-konrad.dybcio@somainline.org
arch/arm64/boot/dts/qcom/pmk8350.dtsi
arch/arm64/boot/dts/qcom/sm8350-mtp.dts

index 769f972..0f94c46 100644 (file)
                        compatible = "qcom,pm8998-pon";
                        reg = <0x1300>;
 
-                       pwrkey {
+                       pon_pwrkey: pwrkey {
                                compatible = "qcom,pmk8350-pwrkey";
                                interrupts = <0x0 0x13 0x7 IRQ_TYPE_EDGE_BOTH>;
                                linux,code = <KEY_POWER>;
+                               status = "disabled";
                        };
 
-                       resin {
+                       pon_resin: resin {
                                compatible = "qcom,pmk8350-resin";
                                interrupts = <0x0 0x13 0x6 IRQ_TYPE_EDGE_BOTH>;
-                               linux,code = <KEY_VOLUMEDOWN>;
+                               status = "disabled";
                        };
                };
 
index 122c282..52cf304 100644 (file)
        status = "okay";
 };
 
+&pon_pwrkey {
+       status = "okay";
+};
+
+&pon_resin {
+       status = "okay";
+       linux,code = <KEY_VOLUMEDOWN>;
+};
+
 &qupv3_id_0 {
        status = "okay";
 };