Skip to content

drivers: rtc_sam: update to support Microchip sama7g54 RTC #91332

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jun 26, 2025

Conversation

TonyHan11
Copy link
Contributor

Changes listed bellow:

  • update revision for hal_microchip in yest.yml
  • update drivers/rtc/rtc_sam.c for undefined registers for sama7g54
  • add rtc node to sama7g5.dtsi
  • update test/drivers/rtc/rtc_api/boards for sama7g54-ek

Copy link

The following west manifest projects have changed revision in this Pull Request:

Name Old Revision New Revision Diff
hal_microchip zephyrproject-rtos/hal_microchip@4b74f40 zephyrproject-rtos/hal_microchip@32a79d4 (master) zephyrproject-rtos/hal_microchip@4b74f408..32a79d48

All manifest checks OK

Note: This message is automatically posted and updated by the Manifest GitHub Action.

Copy link

Update west.yml for SAMA7G54 HAL

Signed-off-by: Tony Han <tony.han@microchip.com>
The basic characteristics of "atmel,sam-rtc" is the same as the ones
of sama7g5.

Differences between the RTCs listed bellow:
                    | atmel,sam-rtc | rtc in sama7g5
--------------------|---------------|----------------------
Persian calendar    |      Y        |         N
UTC Mode support    |      N        |         Y
Tamper Timestamping |      N        |         Y

Signed-off-by: Tony Han <tony.han@microchip.com>
The RTC node is added for sama7g5.dtsi file.

Signed-off-by: Tony Han <tony.han@microchip.com>
Enable tests: tests/drivers/rtc/rtc_api.

Signed-off-by: Tony Han <tony.han@microchip.com>
reg = <0xe001d0a8 0x30>;
interrupt-parent = <&gic>;
interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>;
clocks = <&clk32k 1>;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this fixed or user should select it ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The RTC clock is from the slow clock. Details in datasheet
image

@TonyHan11 TonyHan11 requested a review from nandojve June 16, 2025 06:37
@albertofloyd albertofloyd removed their request for review June 17, 2025 18:33
@nandojve nandojve added this to the v4.2.0 milestone Jun 26, 2025
@nandojve
Copy link
Member

@bjarki-andreasen ?

Copy link
Contributor

@bjarki-andreasen bjarki-andreasen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool :)

@dkalowsk dkalowsk merged commit c61f7f0 into zephyrproject-rtos:main Jun 26, 2025
29 checks passed
@TonyHan11 TonyHan11 deleted the sama7g54_rtc branch June 27, 2025 01:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: RTC Real Time Clock manifest manifest-hal_microchip platform: Microchip MEC Microchip MEC Platform platform: Microchip SAM Microchip SAM Platform (formerly Atmel SAM)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants