All of lore.kernel.org
 help / color / mirror / Atom feed
* [v2 1/4] arm64: dts: lx2160a: add ftm_alarm0 DT node
@ 2020-06-14 14:32 Biwen Li
  2020-06-14 14:32 ` [v2 2/4] arm64: dts: ls1028a: Add " Biwen Li
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Biwen Li @ 2020-06-14 14:32 UTC (permalink / raw)
  To: shawnguo, ran.wang_1, robh+dt, mark.rutland
  Cc: devicetree, linux-kernel, jiafei.pan, Biwen Li

From: Biwen Li <biwen.li@nxp.com>

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>
---
Change in v2:
	- use generic name
	- use definition

 arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi b/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi
index abaeb58..d571b7d 100644
--- a/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi
+++ b/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi
@@ -16,6 +16,10 @@
 	#address-cells = <2>;
 	#size-cells = <2>;
 
+	aliases {
+		rtc1 = &ftm_alarm0;
+	};
+
 	cpus {
 		#address-cells = <1>;
 		#size-cells = <0>;
@@ -888,6 +892,20 @@
 			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>;
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-06-24  2:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-14 14:32 [v2 1/4] arm64: dts: lx2160a: add ftm_alarm0 DT node Biwen Li
2020-06-14 14:32 ` [v2 2/4] arm64: dts: ls1028a: Add " Biwen Li
2020-06-14 14:32 ` [v2 3/4] arm64: dts: ls1012a/ls1043a/ls1046a/ls1088a/ls208xa: add ftm_alarm0 node Biwen Li
2020-06-23 12:00   ` Shawn Guo
2020-06-24  2:25     ` Biwen Li (OSS)
2020-06-14 14:32 ` [v2 4/4] arm: dts: ls1021a: add ftm_alarm0 DT node Biwen Li

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.