arm64: dts: qcom: msm8994-octagon: Configure PON keys
authorGustave Monce <gustave.monce@outlook.com>
Sun, 31 Jan 2021 01:38:44 +0000 (02:38 +0100)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 2 Feb 2021 22:37:38 +0000 (16:37 -0600)
Both the power key and the vol- key are connected over PON.
Configure them.

Signed-off-by: Gustave Monce <gustave.monce@outlook.com>
Signed-off-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Link: https://lore.kernel.org/r/20210131013853.55810-14-konrad.dybcio@somainline.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
arch/arm64/boot/dts/qcom/msm8994-msft-lumia-octagon.dtsi
arch/arm64/boot/dts/qcom/pm8994.dtsi

index 0417c31316d3b66575c6611e98f1f0f3a125e4b1..1210b470f00c294968759276321b2be8888b2b4f 100644 (file)
        };
 };
 
+&pm8994_pon {
+       pwrkey {
+               compatible = "qcom,pm8941-pwrkey";
+               interrupts = <0 8 0 IRQ_TYPE_EDGE_BOTH>;
+               debounce = <15625>;
+               linux,code = <KEY_POWER>;
+       };
+
+       volwnkey {
+               compatible = "qcom,pm8941-resin";
+               interrupts = <0 8 1 IRQ_TYPE_EDGE_BOTH>;
+               debounce = <15625>;
+               linux,code = <KEY_VOLUMEDOWN>;
+       };
+};
+
 &pmi8994_gpios {
        pinctrl-0 = <&hd3ss460_pol &hd3ss460_amsel &hd3ss460_en>;
        pinctrl-names = "default";
index 91fff1f209e01597c970e32baa25ffc786cd6435..c3876c82c8741110c8173191bea0cb5f7955fc67 100644 (file)
@@ -43,7 +43,7 @@
                        interrupts = <0x0 0x61 0x1 IRQ_TYPE_EDGE_RISING>;
                };
 
-               pon@800 {
+               pm8994_pon: pon@800 {
                        compatible = "qcom,pm8916-pon";
 
                        reg = <0x800>;