From patchwork Wed Feb 13 15:54:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 1041368 X-Patchwork-Delegate: monstr@monstr.eu Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=xilinx.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=monstr-eu.20150623.gappssmtp.com header.i=@monstr-eu.20150623.gappssmtp.com header.b="1Xk6p3Sf"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 44040f0lywz9s7T for ; Thu, 14 Feb 2019 02:57:22 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id C8241C2209D; Wed, 13 Feb 2019 15:55:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 1BD1BC2205A; Wed, 13 Feb 2019 15:54:56 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id A49ABC2202B; Wed, 13 Feb 2019 15:54:44 +0000 (UTC) Received: from mail-wm1-f65.google.com (mail-wm1-f65.google.com [209.85.128.65]) by lists.denx.de (Postfix) with ESMTPS id 7E497C22059 for ; Wed, 13 Feb 2019 15:54:40 +0000 (UTC) Received: by mail-wm1-f65.google.com with SMTP id x10so2932551wmg.2 for ; Wed, 13 Feb 2019 07:54:40 -0800 (PST) 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 :in-reply-to:references; bh=bws1/T6llzYWiPFyu19K8c+ACzKgysqzSUOVXmCGlkA=; b=1Xk6p3Sf1fuvliNvWZzAADi8+AOBRV1EL2nMr9ZDWF6ydqxdhagPp5ipxa9KN47dLn bDR9yPI/Oc9wJ2UJS+GzLwQ0g7UtwUuvwEzGfH8oh6LCkOxviIztG/54Qgiwus1n9A+q 93uUoH3mKA+y+FqxkaSw5B11bRTK4PKtoFg1XTYkbpDWaHkYqZ2BUDFOZUxYYODDxlZh AlKD8QKLYb71IMtX74lXbmsV6sckQV5h3KwfH6+PgzyprGJul+u87+iEGg2ibozz9SJq qnmH85c0MsWMCBu1Y7jqE4cQwtPZvge9NCmujyLwzdePuniYF7yAh5C1koGgZeW4J9u+ bRqA== 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:in-reply-to:references; bh=bws1/T6llzYWiPFyu19K8c+ACzKgysqzSUOVXmCGlkA=; b=l/d9jkdF8+N47E9xjE/sLF6BCuCJ+DLzMgzQRX5NkLaLfSJLUnkCb3c+kToOFGDujG 43QBSyUfZ/wvHmYgRfOoqEuS4QWVJtu6JhhwNLAvzQ5T8ySIgJv1UwRl6mi3eP+9OjHj NCRqtE6e70aeSyUTRfOac3BL63rSVPJecrXr5gnF2manLtelJo6liojzdkLrpaauspvo iwbx7HY5AG7nJo9uarI5hgTObJVLUKpMNuWhvNzehqEtjRib+06SW/NAyPlDY9T8BI4V ya8apf4O/GFkSelSDVuztGBTTe6GsYAl29YlaNnhNBC1S8RH5TmwJMKaq4ZhyzBsnYbF cfiQ== X-Gm-Message-State: AHQUAuadUD3yyW0sbeB7dXrYMfPpJX6UvnYm3PS+v0hU3NfyRfsv0h10 4X72mjsQs0OA7GwBg9zx/1x8qNWdZ3pSnA== X-Google-Smtp-Source: AHgI3IappmjitNdXg2rhyxMN+QTKNJLjHqUkvbHRPNNs8K0RwMznnTKAGVjhUPWonikh9PDyh6LTXg== X-Received: by 2002:a1c:1cf:: with SMTP id 198mr822634wmb.52.1550073279863; Wed, 13 Feb 2019 07:54:39 -0800 (PST) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id 90sm26584940wrk.95.2019.02.13.07.54.38 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Wed, 13 Feb 2019 07:54:38 -0800 (PST) From: Michal Simek To: u-boot@lists.denx.de Date: Wed, 13 Feb 2019 16:54:25 +0100 Message-Id: X-Mailer: git-send-email 1.9.1 In-Reply-To: References: In-Reply-To: References: Cc: Alexander Graf , Amit Kucheria , Mounika Grace Akula Subject: [U-Boot] [PATCH 4/9] arm64: zynqmp: Add reset-on-timeout for all boards and modify default timeout value X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" 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/arm/dts/zynqmp-zcu100-revC.dts | 1 - arch/arm/dts/zynqmp.dtsi | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/dts/zynqmp-zcu100-revC.dts b/arch/arm/dts/zynqmp-zcu100-revC.dts index 05491e9bbc0c..0d9ad86029aa 100644 --- a/arch/arm/dts/zynqmp-zcu100-revC.dts +++ b/arch/arm/dts/zynqmp-zcu100-revC.dts @@ -332,7 +332,6 @@ &watchdog0 { status = "okay"; - reset-on-timeout; }; &xilinx_ams { diff --git a/arch/arm/dts/zynqmp.dtsi b/arch/arm/dts/zynqmp.dtsi index 831d6e1ecc4d..b28e75732f1e 100644 --- a/arch/arm/dts/zynqmp.dtsi +++ b/arch/arm/dts/zynqmp.dtsi @@ -884,7 +884,8 @@ interrupt-parent = <&gic>; interrupts = <0 113 1>; reg = <0x0 0xfd4d0000 0x0 0x1000>; - timeout-sec = <10>; + timeout-sec = <60>; + reset-on-timeout; }; xilinx_ams: ams@ffa50000 {