mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] rtc: mt6359: Add mt6357 support
@ 2025-04-28 14:29 Alexandre Mergnat
  2025-04-28 16:26 ` Uwe Kleine-König
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Alexandre Mergnat @ 2025-04-28 14:29 UTC (permalink / raw)
  To: Eddie Huang, Sean Wang, Alexandre Belloni, Matthias Brugger,
	AngeloGioacchino Del Regno
  Cc: Uwe Kleine-König, linux-arm-kernel, linux-mediatek,
	linux-rtc, linux-kernel, Alexandre Mergnat

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>
---
The `arch/arm64/boot/dts/mediatek/mt6357.dtsi` file already contains both
"mediatek,mt6357" and "mediatek,mt6357-rtc" which are documented in the
`Documentation/devicetree/bindings/mfd/mediatek,mt6357.yaml` file.

This serie come from another splitted serie [1]

[1]: https://lore.kernel.org/r/20250428-enable-rtc-v4-0-2b2f7e3f9349@baylibre.com
---
 drivers/rtc/rtc-mt6397.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/rtc/rtc-mt6397.c b/drivers/rtc/rtc-mt6397.c
index 6979d225a78e47f73b7652159e73f70c43b4fcde..692c00ff544b22b471b51f115dded9fcea432de3 100644
--- a/drivers/rtc/rtc-mt6397.c
+++ b/drivers/rtc/rtc-mt6397.c
@@ -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 },
 	{ }

---
base-commit: 424dfcd441f035769890e6d1faec2081458627b9
change-id: 20250428-rtc-mt6357-341ad12b48ca

Best regards,
-- 
Alexandre Mergnat <amergnat@baylibre.com>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] rtc: mt6359: Add mt6357 support
  2025-04-28 14:29 [PATCH] rtc: mt6359: Add mt6357 support Alexandre Mergnat
@ 2025-04-28 16:26 ` Uwe Kleine-König
  2025-04-30 14:47 ` AngeloGioacchino Del Regno
  2025-06-01 22:25 ` Alexandre Belloni
  2 siblings, 0 replies; 4+ messages in thread
From: Uwe Kleine-König @ 2025-04-28 16:26 UTC (permalink / raw)
  To: Alexandre Mergnat
  Cc: Eddie Huang, Sean Wang, Alexandre Belloni, Matthias Brugger,
	AngeloGioacchino Del Regno, linux-arm-kernel, linux-mediatek,
	linux-rtc, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 423 bytes --]

On Mon, Apr 28, 2025 at 04:29:55PM +0200, Alexandre Mergnat wrote:
> 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>

Acked-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Tested-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>

Thanks a lot!

Uwe

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] rtc: mt6359: Add mt6357 support
  2025-04-28 14:29 [PATCH] rtc: mt6359: Add mt6357 support Alexandre Mergnat
  2025-04-28 16:26 ` Uwe Kleine-König
@ 2025-04-30 14:47 ` AngeloGioacchino Del Regno
  2025-06-01 22:25 ` Alexandre Belloni
  2 siblings, 0 replies; 4+ messages in thread
From: AngeloGioacchino Del Regno @ 2025-04-30 14:47 UTC (permalink / raw)
  To: Alexandre Mergnat, Eddie Huang, Sean Wang, Alexandre Belloni,
	Matthias Brugger
  Cc: Uwe Kleine-König, linux-arm-kernel, linux-mediatek,
	linux-rtc, linux-kernel

Il 28/04/25 16:29, Alexandre Mergnat ha scritto:
> 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>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] rtc: mt6359: Add mt6357 support
  2025-04-28 14:29 [PATCH] rtc: mt6359: Add mt6357 support Alexandre Mergnat
  2025-04-28 16:26 ` Uwe Kleine-König
  2025-04-30 14:47 ` AngeloGioacchino Del Regno
@ 2025-06-01 22:25 ` Alexandre Belloni
  2 siblings, 0 replies; 4+ messages in thread
From: Alexandre Belloni @ 2025-06-01 22:25 UTC (permalink / raw)
  To: Eddie Huang, Sean Wang, Matthias Brugger,
	AngeloGioacchino Del Regno, Alexandre Mergnat
  Cc: Uwe Kleine-König, linux-arm-kernel, linux-mediatek,
	linux-rtc, linux-kernel

On Mon, 28 Apr 2025 16:29:55 +0200, Alexandre Mergnat wrote:
> The MT6357 PMIC contains the same RTC as MT6358 which allows to add
> support for it trivially by just complementing the list of compatibles.
> 
> 

Applied, thanks!

[1/1] rtc: mt6359: Add mt6357 support
      https://git.kernel.org/abelloni/c/3d8b44b104fb

Best regards,

-- 
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-06-01 22:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-04-28 14:29 [PATCH] rtc: mt6359: Add mt6357 support Alexandre Mergnat
2025-04-28 16:26 ` Uwe Kleine-König
2025-04-30 14:47 ` AngeloGioacchino Del Regno
2025-06-01 22:25 ` Alexandre Belloni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®