From patchwork Wed Aug 2 03:32:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Huqiang Qin X-Patchwork-Id: 129584 Return-Path: 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 + 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 ); 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 To: , , , , , , , , CC: , , , , , Huqiang Qin 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 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773087357809563419 X-GMAIL-MSGID: 1773087357809563419 Compared with the previous Amlogic-GXBB, the watchdog of Amlogic-T7 has a different reset enable bit. Signed-off-by: Huqiang Qin Reviewed-by: Dmitry Rokosov --- 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);