diff options
author | Dzmitry Sankouski | 2023-04-01 12:28:43 +0300 |
---|---|---|
committer | Tom Rini | 2023-05-03 09:05:24 -0400 |
commit | a2612d7c55f00c29b937cabcb59dfcbf52ad3c65 (patch) | |
tree | 121aa067c092b3d077c780051e3d98d1fc008f55 /arch/arm | |
parent | 6a0c30610c77f7e2d089933a9899d8e894663db4 (diff) |
starqltechn: use button keyboard driver
Button keyboard driver used to navigate bootmenu entries.
Add gpio buttons, button keyboard driver.
Add gpio keys dts bindings.
Signed-off-by: Dzmitry Sankouski <dsankouski@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/dts/starqltechn.dts | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/arm/dts/starqltechn.dts b/arch/arm/dts/starqltechn.dts index dcbc3b6d496..eec51d165f9 100644 --- a/arch/arm/dts/starqltechn.dts +++ b/arch/arm/dts/starqltechn.dts @@ -9,6 +9,8 @@ /dts-v1/; #include "sdm845.dtsi" +#include <dt-bindings/gpio/gpio.h> +#include <dt-bindings/input/input.h> / { model = "Samsung S9 (SM-G9600)"; @@ -43,6 +45,22 @@ format = "a8r8g8b8"; }; + gpio-keys { + compatible = "gpio-keys"; + + key-pwr { + label = "Power"; + linux,code = <KEY_ENTER>; + gpios = <&pm8998_pon 0 GPIO_ACTIVE_LOW>; + }; + + key-vol-down { + label = "Volume Down"; + linux,code = <KEY_DOWN>; + gpios = <&pm8998_pon 1 GPIO_ACTIVE_LOW>; + }; + }; + soc: soc { serial@a84000 { status = "okay"; |