Skip to content

RTC: update APM X-Gene RTC driver by adding the pre-scaler support

[email protected] linux-devicetree linux-riscv linux-rtc lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5drivers/rtc/rtc-xgene: Add prescaler support in APM X-Gene RTC driverdrivers/rtc/Kconfig drivers/rtc/rtc-xgene.c+41 -01 reply
2/5dt-bindings: rtc: Add optional property "prescaler" in APM X-Gene RTC DocumentDocumentation/devicetree/bindings/rtc/xgene-rtc.txt+16 -01 reply
3/5drivers/rtc/rtc-xgene: Add "snps,dw-apb-rtc" into the "compatible"drivers/rtc/rtc-xgene.c+1 -02 replies
4/5Kconfig: Enable APM X-Gene RTC for XuanTie TH1520drivers/rtc/Kconfig+1 -11 reply
5/5riscv: dts: thead: Add XuanTie TH1520 RTC device nodearch/riscv/boot/dts/thead/th1520.dtsi+11 -02 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] RTC: update APM X-Gene RTC driver by adding the pre-scaler support

From: Wei Fu <[email protected]>

This patch add Counter Prescaler support in APM X-Gene RTC driver by getting prescaler (Optional) property value from dtb.

This hardware support can only be found in DW_apb_rtc after v2.06a.

And adds the optional property "prescaler" in bindings for APM X-Gene RTC. Because the clock source on some platform to RTC is NOT 1HZ, so we need to prescale the clock to make the input clock become 1HZ, like (32K/prescaler) = 1HZ on the XuanTie TH1520 AP sub-system RTC.

This patch also add "snps,dw-apb-rtc" into the "compatible".

Since XuanTie TH1520 is using the same RTC, so this patch enables APM X-Gene RTC driver for XuanTie TH1520, and add a device node in the XuanTie TH1520 Soc dts: th1520.dtsi.

Wei Fu (5):
drivers/rtc/rtc-xgene: Add prescaler support in APM X-Gene RTC driver
dt-bindings: rtc: Add optional property "prescaler" in APM X-Gene RTC
Document
drivers/rtc/rtc-xgene: Add "snps,dw-apb-rtc" into the "compatible"
Kconfig: Enable APM X-Gene RTC for XuanTie TH1520
riscv: dts: thead: Add XuanTie TH1520 RTC device node

 .../devicetree/bindings/rtc/xgene-rtc.txt     | 16 ++++++++++
 arch/riscv/boot/dts/thead/th1520.dtsi         | 11 +++++++
 drivers/rtc/Kconfig                           | 12 ++++++-
 drivers/rtc/rtc-xgene.c                       | 32 +++++++++++++++++++
 4 files changed, 70 insertions(+), 1 deletion(-)
Signature · 1 line
2.44.0