Message ID | 20230106115326.15374-2-allen-kh.cheng@mediatek.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp781627wrt; Fri, 6 Jan 2023 03:57:12 -0800 (PST) X-Google-Smtp-Source: AMrXdXuejTJgceO2NEfFlPRXfUFb7FY3dysf9gQM6/BWr7XoSOV5BgTk8MNdR34LQlSan3ZMEjIP X-Received: by 2002:a62:1b42:0:b0:581:eca3:fd05 with SMTP id b63-20020a621b42000000b00581eca3fd05mr26453133pfb.16.1673006232388; Fri, 06 Jan 2023 03:57:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673006232; cv=none; d=google.com; s=arc-20160816; b=opyBVh34u0W5T76te6X5+RXX7QzVs1JtZwPKPoSmCT6y2zVJnnW45D4xARL7tW2AzM 2VRkBRJiDYPfWf2/UCkr659bUoRE7v7XR4uYb6VPkGqE5xscH2o5AmLMmQXNviOM4TrU UdpgLit+dW9dcjlWgzZaQ0BBije0oQ41TPE6/i3Oi+ws+hjFsjbNVXQV25XN+ncL/Qsj ERc9v/ShNjBvP63yIeTlMdW6GYFaKvqBbBamhmohKYSdPq06NX1AHrV5vq2oBkGrlan1 6k7xPPOCgA9ksobkhnCfQ2ieFIcw57/adv8nVqUCobD4mv12pF13CYMqGewvGWCsnduz Hi6Q== 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=11f2m6HWavy1ycHJjCqVibR6VCcvs9IjPFDFLxUESd4=; b=Pl5x6HgsSbp17z5Dta7//i0CLKskl37Z9clDTW/OSNBM6twgOJD9hxABM4ltA9qPpM +uhcqGzfC0NdaWOCfws+6ld1RH7IE56c6C0zkycCZ2MG5YwTGFxUQ9N57uIbolMofPSh EVdTPZ/sJr/ztwBOpLM8mt9L4MI3JGmU3fZVa+j6L+agh1sihrGsgHHCyLzlnE6idnbv mUuNsLFpeKgWetUmmrK5pQ44YzT//Llw2a5x1jd79HJaXBVno3hWHkQbof9E+ds3iSgy j2bzuZ+m9tM0Konxx4WkqDsEupu3ceHOd5bbCylOSqUHjtCQvsAFa89EUu8XQONZreIC MVQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=KWMm219c; 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 7-20020aa79207000000b005730a1bbac0si1069818pfo.354.2023.01.06.03.56.55; Fri, 06 Jan 2023 03:57:12 -0800 (PST) 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=KWMm219c; 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 S232821AbjAFLyq (ORCPT <rfc822;tmhikaru@gmail.com> + 99 others); Fri, 6 Jan 2023 06:54:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232149AbjAFLyn (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 6 Jan 2023 06:54:43 -0500 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0292045644; Fri, 6 Jan 2023 03:54:38 -0800 (PST) X-UUID: f598861a368e4a86b9d15a501c8fe39b-20230106 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=11f2m6HWavy1ycHJjCqVibR6VCcvs9IjPFDFLxUESd4=; b=KWMm219cnN+xu6dKaEdI49NOOeeOul9VVoHiZOPRxpRGRG7rR4n3GUXkdjQXeBA3MwDL13tH/iDdNOHbhobazSfVajyvn+gO9YVlXXs16nQSOm4VYhqSylzyQGo6eyXpmxZ0B8dMlgABrvEQjSuOH21Wvj2oYdHE/Tm+2sP57nU=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.17,REQID:161a2145-f1d9-4e37-90a6-9864c237938b,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:543e81c,CLOUDID:f8fe788b-8530-4eff-9f77-222cf6e2895b,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,OSI:0,OSA:0 X-CID-BVR: 0,NGT X-UUID: f598861a368e4a86b9d15a501c8fe39b-20230106 Received: from mtkmbs13n2.mediatek.inc [(172.21.101.108)] by mailgw01.mediatek.com (envelope-from <allen-kh.cheng@mediatek.com>) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 179388553; Fri, 06 Jan 2023 19:54:33 +0800 Received: from mtkmbs11n1.mediatek.inc (172.21.101.186) by mtkmbs10n2.mediatek.inc (172.21.101.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.3; Fri, 6 Jan 2023 19:54:31 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs11n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.792.15 via Frontend Transport; Fri, 6 Jan 2023 19:54:31 +0800 From: Allen-KH Cheng <allen-kh.cheng@mediatek.com> To: Wim Van Sebroeck <wim@linux-watchdog.org>, Guenter Roeck <linux@roeck-us.net>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Matthias Brugger <matthias.bgg@gmail.com>, Rob Herring <robh+dt@kernel.org>, <linux-watchdog@vger.kernel.org> CC: <Project_Global_Chrome_Upstream_Group@mediatek.com>, <devicetree@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org>, <linux-kernel@vger.kernel.org>, <linux-mediatek@lists.infradead.org>, Allen-KH Cheng <allen-kh.cheng@mediatek.com> Subject: [PATCH 1/2] dt-bindings: watchdog: mtk-wdt: Add reset-by-toprgu support Date: Fri, 6 Jan 2023 19:53:25 +0800 Message-ID: <20230106115326.15374-2-allen-kh.cheng@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20230106115326.15374-1-allen-kh.cheng@mediatek.com> References: <20230106115326.15374-1-allen-kh.cheng@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N 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 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754274183019056667?= X-GMAIL-MSGID: =?utf-8?q?1754274183019056667?= |
Series |
mtk-wdt: Add reset-by-toprgu support
|
|
Commit Message
Allen-KH Cheng
Jan. 6, 2023, 11:53 a.m. UTC
In some applications, the mtk-wdt requires the toprgu (TOP Reset
Generation Unit) to reset counter after wdt resets. Add optional
mediatek,reset-by-toprgu property to enable it.
Signed-off-by: Allen-KH Cheng <allen-kh.cheng@mediatek.com>
---
.../devicetree/bindings/watchdog/mediatek,mtk-wdt.yaml | 4 ++++
1 file changed, 4 insertions(+)
Comments
On 06/01/2023 12:53, Allen-KH Cheng wrote: > In some applications, the mtk-wdt requires the toprgu (TOP Reset > Generation Unit) to reset counter after wdt resets. Add optional > mediatek,reset-by-toprgu property to enable it. > > Signed-off-by: Allen-KH Cheng <allen-kh.cheng@mediatek.com> > --- > .../devicetree/bindings/watchdog/mediatek,mtk-wdt.yaml | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/Documentation/devicetree/bindings/watchdog/mediatek,mtk-wdt.yaml b/Documentation/devicetree/bindings/watchdog/mediatek,mtk-wdt.yaml > index b3605608410c..bf06dcd0c12c 100644 > --- a/Documentation/devicetree/bindings/watchdog/mediatek,mtk-wdt.yaml > +++ b/Documentation/devicetree/bindings/watchdog/mediatek,mtk-wdt.yaml > @@ -52,6 +52,10 @@ properties: > description: Disable sending output reset signal > type: boolean > > + mediatek,reset-by-toprgu: > + description: Reset counter by toprgu Do not copy the property name in description but actually describe it. Also "toprgu" is a bit cryptic. Best regards, Krzysztof
Hi Krzysztof, On Fri, 2023-01-06 at 13:30 +0100, Krzysztof Kozlowski wrote: > On 06/01/2023 12:53, Allen-KH Cheng wrote: > > In some applications, the mtk-wdt requires the toprgu (TOP Reset > > Generation Unit) to reset counter after wdt resets. Add optional > > mediatek,reset-by-toprgu property to enable it. > > > > Signed-off-by: Allen-KH Cheng <allen-kh.cheng@mediatek.com> > > --- > > .../devicetree/bindings/watchdog/mediatek,mtk-wdt.yaml | 4 > > ++++ > > 1 file changed, 4 insertions(+) > > > > diff --git > > a/Documentation/devicetree/bindings/watchdog/mediatek,mtk-wdt.yaml > > b/Documentation/devicetree/bindings/watchdog/mediatek,mtk-wdt.yaml > > index b3605608410c..bf06dcd0c12c 100644 > > --- a/Documentation/devicetree/bindings/watchdog/mediatek,mtk- > > wdt.yaml > > +++ b/Documentation/devicetree/bindings/watchdog/mediatek,mtk- > > wdt.yaml > > @@ -52,6 +52,10 @@ properties: > > description: Disable sending output reset signal > > type: boolean > > > > + mediatek,reset-by-toprgu: > > + description: Reset counter by toprgu > > Do not copy the property name in description but actually describe > it. > > Also "toprgu" is a bit cryptic. > > Best regards, > Krzysztof > Sorry for being unclear. We name toprgu for "TOP Reset Generation Unit" in the mtk SoC, which is used to reset the system. mediatek,reset-by-toprgu: description: If present, means the watchdog timer will reset by toprgu after system resets. What do you think? Thanks, Allen
diff --git a/Documentation/devicetree/bindings/watchdog/mediatek,mtk-wdt.yaml b/Documentation/devicetree/bindings/watchdog/mediatek,mtk-wdt.yaml index b3605608410c..bf06dcd0c12c 100644 --- a/Documentation/devicetree/bindings/watchdog/mediatek,mtk-wdt.yaml +++ b/Documentation/devicetree/bindings/watchdog/mediatek,mtk-wdt.yaml @@ -52,6 +52,10 @@ properties: description: Disable sending output reset signal type: boolean + mediatek,reset-by-toprgu: + description: Reset counter by toprgu + type: boolean + '#reset-cells': const: 1