]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
arm64: dts: qcom: apq8016-sbc: Add Volume Down definitions
authorIvan T. Ivanov <ivan.ivanov@linaro.org>
Fri, 18 Sep 2015 08:53:42 +0000 (11:53 +0300)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Fri, 13 Apr 2018 14:00:09 +0000 (16:00 +0200)
Volume Down button events are handled trough RESIN_N
input of the PMIC device. Add required definitions.

Signed-off-by: Ivan T. Ivanov <ivan.ivanov@linaro.org>
arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi
arch/arm64/boot/dts/qcom/pm8916.dtsi

index 79e190acb47558152005af79b6a7041dda7f0a63..f53d1aff48716251679a0563a8cfc6ddbd8fa983 100644 (file)
        };
 };
 
+&spmi_pon {
+       // Overwrite RESETIN_N keyboard scan code
+       linux,code = <KEY_VOLUMEDOWN>;
+};
+
 &blsp_dma {
        status = "okay";
 };
index de96c9b6d5b2d01f035fe136ff56272cf5b3eaa5..733c036b027699ecec7627b4c63e11f4da760c9c 100644 (file)
@@ -1,4 +1,5 @@
 #include <dt-bindings/iio/qcom,spmi-vadc.h>
+#include <dt-bindings/input/input.h>
 #include <dt-bindings/interrupt-controller/irq.h>
 #include <dt-bindings/spmi/spmi.h>
 
                        interrupts = <0x0 0x61 0x1 IRQ_TYPE_EDGE_RISING>;
                };
 
-               pwrkey@800 {
+               spmi_pon: pwrkey@800 {
                        compatible = "qcom,pm8941-pwrkey";
                        reg = <0x800>;
-                       interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>;
+                       interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>,
+                                    <0x0 0x8 1 IRQ_TYPE_EDGE_BOTH>;
                        debounce = <15625>;
                        bias-pull-up;
+                       resin-pull-up;
+                       linux,code = <KEY_RESTART>;
                };
 
                pm8916_gpios: gpios@c000 {