Skip to contentSkip to conversation

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

PATCH Applied David Lechner 2 participants 3 messages Aug 6 – Aug 24

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 spi: mtk_snor: combine mt8188 and mt8189 into mediatek,mt8186-nor

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.

---
 drivers/spi/mtk_snor.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/spi/mtk_snor.c +1 -2
index 40fc1826db6..95bd8f06eb9 100644
@@ -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,

Signature · 1 line
David Lechner <[email protected]>
Reviewed-by on v1 1/1
#1 lore raw

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

Quoted 30 lines · David Lechner

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.

---
 drivers/spi/mtk_snor.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/spi/mtk_snor.c +1 -3
index 40fc1826db6..95bd8f06eb9 100644
@@ -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

Quoted 4 lines

Best regards,
--
David Lechner <[email protected]>

author Applied
#2 lore raw
In reply to David Lechner
Quoted 1 line · David Lechner

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

Applied to mediatek-for-next, thanks!

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

      commit: ca1cf823fa1e59039494d4eabb4d117abd4844a3

Best regards,

Signature · 1 line
David Lechner <[email protected]>