From patchwork Fri Apr 20 09:55:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 901828 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="tDhqKyH7"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 40SB7X6XLtz9s70 for ; Fri, 20 Apr 2018 19:55:52 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 9D63DC21FFE; Fri, 20 Apr 2018 09:55:47 +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_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 D26E1C21E79; Fri, 20 Apr 2018 09:55:44 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 4E1ECC21E79; Fri, 20 Apr 2018 09:55:44 +0000 (UTC) Received: from mail-wr0-f194.google.com (mail-wr0-f194.google.com [209.85.128.194]) by lists.denx.de (Postfix) with ESMTPS id E22C4C21C57 for ; Fri, 20 Apr 2018 09:55:43 +0000 (UTC) Received: by mail-wr0-f194.google.com with SMTP id v15-v6so3277985wrm.10 for ; Fri, 20 Apr 2018 02:55:43 -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; bh=OPSxHCD9ynENEYdHAyyIGKeHqxXSozz5y7p6xm9Cr6Y=; b=tDhqKyH7MHAsxQCkkjV5YOsQrZJ+Rwzd9VJvfXhhs1mYAISt6yXyGU79KtkWY3CGj3 0ScbbRUB9qIeeBLLzLHOnaUsw2qqBCsVvJTkSd9uYUiHN9qewU0YMS797Q9Pk2tXWDyW fmEOfIG5+bS+Q5xP7ONORJgR8ygyvHFGd6hQf30v4+RK6ISG3KTlUT5ioRvY49Hw72lK ghhJun1uh4cG0eHz9vocS4dlxdICD1JmWLAQpTgcORXt9BlbwCT+9bkgP4+ujJbCTsMv NzuCoV3B43QB4pzOR+bHlqVDKRCFX7FucpVPY13s5BKISF+YsH+RuuPOAfz9CZihQc1b +jgg== 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; bh=OPSxHCD9ynENEYdHAyyIGKeHqxXSozz5y7p6xm9Cr6Y=; b=PTkUEKV5BqIw4rNonlPfmjTChCvCha9wEN7I5v1KsXRDNujRHJaGC61wEBlZoAtP1Y XNE71NKZyi4iPgiSZySlVg+7Pv+YYjJ6K7pKnatZZOr0cmh+5/NVf4zNKdSFA+kHeO3t FWLsNdV4bQ/7bju3AGp31pyxvncj8vXkddMf4fAZ0bxJktnRCFpht/Mx+w9wNKB14twN x2GqdeFfBzz02CD4v8LxZgGoM9zgkiAce1l6w640YtMZHdzkQENphP9ensrGehMQlwKL gb+7IZRLLGiIIKmqy4merHw9WE0AEvvqgwXLl4fd3sVy99KDboeC0btnK2YZ7BhWtTU5 DlHQ== X-Gm-Message-State: ALQs6tApo/rQ6bJjdOei2X5djWJXHtu3udgD8teX55Li4h3KyPMuH1/o 02ItOjb/4rt0JL5NPN/r19SEBoiZ X-Google-Smtp-Source: AIpwx4+fiAhvUQtpDCDmSX8dnx3SkIjpTxnYSK8HJmFa2m6hng8iGnUHAIbOL0JoqmaeOLvLP/oSRA== X-Received: by 2002:adf:8ea5:: with SMTP id q34-v6mr6832732wrb.245.1524218143450; Fri, 20 Apr 2018 02:55:43 -0700 (PDT) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id w69-v6sm5354419wrb.94.2018.04.20.02.55.42 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Fri, 20 Apr 2018 02:55:42 -0700 (PDT) From: Michal Simek To: u-boot@lists.denx.de Date: Fri, 20 Apr 2018 11:55:41 +0200 Message-Id: X-Mailer: git-send-email 2.17.0 Subject: [U-Boot] [PATCH] arm64: zynqmp: Enable cadence WDT for zcu100 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" Enable watchdog on zcu100 to make sure if there is a bug in the u-boot there is proper reset. Watchdog expires and PMU fw is informed and based on setting proper action is taken. The patch is enabling reset-on-timeout feature and also fixing fixed clock rate for watchdog where 100MHz is max (and also default) clock value. Signed-off-by: Michal Simek --- arch/arm/dts/zynqmp-clk.dtsi | 2 +- arch/arm/dts/zynqmp-zcu100-revC.dts | 1 + configs/xilinx_zynqmp_zcu100_revC_defconfig | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/arm/dts/zynqmp-clk.dtsi b/arch/arm/dts/zynqmp-clk.dtsi index a8664e81870e..a795efdc15c8 100644 --- a/arch/arm/dts/zynqmp-clk.dtsi +++ b/arch/arm/dts/zynqmp-clk.dtsi @@ -219,7 +219,7 @@ }; &watchdog0 { - clocks = <&clk250>; + clocks = <&clk100>; }; &xilinx_drm { diff --git a/arch/arm/dts/zynqmp-zcu100-revC.dts b/arch/arm/dts/zynqmp-zcu100-revC.dts index 38b8753da114..da5af96051d1 100644 --- a/arch/arm/dts/zynqmp-zcu100-revC.dts +++ b/arch/arm/dts/zynqmp-zcu100-revC.dts @@ -332,6 +332,7 @@ &watchdog0 { status = "okay"; + reset-on-timeout; }; &xilinx_ams { diff --git a/configs/xilinx_zynqmp_zcu100_revC_defconfig b/configs/xilinx_zynqmp_zcu100_revC_defconfig index 348c8c77cd41..db6ed1aa86eb 100644 --- a/configs/xilinx_zynqmp_zcu100_revC_defconfig +++ b/configs/xilinx_zynqmp_zcu100_revC_defconfig @@ -80,5 +80,7 @@ CONFIG_USB_ULPI=y CONFIG_USB_STORAGE=y CONFIG_USB_GADGET=y CONFIG_USB_GADGET_DOWNLOAD=y +CONFIG_WDT=y +CONFIG_WDT_CDNS=y CONFIG_OF_LIBFDT_OVERLAY=y CONFIG_EFI_LOADER_BOUNCE_BUFFER=y