public inbox for devicetree@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] watchdog: mt7621-wdt: avoid globals and arch dependencies
@ 2023-02-10  6:56 Sergio Paracuellos
  2023-02-10  6:56 ` [PATCH 1/3] dt-bindings: watchdog: mt7621-wdt: add phandle to access system controller registers Sergio Paracuellos
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Sergio Paracuellos @ 2023-02-10  6:56 UTC (permalink / raw)
  To: linux-watchdog
  Cc: wim, linux, robh+dt, krzysztof.kozlowski+dt, matthias.bgg,
	arinc.unal, tsbogend, p.zabel, linux-kernel, devicetree,
	linux-mips

Hi all,

This series make an update in the MT7621 SoC's watchdog driver code. This
SoC already provides a system controller node to access reset status
register needed for the watchdog. Instead of using MIPS architecture
dependent operations in header 'asm/mach-ralink/ralink_regs.h' use
a phandle to the system controller node and use it through regmap APIs
from the code. Driver is also using some globals that are not needed at
all if a driver data structure is used along the code. Hence, add all
new needed stuff inside a new driver data structure. With this changes
driver can be properly compile tested.

Thanks in advance for reviewing this!

Best regards,
    Sergio Paracuellos

Sergio Paracuellos (3):
  dt-bindings: watchdog: mt7621-wdt: add phandle to access system
    controller registers
  mips: dts: ralink: mt7621: add phandle to system controller node for
    watchdog
  watchdog: mt7621-wdt: avoid globals and arch dependencies

 .../watchdog/mediatek,mt7621-wdt.yaml         |  12 +-
 arch/mips/boot/dts/ralink/mt7621.dtsi         |   3 +-
 drivers/watchdog/Kconfig                      |   4 +-
 drivers/watchdog/mt7621_wdt.c                 | 121 ++++++++++++------
 4 files changed, 95 insertions(+), 45 deletions(-)

-- 
2.25.1


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

end of thread, other threads:[~2023-02-10 12:04 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-10  6:56 [PATCH 0/3] watchdog: mt7621-wdt: avoid globals and arch dependencies Sergio Paracuellos
2023-02-10  6:56 ` [PATCH 1/3] dt-bindings: watchdog: mt7621-wdt: add phandle to access system controller registers Sergio Paracuellos
2023-02-10 10:59   ` Krzysztof Kozlowski
2023-02-10 11:22     ` Sergio Paracuellos
2023-02-10 11:27       ` Krzysztof Kozlowski
2023-02-10 11:38         ` Sergio Paracuellos
2023-02-10  6:56 ` [PATCH 2/3] mips: dts: ralink: mt7621: add phandle to system controller node for watchdog Sergio Paracuellos
2023-02-10 11:00   ` Krzysztof Kozlowski
2023-02-10 11:29     ` Sergio Paracuellos
2023-02-10 11:31       ` Krzysztof Kozlowski
2023-02-10 11:37         ` Sergio Paracuellos
2023-02-10  6:56 ` [PATCH 3/3] watchdog: mt7621-wdt: avoid globals and arch dependencies Sergio Paracuellos
2023-02-10 11:02   ` Krzysztof Kozlowski
2023-02-10 11:35     ` Sergio Paracuellos
2023-02-10 12:04       ` Krzysztof Kozlowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox