diff mbox series

[v4,2/3] xen/drivers: imx-lpuart: Replace iMX8QM compatible with iMX8QXP

Message ID 20240408161129.900347-3-john.ernberg@actia.se (mailing list archive)
State New
Headers show
Series Xen: ARM: Improved NXP iMX8 platform support | expand

Commit Message

John Ernberg April 8, 2024, 4:11 p.m. UTC
Allow the uart to probe also with iMX8QXP. The ip-block is the same as in
the QM.

Since the fsl,imx8qm-lpuart compatible in Linux exists in name only and is
not used in the driver any iMX8QM device tree that can boot Linux must set
fsl,imx8qxp-lpuart compatible as well as the QM one.

Thus we replace the compatible rather than adding just another one.

Signed-off-by: John Ernberg <john.ernberg@actia.se>
Acked-by: Julien Grall <jgrall@amazon.com>

---

v4:
 - no changes

v3:
 - no changes

v2:
 - Replace the compatible rather than adding to the list (Julien Grall)
 - Reword commit message to reflect the above.
 - Collect Julien's ack
---
 xen/drivers/char/imx-lpuart.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Peng Fan April 8, 2024, 11:38 p.m. UTC | #1
> Subject: [PATCH v4 2/3] xen/drivers: imx-lpuart: Replace iMX8QM compatible
> with iMX8QXP
> 
> Allow the uart to probe also with iMX8QXP. The ip-block is the same as in the
> QM.
> 
> Since the fsl,imx8qm-lpuart compatible in Linux exists in name only and is not
> used in the driver any iMX8QM device tree that can boot Linux must set
> fsl,imx8qxp-lpuart compatible as well as the QM one.
> 
> Thus we replace the compatible rather than adding just another one.
> 
> Signed-off-by: John Ernberg <john.ernberg@actia.se>
> Acked-by: Julien Grall <jgrall@amazon.com>
> 
> ---
> 
> v4:
>  - no changes
> 
> v3:
>  - no changes
> 
> v2:
>  - Replace the compatible rather than adding to the list (Julien Grall)
>  - Reword commit message to reflect the above.
>  - Collect Julien's ack
> ---
>  xen/drivers/char/imx-lpuart.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/xen/drivers/char/imx-lpuart.c b/xen/drivers/char/imx-lpuart.c
> index 7770d158bf..cf034d7ed0 100644
> --- a/xen/drivers/char/imx-lpuart.c
> +++ b/xen/drivers/char/imx-lpuart.c
> @@ -236,7 +236,7 @@ static int __init imx_lpuart_init(struct
> dt_device_node *dev,
> 
>  static const struct dt_device_match imx_lpuart_dt_compat[] __initconst =  {
> -    DT_MATCH_COMPATIBLE("fsl,imx8qm-lpuart"),
> +    DT_MATCH_COMPATIBLE("fsl,imx8qxp-lpuart"),
>      { /* sentinel */ },

Reviewed-by: Peng Fan <peng.fan@nxp.com>
>  };
> 
> --
> 2.44.0
diff mbox series

Patch

diff --git a/xen/drivers/char/imx-lpuart.c b/xen/drivers/char/imx-lpuart.c
index 7770d158bf..cf034d7ed0 100644
--- a/xen/drivers/char/imx-lpuart.c
+++ b/xen/drivers/char/imx-lpuart.c
@@ -236,7 +236,7 @@  static int __init imx_lpuart_init(struct dt_device_node *dev,
 
 static const struct dt_device_match imx_lpuart_dt_compat[] __initconst =
 {
-    DT_MATCH_COMPATIBLE("fsl,imx8qm-lpuart"),
+    DT_MATCH_COMPATIBLE("fsl,imx8qxp-lpuart"),
     { /* sentinel */ },
 };