]> www.infradead.org Git - users/willy/xarray.git/commitdiff
ARM: dts: imx7s: add snvs clock to pwrkey
authorAndré Draszik <git@andred.net>
Tue, 25 Feb 2020 16:11:57 +0000 (16:11 +0000)
committerShawn Guo <shawnguo@kernel.org>
Wed, 11 Mar 2020 06:46:38 +0000 (14:46 +0800)
On i.MX7, 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 ec2a844ef7c1
("ARM: dts: imx7s: add snvs rtc clock")
for a similar fix.

Signed-off-by: André Draszik <git@andred.net>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx7s.dtsi

index 196bbd6f6fccd0ba2c824bb50681b456f5459eb1..5df205f8a066a4e1806de179ec8fdc8b1e6bea76 100644 (file)
                                        compatible = "fsl,sec-v4.0-pwrkey";
                                        regmap = <&snvs>;
                                        interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
+                                       clocks = <&clks IMX7D_SNVS_CLK>;
+                                       clock-names = "snvs-pwrkey";
                                        linux,keycode = <KEY_POWER>;
                                        wakeup-source;
                                        status = "disabled";