From: Frank Li Date: Tue, 28 Jul 2015 17:50:00 +0000 (+0800) Subject: ARM: dts: imx7d: enable snvs rtc, onoffkey and power off X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=abb9f253cd9873f1826c4accdad89ec3fe80de21;p=linux-beck.git ARM: dts: imx7d: enable snvs rtc, onoffkey and power off Change SNVS rtc to syscon interface. Enable onoff key and power off function. Signed-off-by: Frank Li Signed-off-by: Shawn Guo --- diff --git a/arch/arm/boot/dts/imx7d.dtsi b/arch/arm/boot/dts/imx7d.dtsi index 9014b8071b19..b738ce0f9d9b 100644 --- a/arch/arm/boot/dts/imx7d.dtsi +++ b/arch/arm/boot/dts/imx7d.dtsi @@ -525,17 +525,31 @@ }; snvs: snvs@30370000 { - compatible = "fsl,sec-v4.0-mon", "simple-bus"; - #address-cells = <1>; - #size-cells = <1>; - ranges = <0 0x30370000 0x10000>; + compatible = "fsl,sec-v4.0-mon", "syscon", "simple-mfd"; + reg = <0x30370000 0x10000>; - snvs-rtc-lp@34 { + snvs_rtc: snvs-rtc-lp { compatible = "fsl,sec-v4.0-mon-rtc-lp"; - reg = <0x34 0x58>; + regmap = <&snvs>; + offset = <0x34>; interrupts = , ; }; + + snvs_poweroff: snvs-poweroff { + compatible = "syscon-poweroff"; + regmap = <&snvs>; + offset = <0x38>; + mask = <0x60>; + }; + + snvs_pwrkey: snvs-powerkey { + compatible = "fsl,sec-v4.0-pwrkey"; + regmap = <&snvs>; + interrupts = ; + linux,keycode = ; + wakeup-source; + }; }; clks: ccm@30380000 {