Commit a97af4b5 authored by Mattijs Korpershoek's avatar Mattijs Korpershoek Committed by Matthias Brugger
Browse files

arm64: dts: mt6358: add mt6358-keys node



This enables the power,home keys on MediaTek boards with a mt6358 pmic.

Signed-off-by: default avatarMattijs Korpershoek <mkorpershoek@baylibre.com>
Link: https://lore.kernel.org/r/20220121140323.4080640-5-mkorpershoek@baylibre.com


Signed-off-by: default avatarMatthias Brugger <matthias.bgg@gmail.com>
parent 462f6c4a
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
/*
 * Copyright (c) 2020 MediaTek Inc.
 */
#include <dt-bindings/input/input.h>

&pwrap {
	pmic: mt6358 {
@@ -357,5 +358,16 @@ mt6358_vsim2_reg: ldo_vsim2 {
		mt6358rtc: mt6358rtc {
			compatible = "mediatek,mt6358-rtc";
		};

		mt6358keys: mt6358keys {
			compatible = "mediatek,mt6358-keys";
			power {
				linux,keycodes = <KEY_POWER>;
				wakeup-source;
			};
			home {
				linux,keycodes = <KEY_HOME>;
			};
		};
	};
};