drivers: watchdog: Enable Gecko wdt driver efr32bg_sltb010a

This commit enables the Gecko Watchdog Timer driver on the
efr32bg_sltb010 board.

Signed-off-by: Mateusz Sierszulski <msierszulski@antmicro.com>
This commit is contained in:
Mateusz Sierszulski 2022-12-30 16:10:44 +01:00 committed by Carles Cufí
parent ee9903005a
commit 5744709c9c
3 changed files with 16 additions and 2 deletions

View file

@ -18,6 +18,7 @@
sw0 = &button0;
spi-flash0 = &mx25r80;
spi0 = &usart0;
watchdog0 = &wdog0;
};
chosen {
@ -89,6 +90,10 @@
pinctrl-names = "default";
};
&wdog0 {
status = "okay";
};
&flash0 {
partitions {
compatible = "fixed-partitions";

View file

@ -254,10 +254,10 @@ static int wdt_gecko_init(const struct device *dev)
/* Enable ULFRCO (1KHz) oscillator */
CMU_OscillatorEnable(cmuOsc_ULFRCO, true, false);
#if !defined(_SILICON_LABS_32B_SERIES_2)
/* Ensure LE modules are clocked */
CMU_ClockEnable(config->clock, true);
#else
#if defined(_SILICON_LABS_32B_SERIES_2)
CMU_ClockSelectSet(config->clock, cmuSelect_ULFRCO);
#endif

View file

@ -162,6 +162,15 @@
};
};
wdog0: wdog@4a018000 {
compatible = "silabs,gecko-wdog";
reg = <0x4A018000 0x3028>;
peripheral-id = <0>;
interrupts = <43 0>;
status = "disabled";
};
};
};