spi: mtk_snor: combine mt8188 and mt8189 into mediatek,mt8186-nor
Subsystems (2)
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
@@ -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]>
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_snordriver. 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(-)drivers/spi/mtk_snor.c +1
-3@@ -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]>
David Lechner
AppliedQuoted 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]>