ARM: dts: imx7s: Enable SNVS power key according to board design
authorAnson Huang <Anson.Huang@nxp.com>
Thu, 13 Jun 2019 03:35:26 +0000 (11:35 +0800)
committerShawn Guo <shawnguo@kernel.org>
Tue, 18 Jun 2019 07:15:02 +0000 (15:15 +0800)
The SNVS power key depends on board design, by default it should
be disabled in SoC DT and ONLY be enabled on board DT if it is
wired up.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx7d-sdb.dts
arch/arm/boot/dts/imx7s.dtsi

index a5365b8694850c136643d4382fb610c6c691ff85..869efbc4af42c75e02c90b1c424999f99eaeeba0 100644 (file)
        vin-supply = <&sw2_reg>;
 };
 
+&snvs_pwrkey {
+       status = "okay";
+};
+
 &uart1 {
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_uart1>;
index 5b8292670b4ba967f2c3416a0508f70026961574..c1a4fff5ceda9791603a4ce23e142fd539b443da 100644 (file)
                                        interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
                                        linux,keycode = <KEY_POWER>;
                                        wakeup-source;
+                                       status = "disabled";
                                };
                        };