All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v6 0/4] drivers: watchdog: ast2500 and ast2600 support bootstatus
@ 2024-03-28  2:22 ` Peter Yin
  0 siblings, 0 replies; 33+ messages in thread
From: Peter Yin @ 2024-03-28  2:22 UTC (permalink / raw)
  To: linux-aspeed

Add WDIOF_EXTERN1 and WDIOF_CARDRESET bootstatus in ast2500/ast2600

Regarding the AST2600 specification, the WDTn Timeout Status Register
(WDT10) has bit 1 reserved. Bit 1 of the status register indicates
on ast2500 if the boot was from the second boot source.
It does not indicate that the most recent reset was triggered by
the watchdog. The code should just be changed to set WDIOF_CARDRESET
if bit 0 of the status register is set.

Include SCU register to veriy WDIOF_EXTERN1 in ast2600 SCU74 or
ast2500 SCU3C when bit1 is set.

Change Log:

v5 -> v6
  - Fixed missing WDT_TIMEOUT_STATUS_EVENT.

v4 -> v5
  - Revert indentation. 

v3 -> v4
  - Add error handling for syscon_regmap_lookup_by_phandle and
  regmap_read.

v2 -> v3
  - Fixed WDIOF_CARDRESET status bit check and added support
  for WDIOF_EXTERN1 on ast2500 and ast2600.

v1 -> v2
  - Add comment and support WDIOF_CARDRESET in ast2600

v1
  - Patch 0001 - Add WDIOF_EXTERN1 bootstatus
---

Peter Yin (4):
  ARM: dts: aspeed: Add the AST2500 WDT with SCU register
  ARM: dts: aspeed: Add the AST2600 WDT with SCU register
  dt-bindings: watchdog: aspeed-wdt: Add aspeed,scu
  drivers: watchdog: ast2500 and ast2600 support bootstatus

 .../bindings/watchdog/aspeed-wdt.txt          |  4 +++
 arch/arm/boot/dts/aspeed/aspeed-g5.dtsi       |  3 ++
 arch/arm/boot/dts/aspeed/aspeed-g6.dtsi       |  4 +++
 drivers/watchdog/aspeed_wdt.c                 | 35 ++++++++++++++++---
 4 files changed, 42 insertions(+), 4 deletions(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 33+ messages in thread

end of thread, other threads:[~2024-04-09 18:08 UTC | newest]

Thread overview: 33+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-28  2:22 [PATCH v6 0/4] drivers: watchdog: ast2500 and ast2600 support bootstatus Peter Yin
2024-03-28  2:22 ` Peter Yin
2024-03-28  2:22 ` Peter Yin
2024-03-28  2:22 ` [PATCH v6 1/4] ARM: dts: aspeed: Add the AST2500 WDT with SCU register Peter Yin
2024-03-28  2:22   ` Peter Yin
2024-03-28  2:22   ` Peter Yin
2024-03-28  2:22 ` [PATCH v6 2/4] ARM: dts: aspeed: Add the AST2600 " Peter Yin
2024-03-28  2:22   ` Peter Yin
2024-03-28  2:22   ` Peter Yin
2024-03-28  2:22 ` [PATCH v6 3/4] dt-bindings: watchdog: aspeed-wdt: Add aspeed,scu Peter Yin
2024-03-28  2:22   ` Peter Yin
2024-03-28  2:22   ` Peter Yin
2024-04-01 13:56   ` Rob Herring
2024-04-01 13:56     ` Rob Herring
2024-04-01 13:56     ` Rob Herring
2024-04-02 12:09     ` Andrew Jeffery
2024-04-02 12:09       ` Andrew Jeffery
2024-04-02 12:09       ` Andrew Jeffery
2024-04-03  9:18       ` PeterYin
2024-04-03  9:18         ` PeterYin
2024-04-03  9:18         ` PeterYin
2024-04-04  1:50         ` Andrew Jeffery
2024-04-04  1:50           ` Andrew Jeffery
2024-04-04  1:50           ` Andrew Jeffery
2024-03-28  2:22 ` [PATCH v6 4/4] drivers: watchdog: ast2500 and ast2600 support bootstatus Peter Yin
2024-03-28  2:22   ` Peter Yin
2024-03-28  2:22   ` Peter Yin
2024-04-09 16:28   ` PeterYin
2024-04-09 16:28     ` PeterYin
2024-04-09 16:28     ` PeterYin
2024-04-09 18:08     ` Guenter Roeck
2024-04-09 18:08       ` Guenter Roeck
2024-04-09 18:08       ` Guenter Roeck

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.