Message ID | 20230802033222.4024946-4-huqiang.qin@amlogic.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f41:0:b0:3e4:2afc:c1 with SMTP id v1csp181523vqx; Tue, 1 Aug 2023 20:44:34 -0700 (PDT) X-Google-Smtp-Source: APBJJlGfDjizVsfX65M7OiIUmgyRUiKbI5gD/Gd836kzCPxjJXVCNCbsBFztumzSSgBGKloYH7RI X-Received: by 2002:a05:6a00:1902:b0:682:5634:3df1 with SMTP id y2-20020a056a00190200b0068256343df1mr17140113pfi.10.1690947874063; Tue, 01 Aug 2023 20:44:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690947874; cv=none; d=google.com; s=arc-20160816; b=RPYMqXDrN8HHfd3xjH5ytCckP4D2w6xadPla/Ygm6BoB/i7i1sQlCYcmLOrWiUz0UG sLi8RhVdFotSlpPsqCKU1prvpGZDdud1Tz+103OmzhZNuJIanucmwFPb/XGuBjLm2P0Z VO+vJlM/MhYEJ0j3B0Vg5C6by09ANz5EGOjFeGkHtwHNXvrIqsdX+E1xmFzZM5BUKNAM JQpAlsOs9jGNsx1AMWa8MgGQ4KHu3xyxuH2XO4w08VgQp0fHqW6T56FcewO2yUu2eWZU C+OQUqMZhl95JP1WihZZbq0N9zG7KLOTYTMa85NU0mAWzc76Pi2bzasD/BkNY2G9PDtu SCxQ== 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; bh=bwRYQRtKuJF2V5JGF+XcLaedlN3tb5uFidzADfNWLe8=; fh=lHtUygPuyDqDXmLQa3x6TuiEioC8bNshDFp//Fz2cIM=; b=qHdzcVC0ikvkcYluczAzFsVjxLeJQmla7EYigJM5wwFL3aMoFQPvT66R7Fy16IFyl5 VqZe4yKbjGFQLTkeBeBrdpBEOZkmVThltB+rgFNRBUMlNZPIFMaAYT5xGXVHZvK2Gxgo q2eBk/DLd+LtgO/msyIjj94PyfAtG8yod2XyVfRu4CCf9hdLH/IXn/7GRd3Chn+Pucag RqZdIubQsF1erhqdCO+OfCICFqb7E9/+cuWTKYWVi+eRe9YSX+9nOjb2rvUbDM6SEhtm +fgv2PgZGVx9Vy6WB+yyrV+2sQe0SZhs43nR0A75WNlO/CvvpvRzSk0uHhLIwA4zRh6+ 6fuA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=amlogic.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id by10-20020a056a00400a00b0068208d19b1dsi3382630pfb.153.2023.08.01.20.44.20; Tue, 01 Aug 2023 20:44:34 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=amlogic.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232223AbjHBDeM (ORCPT <rfc822;maxi.paulin@gmail.com> + 99 others); Tue, 1 Aug 2023 23:34:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231732AbjHBDdj (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 1 Aug 2023 23:33:39 -0400 Received: from mail-sh.amlogic.com (mail-sh.amlogic.com [58.32.228.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 120CE1BD; Tue, 1 Aug 2023 20:32:51 -0700 (PDT) Received: from rd02-sz.amlogic.software (10.28.11.83) by mail-sh.amlogic.com (10.18.11.5) with Microsoft SMTP Server id 15.1.2507.13; Wed, 2 Aug 2023 11:32:30 +0800 From: Huqiang Qin <huqiang.qin@amlogic.com> To: <wim@linux-watchdog.org>, <linux@roeck-us.net>, <robh+dt@kernel.org>, <krzysztof.kozlowski+dt@linaro.org>, <conor+dt@kernel.org>, <neil.armstrong@linaro.org>, <khilman@baylibre.com>, <jbrunet@baylibre.com>, <martin.blumenstingl@googlemail.com> CC: <linux-watchdog@vger.kernel.org>, <devicetree@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org>, <linux-amlogic@lists.infradead.org>, <linux-kernel@vger.kernel.org>, Huqiang Qin <huqiang.qin@amlogic.com> Subject: [PATCH V2 3/4] watchdog: Add support for Amlogic-T7 SoCs Date: Wed, 2 Aug 2023 11:32:21 +0800 Message-ID: <20230802033222.4024946-4-huqiang.qin@amlogic.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20230802033222.4024946-1-huqiang.qin@amlogic.com> References: <20230802033222.4024946-1-huqiang.qin@amlogic.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.28.11.83] X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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: INBOX X-GMAIL-THRID: 1773087357809563419 X-GMAIL-MSGID: 1773087357809563419 |
Series | Add watchdog support for Amlogic-T7 SoCs | |
Commit Message
Huqiang Qin
Aug. 2, 2023, 3:32 a.m. UTC
Compared with the previous Amlogic-GXBB, the watchdog of Amlogic-T7
has a different reset enable bit.
Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
---
V1 -> V2: Use the BIT() macro to build rst initial value.
drivers/watchdog/meson_gxbb_wdt.c | 5 +++++
1 file changed, 5 insertions(+)
Comments
On Wed, Aug 02, 2023 at 11:32:21AM +0800, Huqiang Qin wrote: > Compared with the previous Amlogic-GXBB, the watchdog of Amlogic-T7 > has a different reset enable bit. > > Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com> Reviewed-by: Dmitry Rokosov <ddrokosov@sberdevices.ru> > --- > > V1 -> V2: Use the BIT() macro to build rst initial value. > > drivers/watchdog/meson_gxbb_wdt.c | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/drivers/watchdog/meson_gxbb_wdt.c b/drivers/watchdog/meson_gxbb_wdt.c > index 18180d91543e..a48622d11ad7 100644 > --- a/drivers/watchdog/meson_gxbb_wdt.c > +++ b/drivers/watchdog/meson_gxbb_wdt.c > @@ -147,8 +147,13 @@ static const struct wdt_params gxbb_params = { > .rst = BIT(21), > }; > > +static const struct wdt_params t7_params = { > + .rst = BIT(22), > +}; > + > static const struct of_device_id meson_gxbb_wdt_dt_ids[] = { > { .compatible = "amlogic,meson-gxbb-wdt", .data = &gxbb_params, }, > + { .compatible = "amlogic,t7-wdt", .data = &t7_params, }, > { /* sentinel */ }, > }; > MODULE_DEVICE_TABLE(of, meson_gxbb_wdt_dt_ids); > -- > 2.37.1 > > > _______________________________________________ > linux-amlogic mailing list > linux-amlogic@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-amlogic
diff --git a/drivers/watchdog/meson_gxbb_wdt.c b/drivers/watchdog/meson_gxbb_wdt.c index 18180d91543e..a48622d11ad7 100644 --- a/drivers/watchdog/meson_gxbb_wdt.c +++ b/drivers/watchdog/meson_gxbb_wdt.c @@ -147,8 +147,13 @@ static const struct wdt_params gxbb_params = { .rst = BIT(21), }; +static const struct wdt_params t7_params = { + .rst = BIT(22), +}; + static const struct of_device_id meson_gxbb_wdt_dt_ids[] = { { .compatible = "amlogic,meson-gxbb-wdt", .data = &gxbb_params, }, + { .compatible = "amlogic,t7-wdt", .data = &t7_params, }, { /* sentinel */ }, }; MODULE_DEVICE_TABLE(of, meson_gxbb_wdt_dt_ids);