boards: xtensa: nxp_adsp_imx8(x): Add serial support

This commit introduces all changes necessary for utilizing
the serial interface on i.MX8QM/QXP.

Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
This commit is contained in:
Laurentiu Mihalcea 2023-09-22 12:23:06 +03:00 committed by Carles Cufí
parent dcddb2e0f7
commit 5cdd377316
5 changed files with 45 additions and 0 deletions

View file

@ -15,5 +15,14 @@
chosen {
zephyr,sram = &sram0;
zephyr,console = &lpuart2;
zephyr,shell-uart = &lpuart2;
};
};
&lpuart2 {
status = "okay";
current-speed = <115200>;
pinctrl-0 = <&lpuart2_default>;
pinctrl-names = "default";
};

View file

@ -15,3 +15,8 @@ CONFIG_BUILD_OUTPUT_BIN=n
# clock-related configurations
CONFIG_CLOCK_CONTROL=y
# serial-related configurations
CONFIG_SERIAL=y
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y

View file

@ -15,5 +15,14 @@
chosen {
zephyr,sram = &sram0;
zephyr,console = &lpuart2;
zephyr,shell-uart = &lpuart2;
};
};
&lpuart2 {
status = "okay";
current-speed = <115200>;
pinctrl-0 = <&lpuart2_default>;
pinctrl-names = "default";
};

View file

@ -15,3 +15,8 @@ CONFIG_BUILD_OUTPUT_BIN=n
# clock-related configurations
CONFIG_CLOCK_CONTROL=y
# serial-related configurations
CONFIG_SERIAL=y
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y

View file

@ -60,4 +60,21 @@
};
};
};
lpuart2: serial@5a080000 {
compatible = "nxp,imx-lpuart", "nxp,kinetis-lpuart";
reg = <0x5a080000 DT_SIZE_K(4)>;
/* TODO: THIS INTID IS JUST A DUMMY ONE UNTIL IRQ_STEER
* DRIVER CAN BE USED ON i.MX8QM/QXP. DO NOT ATTEMPT TO
* ENABLE UART INTERRUPT SUPPORT.
*
* THE CURRENT INTID VALUE IS CHOSEN SUCH THAT gen_isr_tables.py
* WILL BREAK IF YOU ATTEMPT TO IRQ_CONNECT().
*/
interrupt-parent = <&clic>;
interrupts = <259 0 0>;
/* this is actually LPUART2 clock but the macro indexing starts at 1 */
clocks = <&ccm IMX_CCM_LPUART3_CLK 0x0 0x0>;
status = "disabled";
};
};