-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Add TI RTI watchdog driver support for am243x-evm #100291
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
base: main
Are you sure you want to change the base?
Conversation
Sunil-Hegde
commented
Dec 1, 2025
- Adds watchdog support for TI am243x-evm on r5f0_0 core
- Add callback support in the existing driver
|
Hello @Sunil-Hegde, and thank you very much for your first pull request to the Zephyr project! |
75db7b9 to
edd9468
Compare
edd9468 to
daf09d7
Compare
a288a00 to
c9ce26e
Compare
c9ce26e to
12e22ba
Compare
|
assigning K3 maintainer |
|
|
||
| struct wdt_ti_rti_config { | ||
| DEVICE_MMIO_ROM; | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Leave these newlines as-is, same below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i can still see newline deletions at other places for no reason.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh sorry i thought that was only for rti_data and rti_config
i will fix everything
drivers/watchdog/wdt_ti_rti.c
Outdated
| } | ||
|
|
||
| /* Clear the Watchdog status register before enabling */ | ||
| regs->WDSTATUS = 0x3f; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
0x3f is a magic number here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed it to a macro
drivers/watchdog/wdt_ti_rti.c
Outdated
| uint32_t timer_margin; | ||
| int window_size; | ||
|
|
||
| if (cfg->callback != NULL) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to check here, assigning NULL to a var that is already NULL doesn't hurt. And if it wasn't NULL before, then maybe it should be after this call. Just check for NULL before you call it (which is already done below).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
|
Fix the compliance issues, make sure to run |
- Use main_rti8 as watchdog timer for r5f0_0 core Signed-off-by: Sunil Hegde <[email protected]>
12e22ba to
01f4379
Compare
- Add callback support for the wathdog driver. Signed-off-by: Sunil Hegde <[email protected]>
01f4379 to
124dfab
Compare
|


