Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1669967ybh; Thu, 23 Jul 2020 15:01:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxxzC6K5yFtNZKvVG2vjt6JsB2CPFOE/WGHZ5UeYmWfVZCTo1k+y5Wg+gGOfVMqB3xJsmx1 X-Received: by 2002:a05:6402:559:: with SMTP id i25mr6062809edx.35.1595541665697; Thu, 23 Jul 2020 15:01:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595541665; cv=none; d=google.com; s=arc-20160816; b=g2469dOwYHEYNleWjZh6s5cHdALuJ0wsfMT9mdEc0WehWwROSeOJmydfSYmWFNEW1h /AwcpgaKvjxj+0s65Mr/uLKfGc8kInZI8p9TwEetxGPOBBb5Vpf3qcWqHhoKrTfYaf+B 77c79EIPuuVrFa2tL8BKupkp8d38glrr2aKj8neHI3PiVsf2cK7duymgnCaxRTXFgPSG MW36rPwJMC8o+6VxfrMym3KjBEpb9q/rPxewWicbXw0aQzdSkEdxA6qz2dE/+yxAcqlz eSO3vGi3h6uJii5i7ANq1SJStOr/uQPKxKkrFk1VuBRF1jB4/b6nqVsFSiUTR0BCKxDT hHkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=u4N8EQ4xAO0j5YF801GNNXppFCnjV9JwTLYq/iG9D9Q=; b=h5KU17B2hHWOPR9UGsx7uLriI1/uo4cjmvvFTezHtvpGlsCTI/EAxeMLqBGJgkCs+l yt2rxu4IJAdIPeP0x9an1Ub+UlC6qiL9zbIqeYA3BzImiqec+QrDQ1uTJ3LIWNNjkS48 lXS+Y6nQfVX0iER7ybyE/6YadGmTEDhlGddM82lkcgSwJX3h9oqCtdF0HHeZGSy1MQ/n FkO87GBq2kBx2+UX05pQr/zmhJyQivXRjNcuA36TlS/Cu4czP7CI8g/IRgZ0n7BHuBtX AM3d2wh8B0TWotCaNxpohaJLlsdLSOwx1+WAzCSrQNWK4FaBDjF/eon7HUextbEzjZ3o MFIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Zxz2qd1Y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j6si257470edq.8.2020.07.23.15.00.39; Thu, 23 Jul 2020 15:01:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Zxz2qd1Y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727880AbgGWWAO (ORCPT + 99 others); Thu, 23 Jul 2020 18:00:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34682 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726739AbgGWWAO (ORCPT ); Thu, 23 Jul 2020 18:00:14 -0400 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 12F67C0619D3; Thu, 23 Jul 2020 15:00:14 -0700 (PDT) Received: by mail-wm1-x342.google.com with SMTP id t142so162249wmt.4; Thu, 23 Jul 2020 15:00:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=u4N8EQ4xAO0j5YF801GNNXppFCnjV9JwTLYq/iG9D9Q=; b=Zxz2qd1Y5ni/7O1JAsWNS7sa8VEt09eyzu/HTRZM+JnycaMWDdMaj0V59s/RL8dopZ +b7NvViEV+z7+gqWq8SS+QVWqJOCSsxIFGCQaAJhJ4rcCVhXMawBjP0VIAVatFLhEHvi p1PtNbmNk8tHeMt1knN12aiudumMEWQK7Tyiq4aV9AZnBJw6B+JCQNfTWK1jdHgF+duc p+xbvimvjNIp9SC5bNm37q6lrgHjYKTK9Ukz57ugCEEd7QknAqLCB9I2URJFjOzEeeGO niFbRrrPlE3NDNbobISH8X3dgOUeJnm5qK6odeCtH/HPvGHH9WqhV2FZdz1VGYyhzswl YfwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=u4N8EQ4xAO0j5YF801GNNXppFCnjV9JwTLYq/iG9D9Q=; b=tvhfTKm7/a0bs11s63ItUhzeatBrPPMXq7ImS/ftfP41mQrpPpaUzlb4BVBT90rxb4 QL5UK/c5cQXjfqMhOeskgiQFLnfp6SmkEmz9h5whUNNCHiE3hGIGenFEZmbsPuQc89x9 kTr+Pv2Ia48eMqAcQJUK7/rwMGMGI+M7gWs1I8ZBbdWGP4cVnNCzMIcqxUQrvjIv68lH PmPBX+sG9OfrVc139jrGlUxLqdQAvZx49UA3YotsncdbW/HEHSnjw7tgK2Z8IGG9pzxI KBuN6pKNad47QToIEkaD9JskwNvakHsfH6vJgzsWhybvx+WP1OZFO6wBfLHHYfGWCc8r um7A== X-Gm-Message-State: AOAM530EXgvlWoEnyfiMiEQ05XBdOzw3Phfcuv7zP+27SLL46oxOpLrY fDYoOLsiUiRhdIeQX5oA45M= X-Received: by 2002:a1c:5f41:: with SMTP id t62mr6110703wmb.134.1595541612792; Thu, 23 Jul 2020 15:00:12 -0700 (PDT) Received: from ziggy.stardust ([213.195.122.158]) by smtp.gmail.com with ESMTPSA id t14sm5171171wrv.14.2020.07.23.15.00.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 23 Jul 2020 15:00:12 -0700 (PDT) Subject: Re: [PATCH 3/4] watchdog: mt8192: add wdt support To: Seiya Wang , Greg Kroah-Hartman , Rob Herring , Wim Van Sebroeck , Guenter Roeck Cc: linux-serial@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, linux-watchdog@vger.kernel.org, srv_heupstream@mediatek.com, Crystal Guo References: <20200723090731.4482-1-seiya.wang@mediatek.com> <20200723090731.4482-4-seiya.wang@mediatek.com> From: Matthias Brugger Message-ID: Date: Fri, 24 Jul 2020 00:00:10 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: <20200723090731.4482-4-seiya.wang@mediatek.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 23/07/2020 11:07, Seiya Wang wrote: > From: Crystal Guo > > add driver setting to support mt8192 wdt > > Signed-off-by: Crystal Guo > --- > drivers/watchdog/mtk_wdt.c | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/drivers/watchdog/mtk_wdt.c b/drivers/watchdog/mtk_wdt.c > index d6a6393f609d..ad23596170af 100644 > --- a/drivers/watchdog/mtk_wdt.c > +++ b/drivers/watchdog/mtk_wdt.c > @@ -76,6 +76,10 @@ static const struct mtk_wdt_data mt8183_data = { > .toprgu_sw_rst_num = MT8183_TOPRGU_SW_RST_NUM, > }; > > +static const struct mtk_wdt_data mt8192_data = { > + .toprgu_sw_rst_num = 23, Should be defined in include/dt-bindings/reset-controller/mt8192-resets.h > +}; > + > static int toprgu_reset_update(struct reset_controller_dev *rcdev, > unsigned long id, bool assert) > { > @@ -322,6 +326,7 @@ static const struct of_device_id mtk_wdt_dt_ids[] = { > { .compatible = "mediatek,mt2712-wdt", .data = &mt2712_data }, > { .compatible = "mediatek,mt6589-wdt" }, > { .compatible = "mediatek,mt8183-wdt", .data = &mt8183_data }, > + { .compatible = "mediatek,mt8192-wdt", .data = &mt8192_data }, > { /* sentinel */ } > }; > MODULE_DEVICE_TABLE(of, mtk_wdt_dt_ids); >