Commit 68674303 authored by Dang Huynh's avatar Dang Huynh Committed by Bjorn Andersson

arm64: dts: qcom: sdm660-xiaomi-lavender: Add volume up button

This enables the volume up key.
Signed-off-by: default avatarDang Huynh <danct12@riseup.net>
Tested-by: default avatarAlexey Minnekhanov <alexeymin@postmarketos.org>
Signed-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20211121170449.1124048-1-danct12@riseup.net
parent 1c0ac047
......@@ -9,6 +9,8 @@
#include "sdm660.dtsi"
#include "pm660.dtsi"
#include "pm660l.dtsi"
#include <dt-bindings/input/input.h>
#include <dt-bindings/input/gpio-keys.h>
/ {
model = "Xiaomi Redmi Note 7";
......@@ -46,6 +48,17 @@ vph_pwr: vph-pwr-regulator {
regulator-boot-on;
};
gpio-keys {
compatible = "gpio-keys";
volup {
label = "Volume Up";
gpios = <&pm660l_gpios 7 GPIO_ACTIVE_LOW>;
linux,code = <KEY_VOLUMEUP>;
debounce-interval = <15>;
};
};
reserved-memory {
#address-cells = <2>;
#size-cells = <2>;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment