Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tty: serial: fsl_lpuart: Add i.MXRT1050 support

Add support for i.MXRT1050's uart.

Cc: Giulio Benetti <giulio.benetti@benettiengineering.com>
Signed-off-by: Jesse Taube <Mr.Bossman075@gmail.com>
Link: https://lore.kernel.org/r/20211215220538.4180616-8-Mr.Bossman075@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Jesse Taube and committed by
Greg Kroah-Hartman
443df57b 9629eeb0

+8
+8
drivers/tty/serial/fsl_lpuart.c
··· 247 247 LS1028A_LPUART, 248 248 IMX7ULP_LPUART, 249 249 IMX8QXP_LPUART, 250 + IMXRT1050_LPUART, 250 251 }; 251 252 252 253 struct lpuart_port { ··· 311 310 .iotype = UPIO_MEM32, 312 311 .reg_off = IMX_REG_OFF, 313 312 }; 313 + static struct lpuart_soc_data imxrt1050_data = { 314 + .devtype = IMXRT1050_LPUART, 315 + .iotype = UPIO_MEM32, 316 + .reg_off = IMX_REG_OFF, 317 + }; 314 318 315 319 static const struct of_device_id lpuart_dt_ids[] = { 316 320 { .compatible = "fsl,vf610-lpuart", .data = &vf_data, }, ··· 323 317 { .compatible = "fsl,ls1028a-lpuart", .data = &ls1028a_data, }, 324 318 { .compatible = "fsl,imx7ulp-lpuart", .data = &imx7ulp_data, }, 325 319 { .compatible = "fsl,imx8qxp-lpuart", .data = &imx8qxp_data, }, 320 + { .compatible = "fsl,imxrt1050-lpuart", .data = &imxrt1050_data}, 326 321 { /* sentinel */ } 327 322 }; 328 323 MODULE_DEVICE_TABLE(of, lpuart_dt_ids); ··· 2633 2626 OF_EARLYCON_DECLARE(lpuart32, "fsl,ls1028a-lpuart", ls1028a_early_console_setup); 2634 2627 OF_EARLYCON_DECLARE(lpuart32, "fsl,imx7ulp-lpuart", lpuart32_imx_early_console_setup); 2635 2628 OF_EARLYCON_DECLARE(lpuart32, "fsl,imx8qxp-lpuart", lpuart32_imx_early_console_setup); 2629 + OF_EARLYCON_DECLARE(lpuart32, "fsl,imxrt1050-lpuart", lpuart32_imx_early_console_setup); 2636 2630 EARLYCON_DECLARE(lpuart, lpuart_early_console_setup); 2637 2631 EARLYCON_DECLARE(lpuart32, lpuart32_early_console_setup); 2638 2632