arm64: dts: layerscape: add ftm_alarm0 node
authorBiwen Li <biwen.li@nxp.com>
Wed, 24 Jun 2020 02:45:00 +0000 (10:45 +0800)
committerShawn Guo <shawnguo@kernel.org>
Sat, 11 Jul 2020 15:38:49 +0000 (23:38 +0800)
The patch adds ftm_alarm0 DT node
- add new rcpm node
- add ftm_alarm0 node
- aliases ftm_alarm0 as rtc1

Signed-off-by: Biwen Li <biwen.li@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi
arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi
arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi
arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi
arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi

index 006e544..ff19ec4 100644 (file)
@@ -17,6 +17,7 @@
 
        aliases {
                crypto = &crypto;
+               rtc1 = &ftm_alarm0;
                rtic-a = &rtic_a;
                rtic-b = &rtic_b;
                rtic-c = &rtic_c;
                                        <0000 0 0 4 &gic 0 113 IRQ_TYPE_LEVEL_HIGH>;
                        status = "disabled";
                };
+
+               rcpm: power-controller@1ee2140 {
+                       compatible = "fsl,ls1012a-rcpm", "fsl,qoriq-rcpm-2.1+";
+                       reg = <0x0 0x1ee2140 0x0 0x4>;
+                       #fsl,rcpm-wakeup-cells = <1>;
+               };
+
+               ftm_alarm0: timer@29d0000 {
+                       compatible = "fsl,ls1012a-ftm-alarm";
+                       reg = <0x0 0x29d0000 0x0 0x10000>;
+                       fsl,rcpm-wakeup = <&rcpm 0x20000>;
+                       interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
+                       big-endian;
+               };
        };
 
        firmware {
index 3b641bd..55ceae7 100644 (file)
@@ -27,6 +27,7 @@
                ethernet4 = &enet4;
                ethernet5 = &enet5;
                ethernet6 = &enet6;
+               rtc1 = &ftm_alarm0;
        };
 
        cpus {
                        big-endian;
                };
 
+               rcpm: power-controller@1ee2140 {
+                       compatible = "fsl,ls1043a-rcpm", "fsl,qoriq-rcpm-2.1+";
+                       reg = <0x0 0x1ee2140 0x0 0x4>;
+                       #fsl,rcpm-wakeup-cells = <1>;
+               };
+
+               ftm_alarm0: timer@29d0000 {
+                       compatible = "fsl,ls1043a-ftm-alarm";
+                       reg = <0x0 0x29d0000 0x0 0x10000>;
+                       fsl,rcpm-wakeup = <&rcpm 0x20000>;
+                       interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
+                       big-endian;
+               };
        };
 
        firmware {
index d4c1da3..3c92c21 100644 (file)
@@ -28,6 +28,7 @@
                ethernet5 = &enet5;
                ethernet6 = &enet6;
                ethernet7 = &enet7;
+               rtc1 = &ftm_alarm0;
        };
 
        cpus {
                        queue-sizes = <64 64>;
                        big-endian;
                };
+
+               rcpm: power-controller@1ee2140 {
+                       compatible = "fsl,ls1046a-rcpm", "fsl,qoriq-rcpm-2.1+";
+                       reg = <0x0 0x1ee2140 0x0 0x4>;
+                       #fsl,rcpm-wakeup-cells = <1>;
+               };
+
+               ftm_alarm0: timer@29d0000 {
+                       compatible = "fsl,ls1046a-ftm-alarm";
+                       reg = <0x0 0x29d0000 0x0 0x10000>;
+                       fsl,rcpm-wakeup = <&rcpm 0x20000>;
+                       interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
+                       big-endian;
+               };
        };
 
        reserved-memory {
index 36a7995..169f474 100644 (file)
@@ -18,6 +18,7 @@
 
        aliases {
                crypto = &crypto;
+               rtc1 = &ftm_alarm0;
        };
 
        cpus {
                                };
                        };
                };
+
+               rcpm: power-controller@1e34040 {
+                       compatible = "fsl,ls1088a-rcpm", "fsl,qoriq-rcpm-2.1+";
+                       reg = <0x0 0x1e34040 0x0 0x18>;
+                       #fsl,rcpm-wakeup-cells = <6>;
+               };
+
+               ftm_alarm0: timer@2800000 {
+                       compatible = "fsl,ls1088a-ftm-alarm";
+                       reg = <0x0 0x2800000 0x0 0x10000>;
+                       fsl,rcpm-wakeup = <&rcpm 0x0 0x0 0x0 0x0 0x4000 0x0>;
+                       interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
+               };
        };
 
        firmware {
index 3944ef1..41102da 100644 (file)
@@ -20,6 +20,7 @@
 
        aliases {
                crypto = &crypto;
+               rtc1 = &ftm_alarm0;
                serial0 = &serial0;
                serial1 = &serial1;
                serial2 = &serial2;
                        reg = <0x0 0x04000000 0x0 0x01000000>;
                        interrupts = <0 12 4>;
                };
+
+               rcpm: power-controller@1e34040 {
+                       compatible = "fsl,ls208xa-rcpm", "fsl,qoriq-rcpm-2.1+";
+                       reg = <0x0 0x1e34040 0x0 0x18>;
+                       #fsl,rcpm-wakeup-cells = <6>;
+               };
+
+               ftm_alarm0: timer@2800000 {
+                       compatible = "fsl,ls208xa-ftm-alarm";
+                       reg = <0x0 0x2800000 0x0 0x10000>;
+                       fsl,rcpm-wakeup = <&rcpm 0x0 0x0 0x0 0x0 0x4000 0x0>;
+                       interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
+               };
        };
 
        ddr1: memory-controller@1080000 {