Skip to content

Commit 3799073

Browse files
manuarguenashif
authored andcommitted
dts: arm: nxp: fix clock name for FTM nodes
Clock NXP_S32_FTMx_CLK reference the output of PCC_FTMx clocks, but FTM has an internal clock mux to select the clock source of the counter, which for ucans32k1sic board is set to system clock. Fix the clock nodes to use the correct clock name. So far this was working because both NXP_S32_FTMx_CLK and NXP_S32_CORE_CLK are configured to the same frequency. Fixes #74348 Signed-off-by: Manuel Argüelles <[email protected]>
1 parent beef60d commit 3799073

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

dts/arm/nxp/nxp_s32k1xx.dtsi

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@
243243
reg = <0x40038000 0x1000>;
244244
interrupts = <99 0>, <100 0>, <101 0>, <102 0>, <104 0>;
245245
interrupt-names = "0-1", "2-3", "4-5", "6-7", "overflow";
246-
clocks = <&clock NXP_S32_FTM0_CLK>;
246+
clocks = <&clock NXP_S32_CORE_CLK>;
247247
prescaler = <1>;
248248
status = "disabled";
249249
};
@@ -253,7 +253,7 @@
253253
reg = <0x40039000 0x1000>;
254254
interrupts = <105 0>, <106 0>, <107 0>, <108 0>, <110 0>;
255255
interrupt-names = "0-1", "2-3", "4-5", "6-7", "overflow";
256-
clocks = <&clock NXP_S32_FTM1_CLK>;
256+
clocks = <&clock NXP_S32_CORE_CLK>;
257257
prescaler = <1>;
258258
status = "disabled";
259259
};
@@ -263,7 +263,7 @@
263263
reg = <0x4003a000 0x1000>;
264264
interrupts = <111 0>, <112 0>, <113 0>, <114 0>, <116 0>;
265265
interrupt-names = "0-1", "2-3", "4-5", "6-7", "overflow";
266-
clocks = <&clock NXP_S32_FTM2_CLK>;
266+
clocks = <&clock NXP_S32_CORE_CLK>;
267267
prescaler = <1>;
268268
status = "disabled";
269269
};
@@ -273,7 +273,7 @@
273273
reg = <0x40026000 0x1000>;
274274
interrupts = <117 0>, <118 0>, <119 0>, <120 0>, <122 0>;
275275
interrupt-names = "0-1", "2-3", "4-5", "6-7", "overflow";
276-
clocks = <&clock NXP_S32_FTM3_CLK>;
276+
clocks = <&clock NXP_S32_CORE_CLK>;
277277
prescaler = <1>;
278278
status = "disabled";
279279
};
@@ -283,7 +283,7 @@
283283
reg = <0x4006e000 0x1000>;
284284
interrupts = <123 0>, <124 0>, <125 0>, <126 0>, <128 0>;
285285
interrupt-names = "0-1", "2-3", "4-5", "6-7", "overflow";
286-
clocks = <&clock NXP_S32_FTM4_CLK>;
286+
clocks = <&clock NXP_S32_CORE_CLK>;
287287
prescaler = <1>;
288288
status = "disabled";
289289
};
@@ -293,7 +293,7 @@
293293
reg = <0x4006f000 0x1000>;
294294
interrupts = <129 0>, <130 0>, <131 0>, <132 0>, <134 0>;
295295
interrupt-names = "0-1", "2-3", "4-5", "6-7", "overflow";
296-
clocks = <&clock NXP_S32_FTM5_CLK>;
296+
clocks = <&clock NXP_S32_CORE_CLK>;
297297
prescaler = <1>;
298298
status = "disabled";
299299
};
@@ -303,6 +303,7 @@
303303
reg = <0x40070000 0x1000>;
304304
interrupts = <135 0>, <136 0>, <137 0>, <138 0>, <140 0>;
305305
interrupt-names = "0-1", "2-3", "4-5", "6-7", "overflow";
306+
clocks = <&clock NXP_S32_CORE_CLK>;
306307
prescaler = <1>;
307308
status = "disabled";
308309
};
@@ -312,6 +313,7 @@
312313
reg = <0x40071000 0x1000>;
313314
interrupts = <141 0>, <142 0>, <143 0>, <144 0>, <146 0>;
314315
interrupt-names = "0-1", "2-3", "4-5", "6-7", "overflow";
316+
clocks = <&clock NXP_S32_CORE_CLK>;
315317
prescaler = <1>;
316318
status = "disabled";
317319
};

0 commit comments

Comments
 (0)