Browse Source
FTM internal counter can be clocked by one of three clock sources independent of the module bus clock. This patch introduces a DT property to perform the clock selection from DT. DT sources are updated to keep the current clock selection for all boards, with exception of ucans32k1sic board which is migrated to use system clock by default, as this seems to be a better choice for most cases. Some PWM LED samples require slower clock so overlays are added for those cases. Signed-off-by: Manuel Argüelles <manuel.arguelles@nxp.com>pull/71696/head
15 changed files with 88 additions and 12 deletions
@ -0,0 +1,11 @@
@@ -0,0 +1,11 @@
|
||||
/* |
||||
* Copyright 2024 NXP |
||||
* |
||||
* SPDX-License-Identifier: Apache-2.0 |
||||
*/ |
||||
|
||||
&ftm0 { |
||||
clock-source = "fixed"; |
||||
clocks = <&clock NXP_S32_RTC_CLK>; |
||||
prescaler = <1>; |
||||
}; |
@ -0,0 +1,11 @@
@@ -0,0 +1,11 @@
|
||||
/* |
||||
* Copyright 2024 NXP |
||||
* |
||||
* SPDX-License-Identifier: Apache-2.0 |
||||
*/ |
||||
|
||||
&ftm0 { |
||||
clock-source = "fixed"; |
||||
clocks = <&clock NXP_S32_RTC_CLK>; |
||||
prescaler = <1>; |
||||
}; |
@ -0,0 +1,11 @@
@@ -0,0 +1,11 @@
|
||||
/* |
||||
* Copyright 2024 NXP |
||||
* |
||||
* SPDX-License-Identifier: Apache-2.0 |
||||
*/ |
||||
|
||||
&ftm0 { |
||||
clock-source = "fixed"; |
||||
clocks = <&clock NXP_S32_RTC_CLK>; |
||||
prescaler = <1>; |
||||
}; |
@ -0,0 +1,11 @@
@@ -0,0 +1,11 @@
|
||||
/* |
||||
* Copyright 2024 NXP |
||||
* |
||||
* SPDX-License-Identifier: Apache-2.0 |
||||
*/ |
||||
|
||||
&ftm0 { |
||||
clock-source = "fixed"; |
||||
clocks = <&clock NXP_S32_RTC_CLK>; |
||||
prescaler = <1>; |
||||
}; |
Loading…
Reference in new issue