boards: frdm_mcxc242: Add lpuart1 support
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 <alx.rey@icloud.com>
This commit is contained in:
parent
98d5aa3792
commit
769df0b579
3 changed files with 19 additions and 0 deletions
|
@ -101,6 +101,10 @@ PORTB/GPIOB, PORTC/GPIOC, PORTD/GPIOD, and PORTE/GPIOE) for the FRDM-MCXC242 boa
|
||||||
+-------+-------------+---------------------------+
|
+-------+-------------+---------------------------+
|
||||||
| PTA2 | LPUART0_TX | UART Console |
|
| PTA2 | LPUART0_TX | UART Console |
|
||||||
+-------+-------------+---------------------------+
|
+-------+-------------+---------------------------+
|
||||||
|
| PTE1 | LPUART1_RX | UART |
|
||||||
|
+-------+-------------+---------------------------+
|
||||||
|
| PTE0 | LPUART1_TX | UART |
|
||||||
|
+-------+-------------+---------------------------+
|
||||||
| PTA20 | RESET | RESET Button SW1 |
|
| PTA20 | RESET | RESET Button SW1 |
|
||||||
+-------+-------------+---------------------------+
|
+-------+-------------+---------------------------+
|
||||||
| PTC1 | GPIO | User button SW2 |
|
| PTC1 | GPIO | User button SW2 |
|
||||||
|
|
|
@ -16,6 +16,14 @@
|
||||||
slew-rate = "slow";
|
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 {
|
pinmux_uart2: pinmux_uart2 {
|
||||||
group0 {
|
group0 {
|
||||||
pinmux = <UART2_RX_PTD2>,
|
pinmux = <UART2_RX_PTD2>,
|
||||||
|
|
|
@ -122,6 +122,13 @@
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&lpuart1 {
|
||||||
|
status = "okay";
|
||||||
|
current-speed = <115200>;
|
||||||
|
pinctrl-0 = <&pinmux_lpuart1>;
|
||||||
|
pinctrl-names = "default";
|
||||||
|
};
|
||||||
|
|
||||||
&uart2 {
|
&uart2 {
|
||||||
status = "disabled";
|
status = "disabled";
|
||||||
current-speed = <115200>;
|
current-speed = <115200>;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue