diff options
| author | Linux Build Service Account <lnxbuild@localhost> | 2017-01-08 08:05:50 -0800 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2017-01-08 08:05:50 -0800 |
| commit | 824a1a6d2a0a1c4a1af09245d718f6821b61d98d (patch) | |
| tree | 46235495f514482522126aa8ee2c7865ad731444 | |
| parent | 1f52cde69ce0c1e94c01848bcbaa8534d8e98e7c (diff) | |
| parent | cadfa62c08f568c9167362ad66bef10aa0d28ad6 (diff) | |
Merge "ARM: dts: msm: Enable volume up key for qrd sdm660"
| -rw-r--r-- | arch/arm/boot/dts/qcom/sdm660-qrd.dtsi | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/qcom/sdm660-qrd.dtsi b/arch/arm/boot/dts/qcom/sdm660-qrd.dtsi index 2b53a88f4bf5..a20ea718b815 100644 --- a/arch/arm/boot/dts/qcom/sdm660-qrd.dtsi +++ b/arch/arm/boot/dts/qcom/sdm660-qrd.dtsi @@ -103,3 +103,45 @@ &soc { }; + +&pm660l_gpios { + /* GPIO 7 for VOL_UP */ + gpio@c600 { + status = "ok"; + qcom,mode = <0>; + qcom,pull = <0>; + qcom,vin-sel = <0>; + qcom,src-sel = <0>; + qcom,out-strength = <1>; + }; +}; + +&soc { + gpio_keys { + compatible = "gpio-keys"; + input-name = "gpio-keys"; + status = "ok"; + + vol_up { + label = "volume_up"; + gpios = <&pm660l_gpios 7 0x1>; + linux,input-type = <1>; + linux,code = <115>; + gpio-key,wakeup; + debounce-interval = <15>; + }; + }; +}; + +/ { + qrd_batterydata: qcom,battery-data { + qcom,batt-id-range-pct = <15>; + + #include "fg-gen3-batterydata-qrd-skuk-4v4-3000mah.dtsi" + }; +}; + +&pm660_fg { + qcom,battery-data = <&qrd_batterydata>; + qcom,fg-jeita-thresholds = <0 5 55 55>; +}; |
