arm64: dts: qcom: sc8180x: Enable the power key
authorBjorn Andersson <quic_bjorande@quicinc.com>
Tue, 13 Aug 2024 03:34:19 +0000 (20:34 -0700)
committerBjorn Andersson <andersson@kernel.org>
Tue, 13 Aug 2024 13:12:39 +0000 (06:12 -0700)
No input events are generated from the pressing of the power key on
either Primus or Flex 5G, because the device node isn't enabled.

Give the power key node a label and enable this for the two devices.

Signed-off-by: Bjorn Andersson <quic_bjorande@quicinc.com>
Tested-by: Steev Klimaszewski <steev@kali.org>
Link: https://lore.kernel.org/r/20240812-sc8180x-pwrkey-enable-v1-1-2bcc22133774@quicinc.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/sc8180x-lenovo-flex-5g.dts
arch/arm64/boot/dts/qcom/sc8180x-pmics.dtsi
arch/arm64/boot/dts/qcom/sc8180x-primus.dts

index 575a1a5ae20fea40372e3d4b538914dfb6af93ad..62de4774c556d3954a797287ba2ecb36d979dc9f 100644 (file)
        status = "okay";
 };
 
+&pmc8180_pwrkey {
+       status = "okay";
+};
+
 &pmc8180c_lpg {
        status = "okay";
 };
index b6f8d1558c0d7427141f8d9c22e030c240911065..451c9b984f1fd9aebaeb36e3d7ae7be8deecaf8c 100644 (file)
@@ -75,7 +75,7 @@
                pon: pon@800 {
                        compatible = "qcom,pm8916-pon";
                        reg = <0x0800>;
-                       pwrkey {
+                       pmc8180_pwrkey: pwrkey {
                                compatible = "qcom,pm8941-pwrkey";
                                interrupts = <0x0 0x8 0x0 IRQ_TYPE_EDGE_BOTH>;
                                debounce = <15625>;
index 9447c1e4577b0f3d784197d18e893723d2f50ad0..79b4d293ea1e70d68346e7c5458c94f7c2b6f1eb 100644 (file)
        status = "okay";
 };
 
+&pmc8180_pwrkey {
+       status = "okay";
+};
+
 &pmc8180c_lpg {
        status = "okay";
 };