arm64: dts: lx2160a: add ftm_alarm0 DT node
authorBiwen Li <biwen.li@nxp.com>
Wed, 24 Jun 2020 02:44:58 +0000 (10:44 +0800)
committerShawn Guo <shawnguo@kernel.org>
Sat, 11 Jul 2020 15:37:26 +0000 (23:37 +0800)
The patch adds ftm_alarm0 DT node for Soc LX2160A
FlexTimer1 module is used to wakeup the system in deep sleep

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

index f56172f6007689bfd1fbafcbfe88448b8d6c6b32..d0c2c93c3df78744c94d9a641904f9609bd22281 100644 (file)
        #address-cells = <2>;
        #size-cells = <2>;
 
+       aliases {
+               rtc1 = &ftm_alarm0;
+       };
+
        cpus {
                #address-cells = <1>;
                #size-cells = <0>;
                        timeout-sec = <30>;
                };
 
+               rcpm: power-controller@1e34040 {
+                       compatible = "fsl,lx2160a-rcpm", "fsl,qoriq-rcpm-2.1+";
+                       reg = <0x0 0x1e34040 0x0 0x1c>;
+                       #fsl,rcpm-wakeup-cells = <7>;
+                       little-endian;
+               };
+
+               ftm_alarm0: timer@2800000 {
+                       compatible = "fsl,lx2160a-ftm-alarm";
+                       reg = <0x0 0x2800000 0x0 0x10000>;
+                       fsl,rcpm-wakeup = <&rcpm 0x0 0x0 0x0 0x0 0x4000 0x0 0x0>;
+                       interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
+               };
+
                usb0: usb@3100000 {
                        compatible = "snps,dwc3";
                        reg = <0x0 0x3100000 0x0 0x10000>;