File tree Expand file tree Collapse file tree 2 files changed +50
-1
lines changed Expand file tree Collapse file tree 2 files changed +50
-1
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2020 Gerson Fernando Budke <nandojve@gmail.com>
2
+ * Copyright (c) 2020-2025 Gerson Fernando Budke <nandojve@gmail.com>
3
3
*
4
4
* SPDX-License-Identifier: Apache-2.0
5
5
*/
10
10
#include <zephyr/dt-bindings/clock/atmel_sam_pmc.h>
11
11
12
12
/ {
13
+ aliases {
14
+ watchdog0 = &wdt;
15
+ };
16
+
13
17
chosen {
14
18
zephyr,flash-controller = &flashcalw;
15
19
zephyr,entropy = &trng;
237
241
reg = <0x80020c 0xf>;
238
242
status = "okay";
239
243
};
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
+ };
240
252
};
241
253
};
242
254
Original file line number Diff line number Diff line change
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.
You can’t perform that action at this time.
0 commit comments