Skip to content

rtc/scmi: Support multiple RTCs

Peng Fan (OSS) arm-scmi imx linux-arm-kernel linux-rtc lkml 1 version In review

Get series with b4
b4 am [email protected] change-id 20250116-rtc-3834e01786a8

Versions newest first

  1. v1 Latest4 patches 20 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4firmware: arm_scmi: imx: Support more event sourcesdrivers/firmware/arm_scmi/vendors/imx/imx-sm-bbm.c+16 -20 replies
2/4firmware: arm_scmi: imx: Introduce bbm_info hookdrivers/firmware/arm_scmi/vendors/imx/imx-sm-bbm.c include/linux/scmi_imx_protocol.h+17 -00 replies
3/4rtc: Introduce devm_rtc_allocate_device_privdrivers/rtc/class.c drivers/rtc/dev.c drivers/rtc/interface.c +2 more+24 -133 replies
4/4rtc: imx-sm-bbm: Support multiple RTCsdrivers/rtc/rtc-imx-sm-bbm.c+43 -263 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/4] rtc/scmi: Support multiple RTCs

i.MX95 System Manager(SM) BBM protocol exports two RTCs for EVK board. one RTC is SoC internal RTC, the other is board RTC.

The current driver only use the 1st RTC. With this patchset, both RTCs could be used in Linux. To achieve this:

1. Support more event sources for BBM protocol
2. Add bbm_info hook to let users could query the number of RTCs
3. Introduce devm_rtc_allocate_device_priv to support setting rtc device private information
4. Update rtc-imx-sm-bbm.c to register both RTCs

---
Peng Fan (4):
firmware: arm_scmi: imx: Support more event sources
firmware: arm_scmi: imx: Introduce bbm_info hook
rtc: Introduce devm_rtc_allocate_device_priv
rtc: imx-sm-bbm: Support multiple RTCs

 drivers/firmware/arm_scmi/vendors/imx/imx-sm-bbm.c | 33 ++++++++++-
 drivers/rtc/class.c                                |  9 ++-
 drivers/rtc/dev.c                                  |  8 ++-
 drivers/rtc/interface.c                            | 16 ++---
 drivers/rtc/proc.c                                 |  2 +-
 drivers/rtc/rtc-imx-sm-bbm.c                       | 69 ++++++++++++++--------
 include/linux/rtc.h                                |  2 +
 include/linux/scmi_imx_protocol.h                  |  2 +
 8 files changed, 100 insertions(+), 41 deletions(-)

---
base-commit: e7bb221a638962d487231ac45a6699fb9bb8f9fa
change-id: 20250116-rtc-3834e01786a8

Best regards,

Signature · 1 line
Peng Fan <[email protected]>