From patchwork Wed Jun 9 11:44:55 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 457060 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 229A6C48BCF for ; Wed, 9 Jun 2021 11:45:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0B63A613BC for ; Wed, 9 Jun 2021 11:45:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235385AbhFILru (ORCPT ); Wed, 9 Jun 2021 07:47:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235021AbhFILru (ORCPT ); Wed, 9 Jun 2021 07:47:50 -0400 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46701C061574 for ; Wed, 9 Jun 2021 04:45:55 -0700 (PDT) Received: by mail-wm1-x32a.google.com with SMTP id g204so3805336wmf.5 for ; Wed, 09 Jun 2021 04:45:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20150623.gappssmtp.com; s=20150623; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Ws5KFSDcy0/GzNRUs6Wg3uxHuwHpItMQoMPWkBxL9Uc=; b=Oy7U7Zvp7YmAmR4vLC9d/ys3RwZvv/RGbSF7AJ/n+fU+tHr1rccDo0NggpbFnk82S3 fzd8od6yNFwyTOnRi6jqi6zT1GfoT/3n566Urmlx6vC8QZWwbdTcBDsLHHyd9qKzL8YQ /XkvkChf3gFJiTojhqYvyRr3lxSqMUf8r+wrqxs9I33f/cFb+CZwo2gwxP0U1XTI4tCi AXe03oUieAPB00K/N8i3Vx7Am8OURJYPPfX2BscuF7F/sV1JMXLwgFVqtDmTXSs0peDF 9qPuTJs/xPOD1NG+VqgpOgUooC/oNaBgweGbVyUcIy1X6QPRKnf6q3bQJWElOOVyeotn n7Qg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=Ws5KFSDcy0/GzNRUs6Wg3uxHuwHpItMQoMPWkBxL9Uc=; b=DlN6lcJv6FwNM6/P7Sld0g89BlCnrkJNWUvJWcn4xqW9hL64/v0lUN6vskxHeQru7d A0jQ4g9fOaoCOOuQl5Xx47HOVKXU5MnI2Mz0a1/kbhF+qC4hHu0qY7WW3tY2U/N54EO9 6cFdFutgWMMJS1i3viEXyR8bhJZ2jclwEwlocxpcDcqUaUfyNoELEXg/SfNkHEXhJldN ZQjkTnUMdA+e3tMti5nogNNfrw3bhe0qePwYMRu+BF6CQUP/r/KI3DRBc+ZdcSGpW99R ZXHBWYc1WkRk29iIjA+psH71fXzak3D2X3wom591/8AYAKFsDznpR4oB0mxk1tj02FDu /3/w== X-Gm-Message-State: AOAM530O//1XY8u73qtB3cqqb8otkbb7r2EFJmaNMvL6SoYRpr4vFcvI i04+Yj9TTJ1DNV7UACyW5l+jvw== X-Google-Smtp-Source: ABdhPJwPkVRd86Kf3QXTQ/Dm+lvBT829pSO/dYETHf6tfBEI/MgZlRu78M/MbhBQvFS3yhJpIAnJAQ== X-Received: by 2002:a05:600c:4ec8:: with SMTP id g8mr9257644wmq.62.1623239153922; Wed, 09 Jun 2021 04:45:53 -0700 (PDT) Received: from localhost ([2a02:768:2307:40d6::45a]) by smtp.gmail.com with ESMTPSA id p16sm24172961wrs.52.2021.06.09.04.45.53 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 09 Jun 2021 04:45:53 -0700 (PDT) Sender: Michal Simek From: Michal Simek To: linux-kernel@vger.kernel.org, monstr@monstr.eu, michal.simek@xilinx.com, git@xilinx.com, Viresh Kumar Cc: Mounika Grace Akula , Krzysztof Kozlowski , Laurent Pinchart , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 19/31] arm64: zynqmp: Add reset-on-timeout to all boards and modify default timeout value Date: Wed, 9 Jun 2021 13:44:55 +0200 Message-Id: <5848a81447921240fddfe2f5749ae0746fcbbdbd.1623239033.git.michal.simek@xilinx.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: References: MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Mounika Grace Akula This patch adds reset-on-timeout to FPD WDT which will trigger an interrupt to PMU when watchdog expiry happens and PMU takes the necessary action. If this property is not enabled, reason will not be known when watchdog expiry happens. This patch also modifies the default timeout to 60 seconds. Reason is that if u-boot enables WDT, it will set the timeout to 10 seconds and this is not enough to boot till Linux and start the WDT application in Linux. 60 seconds is the maximum safest value to boot till Linux and start the WDT application. Users need to change this timeout value to fit their needs. Signed-off-by: Mounika Grace Akula Signed-off-by: Michal Simek --- arch/arm64/boot/dts/xilinx/zynqmp.dtsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/xilinx/zynqmp.dtsi b/arch/arm64/boot/dts/xilinx/zynqmp.dtsi index bd3f0d456ca4..80332e3b4d6a 100644 --- a/arch/arm64/boot/dts/xilinx/zynqmp.dtsi +++ b/arch/arm64/boot/dts/xilinx/zynqmp.dtsi @@ -830,7 +830,8 @@ watchdog0: watchdog@fd4d0000 { interrupt-parent = <&gic>; interrupts = <0 113 1>; reg = <0x0 0xfd4d0000 0x0 0x1000>; - timeout-sec = <10>; + timeout-sec = <60>; + reset-on-timeout; }; lpd_watchdog: watchdog@ff150000 {