Skip to content

Add NVIDIA VRS RTC support

Shubhi Garg linux-arm-kernel linux-devicetree linux-rtc linux-tegra 7 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. v7 Latest4 patches 5 repliesApplied
  2. v64 patches 5 repliesSuperseded
  3. v54 patches 7 repliesSuperseded
Earlier versions · 4
VersionPostedPatchesRepliesStatus
v46 patches2 repliesSuperseded
v36 patches1 replySuperseded
v26 patches5 repliesSuperseded
v15 patches6 repliesSuperseded

Changes in v7 from the cover letter

- rtc driver fixes to remove mutex lock
- moved rtc register definitions in driver
- dt binding file name fix to keep same as compatible

Patches in v7 Applied

#Subject and filesSizeRepliesApplied
1/4dt-bindings: rtc: Document NVIDIA VRS RTCDocumentation/devicetree/bindings/rtc/nvidia,vrs-10.yaml+59 -01 reply
2/4arm64: tegra: Add device-tree node for NVVRS RTCarch/arm64/boot/dts/nvidia/tegra234-p3701.dtsi arch/arm64/boot/dts/nvidia/tegra234-p3767.dtsi+26 -00 replies
3/4rtc: nvvrs: add NVIDIA VRS RTC device driverMAINTAINERS drivers/rtc/Kconfig drivers/rtc/Makefile +1 more+560 -00 replies
4/4arm64: defconfig: enable NVIDIA VRS PSEQ RTCarch/arm64/configs/defconfig+1 -00 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchRob Herring (Arm)Jon Hunter
SeriesR-b T-b
1/4R-b
2/4
3/4
4/4

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

Read the v7 thread

Cover letter [PATCH v7 0/4] Add NVIDIA VRS RTC support

This patch series adds support for NVIDIA's Voltage Regulator Specification (VRS) RTC device. It provides following features:
- read/set system time
- 32kHz clock support with backup battery input to retain system time across boot
- alarm functionality to wake system from suspend and shutdown state

The series includes:
- Device tree bindings for the VRS RTC
- VRS device tree nodes for NVIDIA platforms
- VRS RTC device driver
- Configuration updates to enable the driver

Changes in v7:
- rtc driver fixes to remove mutex lock
- moved rtc register definitions in driver
- dt binding file name fix to keep same as compatible

Changes in v6:
- compatible name fixes to "nvidia,vrs-10"
- changed dtb node name to pmic@3c

Changes in v5:
- moved device tree bindings from mfd to rtc
- changed dtb node name to rtc@3c
- removed VRS MFD driver
- moved VRS common functions to RTC driver
- removed unused register definitions from header
- changed driver compatible to "nvidia,vrs10-rtc"

Changes in v4:
- fixed device tree node name to "pmic@3c" in dtb aliases

Changes in v3:
- fixed device tree node name to generic "pmic@3c"
- fixed indentation in dt-bindings
- added rate limiting to interrupt clearing debug logs
- removed unnecessary braces in if blocks
- changed dependency from I2C=y to I2C in mfd Kconfig
- fixed return value in RTC driver function calls
- fixed sizeof(*variable) inside rtc driver devm_kzalloc
- switch to devm_device_init_wakeup() for automatic cleanup

Changes in v2:
- fixed, copyrights, definitions and dtb node in dt-bindings
- removed unnecessary logs from MFD and RTC driver
- fixed RTC allocation and registration APIs
- removed unnecessary functions in RTC driver
- used rtc_lock/unlock in RTC irq handler
- added alias to assign VRS RTC as RTC0
- added driver entry in MAINTAINERS
- few other miinor changes done in drivers

Shubhi Garg (4):
dt-bindings: rtc: Document NVIDIA VRS RTC
arm64: tegra: Add device-tree node for NVVRS RTC
rtc: nvvrs: add NVIDIA VRS RTC device driver
arm64: defconfig: enable NVIDIA VRS PSEQ RTC

 .../bindings/rtc/nvidia,vrs-10.yaml           |  59 ++
 MAINTAINERS                                   |   8 +
 .../arm64/boot/dts/nvidia/tegra234-p3701.dtsi |  11 +
 .../arm64/boot/dts/nvidia/tegra234-p3767.dtsi |  15 +
 arch/arm64/configs/defconfig                  |   1 +
 drivers/rtc/Kconfig                           |   9 +
 drivers/rtc/Makefile                          |   1 +
 drivers/rtc/rtc-nvidia-vrs10.c                | 542 ++++++++++++++++++
 8 files changed, 646 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/rtc/nvidia,vrs-10.yaml
 create mode 100644 drivers/rtc/rtc-nvidia-vrs10.c
Signature · 1 line
2.43.0