Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp677994rwb; Fri, 7 Oct 2022 02:42:15 -0700 (PDT) X-Google-Smtp-Source: AMsMyM43zlh1fQ8V0Kw0Uf7D6BXFXeg2nuLOpk3yfFWRXfMZ4UkeNhXGOJYFNE0V+4YvzWphGIyP X-Received: by 2002:a17:907:746:b0:741:4a1b:cb1f with SMTP id xc6-20020a170907074600b007414a1bcb1fmr3261032ejb.370.1665135735623; Fri, 07 Oct 2022 02:42:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665135735; cv=none; d=google.com; s=arc-20160816; b=n/MJhY/I/HhRCp0IE6hFXaL+JBTQQ1hPxq8Q4aB49tpYPnKu3hsn8HW4UlprtuyV3T 0HuOKhZ8zg9QhKYmy2OZ8Vcy9zlXCnM1YZVegDni+p3T+VHiYjXSowWkxnFc6UjqLyiQ Fz0M/ZOOtst4tVmJ43Rl/ZQSK3vxdvP4hZB/R8RkVj9ToE/e8/gJX77PMWN0ckM2mGXW yGR6YgU30CTDLVi5A8l6GrAZOYqQdKWFhfUcVezVIYiR6a6e/jPXTd7HHBy1IeUsU+jA 33ZUTEmO1uH85vJomK6rjdDVxOtpw+H6vPgWc3rbmgPAaORzl+iuVq/I/6xDeamebs6+ BcTQ== 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=IPdq1wqpZgXQbq4SylhQEuMywjQXA6uP4TcffdIhE2A=; b=eXDgaFYjUvEc2eHRLMHqvaqkFPflPz/wnSg7C73rrTPE0kNsuQ3b63P8ZCtk5iHHgy tPQspCftvUqy0puo9sxVXifRrWIYh3rCgIdJQ8DDCbfrogfH+UeP1vQgTJwxdd0hMDd/ Lyrh+8xFy77Q16wc1j5bc83yOlcuBf6cyts7nNk5haRRyex2uP4gdtSTfeoFEHzgPgQg WWqtAtdwq/575PG1MT4FfwA69Ebkhh5EA9evEx791VbPXUZ0VF/fyIva4IsVp9LOHcnZ sL/VA1aF1LYXiAAhQ1Wu+G9rz376ldLIiOgFr0pUjKrksGpOlOrc0Uve5NwtwO5vCR+y qqOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=ha4JbFFj; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y15-20020a056402440f00b0045793b0060dsi2126470eda.345.2022.10.07.02.41.50; Fri, 07 Oct 2022 02:42:15 -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=ha4JbFFj; 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 S229948AbiJGJfO (ORCPT + 99 others); Fri, 7 Oct 2022 05:35:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229884AbiJGJey (ORCPT ); Fri, 7 Oct 2022 05:34:54 -0400 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2FFB222530; Fri, 7 Oct 2022 02:34:51 -0700 (PDT) X-UUID: 8f552dee2242493c942757e4e1616358-20221007 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=IPdq1wqpZgXQbq4SylhQEuMywjQXA6uP4TcffdIhE2A=; b=ha4JbFFj/GyFucmGHsWhGqTkrEtnftA06kROQr5fqruGpoOSs64psLH/8WE5THJnOA5yF43v44bVUW6Bg+ssvC9eDxY701qMQru6nUSRpFDIBa1QbKTcX3b7w2YOMborYz03dbS5QMaGbdJhiFHcXOk9PGP8fAgNkObLCl5Yj6c=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.11,REQID:6042a522-4ddd-4dba-804e-7081721857cf,IP:0,U RL:0,TC:0,Content:-5,EDM:0,RT:0,SF:100,FILE:0,BULK:0,RULE:Release_Ham,ACTI ON:release,TS:95 X-CID-INFO: VERSION:1.1.11,REQID:6042a522-4ddd-4dba-804e-7081721857cf,IP:0,URL :0,TC:0,Content:-5,EDM:0,RT:0,SF:100,FILE:0,BULK:0,RULE:Spam_GS981B3D,ACTI ON:quarantine,TS:95 X-CID-META: VersionHash:39a5ff1,CLOUDID:91d039e1-2948-402a-a6e4-b5d31fe11eb7,B ulkID:2210071734478VZT1X3B,BulkQuantity:0,Recheck:0,SF:38|28|17|19|48|823| 824,TC:nil,Content:0,EDM:-3,IP:nil,URL:0,File:nil,Bulk:nil,QS:nil,BEC:nil, COL:0 X-UUID: 8f552dee2242493c942757e4e1616358-20221007 Received: from mtkmbs10n1.mediatek.inc [(172.21.101.34)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1147147979; Fri, 07 Oct 2022 17:34:45 +0800 Received: from mtkmbs13n1.mediatek.inc (172.21.101.193) by mtkmbs11n2.mediatek.inc (172.21.101.187) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.15; Fri, 7 Oct 2022 17:34:44 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs13n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.792.15 via Frontend Transport; Fri, 7 Oct 2022 17:34:44 +0800 From: Allen-KH Cheng To: Wim Van Sebroeck , Guenter Roeck , Krzysztof Kozlowski , Matthias Brugger , Rob Herring , CC: , , , , , , Allen-KH Cheng Subject: [PATCH v2 7/8] watchdog: mtk_wdt: Add support for MT6795 Helio X10 watchdog and toprgu Date: Fri, 7 Oct 2022 17:34:36 +0800 Message-ID: <20221007093437.12228-8-allen-kh.cheng@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20221007093437.12228-1-allen-kh.cheng@mediatek.com> References: <20221007093437.12228-1-allen-kh.cheng@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N X-Spam-Status: No, score=-2.0 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_CSS 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 From: AngeloGioacchino Del Regno Add support for the toprgu reset controller and watchdog for the MediaTek MT6795 SoC. Signed-off-by: AngeloGioacchino Del Regno Co-developed-by: Allen-KH Cheng Signed-off-by: Allen-KH Cheng Reviewed-by: Guenter Roeck --- 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..5fa42b7d4b4d 100644 --- a/drivers/watchdog/mtk_wdt.c +++ b/drivers/watchdog/mtk_wdt.c @@ -10,6 +10,7 @@ */ #include +#include #include #include #include @@ -78,6 +79,10 @@ static const struct mtk_wdt_data mt2712_data = { .toprgu_sw_rst_num = MT2712_TOPRGU_SW_RST_NUM, }; +static const struct mtk_wdt_data mt6795_data = { + .toprgu_sw_rst_num = MT6795_TOPRGU_SW_RST_NUM, +}; + static const struct mtk_wdt_data mt7986_data = { .toprgu_sw_rst_num = MT7986_TOPRGU_SW_RST_NUM, }; @@ -426,6 +431,7 @@ static int mtk_wdt_resume(struct device *dev) static const struct of_device_id mtk_wdt_dt_ids[] = { { .compatible = "mediatek,mt2712-wdt", .data = &mt2712_data }, { .compatible = "mediatek,mt6589-wdt" }, + { .compatible = "mediatek,mt6795-wdt", .data = &mt6795_data }, { .compatible = "mediatek,mt7986-wdt", .data = &mt7986_data }, { .compatible = "mediatek,mt8183-wdt", .data = &mt8183_data }, { .compatible = "mediatek,mt8186-wdt", .data = &mt8186_data }, -- 2.18.0