summaryrefslogtreecommitdiff
path: root/arch/arm64/boot/dts/renesas/r8a779h0-gray-hawk-single.dts
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2024-07-22 14:55:40 +0300
committerGeert Uytterhoeven <geert+renesas@glider.be>2024-07-29 12:51:36 +0300
commitd4d9a2fbeaa0efdca0a4cf779aaeff931949c703 (patch)
tree9346b1d04e6130f07c6e385302bbb5d235da83a1 /arch/arm64/boot/dts/renesas/r8a779h0-gray-hawk-single.dts
parentcd0a847aa6c8a08ba948db4ff0dd6d5f94da998d (diff)
downloadlinux-d4d9a2fbeaa0efdca0a4cf779aaeff931949c703.tar.xz
arm64: dts: renesas: gray-hawk-single: Add push switches
Describe the three Push Switches on the Gray Hawk Single board, so they can be used for user input. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Link: https://lore.kernel.org/41b8277d4b630e0c296375888d9b958448d02cde.1721649057.git.geert+renesas@glider.be
Diffstat (limited to 'arch/arm64/boot/dts/renesas/r8a779h0-gray-hawk-single.dts')
-rw-r--r--arch/arm64/boot/dts/renesas/r8a779h0-gray-hawk-single.dts37
1 files changed, 37 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/renesas/r8a779h0-gray-hawk-single.dts b/arch/arm64/boot/dts/renesas/r8a779h0-gray-hawk-single.dts
index df4025e522e2..ca9141afb7c9 100644
--- a/arch/arm64/boot/dts/renesas/r8a779h0-gray-hawk-single.dts
+++ b/arch/arm64/boot/dts/renesas/r8a779h0-gray-hawk-single.dts
@@ -28,6 +28,7 @@
/dts-v1/;
#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
#include "r8a779h0.dtsi"
@@ -50,6 +51,37 @@
stdout-path = "serial0:921600n8";
};
+ keys {
+ compatible = "gpio-keys";
+
+ pinctrl-0 = <&keys_pins>;
+ pinctrl-names = "default";
+
+ key-1 {
+ gpios = <&gpio5 0 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_1>;
+ label = "SW47";
+ wakeup-source;
+ debounce-interval = <20>;
+ };
+
+ key-2 {
+ gpios = <&gpio5 1 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_2>;
+ label = "SW48";
+ wakeup-source;
+ debounce-interval = <20>;
+ };
+
+ key-3 {
+ gpios = <&gpio5 2 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_3>;
+ label = "SW49";
+ wakeup-source;
+ debounce-interval = <20>;
+ };
+ };
+
memory@48000000 {
device_type = "memory";
/* first 128MB is reserved for secure area. */
@@ -267,6 +299,11 @@
function = "i2c3";
};
+ keys_pins: keys {
+ pins = "GP_5_0", "GP_5_1", "GP_5_2";
+ bias-pull-up;
+ };
+
mmc_pins: mmc {
groups = "mmc_data8", "mmc_ctrl", "mmc_ds";
function = "mmc";