Commit 33e88b07 authored by Neil Chen's avatar Neil Chen Committed by Benjamin Cabé
Browse files

boards: nxp: frdm_mcxa153: Support lpcmp for NXP frdm_mcxa153 board

Support lpcmp for NXP frdm_mcxa153 board.

Signed-off-by: default avatarNeil Chen <cheng.chen_1@nxp.com>
parent 53dd770a
Loading
Loading
Loading
Loading
+6 −0
Changes for boards/nxp/frdm_mcxa153/board.c: 6 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -97,6 +97,12 @@ void board_early_init_hook(void)
	CLOCK_EnableClock(kCLOCK_GateADC0);
#endif

#if DT_NODE_HAS_STATUS_OKAY(DT_NODELABEL(lpcmp0))
	CLOCK_AttachClk(kFRO12M_to_CMP0);
	CLOCK_SetClockDiv(kCLOCK_DivCMP0_FUNC, 1U);
	SPC_EnableActiveModeAnalogModules(SPC0, (kSPC_controlCmp0 | kSPC_controlCmp0Dac));
#endif

#if DT_NODE_HAS_STATUS_OKAY(DT_NODELABEL(lpuart0))
	CLOCK_SetClockDiv(kCLOCK_DivLPUART0, 1u);
	CLOCK_AttachClk(kFRO12M_to_LPUART0);
+9 −0
Changes for boards/nxp/frdm_mcxa153/frdm_mcxa153-pinctrl.dtsi: 9 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -25,6 +25,15 @@
		};
	};

	pinmux_lpcmp0: pinmux_lpcmp0 {
		group0 {
			pinmux = <CMP0_IN0_P2_2>;
			drive-strength = "low";
			slew-rate = "fast";
			bias-pull-up;
		};
	};

	pinmux_lpuart0: pinmux_lpuart0 {
		group0 {
			pinmux = <LPUART0_RXD_P0_2>,
+6 −0
Changes for boards/nxp/frdm_mcxa153/frdm_mcxa153.dts: 6 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -122,6 +122,12 @@
	pinctrl-names = "default";
};

&lpcmp0 {
	status = "okay";
	pinctrl-0 = <&pinmux_lpcmp0>;
	pinctrl-names = "default";
};

&lpuart0 {
	status = "okay";
	current-speed = <115200>;