From 499d0c43d440cb28509f6758a9d42ac1cc374550 Mon Sep 17 00:00:00 2001 From: DarekM <149845949+aninmucek@users.noreply.github.com> Date: Tue, 10 Nov 2026 15:57:45 +0000 Subject: [PATCH 1/2] arm64: dts: exynos: google: zuma-akita: Add the buttons The Pixel 8a's volume and power keys are wired as on the Pixel 8 Pro: volume down on gpa4-1, volume up on gpa6-2 and power on gpa4-0, all active low and wake sources (Google's zuma-common.dtsi; the stock phone's /proc/interrupts lists the same three gpio-keys lines). Add the same gpio-keys node as zuma-husky, with zuma-pinctrl.dtsi's key pins. Without it the power key is not an input device, so nothing on the phone can wake the screen once the lock has blanked it. Tested on a Pixel 8a from slot B (7.3.0-rc6): gpio-keys registers as an input device with the three keys; one short press of each raises its interrupt twice (press and release), and a short Power press wakes the screen through the session's lock without powering the phone off. Assisted-by: Claude Opus 5.5 Signed-off-by: DarekM <149845949+aninmucek@users.noreply.github.com> --- .../boot/dts/exynos/google/zuma-akita.dts | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/arch/arm64/boot/dts/exynos/google/zuma-akita.dts b/arch/arm64/boot/dts/exynos/google/zuma-akita.dts index 0f01727be9..aad383858e 100644 --- a/arch/arm64/boot/dts/exynos/google/zuma-akita.dts +++ b/arch/arm64/boot/dts/exynos/google/zuma-akita.dts @@ -6,6 +6,7 @@ /dts-v1/; #include +#include #include "zuma.dtsi" / { @@ -77,6 +78,33 @@ }; }; + gpio-keys { + compatible = "gpio-keys"; + pinctrl-0 = <&key_voldown>, <&key_volup>, <&key_power>; + pinctrl-names = "default"; + + button-vol-down { + label = "KEY_VOLUMEDOWN"; + linux,code = ; + gpios = <&gpa4 1 GPIO_ACTIVE_LOW>; + wakeup-source; + }; + + button-vol-up { + label = "KEY_VOLUMEUP"; + linux,code = ; + gpios = <&gpa6 2 GPIO_ACTIVE_LOW>; + wakeup-source; + }; + + button-power { + label = "KEY_POWER"; + linux,code = ; + gpios = <&gpa4 0 GPIO_ACTIVE_LOW>; + wakeup-source; + }; + }; + reserved-memory { #address-cells = <2>; #size-cells = <1>; From 430a51b432046011fd75d921658de973a285450c Mon Sep 17 00:00:00 2001 From: DarekM <149845949+aninmucek@users.noreply.github.com> Date: Tue, 10 Nov 2026 15:57:46 +0000 Subject: [PATCH 2/2] arm64: dts: exynos: google: zuma-akita: Default to suspend-to-idle The firmware advertises PSCI SYSTEM_SUSPEND, so the kernel offers deep sleep and makes it the default: /sys/power/mem_sleep reads "s2idle [deep]" on the Pixel 8a. Linux has no zuma sleep sequence yet, so a deep suspend would not wake. Pass mem_sleep_default=s2idle, as the Pixel 7 Pro and the Pixel 7 do, so a suspend that names no state stays in s2idle. The omamobile-device-akita package already asks systemd for s2idle; this covers anything that writes "mem" directly. Tested on a Pixel 8a from slot B (7.3.0-rc6): /proc/cmdline carries mem_sleep_default=s2idle and /sys/power/mem_sleep reads "[s2idle] deep". Suggested-by: Derek Ross Assisted-by: Claude Opus 5.5 Signed-off-by: DarekM <149845949+aninmucek@users.noreply.github.com> --- arch/arm64/boot/dts/exynos/google/zuma-akita.dts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/exynos/google/zuma-akita.dts b/arch/arm64/boot/dts/exynos/google/zuma-akita.dts index aad383858e..bd1822f005 100644 --- a/arch/arm64/boot/dts/exynos/google/zuma-akita.dts +++ b/arch/arm64/boot/dts/exynos/google/zuma-akita.dts @@ -56,8 +56,11 @@ * hang that never panics lasts until someone resets the phone * with its buttons: panic on soft and hard lockups and on RCU * stalls, so that panic=10 resets the phone by itself. + * mem_sleep_default=s2idle: the firmware offers PSCI system + * suspend, so "mem" would otherwise mean "deep", which needs a + * PMU sleep sequence the kernel doesn't have yet. */ - bootargs = "console=tty0 fbcon=font:TER16x32 reboot=warm panic=10 softlockup_panic=1 nmi_watchdog=panic sysctl.kernel.panic_on_rcu_stall=1 clk_ignore_unused pd_ignore_unused rdinit=/init"; + bootargs = "console=tty0 fbcon=font:TER16x32 reboot=warm panic=10 softlockup_panic=1 nmi_watchdog=panic sysctl.kernel.panic_on_rcu_stall=1 clk_ignore_unused pd_ignore_unused rdinit=/init mem_sleep_default=s2idle"; #address-cells = <2>; #size-cells = <1>; ranges;