Received: by 10.213.65.68 with SMTP id h4csp59025imn; Thu, 15 Mar 2018 09:28:16 -0700 (PDT) X-Google-Smtp-Source: AG47ELs3bqQFX1oQHbczpP2G3U2zaCoCVwOrYMOMcmi6Dc75G6toOF3xqF0AwrsJMzQVr0fnZtU1 X-Received: by 2002:a17:902:654a:: with SMTP id d10-v6mr8586308pln.117.1521131296472; Thu, 15 Mar 2018 09:28:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521131296; cv=none; d=google.com; s=arc-20160816; b=JpOXn4fVG/HMzHkEWdz34xTP6ggSA4ix352F7buz/xWvFWQMMNJgH7gfHIjPj9+qfS tqThlcnrJVyJtOg7vuEnwXJZOQnHq76f5EioB8S/HADmx8wpyK4RbKogOe8IPE/GjXJq 8abOXunv0Rux5dRDdx+RXpsplBsjMyfvZEINPvNVBJuPpGBDzme+rQPBBEB0xD5SZQUA tFs6LNhf98Rb/IQLtPZBWztLUFG7fxMHM2M64M1tO/YunHptL7/Fg1R4/2K38Lwb6NtO hAim2UWx+r6wC/+BEs9rCT8JIyMXb3idnhU39HMm/TNzbyLTOXj0U9m+J7KtYgDnul9u pRJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=aOkrDY0ruYyoYI3ux+uyvwZbmYApSwivqXltKxts5zQ=; b=G9xQOvCYpDGnckUhhaZ9Nibx1Y/i9IF10ON7/KfcVInWpcB8rA+xDdECzej/gor2AR rJzLT2RXVxjVB9VwNsk6ZdSdowSBEyHk8Z1ENoiGwzD4sd2DBkb+1LldCMa236jFSTz3 x4T94Nco4wJ7lNyEjAsGef4+UTaU3E6EI0XIv9Qdu4MXzCHUeI/f8hav9QgbwRCY70x3 LHvfq/791RPfzn+o/6vrjAfV3x/V0SE7igIYogUHby/Of5KlSDZRNCJvjVJQ88DALE51 vSdC491MH7mCzMdJ6s8ObYgfzbPTh7SgtWPrgQyD0HFvZBRn0G6m8ufo+xqAnNhDNZAl szOw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w20si1482797pfa.167.2018.03.15.09.28.01; Thu, 15 Mar 2018 09:28:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752306AbeCOQZf (ORCPT + 99 others); Thu, 15 Mar 2018 12:25:35 -0400 Received: from h1.radempa.de ([176.9.142.194]:52224 "EHLO mail.cosmopool.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752087AbeCOQZa (ORCPT ); Thu, 15 Mar 2018 12:25:30 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.cosmopool.net (Postfix) with ESMTP id 47688903539; Thu, 15 Mar 2018 17:25:29 +0100 (CET) Received: from mail.cosmopool.net ([127.0.0.1]) by localhost (mail.your-server.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CRLXC5ILn_6f; Thu, 15 Mar 2018 17:25:28 +0100 (CET) Received: from huygens.ccbib.org (unknown [10.0.10.106]) by mail.cosmopool.net (Postfix) with SMTP id CC1009012D0; Thu, 15 Mar 2018 17:25:27 +0100 (CET) Received: by huygens.ccbib.org (sSMTP sendmail emulation); Thu, 15 Mar 2018 16:25:27 +0000 From: Harald Geyer To: Maxime Ripard , Chen-Yu Tsai Cc: Rob Herring , Mark Rutland , Catalin Marinas , Will Deacon , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Andre Przywara , Icenowy Zheng , info@olimex.com, Harald Geyer Subject: [PATCHv2 2/5] arm64: dts: allwinner: a64: Add watchdog Date: Thu, 15 Mar 2018 16:25:07 +0000 Message-Id: <20180315162510.11669-3-harald@ccbib.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180315162510.11669-1-harald@ccbib.org> References: <20180315162510.11669-1-harald@ccbib.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a watchdog node for the A64, automatically enabled on all boards. Since the device is compatible with an existing driver, we only reserve a new compatible string to be used together with the fall back. Tested on Olimex Teres-I. Signed-off-by: Harald Geyer --- changes since v1: * add and use a specific compatible string Documentation/devicetree/bindings/watchdog/sunxi-wdt.txt | 6 ++++-- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 7 +++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/watchdog/sunxi-wdt.txt b/Documentation/devicetree/bindings/watchdog/sunxi-wdt.txt index 62dd5baad70e..04fc368d828f 100644 --- a/Documentation/devicetree/bindings/watchdog/sunxi-wdt.txt +++ b/Documentation/devicetree/bindings/watchdog/sunxi-wdt.txt @@ -2,8 +2,10 @@ Allwinner SoCs Watchdog timer Required properties: -- compatible : should be either "allwinner,sun4i-a10-wdt" or - "allwinner,sun6i-a31-wdt" +- compatible : should be one of + "allwinner,sun4i-a10-wdt" + "allwinner,sun6i-a31-wdt" + "allwinner,sun50i-a64-wdt","allwinner,sun6i-a31-wdt" - reg : Specifies base physical address and size of the registers. Example: diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi index 64e452a758fa..8401e7f887ff 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi @@ -665,5 +665,12 @@ #address-cells = <1>; #size-cells = <0>; }; + + wdt0: watchdog@1c20ca0 { + compatible = "allwinner,sun50i-a64-wdt", + "allwinner,sun6i-a31-wdt"; + reg = <0x01c20ca0 0x20>; + interrupts = ; + }; }; }; -- 2.11.0