rtc: mt6359: Add mt6357 support
authorAlexandre Mergnat <amergnat@baylibre.com>
Mon, 28 Apr 2025 14:29:55 +0000 (16:29 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Sun, 1 Jun 2025 22:25:32 +0000 (00:25 +0200)
The MT6357 PMIC contains the same RTC as MT6358 which allows to add
support for it trivially by just complementing the list of compatibles.

Signed-off-by: Alexandre Mergnat <amergnat@baylibre.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Acked-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Tested-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Link: https://lore.kernel.org/r/20250428-rtc-mt6357-v1-1-31f673b0a723@baylibre.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-mt6397.c

index 6979d22..692c00f 100644 (file)
@@ -332,6 +332,7 @@ static const struct mtk_rtc_data mt6397_rtc_data = {
 
 static const struct of_device_id mt6397_rtc_of_match[] = {
        { .compatible = "mediatek,mt6323-rtc", .data = &mt6397_rtc_data },
+       { .compatible = "mediatek,mt6357-rtc", .data = &mt6358_rtc_data },
        { .compatible = "mediatek,mt6358-rtc", .data = &mt6358_rtc_data },
        { .compatible = "mediatek,mt6397-rtc", .data = &mt6397_rtc_data },
        { }