[PATCH v4 7/7] arm64: dts: mt8167: Properly describe the SoC watchdog and mmsys resets
Luca Leonardo Scorcia <[email protected]>
| Newsgroups | org.kernel.vger.linux-watchdog,org.infradead.lists.linux-arm-kernel,org.infradead.lists.linux-mediatek,org.kernel.vger.linux-devicetree,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
Currently mt8167 inherits its watchdog from the included mt8516 dtsi, which in turn falls back on mt6589-wdt. However according to the data sheet mt8167 toprgu is not really compatible with mt6589 (it has 14 sw resets instead of 12, and the reset IDs are different from mt6589). Use the dedicated mediatek,mt8167-wdt compatible for the watchdog driver, as it correctly describes the SoC resets. Also add support for mmsys resets by declaring the reset-cells property. Signed-off-by: Luca Leonardo Scorcia <[email protected]> --- arch/arm64/boot/dts/mediatek/mt8167.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8167.dtsi b/arch/arm64/boot/dts/mediatek/mt8167.dtsi index 27cf32d7ae35..cccc487086a1 100644 --- a/arch/arm64/boot/dts/mediatek/mt8167.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8167.dtsi @@ -8,6 +8,8 @@ #include <dt-bindings/clock/mt8167-clk.h> #include <dt-bindings/memory/mt8167-larb-port.h> #include <dt-bindings/power/mt8167-power.h> +#include <dt-bindings/reset/mediatek,mt8167-mmsys.h> +#include <dt-bindings/reset/mediatek,mt8167-wdt.h> #include "mt8167-pinfunc.h" @@ -95,6 +97,13 @@ power-domain@MT8167_POWER_DOMAIN_CONN { }; }; + watchdog: watchdog@10007000 { + compatible = "mediatek,mt8167-wdt"; + reg = <0 0x10007000 0 0x1000>; + interrupts = <GIC_SPI 198 IRQ_TYPE_LEVEL_LOW>; + #reset-cells = <1>; + }; + pio: pinctrl@1000b000 { compatible = "mediatek,mt8167-pinctrl"; reg = <0 0x1000b000 0 0x1000>; @@ -124,6 +133,7 @@ mmsys: syscon@14000000 { compatible = "mediatek,mt8167-mmsys", "syscon"; reg = <0 0x14000000 0 0x1000>; #clock-cells = <1>; + #reset-cells = <1>; }; larb0: larb@14016000 { -- 2.43.0