Skip to content

Add basic support for RTC on Allwinner H6 SoC

[email protected] linux-arm-kernel linux-devicetree linux-rtc lkml 2 versions – Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 17 repliesApplied
  2. v13 patches 21 repliesSuperseded

Changes in v2 from the cover letter

- bindings converted to yaml
- added reviewed by tags

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/3dt-bindings: Add compatible for H6 RTCDocumentation/devicetree/bindings/rtc/allwinner,sun6i-a31-rtc.yaml+13 -01 reply
2/3rtc: sun6i: Add support for H6 RTCdrivers/rtc/rtc-sun6i.c+38 -211 replies
3/3arm64: dts: sun50i-h6: Add support for RTC and fix the clock treearch/arm64/boot/dts/allwinner/sun50i-h6.dtsi+16 -141 reply

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchChen-Yu Tsai
1/3
2/3R-b
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/3] Add basic support for RTC on Allwinner H6 SoC

From: Ondrej Jirman <megous-5qf/[email protected]>

I went through the datasheets for H6 and H5, and compared the differences. RTCs are largely similar, but not entirely compatible. Incompatibilities are in details not yet implemented by the rtc driver though.

I also corrected the clock tree in H6 DTSI.

This patchset is necessary for implementing the WiFi/Bluetooth support on boards using H6 SoC.

There was some discussion previously of describing HOSC, DCXO and XO oscillators and clocks as part of RTC in DT, but I decided against it because it's not necessary, becuse information that would be provided as a part of DT can already be determined at runtime from RTC registers, so this woudn't add any value and would only introduce complications to the driver. See: https://patchwork.kernel.org/cover/10898083/

Please take a look.

Thank you and regards,
Ondrej Jirman

Changes in v2:
- bindings converted to yaml
- added reviewed by tags

Ondrej Jirman (3):
dt-bindings: Add compatible for H6 RTC
rtc: sun6i: Add support for H6 RTC
arm64: dts: sun50i-h6: Add support for RTC and fix the clock tree

 .../bindings/rtc/allwinner,sun6i-a31-rtc.yaml | 13 ++++++
 arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi  | 30 +++++++-------
 drivers/rtc/rtc-sun6i.c                       | 40 ++++++++++++++++++-
 3 files changed, 67 insertions(+), 16 deletions(-)
Signature · 1 line
2.22.1