Commit 45720f8b authored by Michal Smola's avatar Michal Smola Committed by Anas Nashif
Browse files

boards: frdm_mcxc242: Add uart support



Board frdm_mcxc242 does not have UART IP configured.
Add UART configuration and pin control. Set state to disabled,
as it serves as alternative to default LPUART0 or as second
uart only. Add uart to supported features in yaml.

Signed-off-by: default avatarMichal Smola <michal.smola@nxp.com>
parent 1a89e164
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -16,6 +16,14 @@
			slew-rate = "slow";
		};
	};
	pinmux_uart2: pinmux_uart2 {
		group0 {
			pinmux = <UART2_RX_PTD2>,
				<UART2_TX_PTD3>;
			drive-strength = "low";
			slew-rate = "slow";
		};
	};
	pinmux_i2c1: pinmux_i2c1 {
		group0 {
			pinmux = <I2C1_SCL_PTD7>,
+7 −0
Original line number Diff line number Diff line
@@ -122,6 +122,13 @@
	pinctrl-names = "default";
};

&uart2 {
	status = "disabled";
	current-speed = <115200>;
	pinctrl-0 = <&pinmux_uart2>;
	pinctrl-names = "default";
};

i2c1: &i2c1 {
	status = "okay";
	pinctrl-0 = <&pinmux_i2c1>;
+1 −0
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@ toolchain:
  - xtools
supported:
  - gpio
  - uart
  - i2c
  - pwm
  - adc