[PATCH 4/5] arm64: dts: mediatek: mt8173-amazon-suez: Enable the volume keys
From: Ryan Brue
Date: Wed Nov 11 2026 - 13:31:14 EST
The volume keys are keys 0 and 1 of the SoC keypad. The controller
reports a pressed key in every row of its column, so describe its whole
8 by 9 layout, which keeps each reported position inside the key map.
Signed-off-by: Ryan Brue <ryanbrue.dev@xxxxxxxxx>
---
The key map and the debounce time are the vendor kernel's.
---
arch/arm64/boot/dts/mediatek/mt8173-amazon-suez.dts | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/arch/arm64/boot/dts/mediatek/mt8173-amazon-suez.dts b/arch/arm64/boot/dts/mediatek/mt8173-amazon-suez.dts
index 6fd7777eb491..7dc0d818a44d 100644
--- a/arch/arm64/boot/dts/mediatek/mt8173-amazon-suez.dts
+++ b/arch/arm64/boot/dts/mediatek/mt8173-amazon-suez.dts
@@ -250,6 +250,17 @@ light-sensor@23 {
};
};
+&keyboard {
+ /* Each key is reported in all eight rows of its column */
+ keypad,num-rows = <8>;
+ keypad,num-columns = <9>;
+ linux,keymap = <MATRIX_KEY(0, 0, KEY_VOLUMEUP)
+ MATRIX_KEY(0, 1, KEY_VOLUMEDOWN)>;
+ debounce-delay-ms = <32>;
+ wakeup-source;
+ status = "okay";
+};
+
/* Consumes the VPU, which is disabled below */
&mdp_rdma0 {
status = "disabled";
--
2.56.0