File tree Expand file tree Collapse file tree 4 files changed +22
-0
lines changed Expand file tree Collapse file tree 4 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -432,6 +432,10 @@ void board_early_init_hook(void)
432432#if DT_NODE_HAS_STATUS_OKAY (DT_NODELABEL (wwdt0 ))
433433 CLOCK_AttachClk (kLPOSC_to_WWDT0 );
434434#endif
435+
436+ #if DT_NODE_HAS_STATUS (DT_NODELABEL (sc_timer ), okay )
437+ CLOCK_AttachClk (kFRO0_DIV6_to_SCT );
438+ #endif
435439}
436440
437441static void GlikeyWriteEnable (GLIKEY_Type * base , uint8_t idx )
Original file line number Diff line number Diff line change @@ -71,6 +71,8 @@ the hardware features below.
7171+-----------+------------+-------------------------------------+
7272| SYSTICK | on-chip | systick |
7373+-----------+------------+-------------------------------------+
74+ | SCTimer | on-chip | pwm |
75+ +-----------+------------+-------------------------------------+
7476| IOCON | on-chip | pinmux |
7577+-----------+------------+-------------------------------------+
7678| I2C | on-chip | i2c |
Original file line number Diff line number Diff line change 7575 nxp,analog-mode;
7676 };
7777 };
78+
79+ pinmux_sctimer: pinmux_sctimer {
80+ group0 {
81+ pinmux = <SCT0_IN0_PIO0_0>;
82+ slew-rate = "normal";
83+ drive-strength = "normal";
84+ input-enable;
85+ };
86+ };
7887};
Original file line number Diff line number Diff line change 2121 sw0 = &user_button_1;
2222 sw1 = &user_button_2;
2323 watchdog0 = &wwdt0;
24+ pwm-0 = &sc_timer;
2425 };
2526
2627 chosen {
132133 status = "okay";
133134};
134135
136+ &sc_timer {
137+ status = "okay";
138+ pinctrl-0 = <&pinmux_sctimer>;
139+ pinctrl-names = "default";
140+ };
141+
135142&xspi0 {
136143 status = "okay";
137144
You can’t perform that action at this time.
0 commit comments