soc: arm: nxp: ke1xf: add watchdog support
Add watchdog (WDOG32) support to the NXP Kinetis KE1xF SoC series. Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
This commit is contained in:
parent
7cb92552f3
commit
56940ac239
|
@ -12,6 +12,7 @@
|
|||
/ {
|
||||
aliases {
|
||||
rtc-0 = &rtc0;
|
||||
wdt-0 = &wdog0;
|
||||
uart-0 = &uart0;
|
||||
uart-1 = &uart1;
|
||||
uart-2 = &uart2;
|
||||
|
@ -65,6 +66,15 @@
|
|||
#clock-cells = <1>;
|
||||
};
|
||||
|
||||
pmc: pmc@4007d000 {
|
||||
compatible = "fixed-clock";
|
||||
reg = <0x4007d000 0x1000>;
|
||||
label = "PMC";
|
||||
/* LPO clock */
|
||||
clock-frequency = <125000>;
|
||||
#clock-cells = <1>;
|
||||
};
|
||||
|
||||
pcc: pcc@40065000 {
|
||||
compatible = "nxp,kinetis-pcc";
|
||||
reg = <0x40065000 0x1000>;
|
||||
|
@ -82,6 +92,16 @@
|
|||
label = "RTC_0";
|
||||
};
|
||||
|
||||
wdog0: watchdog@40052000 {
|
||||
compatible = "nxp,kinetis-wdog32";
|
||||
reg = <0x40052000 0x1000>;
|
||||
interrupts = <22 0>;
|
||||
clocks = <&pmc 0>;
|
||||
clk-source = <1>;
|
||||
clk-divider = <256>;
|
||||
label = "WDT_0";
|
||||
};
|
||||
|
||||
flash_controller: flash-controller@40020000 {
|
||||
compatible = "nxp,kinetis-ftfe";
|
||||
label = "FLASH_CTRL";
|
||||
|
|
|
@ -28,6 +28,13 @@ config CLOCK_CONTROL_MCUX_PCC
|
|||
|
||||
endif # CLOCK_CONTROL
|
||||
|
||||
if WATCHDOG
|
||||
|
||||
config WDT_MCUX_WDOG32
|
||||
default y
|
||||
|
||||
endif # WATCHDOG
|
||||
|
||||
if RTC
|
||||
|
||||
config RTC_MCUX
|
||||
|
|
|
@ -23,5 +23,6 @@ config SOC_SERIES_KINETIS_KE1XF
|
|||
select HAS_MCUX_SIM
|
||||
select HAS_MCUX_ADC12
|
||||
select HAS_MCUX_SCG
|
||||
select HAS_MCUX_WDOG32
|
||||
help
|
||||
Enable support for Kinetis KE1xF MCU series
|
||||
|
|
|
@ -79,6 +79,7 @@
|
|||
#define DT_ADC_1_NAME DT_NXP_KINETIS_ADC12_40027000_LABEL
|
||||
#define DT_ADC_2_NAME DT_NXP_KINETIS_ADC12_4003C000_LABEL
|
||||
|
||||
#define DT_WDT_0_NAME DT_NXP_KINETIS_WDOG32_40052000_LABEL
|
||||
|
||||
#define DT_SPI_1_NAME DT_NXP_IMX_LPSPI_4002C000_LABEL
|
||||
#define DT_SPI_1_BASE_ADDRESS DT_NXP_IMX_LPSPI_4002C000_BASE_ADDRESS
|
||||
|
|
Loading…
Reference in a new issue