From patchwork Wed Oct 26 06:33:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Runyang Chen X-Patchwork-Id: 11077 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp88968wru; Tue, 25 Oct 2022 23:34:45 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6Zsa1k8cYR4dwcloXf1QYMoqZJj23st7jx7SIxqEleypN8Q3ENXBuFqFmU5SpxsL29ELny X-Received: by 2002:a17:90b:4ac5:b0:20d:ae54:f08b with SMTP id mh5-20020a17090b4ac500b0020dae54f08bmr2532883pjb.174.1666766085672; Tue, 25 Oct 2022 23:34:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666766085; cv=none; d=google.com; s=arc-20160816; b=Av7NGj4EAFA6h4ljq0Q/8ILVy33bv1EWmabdXxhuJ/CIGreWd1kqFIlIveUuUt2fUZ lqepi/ICxbD6H9tPc1v82WZsk1TUa7Gi0kQ0/QzQJH8AWRlxSwAADNmi7ipT12AS8XQZ Kx+7CUFuSdJkbLiKZEOTCTzf8GBGa/QHSsECSxU6h8tAzmD6e9oW/m7tl7KvQ150p6Cq PS4HhN7B+IbC5QcSaWZRc20F6N8lVN+VnhlGNbrhfNWKC1z7F9uWHD0jytOr8sbjrw3x X4iaWqBbDE3wxT/gidmm00vTN/YofFSxyCYmoXmnW5d6BDW5EtQmyVBDmxCTnU/ahAvY fknQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=pP04e2VJp0d0nmz2znAdb7A4+IsjgZAVkGlG/kc9fXg=; b=XNnY2VvspV/NGceYWR0ak64kNk2Hm/oprd7KspK0hi8HA1dISta39M+FTBspQrJk+c 5WOyLuSiQJCgyFNMAxPP+Ww1UvqswcMhYmmukxUBmpu5x0FInHJ6MePNVIUJ/pd6E/WU tITkoYLpOUhOaB92UO62px90IsrlwgUtqfdJIf7BBQZWopZhsIx9W2rvxDobUWG5IIHJ dL9bLYdEqflOwRe+eAPg2zrK9qtCt51z+uBat0tJuFVsuC5laQ5trPAd/AD8rK7MNoR4 VCfVWK5jGJ+MnCccval7qJPZL0bK5ciwS4mHIwTDPMhzkm388vmcMHLIqJMVXBxdosNg I+vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=eu0c0dRf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s6-20020a056a00178600b00565a581ecc0si6810721pfg.11.2022.10.25.23.34.33; Tue, 25 Oct 2022 23:34:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=eu0c0dRf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233206AbiJZGdy (ORCPT + 99 others); Wed, 26 Oct 2022 02:33:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233188AbiJZGdr (ORCPT ); Wed, 26 Oct 2022 02:33:47 -0400 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9804AB820; Tue, 25 Oct 2022 23:33:41 -0700 (PDT) X-UUID: 431a286d4cab4e0584494a55f2ff6d79-20221026 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=pP04e2VJp0d0nmz2znAdb7A4+IsjgZAVkGlG/kc9fXg=; b=eu0c0dRff85dsUL0SlA0qyEuLhAktMrCKrvOU80yjzxow+hgRDzvY9dEQ92Emj4Dp+S/8frHvvd4OgXi9R+5NYeqGYUVPGLEwMpQq7nubZ+jn790NfVLXqvatiBFG/5KZSZvVlwowimxwbuBD9cClLEzR5cJnWgn7lL5udNSMTs=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.12,REQID:f45a959d-5cf9-4854-ac0d-b113feea68c0,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION: release,TS:0 X-CID-META: VersionHash:62cd327,CLOUDID:5941b4e4-e572-4957-be22-d8f73f3158f9,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0 X-UUID: 431a286d4cab4e0584494a55f2ff6d79-20221026 Received: from mtkmbs11n2.mediatek.inc [(172.21.101.187)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 110627245; Wed, 26 Oct 2022 14:33:36 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs11n2.mediatek.inc (172.21.101.187) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.792.15; Wed, 26 Oct 2022 14:33:34 +0800 Received: from localhost.localdomain (10.17.3.154) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 26 Oct 2022 14:33:34 +0800 From: Runyang Chen To: Wim Van Sebroeck , Guenter Roeck , Krzysztof Kozlowski , Matthias Brugger , Rob Herring , Philipp Zabel , CC: , , , , , , , Runyang Chen Subject: [RESEND v3 1/3] dt-bindings: watchdog: Add compatible for MediaTek MT8188 Date: Wed, 26 Oct 2022 14:33:25 +0800 Message-ID: <20221026063327.20037-2-Runyang.Chen@mediatek.com> X-Mailer: git-send-email 2.9.2 In-Reply-To: <20221026063327.20037-1-Runyang.Chen@mediatek.com> References: <20221026063327.20037-1-Runyang.Chen@mediatek.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_PASS,UNPARSEABLE_RELAY,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747730915282076079?= X-GMAIL-MSGID: =?utf-8?q?1747730915282076079?= From: Runyang Chen Add dt-binding documentation of watchdog for MediaTek MT8188 Soc Signed-off-by: Runyang Chen Acked-by: Krzysztof Kozlowski Reviewed-by: AngeloGioacchino Del Regno Reviewed-by: Guenter Roeck --- Documentation/devicetree/bindings/watchdog/mtk-wdt.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/watchdog/mtk-wdt.txt b/Documentation/devicetree/bindings/watchdog/mtk-wdt.txt index 762c62e428ef..b900c85d4560 100644 --- a/Documentation/devicetree/bindings/watchdog/mtk-wdt.txt +++ b/Documentation/devicetree/bindings/watchdog/mtk-wdt.txt @@ -17,6 +17,7 @@ Required properties: "mediatek,mt7986-wdt", "mediatek,mt6589-wdt": for MT7986 "mediatek,mt8183-wdt": for MT8183 "mediatek,mt8186-wdt", "mediatek,mt6589-wdt": for MT8186 + "mediatek,mt8188-wdt", "mediatek,mt6589-wdt": for MT8188 "mediatek,mt8516-wdt", "mediatek,mt6589-wdt": for MT8516 "mediatek,mt8192-wdt": for MT8192 "mediatek,mt8195-wdt", "mediatek,mt6589-wdt": for MT8195 From patchwork Wed Oct 26 06:33:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Runyang Chen X-Patchwork-Id: 11078 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp88981wru; Tue, 25 Oct 2022 23:34:49 -0700 (PDT) X-Google-Smtp-Source: AMsMyM50kgJ6CSScXtHpLX41oV4veLCrpZ7uEww/4MimJ3CJnG7Wc+5/vGRXocP7pkhZJxw4cPpO X-Received: by 2002:a17:902:f78c:b0:185:3d6a:7576 with SMTP id q12-20020a170902f78c00b001853d6a7576mr1438642pln.86.1666766089273; Tue, 25 Oct 2022 23:34:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666766089; cv=none; d=google.com; s=arc-20160816; b=Zzt9i+A9SGiCxdxgftY1Vsd3JdoTKTsR2glMiE684dpWs5G5BtMeEQ4v+zU4X7lOe1 JDGF6jLajzyurhAKgstzoCsYTfv4YmDsC+8ShbDoW3F1mxvbhKLIBAeSosLGpNoU7wv7 fX+WAUiB9Hd2dEnlL+IJi5FT+b7I1GNSGvvdIVwnZtrUcn4Mq9OATIc0oVWp+T3BOzWx RI4yuoHxroAw+PhmeOKkw0Nr9z6E8rVEG+r3nP0mt2qJ3+Jzcy6g0TCImiwauoLJl4eW T11KUQ3cKkOjQmbYflzVmEo06nb1EuH5BtcqMleD+wOgKVHhXlbUzYd2q94T7SydQ/Pi +hGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=E9hEc2Vpt24N4yt2JJ2UCDYftPyEeRKVhboZSuZeuhM=; b=EqQtpUsYEFNTYTPIEpIvz2aeGGjHbp4y28lb+0n18igd0IUB10vgTQyLPqNp3ZkqFW dDl/Dc/JFVi1mfDRSQ/QPrBXHMXiJ1OEjUPyatnTp/LxqPtv/dkYM4fK5zdflI5Kp9i3 DIgdpONObhAcziyM2bRuULoCSp17usEMXba91rWJp0UQ1jIcZUWUP1lrtDIvS1qvA5Rc qHrTgLuoLPPYeDtt4lDy2MGPkESxsJF2L19C0T+Aw+DJVDN4jwZHIRuN6tgYC/4pZL+w VU5fUYluD2P0Dxjg7OrwHW9gUp+ykHJYoQ/AMKfeZck7puX0g0Bt85L4Sikt8+RQZ0rP YnTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=JfNcQeWH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 85-20020a630558000000b0044601bb2f96si5435057pgf.221.2022.10.25.23.34.36; Tue, 25 Oct 2022 23:34:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=JfNcQeWH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233250AbiJZGeF (ORCPT + 99 others); Wed, 26 Oct 2022 02:34:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233212AbiJZGdx (ORCPT ); Wed, 26 Oct 2022 02:33:53 -0400 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83C2EA98E5; Tue, 25 Oct 2022 23:33:45 -0700 (PDT) X-UUID: cca4552d14ad486bb6c4e637fca7acfe-20221026 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=E9hEc2Vpt24N4yt2JJ2UCDYftPyEeRKVhboZSuZeuhM=; b=JfNcQeWHdmzij3jFxMLw45TY2hFAvj0SLKp7iwD9z8v7W0LLedzI9SUNKHjUxR1eoP/1r6l+icoprzkZhIr9DiWPWLYP+e6lLoUdL7NfFWaF/9l1PPwgXTXiC45lOaTiO7tcOOdoREZY5u2SkxF0DVk0JiMkGxnHR2ZpKh1/hTc=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.12,REQID:5f8dd05a-e328-4c83-b704-16ae07001633,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION: release,TS:0 X-CID-META: VersionHash:62cd327,CLOUDID:541b2b27-9eb1-469f-b210-e32d06cfa36e,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0 X-UUID: cca4552d14ad486bb6c4e637fca7acfe-20221026 Received: from mtkmbs13n2.mediatek.inc [(172.21.101.108)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 745900504; Wed, 26 Oct 2022 14:33:40 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs10n1.mediatek.inc (172.21.101.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.792.15; Wed, 26 Oct 2022 14:33:38 +0800 Received: from localhost.localdomain (10.17.3.154) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 26 Oct 2022 14:33:37 +0800 From: Runyang Chen To: Wim Van Sebroeck , Guenter Roeck , Krzysztof Kozlowski , "Matthias Brugger" , Rob Herring , "Philipp Zabel" , CC: , , , , , , , Runyang Chen Subject: [RESEND v3 2/3] dt-bindings: reset: mt8188: add toprgu reset-controller header file Date: Wed, 26 Oct 2022 14:33:26 +0800 Message-ID: <20221026063327.20037-3-Runyang.Chen@mediatek.com> X-Mailer: git-send-email 2.9.2 In-Reply-To: <20221026063327.20037-1-Runyang.Chen@mediatek.com> References: <20221026063327.20037-1-Runyang.Chen@mediatek.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_PASS,UNPARSEABLE_RELAY,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747730919072010366?= X-GMAIL-MSGID: =?utf-8?q?1747730919072010366?= From: Runyang Chen Add toprgu reset-controller header file for MT8188 Signed-off-by: Runyang Chen Acked-by: Rob Herring Reviewed-by: AngeloGioacchino Del Regno Reviewed-by: Guenter Roeck --- include/dt-bindings/reset/mt8188-resets.h | 36 +++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 include/dt-bindings/reset/mt8188-resets.h diff --git a/include/dt-bindings/reset/mt8188-resets.h b/include/dt-bindings/reset/mt8188-resets.h new file mode 100644 index 000000000000..377cdfda82a9 --- /dev/null +++ b/include/dt-bindings/reset/mt8188-resets.h @@ -0,0 +1,36 @@ +/* SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)*/ +/* + * Copyright (c) 2022 MediaTek Inc. + * Author: Runyang Chen + */ + +#ifndef _DT_BINDINGS_RESET_CONTROLLER_MT8188 +#define _DT_BINDINGS_RESET_CONTROLLER_MT8188 + +#define MT8188_TOPRGU_CONN_MCU_SW_RST 0 +#define MT8188_TOPRGU_INFRA_GRST_SW_RST 1 +#define MT8188_TOPRGU_IPU0_SW_RST 2 +#define MT8188_TOPRGU_IPU1_SW_RST 3 +#define MT8188_TOPRGU_IPU2_SW_RST 4 +#define MT8188_TOPRGU_AUD_ASRC_SW_RST 5 +#define MT8188_TOPRGU_INFRA_SW_RST 6 +#define MT8188_TOPRGU_MMSYS_SW_RST 7 +#define MT8188_TOPRGU_MFG_SW_RST 8 +#define MT8188_TOPRGU_VENC_SW_RST 9 +#define MT8188_TOPRGU_VDEC_SW_RST 10 +#define MT8188_TOPRGU_CAM_VCORE_SW_RST 11 +#define MT8188_TOPRGU_SCP_SW_RST 12 +#define MT8188_TOPRGU_APMIXEDSYS_SW_RST 13 +#define MT8188_TOPRGU_AUDIO_SW_RST 14 +#define MT8188_TOPRGU_CAMSYS_SW_RST 15 +#define MT8188_TOPRGU_MJC_SW_RST 16 +#define MT8188_TOPRGU_PERI_SW_RST 17 +#define MT8188_TOPRGU_PERI_AO_SW_RST 18 +#define MT8188_TOPRGU_PCIE_SW_RST 19 +#define MT8188_TOPRGU_ADSPSYS_SW_RST 21 +#define MT8188_TOPRGU_DPTX_SW_RST 22 +#define MT8188_TOPRGU_SPMI_MST_SW_RST 23 + +#define MT8188_TOPRGU_SW_RST_NUM 24 + +#endif /* _DT_BINDINGS_RESET_CONTROLLER_MT8188 */ From patchwork Wed Oct 26 06:33:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Runyang Chen X-Patchwork-Id: 11076 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp88960wru; Tue, 25 Oct 2022 23:34:45 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7Vfh+6UUpmnMYvOvAszmj6vLRIuT2Xjd+/16njKExVhRiLPCXiZ6Kafob0OEk008/s8NyI X-Received: by 2002:a17:902:b190:b0:186:b9b2:9268 with SMTP id s16-20020a170902b19000b00186b9b29268mr9748145plr.32.1666766084849; Tue, 25 Oct 2022 23:34:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666766084; cv=none; d=google.com; s=arc-20160816; b=RJdoWZam4IugkyGa7nhzn9k8AUrecXldQlgNZIWCf83AKeyE+3DwqKD56xi5Ojl8Ey KE/Z0GGrJydLWGyCyqqW0u18i43DkKuYPbbgWgv1X1VFryWD+xhctfGOawf6P2Yc4Trv 8V6oN5xcjhonS+lMIWeefI52B0bw+89VThD4iJKqHgiDR3La0BtfBvQw9Bzexfy5IV1v thhGZAwDKfm3Y5mbWIZDjVfiCgFLWgwAtPUqU0Jg4E4Kl42qJNUpKGsnKZt6sVfNo8lq qnmQgb3Z/pEtT4wHjlcUwYGGZoDmKpDEGb99HE9pYA0S4Jk0ryPsUn5AgRwe2u5CAymc 8IUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=RmCngl+Thy1APlcJ146Wriv1Se+V1zPJFkxwbB/wguE=; b=FvfALKLSXy02yaTMc6BtTLzCcx09ASHvsKdSvxvOkKcxcZJj0KRw5GXfO/RP9HcIOY SxFbzNq/DT4UvAksZxdhDcuj8KJOD1qeYr+MAqMDTxeHrr9ZJO6vkpnOWo8uS2qVHw7p SXZT/DwoaCzRjsQtMnUCM27s6THySaV14MH4S25B1OQMHwD/GfXWHK6UrCfixU486n72 VQE7MIu+50Y7epGLLZtzG6mbVPh5M23zhbi9NbHidLmei1oMiykQWzH+VxqtO1YeZE1u kzqiA64tBh6agwA1eBaYs/t5Xugymmpzv7DXd+TMXAdieryjRXW0tX2kvutF9tmnVHng SJtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=AFmto6Xc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 66-20020a630245000000b0046effafcc4esi1111762pgc.797.2022.10.25.23.34.31; Tue, 25 Oct 2022 23:34:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=AFmto6Xc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233231AbiJZGd6 (ORCPT + 99 others); Wed, 26 Oct 2022 02:33:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233214AbiJZGdx (ORCPT ); Wed, 26 Oct 2022 02:33:53 -0400 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B47FDAD999; Tue, 25 Oct 2022 23:33:46 -0700 (PDT) X-UUID: e407c26ad4cf494aad3b435bb6fc1d1f-20221026 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=RmCngl+Thy1APlcJ146Wriv1Se+V1zPJFkxwbB/wguE=; b=AFmto6XczTe8caUV54UCMiSEapez9IVL0Mw83m3hgTMWm3LN+PHnV42wmbRvSx/K7BMb2YEVhEHHarR4cJTD5e38V9lhwmdJw9wLp/glkyeL2JOZL0gRQEirK73jPrS1hvoFh6zFDfAcLqGCcbmf8pMbkk3RuVhqNrahe+Aam+s=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.12,REQID:64b6b983-dfac-4892-af30-0511ae51b912,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION: release,TS:0 X-CID-META: VersionHash:62cd327,CLOUDID:5b9a216d-89d3-4bfa-baad-dc632a24bca3,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0 X-UUID: e407c26ad4cf494aad3b435bb6fc1d1f-20221026 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1541144140; Wed, 26 Oct 2022 14:33:42 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs10n1.mediatek.inc (172.21.101.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.792.15; Wed, 26 Oct 2022 14:33:41 +0800 Received: from localhost.localdomain (10.17.3.154) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 26 Oct 2022 14:33:40 +0800 From: Runyang Chen To: Wim Van Sebroeck , Guenter Roeck , Krzysztof Kozlowski , "Matthias Brugger" , Rob Herring , "Philipp Zabel" , CC: , , , , , , , Runyang Chen Subject: [RESEND v3 3/3] watchdog: mediatek: mt8188: add wdt support Date: Wed, 26 Oct 2022 14:33:27 +0800 Message-ID: <20221026063327.20037-4-Runyang.Chen@mediatek.com> X-Mailer: git-send-email 2.9.2 In-Reply-To: <20221026063327.20037-1-Runyang.Chen@mediatek.com> References: <20221026063327.20037-1-Runyang.Chen@mediatek.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_PASS,UNPARSEABLE_RELAY,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747730914023000153?= X-GMAIL-MSGID: =?utf-8?q?1747730914023000153?= From: Runyang Chen Support MT8188 watchdog device. Signed-off-by: Runyang Chen Reviewed-by: AngeloGioacchino Del Regno Reviewed-by: Guenter Roeck Reviewed-by: Matthias Brugger --- drivers/watchdog/mtk_wdt.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/watchdog/mtk_wdt.c b/drivers/watchdog/mtk_wdt.c index e97787536792..b53763ad90cf 100644 --- a/drivers/watchdog/mtk_wdt.c +++ b/drivers/watchdog/mtk_wdt.c @@ -13,6 +13,7 @@ #include #include #include +#include #include #include #include @@ -90,6 +91,10 @@ static const struct mtk_wdt_data mt8186_data = { .toprgu_sw_rst_num = MT8186_TOPRGU_SW_RST_NUM, }; +static const struct mtk_wdt_data mt8188_data = { + .toprgu_sw_rst_num = MT8188_TOPRGU_SW_RST_NUM, +}; + static const struct mtk_wdt_data mt8192_data = { .toprgu_sw_rst_num = MT8192_TOPRGU_SW_RST_NUM, }; @@ -429,6 +434,7 @@ static const struct of_device_id mtk_wdt_dt_ids[] = { { .compatible = "mediatek,mt7986-wdt", .data = &mt7986_data }, { .compatible = "mediatek,mt8183-wdt", .data = &mt8183_data }, { .compatible = "mediatek,mt8186-wdt", .data = &mt8186_data }, + { .compatible = "mediatek,mt8188-wdt", .data = &mt8188_data }, { .compatible = "mediatek,mt8192-wdt", .data = &mt8192_data }, { .compatible = "mediatek,mt8195-wdt", .data = &mt8195_data }, { /* sentinel */ }