[PATCH 2/3] fpga: stratix10-soc: Add support for Agilex5

Khairul Anuar Romli posted 3 patches 3 hours ago
Only 2 patches received!
[PATCH 2/3] fpga: stratix10-soc: Add support for Agilex5
Posted by Khairul Anuar Romli 3 hours ago
Agilex5 device tree now use a dedicated compatible string for FPGA manager
node. The driver relies on matching both the device tree compatible string
and the s10_of_match table during s10_init().

Without this change, the s10_init() function would fail to initialize the
FPGA manager on Agilex5 platforms because the required compatible string is
missing, preventing the driver from loading.

Signed-off-by: Khairul Anuar Romli <khairul.anuar.romli@altera.com>
---
 drivers/fpga/stratix10-soc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/fpga/stratix10-soc.c b/drivers/fpga/stratix10-soc.c
index 0a295ccf1644..4ac368b55754 100644
--- a/drivers/fpga/stratix10-soc.c
+++ b/drivers/fpga/stratix10-soc.c
@@ -448,6 +448,7 @@ static void s10_remove(struct platform_device *pdev)
 static const struct of_device_id s10_of_match[] = {
 	{.compatible = "intel,stratix10-soc-fpga-mgr"},
 	{.compatible = "intel,agilex-soc-fpga-mgr"},
+	{.compatible = "intel,agilex5-soc-fpga-mgr"},
 	{},
 };
 
-- 
2.43.7