Commit 46770eae authored by André Draszik's avatar André Draszik Committed by Shawn Guo

arm64: dts: imx8mm: add snvs clock to pwrkey

On i.MX8MM, the SNVS requires a clock. This is similar to the clock
bound to the SNVS RTC node, but if the SNVS RTC driver isn't enabled,
then SNVS doesn't work, and as such the pwrkey driver doesn't
work (i.e. hangs the kernel, as the clock isn't enabled).

Also see commit ec2a844e
("ARM: dts: imx7s: add snvs rtc clock")
for a similar fix.
Signed-off-by: default avatarAndré Draszik <git@andred.net>
Signed-off-by: default avatarShawn Guo <shawnguo@kernel.org>
parent d3a719e3
......@@ -455,6 +455,8 @@ snvs_pwrkey: snvs-powerkey {
compatible = "fsl,sec-v4.0-pwrkey";
regmap = <&snvs>;
interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clk IMX8MM_CLK_SNVS_ROOT>;
clock-names = "snvs-pwrkey";
linux,keycode = <KEY_POWER>;
wakeup-source;
status = "disabled";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment