Skip to content

Commit

Permalink
board: frdmmcxc444: Add uart support
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
NeilChen93 authored and nashif committed Nov 19, 2024
1 parent 55c6a0e commit e5f0075
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions boards/nxp/frdm_mcxc444/frdm_mcxc444-pinctrl.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,12 @@
slew-rate = "slow";
};
};
pinmux_uart2: pinmux_uart2 {
group0 {
pinmux = <UART2_RX_PTD2>,
<UART2_TX_PTD3>;
drive-strength = "low";
slew-rate = "slow";
};
};
};
7 changes: 7 additions & 0 deletions boards/nxp/frdm_mcxc444/frdm_mcxc444.dts
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,10 @@
&lptmr0 {
status = "okay";
};

&uart2 {
status = "disabled";
current-speed = <115200>;
pinctrl-0 = <&pinmux_uart2>;
pinctrl-names = "default";
};
1 change: 1 addition & 0 deletions boards/nxp/frdm_mcxc444/frdm_mcxc444.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ toolchain:
- xtools
supported:
- gpio
- uart
- counter
testing:
ignore_tags:
Expand Down

0 comments on commit e5f0075

Please sign in to comment.