Skip to content

Update watchdogs support on STM32MP platforms

Antonio Borneo linux-arm-kernel linux-devicetree linux-watchdog lkml 2 versions – Applied

Status from this message: Applied.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest15 patches 8 repliesApplied
  2. v313 patches 4 repliesSuperseded

Changes in v4 from the cover letter

- Add two fixes, one detected by Sashiko
- Add access-contollers property to bindingds
- Drop update on stm32mp21x DT since clock framework is still missing
- Add two fixes, one detected by Sashiko
- Integrate Sashiko comments
- Patch v4 06/15 (former v3 04/13) reposted unchanged, waiting for reply from Guenter Roeck
- Link to v3: https://lore.kernel.org/all/[email protected]/

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/15watchdog: stm32_iwdg: set driver data before requesting interruptdrivers/watchdog/stm32_iwdg.c+4 -40 replies
2/15watchdog: stm32_iwdg: serialize accesses to EWCR registerdrivers/watchdog/stm32_iwdg.c+17 -40 replies
3/15watchdog: stm32_iwdg: get hardware version during probedrivers/watchdog/stm32_iwdg.c+7 -00 replies
4/15watchdog: stm32_iwdg: detect whether the watchdog is runningdrivers/watchdog/stm32_iwdg.c+30 -100 replies
5/15watchdog: stm32_iwdg: add pretimeout support for iwdg v4.0drivers/watchdog/stm32_iwdg.c+13 -50 replies
6/15ARM: stm32: enable arm smc watchdog on stm32mp1xxarch/arm/mach-stm32/Kconfig+2 -04 replies
7/15dt-bindings: watchdog: st,stm32-iwdg: add access-controllers propertyDocumentation/devicetree/bindings/watchdog/st,stm32-iwdg.yaml+3 -02 replies
8/15ARM: dts: stm32: add iwdg1 node on stm32mp151 SoCarch/arm/boot/dts/st/stm32mp151.dtsi+10 -00 replies
9/15ARM: dts: stm32: enable iwdg1 on stm32mp15x ST boardsarch/arm/boot/dts/st/stm32mp15-scmi.dtsi arch/arm/boot/dts/st/stm32mp157c-ed1.dts arch/arm/boot/dts/st/stm32mp15xx-dkx.dtsi+16 -00 replies
10/15ARM: dts: stm32: move arm smc watchdog to stm32mp151 SoCarch/arm/boot/dts/st/stm32mp151.dtsi arch/arm/boot/dts/st/stm32mp157f-dk2-scmi.dtsi+6 -70 replies
11/15ARM: dts: stm32: enable arm smc watchdog on stm32mp15x scmi boardsarch/arm/boot/dts/st/stm32mp157a-dk1-scmi.dts arch/arm/boot/dts/st/stm32mp157c-dk2-scmi.dts arch/arm/boot/dts/st/stm32mp157c-ed1-scmi.dts +1 more+36 -00 replies
12/15ARM: dts: stm32: add watchdog0 alias on ST stm32mp1xx boardsarch/arm/boot/dts/st/stm32mp135f-dk.dts arch/arm/boot/dts/st/stm32mp157f-dk2.dts+2 -00 replies
13/15arm64: dts: st: add iwdg1 and iwdg2 support to stm32mp231arch/arm64/boot/dts/st/stm32mp231.dtsi+20 -00 replies
14/15arm64: dts: st: add iwdg1 and iwdg2 support to stm32mp251arch/arm64/boot/dts/st/stm32mp251.dtsi+20 -00 replies
15/15arm64: dts: st: enable iwdg2 on stm32mp2xx ST boardsarch/arm64/boot/dts/st/stm32mp235f-dk.dts arch/arm64/boot/dts/st/stm32mp257f-dk.dts arch/arm64/boot/dts/st/stm32mp257f-ev1.dts+19 -10 replies

Reviews trailers per patch

1 of 15 patches has a Reviewed-by or Acked-by.

PatchRob Herring (Arm)
1/15
2/15
3/15
4/15
5/15
6/15
7/15A-b
8/15
9/15
10/15
11/15
12/15
13/15
14/15
15/15

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 00/15] Update watchdogs support on STM32MP platforms

This series allows the stm32_iwdg watchdog driver to determine whether the watchdog is already running and adds support for STM32MP2xx devices.

It also completes and rationalizes the configuration of secure and non-secure watchdogs across STM32MP devices and ST boards.

For STM32MP1xx devices, it enables the ARM SMC watchdog driver in the machine Kconfig.

Regards,
Antonio

Changes in v4:
- Add two fixes, one detected by Sashiko
- Add access-contollers property to bindingds
- Drop update on stm32mp21x DT since clock framework is still missing
- Add two fixes, one detected by Sashiko
- Integrate Sashiko comments
- Patch v4 06/15 (former v3 04/13) reposted unchanged, waiting for reply from Guenter Roeck
- Link to v3: https://lore.kernel.org/all/[email protected]/

Changes in v3:
- Add support for detecting watchdog running status
- Add pretimeout irq support on STM32MP2xx
- Build ARM SMC watchdog driver on STM32MP1xx
- Use ARM SMC watchdog on platforms that have secure IWDG1 and use the
native stm32_iwdg driver when the IWDG1 is non-secure
- Add iwdg1 and iwdg2 nodes on STM32MP2xx platforms
- Add the alias in device trees to have the system watchdog allocated
as watchdog0, independently from the probe order
- Link to v2: https://lore.kernel.org/lkml/[email protected]/

Changes in v2:
- Drop addition of iwdg1 DT node, not needed as OP-TEE keep the watchdog
secure on all boards;
- Link to v1: https://lore.kernel.org/lkml/[email protected]/

Amelie Delaunay (3):
ARM: dts: stm32: add iwdg1 node on stm32mp151 SoC
ARM: dts: stm32: enable iwdg1 on stm32mp15x ST boards
ARM: dts: stm32: enable arm smc watchdog on stm32mp15x scmi boards

Antonio Borneo (9):
watchdog: stm32_iwdg: set driver data before requesting interrupt
watchdog: stm32_iwdg: serialize accesses to EWCR register
watchdog: stm32_iwdg: add pretimeout support for iwdg v4.0
ARM: stm32: enable arm smc watchdog on stm32mp1xx
dt-bindings: watchdog: st,stm32-iwdg: add access-controllers property
ARM: dts: stm32: move arm smc watchdog to stm32mp151 SoC
ARM: dts: stm32: add watchdog0 alias on ST stm32mp1xx boards
arm64: dts: st: add iwdg1 and iwdg2 support to stm32mp231
arm64: dts: st: enable iwdg2 on stm32mp2xx ST boards

Clément Le Goffic (3):
watchdog: stm32_iwdg: get hardware version during probe
watchdog: stm32_iwdg: detect whether the watchdog is running
arm64: dts: st: add iwdg1 and iwdg2 support to stm32mp251

 .../bindings/watchdog/st,stm32-iwdg.yaml      |  3 +
 arch/arm/boot/dts/st/stm32mp135f-dk.dts       |  1 +
 arch/arm/boot/dts/st/stm32mp15-scmi.dtsi      |  4 +
 arch/arm/boot/dts/st/stm32mp151.dtsi          | 16 ++++
 arch/arm/boot/dts/st/stm32mp157a-dk1-scmi.dts |  9 ++
 arch/arm/boot/dts/st/stm32mp157c-dk2-scmi.dts |  9 ++
 arch/arm/boot/dts/st/stm32mp157c-ed1-scmi.dts |  9 ++
 arch/arm/boot/dts/st/stm32mp157c-ed1.dts      |  6 ++
 arch/arm/boot/dts/st/stm32mp157c-ev1-scmi.dts |  9 ++
 .../arm/boot/dts/st/stm32mp157f-dk2-scmi.dtsi |  7 --
 arch/arm/boot/dts/st/stm32mp157f-dk2.dts      |  1 +
 arch/arm/boot/dts/st/stm32mp15xx-dkx.dtsi     |  6 ++
 arch/arm/mach-stm32/Kconfig                   |  2 +
 arch/arm64/boot/dts/st/stm32mp231.dtsi        | 20 +++++
 arch/arm64/boot/dts/st/stm32mp235f-dk.dts     |  6 ++
 arch/arm64/boot/dts/st/stm32mp251.dtsi        | 20 +++++
 arch/arm64/boot/dts/st/stm32mp257f-dk.dts     |  8 +-
 arch/arm64/boot/dts/st/stm32mp257f-ev1.dts    |  6 ++
 drivers/watchdog/stm32_iwdg.c                 | 86 +++++++++++++++----
 19 files changed, 201 insertions(+), 27 deletions(-)

base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4

Signature · 1 line
2.34.1