From patchwork Wed Oct 14 13:19:32 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Crystal Guo X-Patchwork-Id: 11837673 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C87EB61C for ; Wed, 14 Oct 2020 13:20:31 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 75FEC22202 for ; Wed, 14 Oct 2020 13:20:31 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="kdn9BF7y"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="KrFUI0fQ" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 75FEC22202 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=mediatek.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=bp0lllEHmsII93B/BOFzTc3n2Y/5Rh8r/KwGWnHvlts=; b=kdn9BF7y7wn6nvCAvtG57MZCYq s6WRmAiaU7CacTRT7/TxCeeAMljHox0WCPNuAMa1ykQBPxvXzdZUrMbTxLSYLc0eGq6qZ9oWxPLl6 Gwtr3MN/TtiYDfOG+lMTZKwnkSqoZlwdVTOVdlD5d3H27UBGAaQpJ5xA62Pn48TfsJiDjMzAZ11s2 H7UQ9zbt1G15zQiGkv5i6TG+IIHlTIqpyIo7BUCFsLGEJSCECYiB9Tv46wpd6RFNgM1djz7X9mCyh irGFLYYsBh27I9b45pXkIw8hniunrRKQq+6f+6YVH5Xvc9ubSMlAcNhaSLOO82DDdKndJzvbDuKle 71D4ti6g==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kSghW-0002Bt-Rj; Wed, 14 Oct 2020 13:20:18 +0000 Received: from mailgw01.mediatek.com ([216.200.240.184]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kSgh7-00020f-TC; Wed, 14 Oct 2020 13:19:55 +0000 X-UUID: 25bc72fb779b47c1acc3d3efff636ffb-20201014 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=VKbmk+q6TZp792M8YotOsz2Eix0rdiCGpnXktYfljzs=; b=KrFUI0fQZnYCJsT9rj2/FfJyHQk9IkMhm7ou2yfCkDe0MhvapxojZ0RgDvyIanOxFS9DVw4x/TZYiaq5drMYWNNOHzNgADWaG35JN/fCKOEQJ9CajopXaDkiKnMsKDxIRz5Yp2ty0pD6pEZvu5ckqNHNX8EMOZt6FFLaJLVhm9I=; X-UUID: 25bc72fb779b47c1acc3d3efff636ffb-20201014 Received: from mtkcas66.mediatek.inc [(172.29.193.44)] by mailgw01.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1293133198; Wed, 14 Oct 2020 05:19:43 -0800 Received: from mtkmbs08n2.mediatek.inc (172.21.101.56) by MTKMBS62DR.mediatek.inc (172.29.94.18) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 14 Oct 2020 06:19:41 -0700 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 14 Oct 2020 21:19:38 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 14 Oct 2020 21:19:37 +0800 From: Crystal Guo To: , , , Subject: [v6,0/4] watchdog: mt8192: add wdt support Date: Wed, 14 Oct 2020 21:19:32 +0800 Message-ID: <20201014131936.20584-1-crystal.guo@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 X-TM-SNTS-SMTP: AACF75C595E88535A25ED18B74F5FCCC1B0D61D4691CD1ADFFED2FA5B29200222000:8 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201014_091954_104632_82229F89 X-CRM114-Status: GOOD ( 10.14 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 MIME_BASE64_TEXT RAW: Message text disguised using base64 encoding -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from 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 0.0 UNPARSEABLE_RELAY Informational: message has unparseable relay lines X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-watchdog@vger.kernel.org, srv_heupstream@mediatek.com, seiya.wang@mediatek.com, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org This patches aim to add watchdog support for MT8192. change in v6: 1. add change log. 2. remove Reviewed-by tag on[v5,2/4] change in v5: fix typos on mt8192-reset.h (https://patchwork.kernel.org/patch/11697493/) change in v4: just revise v3 commit messages. [v4,1/5] fix the description of compatible is Reviewed-by: Matthias and Guenter. [v4,2/5] update watchdog device node for mt8183 is Acked-by: Guenter, and will be applied to v5.9-next/dts64. [v4,4/5] add toprgu reset-controller head file for MT8192 platform is Reviewed-by: Matthias, and Acked-by: Guenter. [v4,5/5] add support for watchdog device found in MT8192 SoC is Reviewed-by: Matthias and Guenter. change in v3: 1. separate [v2,1/3] to fix the original mt2712 and mt8183 compatibles and add new board as: [v3,1/5] fix mt2712 and mt8183 description of compatible, since mt2712 and mt8183 also provide sub-system software reset features, but mt6589 not support this feature. (Reviewed-by: Matthias) [v3,2/5] update watchdog device node for mt8183 [v3,3/5] update mtk-wdt document for MT8192 platform 2. [v3, 4/5] is same as [v2,2/3] (Reviewed-by: Matthias) 3. modify the commit message of [v2,3/3] [v3,5/5] add support for watchdog device found in MT8192 SoC(Reviewed-by: Matthias and Guenter) v2 changes: Abandon V1 changes,and add the following changes: [v2,1/3] update mtk-wdt document for mt2712, mt8183 and mt8192. [v2,2/3] add toprgu reset-controller head file for MT8192 platform (Reviewed-by: Matthias) [v2,3/3] add support for watchdog device found in MT8192 SoC( Reviewed-by: Matthias) v1 changes: Instead of submit the mt8192-reset.h, get the number of reset bits from dtsi directly. Crystal Guo (4): dt-binding: mediatek: watchdog: fix the description of compatible dt-binding: mediatek: mt8192: update mtk-wdt document dt-binding: mt8192: add toprgu reset-controller head file watchdog: mt8192: add wdt support .../devicetree/bindings/watchdog/mtk-wdt.txt | 5 ++-- drivers/watchdog/mtk_wdt.c | 6 ++++ .../reset-controller/mt8192-resets.h | 30 +++++++++++++++++++ 3 files changed, 39 insertions(+), 2 deletions(-) create mode 100644 include/dt-bindings/reset-controller/mt8192-resets.h