From 7a49ed899d9f2ad8210671fbd8cc81fe1314188a Mon Sep 17 00:00:00 2001 From: Alexandre Bailon Date: Sun, 18 Aug 2024 19:35:27 +0200 Subject: [PATCH] boards: ti: launchxl: Add support of UART1 Some examples may require the usage of a second UART. This adds UART1 to common launchxl.dtsi in order to make it available for these examples. Signed-off-by: Alexandre Bailon --- boards/ti/common/launchxl-pinctrl.dtsi | 11 +++++++++++ boards/ti/common/launchxl.dtsi | 7 +++++++ 2 files changed, 18 insertions(+) diff --git a/boards/ti/common/launchxl-pinctrl.dtsi b/boards/ti/common/launchxl-pinctrl.dtsi index a522a57d8aa..192d49e08aa 100644 --- a/boards/ti/common/launchxl-pinctrl.dtsi +++ b/boards/ti/common/launchxl-pinctrl.dtsi @@ -18,6 +18,17 @@ input-enable; }; + /* UART1 */ + uart1_tx_default: uart1_tx_default { + pinmux = <22 IOC_PORT_MCU_UART1_TX>; + bias-disable; + }; + uart1_rx_default: uart1_rx_default { + pinmux = <24 IOC_PORT_MCU_UART1_RX>; + bias-disable; + input-enable; + }; + /* I2C0 */ i2c0_scl_default: i2c0_scl_default { pinmux = <4 IOC_PORT_MCU_I2C_MSSCL>; diff --git a/boards/ti/common/launchxl.dtsi b/boards/ti/common/launchxl.dtsi index 9b2b58a9d88..479489f83b6 100644 --- a/boards/ti/common/launchxl.dtsi +++ b/boards/ti/common/launchxl.dtsi @@ -76,6 +76,13 @@ pinctrl-names = "default"; }; +&uart1 { + status = "disabled"; + current-speed = <115200>; + pinctrl-0 = <&uart1_rx_default &uart1_tx_default>; + pinctrl-names = "default"; +}; + &i2c0 { status = "okay"; pinctrl-0 = <&i2c0_scl_default &i2c0_sda_default>;