Commit 95d739b5 authored by Frank Li's avatar Frank Li Committed by Shawn Guo

ARM: dts: imx: update snvs to use syscon access register

snvs is MFP device. Change dts to use syscon to allocate register resource.
snvs power off also switch to common syscon-poweroff
Signed-off-by: default avatarFrank Li <Frank.Li@freescale.com>
Signed-off-by: default avatarShawn Guo <shawnguo@kernel.org>
parent a5fcccbc
...@@ -718,22 +718,23 @@ usbphy2: usbphy@020ca000 { ...@@ -718,22 +718,23 @@ usbphy2: usbphy@020ca000 {
fsl,anatop = <&anatop>; fsl,anatop = <&anatop>;
}; };
snvs@020cc000 { snvs: snvs@020cc000 {
compatible = "fsl,sec-v4.0-mon", "simple-bus"; compatible = "fsl,sec-v4.0-mon", "syscon", "simple-mfd";
#address-cells = <1>; reg = <0x020cc000 0x4000>;
#size-cells = <1>;
ranges = <0 0x020cc000 0x4000>;
snvs_rtc: snvs-rtc-lp@34 { snvs_rtc: snvs-rtc-lp {
compatible = "fsl,sec-v4.0-mon-rtc-lp"; compatible = "fsl,sec-v4.0-mon-rtc-lp";
reg = <0x34 0x58>; regmap = <&snvs>;
offset = <0x34>;
interrupts = <0 19 IRQ_TYPE_LEVEL_HIGH>, interrupts = <0 19 IRQ_TYPE_LEVEL_HIGH>,
<0 20 IRQ_TYPE_LEVEL_HIGH>; <0 20 IRQ_TYPE_LEVEL_HIGH>;
}; };
snvs_poweroff: snvs-poweroff@38 { snvs_poweroff: snvs-poweroff {
compatible = "fsl,sec-v4.0-poweroff"; compatible = "syscon-poweroff";
reg = <0x38 0x4>; regmap = <&snvs>;
offset = <0x38>;
mask = <0x60>;
status = "disabled"; status = "disabled";
}; };
}; };
......
...@@ -563,22 +563,23 @@ usbphy2: usbphy@020ca000 { ...@@ -563,22 +563,23 @@ usbphy2: usbphy@020ca000 {
fsl,anatop = <&anatop>; fsl,anatop = <&anatop>;
}; };
snvs@020cc000 { snvs: snvs@020cc000 {
compatible = "fsl,sec-v4.0-mon", "simple-bus"; compatible = "fsl,sec-v4.0-mon", "syscon", "simple-mfd";
#address-cells = <1>; reg = <0x020cc000 0x4000>;
#size-cells = <1>;
ranges = <0 0x020cc000 0x4000>;
snvs_rtc: snvs-rtc-lp@34 { snvs_rtc: snvs-rtc-lp {
compatible = "fsl,sec-v4.0-mon-rtc-lp"; compatible = "fsl,sec-v4.0-mon-rtc-lp";
reg = <0x34 0x58>; regmap = <&snvs>;
offset = <0x34>;
interrupts = <0 19 IRQ_TYPE_LEVEL_HIGH>, interrupts = <0 19 IRQ_TYPE_LEVEL_HIGH>,
<0 20 IRQ_TYPE_LEVEL_HIGH>; <0 20 IRQ_TYPE_LEVEL_HIGH>;
}; };
snvs_poweroff: snvs-poweroff@38 { snvs_poweroff: snvs-poweroff {
compatible = "fsl,sec-v4.0-poweroff"; compatible = "syscon-poweroff";
reg = <0x38 0x4>; regmap = <&snvs>;
offset = <0x38>;
mask = <0x60>;
status = "disabled"; status = "disabled";
}; };
}; };
......
...@@ -663,20 +663,21 @@ usbphy2: usbphy@020ca000 { ...@@ -663,20 +663,21 @@ usbphy2: usbphy@020ca000 {
}; };
snvs: snvs@020cc000 { snvs: snvs@020cc000 {
compatible = "fsl,sec-v4.0-mon", "simple-bus"; compatible = "fsl,sec-v4.0-mon", "syscon", "simple-mfd";
#address-cells = <1>; reg = <0x020cc000 0x4000>;
#size-cells = <1>;
ranges = <0 0x020cc000 0x4000>;
snvs_rtc: snvs-rtc-lp@34 { snvs_rtc: snvs-rtc-lp {
compatible = "fsl,sec-v4.0-mon-rtc-lp"; compatible = "fsl,sec-v4.0-mon-rtc-lp";
reg = <0x34 0x58>; regmap = <&snvs>;
offset = <0x34>;
interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
}; };
snvs_poweroff: snvs-poweroff@38 { snvs_poweroff: snvs-poweroff {
compatible = "fsl,sec-v4.0-poweroff"; compatible = "syscon-poweroff";
reg = <0x38 0x4>; regmap = <&snvs>;
offset = <0x38>;
mask = <0x60>;
status = "disabled"; status = "disabled";
}; };
......
...@@ -419,14 +419,13 @@ edma1: dma-controller@40098000 { ...@@ -419,14 +419,13 @@ edma1: dma-controller@40098000 {
}; };
snvs0: snvs@400a7000 { snvs0: snvs@400a7000 {
compatible = "fsl,sec-v4.0-mon", "simple-bus"; compatible = "fsl,sec-v4.0-mon", "syscon", "simple-mfd";
#address-cells = <1>; reg = <0x400a7000 0x2000>;
#size-cells = <1>;
ranges = <0 0x400a7000 0x2000>;
snvsrtc: snvs-rtc-lp@34 { snvsrtc: snvs-rtc-lp {
compatible = "fsl,sec-v4.0-mon-rtc-lp"; compatible = "fsl,sec-v4.0-mon-rtc-lp";
reg = <0x34 0x58>; regmap = <&snvs0>;
offset = <0x34>;
interrupts = <100 IRQ_TYPE_LEVEL_HIGH>; interrupts = <100 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clks VF610_CLK_SNVS>; clocks = <&clks VF610_CLK_SNVS>;
clock-names = "snvs-rtc"; clock-names = "snvs-rtc";
......
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