boards: frdm_mcxn947: Add SCTimer support

Add support for SCTimer

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
This commit is contained in:
Mahesh Mahadevan 2024-10-24 06:11:02 -05:00 committed by Anas Nashif
commit 488e4bbf5f
5 changed files with 27 additions and 0 deletions

View file

@ -379,6 +379,12 @@ static int frdm_mcxn947_init(void)
CLOCK_AttachClk(kI3C1FCLK_to_I3C1FCLKSTC);
#endif
#if DT_NODE_HAS_STATUS(DT_NODELABEL(sc_timer), okay)
/* attach FRO HF to SCT */
CLOCK_SetClkDiv(kCLOCK_DivSctClk, 1u);
CLOCK_AttachClk(kFRO_HF_to_SCT);
#endif
/* Set SystemCoreClock variable. */
SystemCoreClock = CLOCK_INIT_CORE_CLOCK;

View file

@ -75,6 +75,8 @@ The FRDM-MCXN947 board configuration supports the following hardware features:
+-----------+------------+-------------------------------------+
| PWM | on-chip | pwm |
+-----------+------------+-------------------------------------+
| SCTimer | on-chip | pwm |
+-----------+------------+-------------------------------------+
| CTIMER | on-chip | counter |
+-----------+------------+-------------------------------------+
| USDHC | on-chip | sdhc |

View file

@ -232,6 +232,15 @@
};
};
pinmux_sctimer: pinmux_sctimer {
group0 {
pinmux = <SCT0_OUT0_PIO2_2>;
slew-rate = "fast";
drive-strength = "low";
input-enable;
};
};
pinmux_flexio_lcd: pinmux_flexio_lcd {
group0 {
pinmux = <FLEXIO0_D16_PIO2_8>,

View file

@ -268,3 +268,8 @@ zephyr_mipi_dbi_parallel: &flexio0_lcd {
pinctrl-0 = <&pinmux_flexcan0>;
pinctrl-names = "default";
};
&sc_timer {
pinctrl-0 = <&pinmux_sctimer>;
pinctrl-names = "default";
};

View file

@ -32,6 +32,7 @@
aliases{
watchdog0 = &wwdt0;
pwm-0 = &flexpwm1_pwm0;
pwm-1 = &sc_timer;
rtc = &rtc;
};
};
@ -206,3 +207,7 @@ zephyr_udc0: &usb1 {
&rtc {
status = "okay";
};
&sc_timer {
status = "okay";
};