Skip to content

Commit

Permalink
boards: frdm_mcxc242: Add lpuart1 support
Browse files Browse the repository at this point in the history
According to the quick start guide of the FRDM-MCXC242 board, PTE0/PTE1
should be used for lpuart1. Enable and configure it in board dts.

Signed-off-by: Alexandre Rey <[email protected]>
  • Loading branch information
alxrey authored and kartben committed Feb 3, 2025
1 parent 98d5aa3 commit 769df0b
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
4 changes: 4 additions & 0 deletions boards/nxp/frdm_mcxc242/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ PORTB/GPIOB, PORTC/GPIOC, PORTD/GPIOD, and PORTE/GPIOE) for the FRDM-MCXC242 boa
+-------+-------------+---------------------------+
| PTA2 | LPUART0_TX | UART Console |
+-------+-------------+---------------------------+
| PTE1 | LPUART1_RX | UART |
+-------+-------------+---------------------------+
| PTE0 | LPUART1_TX | UART |
+-------+-------------+---------------------------+
| PTA20 | RESET | RESET Button SW1 |
+-------+-------------+---------------------------+
| PTC1 | GPIO | User button SW2 |
Expand Down
8 changes: 8 additions & 0 deletions boards/nxp/frdm_mcxc242/frdm_mcxc242-pinctrl.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@
slew-rate = "slow";
};
};
pinmux_lpuart1: pinmux_lpuart1 {
group0 {
pinmux = <LPUART1_RX_PTE1>,
<LPUART1_TX_PTE0>;
drive-strength = "low";
slew-rate = "slow";
};
};
pinmux_uart2: pinmux_uart2 {
group0 {
pinmux = <UART2_RX_PTD2>,
Expand Down
7 changes: 7 additions & 0 deletions boards/nxp/frdm_mcxc242/frdm_mcxc242.dts
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,13 @@
pinctrl-names = "default";
};

&lpuart1 {
status = "okay";
current-speed = <115200>;
pinctrl-0 = <&pinmux_lpuart1>;
pinctrl-names = "default";
};

&uart2 {
status = "disabled";
current-speed = <115200>;
Expand Down

0 comments on commit 769df0b

Please sign in to comment.