ramips: mt7621-wdt: use phandle to access system controller registers
authorShiji Yang <yangshiji66@qq.com>
Thu, 22 Jun 2023 13:22:32 +0000 (21:22 +0800)
committerNick Hainke <vincent@systemli.org>
Sun, 30 Jul 2023 11:09:23 +0000 (13:09 +0200)
commit96010bb17c0a15427f60b836165d50617f0dfb1c
tree162464765e73f337c6bc2764104f8e46d4cc9b0c
parent1f818b09f8ae1cbb4a2ae7ddaccaa9ce0c12ca93
ramips: mt7621-wdt: use phandle to access system controller registers

These patches allow the driver to access some watchdog registers via a
phandle to the system controller node[1]. To apply these changes, we
need to add "mediatek,sysctl" to the SoC dtsi. This commit also remove
the redundent clocks, interrupts and resets properties.

[1] https://lore.kernel.org/all/20230214103936.1061078-2-sergio.paracuellos@gmail.com

Tested on Motorola MWR03 (MT7628)

Signed-off-by: Shiji Yang <yangshiji66@qq.com>
target/linux/ramips/dts/mt7621.dtsi
target/linux/ramips/dts/mt7628an.dtsi
target/linux/ramips/patches-5.15/009-v6.3-01-watchdog-mt7621-wdt-avoid-static-global-declarations.patch [new file with mode: 0644]
target/linux/ramips/patches-5.15/009-v6.3-02-watchdog-mt7621-wdt-avoid-ralink-architecture-depend.patch [new file with mode: 0644]