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

Julien Stephan <[email protected]>
Newsgroups gmane.comp.boot-loaders.u-boot
Message-ID <CAEHHSvb1XjkT5WD6zxzaSYqjdBj7EJoVHPqxH+=OhV2f7+xGYw__2957.99333123199$1786113023$gmane$org@mail.gmail.com>
Le ven. 7 août 2026 à 01:40, David Lechner <[email protected]> a écrit :
>
> 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]>
>

Reviewed-by: Julien Stephan <[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.