From patchwork Mon Jan 14 17:54:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Oskari_Lemmel=C3=A4?= X-Patchwork-Id: 1024728 X-Patchwork-Delegate: hauke@hauke-m.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=lemmela.net Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="N3/zRO4/"; dkim=fail reason="signature verification failed" (4096-bit key; unprotected) header.d=lemmela.net header.i=@lemmela.net header.b="SSJ4hqb4"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 43dh2X324Qz9sCr for ; Tue, 15 Jan 2019 04:55:16 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Subject:References: In-Reply-To:Message-Id:Date:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=gDqUGUAz7jK/Gsx0QjeHOKHoyIUdSBlEKgSoFWNx/WA=; b=N3/zRO4/7o2+XN C6BBchZSfifXliiF1Bdh1ROtGfqdvsjB/0xcrKMBANEHIrt7aZzQBNMCVWGPaKOKrtirryAV6I8dS cNIC8MmSDbV26O1FfRU5yp/cLu2+3dXRtSYTPwHQokV4XUUjyBPd/Om0wjY2+evRKFpeOUXBwTeHk aBxvgVGBrIcDDY5cLIJp9M5wSrtlwgR2Sztp7o+fUW3Pnv+7qoKE7Rta0n7nYaRnr5nhzKm2tc7qO RO4FKPIsHmk6KjxFNLTGmr5S3hxOnHKP/x4Pq9CGAY3wcVnyFnlK7Z9ylVnNbIaf1/z72RbTX1Uxz 0QaEoUAKWEcbuHXBbg9g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gj6S1-0001US-Jt; Mon, 14 Jan 2019 17:55:05 +0000 Received: from mail1.kuutio.org ([2001:41d0:401:3100::431a]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gj6Rj-0001Av-1f for openwrt-devel@lists.openwrt.org; Mon, 14 Jan 2019 17:54:49 +0000 Received: from localhost (localhost [127.0.0.1]) by mail1.kuutio.org (Postfix) with ESMTP id B67E11F95F; Mon, 14 Jan 2019 18:54:42 +0100 (CET) Authentication-Results: mail1.kuutio.org (amavisd-new); dkim=pass (4096-bit key) reason="pass (just generated, assumed good)" header.d=lemmela.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lemmela.net; h= references:in-reply-to:x-mailer:message-id:date:date:subject :subject:from:from:received:received; s=dkim; t=1547488480; x= 1550080481; bh=UjwOdkKyhYqeS70ffuTZMnC3h4w/7OuY2W1wVg5S7Gg=; b=S SJ4hqb4JbbT3Na4di7JYSOYD1BEpl1TgpeQHRCOVSdLWliD8T9X5mltKeybSFmUP 7N9m3DDXTF4uiLZSTzzd8kQ94zJ6Mfz9fEJHRipMM6WfP/Gj0H0NgJv3RPXFX5eN ciNLH4+NP/jWARyL2OvopWKyarQoMRCtUWlJhKi3o+U384MGV9TQeatA46ULLdd8 Gfcm5JPmy4eOhg21GnoOMKYXVd4ndRt1xhyx3qr1az+Da3iE0h+v53bPsU5+HYJS TO8qcgphHFcPWnBUxmBjjRMpA79meVYYcak87MXxXSbP+Y7qBogSAclqOqZp+m49 XLMaLx0Diktp+onTQfi+RHeVYuBNaOD6ZPkA2EMYmPcYCKnwFf4+FTmlPEx2I8I5 tuYmcmRmYZP3bb4CXv74km7jL3Aynlz4MMNbHkfzpNfSM0hqsguqTcNGIuq/am3N 1BBdfML+bBLncN+CCaRBkC1uOP8OA9pUU1emDqvmqJVZa8Q8UiojRQNAMwuRcs+O TBncqjZ1eUiFLTuGC+URn8LQtFMLRE9U3tMfxktlTykLa1jmBQTcUM19ifo5vrAx /7S2+SilGUfVdL4yz3KyvhB4S6Or5vRa8gbt8Wj03/4COysHmHzqqNEuaGQjcmnI EY/ts/72LNpdMavYfalB+lGxWUYy7ckraL1R3zXfuk= X-Virus-Scanned: amavisd-new at kuutio.org Received: from mail1.kuutio.org ([127.0.0.1]) by localhost (mail1.kuutio.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id mqi80Z-lerZ7; Mon, 14 Jan 2019 18:54:40 +0100 (CET) Received: from build.kuutio.org (unknown [IPv6:2001:998:13:e4::69]) by mail1.kuutio.org (Postfix) with ESMTPSA id 480751F988; Mon, 14 Jan 2019 18:54:40 +0100 (CET) From: Oskari Lemmela To: openwrt-devel@lists.openwrt.org Date: Mon, 14 Jan 2019 19:54:21 +0200 Message-Id: <20190114175429.7320-2-oskari@lemmela.net> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190114175429.7320-1-oskari@lemmela.net> References: <20190114175429.7320-1-oskari@lemmela.net> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190114_095447_900347_A9B63CF6 X-CRM114-Status: GOOD ( 11.55 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid Subject: [OpenWrt-Devel] [PATCH 1/9] sunxi: add a64 watchdog support X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Oskari Lemmela MIME-Version: 1.0 Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org Backport A64 watchdog DTS change to 4.14 kernel. Signed-off-by: Oskari Lemmela --- ...arm64-dts-allwinner-a64-Add-watchdog.patch | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 target/linux/sunxi/patches-4.14/040-arm64-dts-allwinner-a64-Add-watchdog.patch diff --git a/target/linux/sunxi/patches-4.14/040-arm64-dts-allwinner-a64-Add-watchdog.patch b/target/linux/sunxi/patches-4.14/040-arm64-dts-allwinner-a64-Add-watchdog.patch new file mode 100644 index 0000000000..5aadaa7b0b --- /dev/null +++ b/target/linux/sunxi/patches-4.14/040-arm64-dts-allwinner-a64-Add-watchdog.patch @@ -0,0 +1,54 @@ +From d41850437c364ef7aba9bc25c1c701699d0240e0 Mon Sep 17 00:00:00 2001 +From: Harald Geyer +Date: Thu, 15 Mar 2018 16:25:07 +0000 +Subject: [PATCH] arm64: dts: allwinner: a64: Add watchdog + +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 +Signed-off-by: Maxime Ripard +--- + 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.17.1 +