diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2022-09-28 14:06:45 +0200 |
---|---|---|
committer | Geert Uytterhoeven <geert+renesas@glider.be> | 2024-04-23 12:53:27 +0200 |
commit | d6cc2246241d24b7285100efe43f767ca6346eb9 (patch) | |
tree | 49a93b3dca4c403950dc9d8dac9963cd032fb294 | |
parent | cd75de56cef5c9852664b9a400c1ed6ecf25e75a (diff) | |
download | renesas-drivers-topic/renesas-overlays.tar.gz |
arm64: dts: renesas: white-hawk-cpu: Add overlay for CP97/98topic/renesas-overlays-v6.7-rc1topic/renesas-overlays
Add an overlay to use test points CP97 and CP98 on the White Hawk CPU
board as keys.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
v2:
- s/whitehawk/white-hawk/.
-rw-r--r-- | arch/arm64/boot/dts/renesas/r8a779g0-white-hawk-cpu-cp97-98-keys.dtso | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/renesas/r8a779g0-white-hawk-cpu-cp97-98-keys.dtso b/arch/arm64/boot/dts/renesas/r8a779g0-white-hawk-cpu-cp97-98-keys.dtso new file mode 100644 index 00000000000000..306a532e9687fa --- /dev/null +++ b/arch/arm64/boot/dts/renesas/r8a779g0-white-hawk-cpu-cp97-98-keys.dtso @@ -0,0 +1,38 @@ +// SPDX-License-Identifier: GPL-2.0 +// +// Device Tree Overlay for using CP97/98 on the White Hawk CPU board as keys +// +// Copyright (C) 2022 Glider bv +// +// Pinout: +// - Key X = CP97 +// - Key O = CP98 +// - GND = TP2 + +/dts-v1/; +/plugin/; + +#include <dt-bindings/gpio/gpio.h> +#include <dt-bindings/input/input.h> + +&{/} { + cp97-cp98-keys { + compatible = "gpio-keys"; + + key-X { + gpios = <&io_expander_a 1 GPIO_ACTIVE_LOW>; + linux,code = <KEY_X>; + label = "CP97"; + wakeup-source; + debounce-interval = <20>; + }; + + key-O { + gpios = <&io_expander_a 3 GPIO_ACTIVE_LOW>; + linux,code = <KEY_O>; + label = "CP98"; + wakeup-source; + debounce-interval = <20>; + }; + }; +}; |