[PATCH v1 0/3] rtc: mt6359: Cleanup and support start-year property

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxx/

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





[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux