update watchdog on stm32mp1
Subsystems (3)
v2 cover update watchdog on stm32mp1
This series updates the support for watchdog on STM32MP1. It add a missing clock and prevents autostart of IWDG2.
Changes in v2:
- use noautostart on IWDG2 instead of disabling its DT node
- Link to v1: https://lore.kernel.org/u-boot/[email protected]/
Antonio Borneo (2):
ARM: dts: stm32: set noautostart to iwdg2 in stm32mp157a-dk1-u-boot
ARM: dts: stm32: set noautostart to iwdg2 in stm32mp157c-ed1-u-boot
Thomas Bourgoin (1):
clk: stm32mp1: add support for IWDG1
arch/arm/dts/stm32mp157a-dk1-u-boot.dtsi | 4 ++++ arch/arm/dts/stm32mp157c-ed1-u-boot.dtsi | 4 ++++ drivers/clk/stm32/clk-stm32mp1.c | 1 + 3 files changed, 9 insertions(+)
base-commit: dfcfc4c9f78d1743f490a497082a4ec8e058aae8
Signature · 1 line
2.34.1
PATCH v2 1/3 clk: stm32mp1: add support for IWDG1
From: Thomas Bourgoin <[email protected]>
Add the missing IWDG1 peripheral clock, controlled by the IWDG1APBEN bit (at position 15) in RCC_MP_APB5ENSETR.
This allows SPL or U-Boot to ping IWDG1 if it was started by the hardware or by an earlier boot stage.
--- drivers/clk/stm32/clk-stm32mp1.c | 1 + 1 file changed, 1 insertion(+)
drivers/clk/stm32/clk-stm32mp1.c +1 -0
@@ -561,6 +561,7 @@ static const struct stm32mp1_clk_gate stm32mp1_clk_gate[] = {STM32MP1_CLK_SET_CLR (RCC_MP_APB5ENSETR ,3 ,I2C6_K , _I2C46_SEL),STM32MP1_CLK_SET_CLR (RCC_MP_APB5ENSETR ,4 ,USART1_K , _UART1_SEL),STM32MP1_CLK_SET_CLR (RCC_MP_APB5ENSETR ,8 ,RTCAPB , _PCLK5), +STM32MP1_CLK_SET_CLR (RCC_MP_APB5ENSETR ,15 ,IWDG1 , _UNKNOWN_SEL),STM32MP1_CLK_SET_CLR (RCC_MP_APB5ENSETR ,16 ,BSEC , _UNKNOWN_SEL), STM32MP1_CLK_SET_CLR(RCC_MP_APB5ENSETR, 20, STGEN_K, _STGEN_SEL),
Signature · 1 line
2.34.1
PATCH v2 2/3 ARM: dts: stm32: set noautostart to iwdg2 in stm32mp157a-dk1-u-boot
In reply to Antonio BorneoIWDG2 is not used by U-Boot, but its node is enabled in the device tree inherited from the upstream Linux kernel.
Set noautostart on watchdog IWDG2 to prevent U-Boot from starting it when
CONFIG_WATCHDOG_AUTOSTART=y
as in stm32mp15_basic_defconfig.
--- arch/arm/dts/stm32mp157a-dk1-u-boot.dtsi | 4 ++++ 1 file changed, 4 insertions(+)
arch/arm/dts/stm32mp157a-dk1-u-boot.dtsi +4 -0
@@ -88,6 +88,10 @@ }; }; +&iwdg2 { + u-boot,noautostart; +}; + &pmic { bootph-all; };
Signature · 1 line
2.34.1
PATCH v2 3/3 ARM: dts: stm32: set noautostart to iwdg2 in stm32mp157c-ed1-u-boot
In reply to Antonio BorneoIWDG2 is not used by U-Boot, but its node is enabled in the device tree inherited from the upstream Linux kernel.
Set noautostart on watchdog IWDG2 to prevent U-Boot from starting it when
CONFIG_WATCHDOG_AUTOSTART=y
as in stm32mp15_basic_defconfig.
--- arch/arm/dts/stm32mp157c-ed1-u-boot.dtsi | 4 ++++ 1 file changed, 4 insertions(+)
arch/arm/dts/stm32mp157c-ed1-u-boot.dtsi +4 -0
@@ -72,6 +72,10 @@ }; }; +&iwdg2 { + u-boot,noautostart; +}; + &pmic { bootph-all; };
Signature · 1 line
2.34.1