Skip to content

Commit e5f0075

Browse files
NeilChen93nashif
authored andcommitted
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 <[email protected]>
1 parent 55c6a0e commit e5f0075

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

boards/nxp/frdm_mcxc444/frdm_mcxc444-pinctrl.dtsi

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,12 @@
1616
slew-rate = "slow";
1717
};
1818
};
19+
pinmux_uart2: pinmux_uart2 {
20+
group0 {
21+
pinmux = <UART2_RX_PTD2>,
22+
<UART2_TX_PTD3>;
23+
drive-strength = "low";
24+
slew-rate = "slow";
25+
};
26+
};
1927
};

boards/nxp/frdm_mcxc444/frdm_mcxc444.dts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,3 +100,10 @@
100100
&lptmr0 {
101101
status = "okay";
102102
};
103+
104+
&uart2 {
105+
status = "disabled";
106+
current-speed = <115200>;
107+
pinctrl-0 = <&pinmux_uart2>;
108+
pinctrl-names = "default";
109+
};

boards/nxp/frdm_mcxc444/frdm_mcxc444.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ toolchain:
1616
- xtools
1717
supported:
1818
- gpio
19+
- uart
1920
- counter
2021
testing:
2122
ignore_tags:

0 commit comments

Comments
 (0)