From e5f0075dc65eb0bf37e1a92266be91961943d647 Mon Sep 17 00:00:00 2001 From: Neil Chen Date: Tue, 19 Nov 2024 16:32:11 +0800 Subject: [PATCH] board: frdmmcxc444: Add uart support Add UART configuration and pin control. Set state to disabled, as it serves as alternative to default LPUART0 or as second uart only. Signed-off-by: Neil Chen --- boards/nxp/frdm_mcxc444/frdm_mcxc444-pinctrl.dtsi | 8 ++++++++ boards/nxp/frdm_mcxc444/frdm_mcxc444.dts | 7 +++++++ boards/nxp/frdm_mcxc444/frdm_mcxc444.yaml | 1 + 3 files changed, 16 insertions(+) diff --git a/boards/nxp/frdm_mcxc444/frdm_mcxc444-pinctrl.dtsi b/boards/nxp/frdm_mcxc444/frdm_mcxc444-pinctrl.dtsi index 7f0010c3cbe..87552988ff8 100644 --- a/boards/nxp/frdm_mcxc444/frdm_mcxc444-pinctrl.dtsi +++ b/boards/nxp/frdm_mcxc444/frdm_mcxc444-pinctrl.dtsi @@ -16,4 +16,12 @@ slew-rate = "slow"; }; }; + pinmux_uart2: pinmux_uart2 { + group0 { + pinmux = , + ; + drive-strength = "low"; + slew-rate = "slow"; + }; + }; }; diff --git a/boards/nxp/frdm_mcxc444/frdm_mcxc444.dts b/boards/nxp/frdm_mcxc444/frdm_mcxc444.dts index f574fdc13a1..0a0c55f730e 100644 --- a/boards/nxp/frdm_mcxc444/frdm_mcxc444.dts +++ b/boards/nxp/frdm_mcxc444/frdm_mcxc444.dts @@ -100,3 +100,10 @@ &lptmr0 { status = "okay"; }; + +&uart2 { + status = "disabled"; + current-speed = <115200>; + pinctrl-0 = <&pinmux_uart2>; + pinctrl-names = "default"; +}; diff --git a/boards/nxp/frdm_mcxc444/frdm_mcxc444.yaml b/boards/nxp/frdm_mcxc444/frdm_mcxc444.yaml index 1fe20ef5ccd..c32022e2b16 100644 --- a/boards/nxp/frdm_mcxc444/frdm_mcxc444.yaml +++ b/boards/nxp/frdm_mcxc444/frdm_mcxc444.yaml @@ -16,6 +16,7 @@ toolchain: - xtools supported: - gpio + - uart - counter testing: ignore_tags: