Skip to content

Commit

Permalink
boards: xtensa: nxp: remove uart overlay
Browse files Browse the repository at this point in the history
Remove uart overlay and add the node to base dts and config.
Now, it can be used for multiple samples.

Signed-off-by: Iuliana Prodan <[email protected]>
  • Loading branch information
iuliana-prodan authored and carlescufi committed Jun 24, 2023
1 parent 93abc2a commit 6bcc9de
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 40 deletions.
23 changes: 23 additions & 0 deletions boards/xtensa/nxp_adsp_imx8m/nxp_adsp_imx8m.dts
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,35 @@
/dts-v1/;

#include <nxp/nxp_imx8m.dtsi>
#include <nxp/nxp_imx/mimx8ml8dvnlz-pinctrl.dtsi>

/ {
model = "nxp_adsp_imx8m";
compatible = "nxp";

chosen {
zephyr,sram = &sram0;

zephyr,console = &uart4;
zephyr,shell-uart = &uart4;
};
};

&pinctrl {
/omit-if-no-ref/ uart4_default: uart4_default {
group0 {
pinmux = <&iomuxc_uart4_rxd_uart_rx_uart4_rx>,
<&iomuxc_uart4_txd_uart_tx_uart4_tx>;
bias-pull-up;
slew-rate = "slow";
drive-strength = "x1";
};
};
};

&uart4 {
status = "okay";
current-speed = <115200>;
pinctrl-0 = <&uart4_default>;
pinctrl-names = "default";
};
15 changes: 15 additions & 0 deletions boards/xtensa/nxp_adsp_imx8m/nxp_adsp_imx8m_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,18 @@ CONFIG_BUILD_OUTPUT_BIN=n
CONFIG_CLEANUP_INTERMEDIATE_FILES=y

CONFIG_DCACHE_LINE_SIZE=128

# enable uart driver
CONFIG_SERIAL=y

# clock configuration
CONFIG_CLOCK_CONTROL=y

# console (remote proc console by default)
CONFIG_CONSOLE=y

# uart console (overrides remote proc console)
CONFIG_UART_CONSOLE=y

# enable pin controller
CONFIG_PINCTRL=y
7 changes: 0 additions & 7 deletions boards/xtensa/nxp_adsp_imx8m/nxp_adsp_imx8m_uart.conf

This file was deleted.

33 changes: 0 additions & 33 deletions boards/xtensa/nxp_adsp_imx8m/nxp_adsp_imx8m_uart.overlay

This file was deleted.

0 comments on commit 6bcc9de

Please sign in to comment.