Skip to content
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

drivers: watchdog: Adding watchdog support for sam SOC #10828

Merged
merged 1 commit into from
Nov 2, 2018

Conversation

subbu147
Copy link
Contributor

@subbu147 subbu147 commented Oct 25, 2018

Adding watchdog driver for sam SoC. The current implementation just
disables the watchdog on device boot.
This PR adds the following support for SAM3X, SAM4S and SAME70

  1. Activate processor reset
  2. Activate all reset
  3. Generate interrupt
    on watchdog timer expiration.

Signed-off-by: Subramanian Meenakshi Sundaram [email protected]

@codecov-io
Copy link

codecov-io commented Oct 25, 2018

Codecov Report

Merging #10828 into master will increase coverage by 0.08%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #10828      +/-   ##
==========================================
+ Coverage   53.21%    53.3%   +0.08%     
==========================================
  Files         217      215       -2     
  Lines       26667    25908     -759     
  Branches     5913     5711     -202     
==========================================
- Hits        14192    13810     -382     
+ Misses      10059     9777     -282     
+ Partials     2416     2321      -95
Impacted Files Coverage Δ
subsys/net/ip/ipv6.c 56.68% <0%> (-0.6%) ⬇️
kernel/device.c 95.23% <0%> (-0.12%) ⬇️
kernel/mutex.c 97.05% <0%> (ø) ⬆️
include/kernel.h 98.48% <0%> (ø) ⬆️
subsys/usb/usb_device.c 0% <0%> (ø) ⬆️
kernel/include/kernel_structs.h 100% <0%> (ø) ⬆️
include/misc/dlist.h 92.3% <0%> (ø) ⬆️
include/misc/util.h 50% <0%> (ø) ⬆️
subsys/net/lib/coap_sock/coap_sock.c
include/net/coap_sock.h
... and 6 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 79b9b51...07310bf. Read the comment docs.

@subbu147 subbu147 requested a review from fallrisk as a code owner October 25, 2018 14:55
@subbu147 subbu147 changed the title drivers: watchdog: Adding watchdog support for sam3x SOC drivers: watchdog: Adding watchdog support for sam SOC Oct 25, 2018
Copy link
Contributor

@dbkinder dbkinder left a comment

Choose a reason for hiding this comment

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

+1 for doc changes

drivers/watchdog/wdt_sam.c Outdated Show resolved Hide resolved
@galak galak force-pushed the sam3x8e_watchdog branch 3 times, most recently from 11aa6ed to 601f9dd Compare October 30, 2018 10:40
@galak
Copy link
Collaborator

galak commented Oct 30, 2018

I pushed some updates and reworked the driver a bit, take a look and test it out if you can.

@galak galak added the area: Watchdog Watchdog label Oct 30, 2018
nashif
nashif previously requested changes Oct 30, 2018
samples/drivers/watchdog/prj.conf Outdated Show resolved Hide resolved
@galak galak dismissed nashif’s stale review October 31, 2018 09:17

Issue resolved, dropped change to prj.conf

@galak
Copy link
Collaborator

galak commented Oct 31, 2018

@subbu147 did my changes look good? did they test out ok?

@subbu147
Copy link
Contributor Author

@galak Your changes holds good. I have tested All the modes and all the new negative(fault handling) scenarios.

drivers/watchdog/wdt_sam.c Outdated Show resolved Hide resolved
drivers/watchdog/wdt_sam.c Outdated Show resolved Hide resolved
drivers/watchdog/wdt_sam.c Outdated Show resolved Hide resolved
drivers/watchdog/wdt_sam.c Outdated Show resolved Hide resolved
dts/bindings/watchdog/atmel,sam-watchdog.yaml Show resolved Hide resolved
@galak
Copy link
Collaborator

galak commented Nov 1, 2018

@MaureenHelm can you re-review

Copy link
Member

@MaureenHelm MaureenHelm left a comment

Choose a reason for hiding this comment

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

One small change needed, but otherwise looks good.

drivers/watchdog/wdt_sam.c Outdated Show resolved Hide resolved
Adding watchdog driver for sam SoC. The current implemntation just
diables the watchdog on device boot.
This PR adds the following support for SAM3X, SAM4S and SAME70
1. Activate processor reset
2. Activate all reset
3. Generate interrupt on watchdog timer expiration.

Signed-off-by: Subramanian Meenakshi Sundaram <[email protected]>
Signed-off-by: Kumar Gala <[email protected]>
@MaureenHelm MaureenHelm merged commit 4e1179b into zephyrproject-rtos:master Nov 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants