aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2023-12-08 17:56:00 +0100
committerGeert Uytterhoeven <geert+renesas@glider.be>2024-04-09 12:15:26 +0200
commit12a68b6ab48e56f680aef410554ffbdbaac8a830 (patch)
treef9da77c858814e571ce67f1a9038d3720875559b
parent8ae02a2feffed36c837982c53623b64e96cff0ae (diff)
downloadrenesas-drivers-topic/board-farm.tar.gz
arm64: dts: renesas: white-hawk-common: Enable GP8_12 for wake-uptopic/board-farm
Add GP8_12 as a wake-up key, to allow remote wake-up by tying pin 6 of the GPIO connector (CN4) to ground (e.g. pin 4 of CN4). Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> --- v3: - Move to white-hawk-common.dtsi, v2: - Drop bogus blank line.
-rw-r--r--arch/arm64/boot/dts/renesas/white-hawk-common.dtsi20
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/renesas/white-hawk-common.dtsi b/arch/arm64/boot/dts/renesas/white-hawk-common.dtsi
index c99086edadcaa..4d12d57ccec1b 100644
--- a/arch/arm64/boot/dts/renesas/white-hawk-common.dtsi
+++ b/arch/arm64/boot/dts/renesas/white-hawk-common.dtsi
@@ -16,6 +16,21 @@
enable-gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>;
max-bitrate = <5000000>;
};
+
+ remote-wakeup {
+ compatible = "gpio-keys";
+
+ pinctrl-0 = <&remote_wakeup_pins>;
+ pinctrl-names = "default";
+
+ key-wakeup {
+ gpios = <&gpio8 12 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_WAKEUP>;
+ label = "CN4-6";
+ wakeup-source;
+ debounce-interval = <20>;
+ };
+ };
};
&can_clk {
@@ -62,4 +77,9 @@
groups = "canfd1_data";
function = "canfd1";
};
+
+ remote_wakeup_pins: remote-wakeup {
+ pins = "GP_8_12";
+ bias-pull-up;
+ };
};