Skip to content

Commit abee6d5

Browse files
nandojvekartben
authored andcommitted
dts: watchdog: atmel: Add sam4l-watchdog
Introduce sam4l-watchdog binding. Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
1 parent 441112f commit abee6d5

File tree

2 files changed

+50
-1
lines changed

2 files changed

+50
-1
lines changed

dts/arm/atmel/sam4l.dtsi

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2020 Gerson Fernando Budke <nandojve@gmail.com>
2+
* Copyright (c) 2020-2025 Gerson Fernando Budke <nandojve@gmail.com>
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*/
@@ -10,6 +10,10 @@
1010
#include <zephyr/dt-bindings/clock/atmel_sam_pmc.h>
1111

1212
/ {
13+
aliases {
14+
watchdog0 = &wdt;
15+
};
16+
1317
chosen {
1418
zephyr,flash-controller = &flashcalw;
1519
zephyr,entropy = &trng;
@@ -237,6 +241,14 @@
237241
reg = <0x80020c 0xf>;
238242
status = "okay";
239243
};
244+
245+
wdt: watchdog@400f0c00 {
246+
compatible = "atmel,sam4l-watchdog";
247+
reg = <0x400f0c00 0x400>;
248+
interrupts = <44 1>;
249+
clocks = <&pmc PMC_TYPE_PERIPHERAL 99>;
250+
status = "okay";
251+
};
240252
};
241253
};
242254

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Copyright (c) 2024-2025, Gerson Fernando Budke <nandojve@gmail.com>
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
description: ATMEL SAM4L watchdog
5+
6+
compatible: "atmel,sam4l-watchdog"
7+
8+
include: base.yaml
9+
10+
properties:
11+
reg:
12+
required: true
13+
14+
interrupts:
15+
required: true
16+
17+
clocks:
18+
required: true
19+
20+
clk-source:
21+
type: string
22+
default: "rcsys"
23+
enum:
24+
- "rcsys"
25+
- "osc32k"
26+
description: |
27+
Watchdog counter clock source:
28+
- rcsys: 115kHz internal System RC oscillator
29+
- osc32k: 32kHz clock source
30+
Defaults to "rcsys" (hardware reset value) and always enabled source
31+
32+
lock-mode:
33+
type: boolean
34+
description: |
35+
Lock the watchdog when setup is executed. This provides a write protection
36+
to the control register. This mechanism can only be released when a hardware
37+
reset happens.

0 commit comments

Comments
 (0)