aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/layerscape/patches-5.4/302-dts-0071-arm-dts-ls1021a-replace-ftm0-with-ftm_alarm0-DT-node.patch
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/layerscape/patches-5.4/302-dts-0071-arm-dts-ls1021a-replace-ftm0-with-ftm_alarm0-DT-node.patch')
-rw-r--r--target/linux/layerscape/patches-5.4/302-dts-0071-arm-dts-ls1021a-replace-ftm0-with-ftm_alarm0-DT-node.patch62
1 files changed, 62 insertions, 0 deletions
diff --git a/target/linux/layerscape/patches-5.4/302-dts-0071-arm-dts-ls1021a-replace-ftm0-with-ftm_alarm0-DT-node.patch b/target/linux/layerscape/patches-5.4/302-dts-0071-arm-dts-ls1021a-replace-ftm0-with-ftm_alarm0-DT-node.patch
new file mode 100644
index 0000000000..d8412c2b50
--- /dev/null
+++ b/target/linux/layerscape/patches-5.4/302-dts-0071-arm-dts-ls1021a-replace-ftm0-with-ftm_alarm0-DT-node.patch
@@ -0,0 +1,62 @@
+From f3a115bd1372e774979ecb81919664279b81810e Mon Sep 17 00:00:00 2001
+From: Biwen Li <biwen.li@nxp.com>
+Date: Fri, 28 Jun 2019 16:36:20 +0800
+Subject: [PATCH] arm: dts: ls1021a: replace ftm0 with ftm_alarm0 DT node
+
+The patch replaces ftm0 with ftm_alarm0 DT node
+ - remove old ftm0 node
+ - add rcpm node
+ - add ftm_alarm0 node
+ - aliases ftm_alarm0 as rtc1
+
+Signed-off-by: Biwen Li <biwen.li@nxp.com>
+---
+ arch/arm/boot/dts/ls1021a.dtsi | 24 ++++++++++++++----------
+ 1 file changed, 14 insertions(+), 10 deletions(-)
+
+--- a/arch/arm/boot/dts/ls1021a.dtsi
++++ b/arch/arm/boot/dts/ls1021a.dtsi
+@@ -66,6 +66,7 @@
+ serial4 = &lpuart4;
+ serial5 = &lpuart5;
+ sysclk = &sysclk;
++ rtc1 = &ftm_alarm0;
+ };
+
+ cpus {
+@@ -582,16 +583,6 @@
+ status = "disabled";
+ };
+
+- ftm0: ftm0@29d0000 {
+- compatible = "fsl,ftm-alarm";
+- reg = <0x0 0x29d0000 0x0 0x10000>,
+- <0x0 0x1ee2140 0x0 0x4>;
+- reg-names = "ftm", "FlexTimer1";
+- interrupts = <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>;
+- big-endian;
+- status = "okay";
+- };
+-
+ pwm1: pwm@29e0000 {
+ compatible = "fsl,vf610-ftm-pwm";
+ #pwm-cells = <3>;
+@@ -1003,5 +994,18 @@
+ big-endian;
+ };
+
++ rcpm: rcpm@1ee2140 {
++ compatible = "fsl,ls1021a-rcpm", "fsl,qoriq-rcpm-2.1+";
++ reg = <0x0 0x1ee2140 0x0 0x8>;
++ #fsl,rcpm-wakeup-cells = <2>;
++ };
++
++ ftm_alarm0: timer0@29d0000 {
++ compatible = "fsl,ls1021a-ftm-alarm";
++ reg = <0x0 0x29d0000 0x0 0x10000>;
++ fsl,rcpm-wakeup = <&rcpm 0x0 0x20000000>;
++ interrupts = <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>;
++ big-endian;
++ };
+ };
+ };