mbox series

[v3,0/2] mtk-wdt: Add reset-by-toprgu support

Message ID 20230117014023.2993-1-allen-kh.cheng@mediatek.com
Headers show
Series mtk-wdt: Add reset-by-toprgu support | expand

Message

Allen-KH Cheng Jan. 17, 2023, 1:40 a.m. UTC
This series is based on next-20230116.

TOPRGU = Top Reset Generation Unit

In some cases, we may need TOPRGU to reset the wdt timer after system
resets. Provide a reset_by_toprgu parameter for configuration. We can
disable or enable it by adding reset_by_toprgu in dts.

Changes since v2:
 - Correct the description
Changes since v1:
 - Add more information in bindings
 - Modify some words in the commit message

Allen-KH Cheng (2):
  dt-bindings: watchdog: mtk-wdt: Add reset-by-toprgu support
  watchdog: mtk_wdt: Add reset_by_toprgu support

 .../devicetree/bindings/watchdog/mediatek,mtk-wdt.yaml     | 6 ++++++
 drivers/watchdog/mtk_wdt.c                                 | 7 +++++++
 2 files changed, 13 insertions(+)

Comments

Krzysztof Kozlowski Jan. 17, 2023, 11:10 a.m. UTC | #1
On 17/01/2023 02:40, Allen-KH Cheng wrote:
> In some applications, the mtk-wdt requires the TOPRGU (Top Reset
> Generation Unit) to reset timer after system resets. Add optional
> mediatek,reset-by-toprgu property to enable it.
> 
> Signed-off-by: Allen-KH Cheng <allen-kh.cheng@mediatek.com>
> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>


Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Best regards,
Krzysztof