boards: frdm_mcxn947: Add SCTimer support
Add support for SCTimer Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
This commit is contained in:
parent
12486ca7e2
commit
488e4bbf5f
5 changed files with 27 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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 |
|
||||
|
|
|
@ -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>,
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue