Commit 3d2059f9 authored by Lucien Zhao's avatar Lucien Zhao Committed by Benjamin Cabé
Browse files

boards: nxp: mimxrt700_evk: enable sc_timer as pwm function

enable sc_timer for cm33_cpu0 core.
test tests/drivers/pwm/pwm_api case passed.

Signed-off-by: default avatarLucien Zhao <lucien.zhao@nxp.com>
parent c2ea1ac9
Loading
Loading
Loading
Loading
+4 −0
Changes for boards/nxp/mimxrt700_evk/board.c: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -432,6 +432,10 @@ void board_early_init_hook(void)
#if DT_NODE_HAS_STATUS_OKAY(DT_NODELABEL(wwdt0))
	CLOCK_AttachClk(kLPOSC_to_WWDT0);
#endif

#if DT_NODE_HAS_STATUS(DT_NODELABEL(sc_timer), okay)
	CLOCK_AttachClk(kFRO0_DIV6_to_SCT);
#endif
}

static void GlikeyWriteEnable(GLIKEY_Type *base, uint8_t idx)
+2 −0
Changes for boards/nxp/mimxrt700_evk/doc/index.rst: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -71,6 +71,8 @@ the hardware features below.
+-----------+------------+-------------------------------------+
| SYSTICK   | on-chip    | systick                             |
+-----------+------------+-------------------------------------+
| SCTimer   | on-chip    | pwm                                 |
+-----------+------------+-------------------------------------+
| IOCON     | on-chip    | pinmux                              |
+-----------+------------+-------------------------------------+
| I2C       | on-chip    | i2c                                 |
+9 −0
Changes for boards/nxp/mimxrt700_evk/mimxrt700_evk-pinctrl.dtsi: 9 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -75,4 +75,13 @@
			nxp,analog-mode;
		};
	};

	pinmux_sctimer: pinmux_sctimer {
		group0 {
			pinmux = <SCT0_IN0_PIO0_0>;
			slew-rate = "normal";
			drive-strength = "normal";
			input-enable;
		};
	};
};
+7 −0
Changes for boards/nxp/mimxrt700_evk/mimxrt700_evk_mimxrt798s_cm33_cpu0.dts: 7 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -21,6 +21,7 @@
		sw0 = &user_button_1;
		sw1 = &user_button_2;
		watchdog0 = &wwdt0;
		pwm-0 = &sc_timer;
	};

	chosen {
@@ -132,6 +133,12 @@
	status = "okay";
};

&sc_timer {
	status = "okay";
	pinctrl-0 = <&pinmux_sctimer>;
	pinctrl-names = "default";
};

&xspi0 {
	status = "okay";