Skip to content

Commit 6d4c0da

Browse files
nandojvembolivar-nordic
authored andcommitted
drivers: hwinfo: sam: Make compatible whole series
This update devicetree entries and Kconfig definition to allow use of reset cause on all SAM series. Signed-off-by: Gerson Fernando Budke <[email protected]>
1 parent 08015c8 commit 6d4c0da

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

drivers/hwinfo/Kconfig

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,7 @@ config HWINFO_RPI_PICO
8989
config HWINFO_SAM_RSTC
9090
bool "Atmel SAM reset cause"
9191
default y
92-
depends on SOC_SERIES_SAM4S || SOC_SERIES_SAME70 || \
93-
SOC_SERIES_SAMV71
92+
depends on SOC_FAMILY_SAM && !SOC_SERIES_SAM4L
9493
help
9594
Enable Atmel SAM reset cause hwinfo driver.
9695

dts/arm/atmel/sam3x.dtsi

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,13 @@
228228
<&pmc PMC_TYPE_PERIPHERAL 35>;
229229
status = "disabled";
230230
};
231+
232+
rstc: rstc@400e1a00 {
233+
compatible = "atmel,sam-rstc";
234+
reg = <0x400e1a00 0x10>;
235+
clocks = <&pmc PMC_TYPE_PERIPHERAL 1>;
236+
user-nrst;
237+
};
231238
};
232239
};
233240

dts/arm/atmel/sam4e.dtsi

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,13 @@
248248
status = "disabled";
249249
};
250250

251+
rstc: rstc@400e1800 {
252+
compatible = "atmel,sam-rstc";
253+
reg = <0x400e1800 0x10>;
254+
clocks = <&pmc PMC_TYPE_PERIPHERAL 1>;
255+
user-nrst;
256+
};
257+
251258
smc: smc@40060000 {
252259
compatible = "atmel,sam-smc";
253260
#address-cells = <1>;

0 commit comments

Comments
 (0)