From patchwork Wed Jul 26 11:21:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Huqiang Qin X-Patchwork-Id: 126287 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp352563vqo; Wed, 26 Jul 2023 05:06:44 -0700 (PDT) X-Google-Smtp-Source: APBJJlHs0iz9wbmrSgnoPPuIWu98xH+fh3j5j6VOWqkHo1hs2T9FPMDFwBRLyC3a6A1R6QVrnVgW X-Received: by 2002:a05:6a20:8419:b0:133:6c35:99c1 with SMTP id c25-20020a056a20841900b001336c3599c1mr1777764pzd.16.1690373203979; Wed, 26 Jul 2023 05:06:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690373203; cv=none; d=google.com; s=arc-20160816; b=vepI2pgw9LXg9tL/O5rJ1RlWjmZAi9nxCybbFYLVg6g1rU8svtYusH3HB8KwbgM0iP 6L0es9EEVkEgAvNv7lgYacaVMHu93Cdj95mIOvRvT8/HH8f4z6rmQ/Ewb85mBuceN/Wd /b415zgOagj6TMOdV2qYkDlSLSi4oitvwJ1M0JR+yIgQVHw/LASKIZcJkmtPT14VTyaC kH9unXF/HJkTZKUbqhTXKXhJhrI+WlXCls/uVGxzizf7zcpAH+/ihR+9458GuP5Qk468 n1LsO6fEpsA55zcexT27ZgZ90RnD4WaOO/8c959Yyq9yN/req4gRE5yKGoBw0p2RvZo7 ehAA== 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=6OrOunRbobEVYxEiv7Iyx0lwT+G6sADpP2biil22mPU=; fh=lHtUygPuyDqDXmLQa3x6TuiEioC8bNshDFp//Fz2cIM=; b=FVX2d702FdvSfxGnsKdzD4HOvAP/UREcqN2XbaqcYk8YqHctzD+eB3w25eAU0eBqvM rDx7W7N37WelmpWvmbKll3BGKJ9PZPKfMSAsm7Wnm1w8dODhjACNsfIw3ilzXF/oJXeJ AI8rT2rORKZ+1KPdActZAdQmHiPFqga2V7tLWvNEn9rUcE4QMi0L7agFK2XJynhjW3dg 06EjfTFf7OZPmjIJRCdYhm3T7adyNU0Jfwq+McNtHeH5KbwDqPuW8oNmPa2mVE/iEMJJ qe3vCaN+BzHq0jYvpKf+qPftJZcTa8ofyMgjMSsHZmci0f3m8xPWSACEW1oZOWgkKnh1 Ammg== 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 l9-20020a056a0016c900b0064d4d472935si14090415pfc.18.2023.07.26.05.06.29; Wed, 26 Jul 2023 05:06:43 -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 S233256AbjGZLX0 (ORCPT + 99 others); Wed, 26 Jul 2023 07:23:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52494 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233222AbjGZLXW (ORCPT ); Wed, 26 Jul 2023 07:23:22 -0400 Received: from mail-sh.amlogic.com (mail-sh.amlogic.com [58.32.228.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 377A3131; Wed, 26 Jul 2023 04:22:34 -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, 26 Jul 2023 19:22:09 +0800 From: Huqiang Qin To: , , , , , , , , CC: , , , , , Huqiang Qin Subject: [PATCH 3/4] watchdog: Add support for Amlogic-T7 SoCs Date: Wed, 26 Jul 2023 19:21:45 +0800 Message-ID: <20230726112146.1127145-4-huqiang.qin@amlogic.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20230726112146.1127145-1-huqiang.qin@amlogic.com> References: <20230726112146.1127145-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,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: 1772484772715654108 X-GMAIL-MSGID: 1772484772715654108 Compared with the previous Amlogic-GXBB, the watchdog of Amlogic-T7 has a different reset enable bit. Signed-off-by: Huqiang Qin --- 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 a6c0d743b607..dc48b0a332c3 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_shift = 21, }; +static const struct wdt_params t7_params = { + .rst_shift = 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);