Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1804125rwb; Wed, 5 Oct 2022 05:11:49 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5VBNnez5+02N6CGdcnom1XfDoObmLUw78cAvxg5JMsXWecGNKmZm3xF2mA05UlHDdM/jwm X-Received: by 2002:a17:907:3f0b:b0:781:e783:2773 with SMTP id hq11-20020a1709073f0b00b00781e7832773mr22462434ejc.610.1664971909306; Wed, 05 Oct 2022 05:11:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664971909; cv=none; d=google.com; s=arc-20160816; b=TOOjvkVl7m7VWNUakRvSSRHwJIMrYkNZdBvKy1SQs+te12oVn+6imjoEyKy4iyxcI8 47U1FbiEXq1Y5A3aIAu/HbhCGlIUZ2kTC87jkJ7UBu6DVAh1Qh4zB+jcnrUDtpq8Dsbj Zr8R0TC0ganh/3fpp/jl8p+4HZ1rKZJoklhHMrCtkHZj+mEMMLVfCZEMmTohIUZZQ0K8 8G6V9xmvXoU0yMuiYKbzyazReXegBVRK8bnezceaHJ6V33X7H3DNI+Qe8QaVAp0iyT4Z ShHcAb/tQetWiEavqxRhPm1qLkyzMEH/5vdlRwt3hFHDTxtXZ0ZgPWq8zKCTDIM9olhF cLYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=UdH7bOuHp/Col+T5Y88CX8K7kvBi7XI+b0NGlOW3+sU=; b=h9gswTj52+IeGfSYc/4cugsHlDwBkOtmffpfBlKDQqmoJn7sim3Q/k8ii7pzGbOcRe rSPsflzG77kGCIh6y8ZuD+MAgn6BVXXvTz1DGOxtGLbcbz83B/G8jsHVIziHVSrLq2ke T2LgnNhxoaFW9U1R3skxMfbCfO8oIgKwuhKLhkWZzkLmP1QRA4wyTegSJOxS+VcDCDzG YvWgExgGE2MPSGpHz7tyOfXQYu6buqjKGQxw4mtDLG+VQrZxfSKdwiYUTs0wRbkL28ck UraE/wEjdA8FWPDmrRvOSO+g7B6laDBzJj3MdwnnOnai4J5dQ2fnWTmhGxMG3RS/ZOm4 hAig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=hPKWrb0o; 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=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id di19-20020a170906731300b0072b3cde0ce8si15796151ejc.471.2022.10.05.05.11.15; Wed, 05 Oct 2022 05:11: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=@collabora.com header.s=mail header.b=hPKWrb0o; 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=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230464AbiJELsa (ORCPT + 99 others); Wed, 5 Oct 2022 07:48:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38594 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230423AbiJELrn (ORCPT ); Wed, 5 Oct 2022 07:47:43 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C729792E0; Wed, 5 Oct 2022 04:45:24 -0700 (PDT) Received: from IcarusMOD.eternityproject.eu (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 5F60F66022FA; Wed, 5 Oct 2022 12:35:39 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1664969740; bh=if4mHZlg0/8K/oXjlgWAfzFCWC8dK9Y0YQUt5Usd1Uo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hPKWrb0oJD87RtU0bt8UP9pWlC9HER2kPEpB6PeIOfbzVF3/FJBqHeFwta4obPYZl sa3y2B46hc6jOkI6MqwH6M4jB3kOXE/sndAdtWad33gw4guORjeBgKs7aFadiYk+vg vymXwGYNztwYL2MUV89hvtx052E15GnNBz1YqJqTateNJWyIvq9AEU/5KnHK0H6QRU cfhIHFfQcoN9d1VgMM7ezRCDARttr0XiAJMlZYFadAukcdBNgJbJn3gNwfD03GUbnz XISzanY29Nq5zhIkyOjOgsPu0fbsGo4NUNzyX9rIqWOw8F0nyBTWuJxmidHKI9oPTl iHVcQqbtSZo+g== From: AngeloGioacchino Del Regno To: wim@linux-watchdog.org Cc: linux@roeck-us.net, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, matthias.bgg@gmail.com, allen-kh.cheng@mediatek.com, seiya.wang@mediatek.com, angelogioacchino.delregno@collabora.com, tinghan.shen@mediatek.com, linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 5/5] watchdog: mtk_wdt: Add support for MT6795 Helio X10 watchdog and toprgu Date: Wed, 5 Oct 2022 13:35:17 +0200 Message-Id: <20221005113517.70628-6-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20221005113517.70628-1-angelogioacchino.delregno@collabora.com> References: <20221005113517.70628-1-angelogioacchino.delregno@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS 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 Add support for the toprgu reset controller and watchdog for the MediaTek MT6795 SoC. Signed-off-by: AngeloGioacchino Del Regno --- 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.37.2