arm64: dts: qcom: sdm660-xiaomi-lavender: Add volume up button
This enables the volume up key. Signed-off-by: Dang Huynh <danct12@riseup.net> Tested-by: Alexey Minnekhanov <alexeymin@postmarketos.org> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org> Link: https://lore.kernel.org/r/20211121170449.1124048-1-danct12@riseup.net
This commit is contained in:
parent
1c0ac047bb
commit
6867430332
@ -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 @@
|
||||
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>;
|
||||
|
Loading…
x
Reference in New Issue
Block a user