]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
arm64: dts: qcom: apq8016-sbc: Add Volume Up key device node
authorIvan T. Ivanov <ivan.ivanov@linaro.org>
Thu, 17 Sep 2015 12:05:42 +0000 (15:05 +0300)
committerSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Mon, 11 Jan 2016 09:54:28 +0000 (09:54 +0000)
VOL/ZOOM+ button on DB410c is connected to
SoC GPIO 104. Add support for it.

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

arch/arm64/boot/dts/qcom/apq8016-sbc-soc-pins.dtsi
arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi

index cf6f9c4a4d899dde3b39683532e5d545c6e3a715..fc67a30b133fd522796ad14b753b3f4f7e8dcb91 100644 (file)
                        bias-disable;
                };
        };
+
+       msm_key_volp_n_default: msm_key_volp_n_default {
+               pinmux {
+                       function = "gpio";
+                       pins = "gpio107";
+               };
+               pinconf {
+                       pins = "gpio107";
+                       drive-strength = <8>;
+                       input-enable;
+                       bias-pull-up;
+               };
+       };
 };
index 9a2f5a05ab67059e6f25ab3e50f190a9072a92c1..79e190acb47558152005af79b6a7041dda7f0a63 100644 (file)
@@ -12,6 +12,7 @@
  */
 
 #include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
 #include <dt-bindings/sound/apq8016-lpass.h>
 #include "msm8916.dtsi"
 #include "pm8916.dtsi"
                pinctrl-names = "default";
                pinctrl-0 = <&usb_id_default>;
        };
+
+       gpio_keys {
+               compatible = "gpio-keys";
+               #address-cells = <1>;
+               #size-cells = <0>;
+               autorepeat;
+
+               pinctrl-names = "default";
+               pinctrl-0 = <&msm_key_volp_n_default>;
+
+               button@0 {
+                       label = "Volume Up";
+                       linux,code = <KEY_VOLUMEUP>;
+                       gpios = <&msmgpio 107 GPIO_ACTIVE_LOW>;
+               };
+       };
 };
+
 &blsp_dma {
        status = "okay";
 };