diff mbox series

spi: nxp_fspi: Add i.MX8MP compatible string

Message ID 20220309031857.134823-1-marex@denx.de
State Awaiting Upstream
Delegated to: Stefano Babic
Headers show
Series spi: nxp_fspi: Add i.MX8MP compatible string | expand

Commit Message

Marek Vasut March 9, 2022, 3:18 a.m. UTC
The i.MX8M Mini and i.MX8M Plus flexspi IPs are compatible with one
another, however the linux kernel DT uses separate compatible string
for each SoC. Add the missing i.MX8MP compatible into this driver.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Fabio Estevam <festevam@denx.de>
Cc: Peng Fan <peng.fan@nxp.com>
Cc: Stefano Babic <sbabic@denx.de>
---
 drivers/spi/nxp_fspi.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Peng Fan (OSS) March 14, 2022, 1:03 p.m. UTC | #1
On 2022/3/9 11:18, Marek Vasut wrote:
> The i.MX8M Mini and i.MX8M Plus flexspi IPs are compatible with one
> another, however the linux kernel DT uses separate compatible string
> for each SoC. Add the missing i.MX8MP compatible into this driver.
> 
> Signed-off-by: Marek Vasut <marex@denx.de>
> Cc: Fabio Estevam <festevam@denx.de>
> Cc: Peng Fan <peng.fan@nxp.com>
> Cc: Stefano Babic <sbabic@denx.de>

Reviewed-by: Peng Fan <peng.fan@nxp.com>
> ---
>   drivers/spi/nxp_fspi.c | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/spi/nxp_fspi.c b/drivers/spi/nxp_fspi.c
> index b7c922b1dfd..607c953987b 100644
> --- a/drivers/spi/nxp_fspi.c
> +++ b/drivers/spi/nxp_fspi.c
> @@ -1053,6 +1053,7 @@ static const struct dm_spi_ops nxp_fspi_ops = {
>   static const struct udevice_id nxp_fspi_ids[] = {
>   	{ .compatible = "nxp,lx2160a-fspi", .data = (ulong)&lx2160a_data, },
>   	{ .compatible = "nxp,imx8mm-fspi", .data = (ulong)&imx8mm_data, },
> +	{ .compatible = "nxp,imx8mp-fspi", .data = (ulong)&imx8mm_data, },
>   	{ }
>   };
>   
>
Stefano Babic April 12, 2022, 9:40 p.m. UTC | #2
> The i.MX8M Mini and i.MX8M Plus flexspi IPs are compatible with one
> another, however the linux kernel DT uses separate compatible string
> for each SoC. Add the missing i.MX8MP compatible into this driver.
> Signed-off-by: Marek Vasut <marex@denx.de>
> Cc: Fabio Estevam <festevam@denx.de>
> Cc: Peng Fan <peng.fan@nxp.com>
> Cc: Stefano Babic <sbabic@denx.de>
> Reviewed-by: Peng Fan <peng.fan@nxp.com>
Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic
diff mbox series

Patch

diff --git a/drivers/spi/nxp_fspi.c b/drivers/spi/nxp_fspi.c
index b7c922b1dfd..607c953987b 100644
--- a/drivers/spi/nxp_fspi.c
+++ b/drivers/spi/nxp_fspi.c
@@ -1053,6 +1053,7 @@  static const struct dm_spi_ops nxp_fspi_ops = {
 static const struct udevice_id nxp_fspi_ids[] = {
 	{ .compatible = "nxp,lx2160a-fspi", .data = (ulong)&lx2160a_data, },
 	{ .compatible = "nxp,imx8mm-fspi", .data = (ulong)&imx8mm_data, },
+	{ .compatible = "nxp,imx8mp-fspi", .data = (ulong)&imx8mm_data, },
 	{ }
 };