[PATCH] spi: mtk_snor: combine mt8188 and mt8189 into mediatek,mt8186-nor

David Lechner <[email protected]>
Newsgroups gmane.comp.boot-loaders.u-boot
Message-ID <20260806-mtk-snor-fallback-compatible-v1-1-74559b491b4a__24096.0035518341$1786059660$gmane$org@baylibre.com>
Replace "mediatek,mt8188-nor" and "mediatek,mt8189-nor" with
"mediatek,mt8186-nor" in the mtk_snor driver. Both of these have
"mediatek,mt8186-nor" as a fallback, so we can use that instead of
adding each new compatible when we add more similar SoCs.

Signed-off-by: David Lechner <[email protected]>
---
 drivers/spi/mtk_snor.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/spi/mtk_snor.c b/drivers/spi/mtk_snor.c
index 40fc1826db6..95bd8f06eb9 100644
--- a/drivers/spi/mtk_snor.c
+++ b/drivers/spi/mtk_snor.c
@@ -607,8 +607,7 @@ static const struct mtk_snor_caps mtk_snor_caps_extra_bit = {
 
 static const struct udevice_id mtk_snor_ids[] = {
 	{ .compatible = "mediatek,mtk-snor", .data = (ulong)&mtk_snor_caps_default },
-	{ .compatible = "mediatek,mt8188-nor", .data = (ulong)&mtk_snor_caps_extra_bit },
-	{ .compatible = "mediatek,mt8189-nor", .data = (ulong)&mtk_snor_caps_extra_bit },
+	{ .compatible = "mediatek,mt8186-nor", .data = (ulong)&mtk_snor_caps_extra_bit },
 	{ .compatible = "mediatek,mt8195-nor", .data = (ulong)&mtk_snor_caps_default },
 	{}
 };

---
base-commit: 24ecb168a113c9de96c172086bc357597a8d1e6e
change-id: 20260806-mtk-snor-fallback-compatible-5733ceffb9fa

Best regards,
--  
David Lechner <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.