devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 0/3] rtc: mt6359: Cleanup and support start-year property
@ 2024-09-23 10:00 AngeloGioacchino Del Regno
  2024-09-23 10:00 ` [PATCH v1 1/3] dt-bindings: mfd: mediatek: mt6397: Add start-year property to RTC AngeloGioacchino Del Regno
                   ` (3 more replies)
  0 siblings, 4 replies; 17+ messages in thread
From: AngeloGioacchino Del Regno @ 2024-09-23 10:00 UTC (permalink / raw)
  To: lee
  Cc: robh, krzk+dt, conor+dt, matthias.bgg, angelogioacchino.delregno,
	eddie.huang, sean.wang, alexandre.belloni, sen.chu, macpaul.lin,
	devicetree, linux-kernel, linux-arm-kernel, linux-mediatek,
	linux-rtc, kernel

This series adds support for the start-year property and removes the
custom handling of the RTC_MIN_YEAR_OFFSET (which is, effectively, doing
the exact same).

The start_secs timestamp was set to match the previous one from the
custom behavior so that there is no time drift on any device after
applying this.

While at it, a cleanup to use the Day-of-Week HW register instead of
manually calculating tm_wday was also performed.

For the bindings commit, this series goes on top of the MT6397 schema
conversion from Macpaul Lin [1].

This series was tested on a MT8195 Cherry Tomato Chromebook.

[1]: https://lore.kernel.org/all/20240918064955.6518-1-macpaul.lin@mediatek.com/

AngeloGioacchino Del Regno (3):
  dt-bindings: mfd: mediatek: mt6397: Add start-year property to RTC
  rtc: mt6359: Add RTC hardware range and add support for start-year
  rtc: mt6359: Use RTC_TC_DOW hardware register for wday

 .../bindings/mfd/mediatek,mt6397.yaml         |  2 ++
 drivers/rtc/rtc-mt6397.c                      | 29 +++++++------------
 2 files changed, 12 insertions(+), 19 deletions(-)

-- 
2.46.0


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

end of thread, other threads:[~2024-11-11 21:04 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-23 10:00 [PATCH v1 0/3] rtc: mt6359: Cleanup and support start-year property AngeloGioacchino Del Regno
2024-09-23 10:00 ` [PATCH v1 1/3] dt-bindings: mfd: mediatek: mt6397: Add start-year property to RTC AngeloGioacchino Del Regno
2024-09-23 21:21   ` Conor Dooley
2024-10-09 10:15   ` Lee Jones
2024-10-09 10:17     ` AngeloGioacchino Del Regno
2024-10-09 10:33       ` Lee Jones
2024-10-09 10:37         ` Lee Jones
2024-10-09 10:48           ` Macpaul Lin
2024-10-09 11:05           ` AngeloGioacchino Del Regno
2024-10-16  8:04   ` (subset) " Lee Jones
2024-09-23 10:00 ` [PATCH v1 2/3] rtc: mt6359: Add RTC hardware range and add support for start-year AngeloGioacchino Del Regno
2024-09-24  4:08   ` Macpaul Lin
2024-09-24  7:05     ` Macpaul Lin
2024-09-24  9:30       ` AngeloGioacchino Del Regno
2024-09-24  9:28     ` AngeloGioacchino Del Regno
2024-09-23 10:00 ` [PATCH v1 3/3] rtc: mt6359: Use RTC_TC_DOW hardware register for wday AngeloGioacchino Del Regno
2024-11-11 21:04 ` (subset) [PATCH v1 0/3] rtc: mt6359: Cleanup and support start-year property Alexandre Belloni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).