diff options
author | John Stultz <john.stultz@linaro.org> | 2015-07-23 12:42:23 -0700 |
---|---|---|
committer | John Stultz <john.stultz@linaro.org> | 2015-07-23 22:33:34 -0700 |
commit | 7ec075632ef5c0cdbd6ade1a2e019d54218ab796 (patch) | |
tree | de58914e88471870a46ea5019d6ab9a95d2e783d | |
parent | 00658fc9f78eaaab0306d40afb527058f4f24e48 (diff) |
DTS: Added gpio volume button supportflo-WIP
Add gpio volume button support to the devicetree file.
Signed-off-by: John Stultz <john.stultz@linaro.org>
-rw-r--r-- | arch/arm/boot/dts/qcom-apq8064-ifc6410.dts | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts b/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts index f963c3b32f9f..d94f44fd3569 100644 --- a/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts +++ b/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts @@ -1,7 +1,7 @@ #include "qcom-apq8064-v2.0.dtsi" #include <dt-bindings/gpio/gpio.h> #include <dt-bindings/input/input.h> - +#include <dt-bindings/pinctrl/qcom,pmic-gpio.h> / { model = "Qualcomm APQ8064/IFC6410"; compatible = "qcom,apq8064-ifc6410", "qcom,apq8064"; @@ -201,6 +201,17 @@ linux,code = <KEY_POWER>; gpio-key,wakeup; }; + volume_up { + label = "Volume Up"; + gpios = <&pm8921_gpio 4 GPIO_ACTIVE_HIGH>; + linux,code = <KEY_VOLUMEUP>; + }; + volume_down { + label = "Volume Down"; + gpios = <&pm8921_gpio 38 GPIO_ACTIVE_HIGH>; + linux,code = <KEY_VOLUMEDOWN>; + }; }; + }; }; |