Skip to content

Commit dd3d936

Browse files
biwenliShawn Guo
authored and
Shawn Guo
committed
arm64: dts: ls1028a: add ftm_alarm1 node to be used as wakeup source
Add flextimer2 based ftm_alarm1 node and enable it to be the default rtc wakeup source for rdb and qds boards instead of the original flextimer1 which is used by PWM. The ftm_alarm0 node hence is disabled by default. Signed-off-by: Biwen Li <[email protected]> Signed-off-by: Li Yang <[email protected]> Signed-off-by: Shawn Guo <[email protected]>
1 parent e84e22c commit dd3d936

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
serial1 = &duart1;
2626
mmc0 = &esdhc;
2727
mmc1 = &esdhc1;
28-
rtc1 = &ftm_alarm0;
28+
rtc1 = &ftm_alarm1;
2929
};
3030

3131
chosen {
@@ -234,6 +234,10 @@
234234
};
235235
};
236236

237+
&ftm_alarm1 {
238+
status = "okay";
239+
};
240+
237241
&i2c0 {
238242
status = "okay";
239243

arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
serial1 = &duart1;
2222
mmc0 = &esdhc;
2323
mmc1 = &esdhc1;
24-
rtc1 = &ftm_alarm0;
24+
rtc1 = &ftm_alarm1;
2525
spi0 = &fspi;
2626
ethernet0 = &enetc_port0;
2727
ethernet1 = &enetc_port2;
@@ -181,6 +181,10 @@
181181
};
182182
};
183183

184+
&ftm_alarm1 {
185+
status = "okay";
186+
};
187+
184188
&i2c0 {
185189
status = "okay";
186190

arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1198,6 +1198,15 @@
11981198
reg = <0x0 0x2800000 0x0 0x10000>;
11991199
fsl,rcpm-wakeup = <&rcpm 0x0 0x0 0x0 0x0 0x4000 0x0 0x0>;
12001200
interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
1201+
status = "disabled";
1202+
};
1203+
1204+
ftm_alarm1: timer@2810000 {
1205+
compatible = "fsl,ls1028a-ftm-alarm";
1206+
reg = <0x0 0x2810000 0x0 0x10000>;
1207+
fsl,rcpm-wakeup = <&rcpm 0x0 0x0 0x0 0x0 0x4000 0x0 0x0>;
1208+
interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
1209+
status = "disabled";
12011210
};
12021211
};
12031212

0 commit comments

Comments
 (0)