From patchwork Wed Jul 26 11:21:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Huqiang Qin X-Patchwork-Id: 126271 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp336834vqo; Wed, 26 Jul 2023 04:36:10 -0700 (PDT) X-Google-Smtp-Source: APBJJlFcDhBPObUs5HWuMbWOpX1e4eCWEOhlwG2g0HD2r7AVDL76KIyuVPB/mtQq26XSPy3M/rVY X-Received: by 2002:a17:90b:14a:b0:268:5c3b:6f37 with SMTP id em10-20020a17090b014a00b002685c3b6f37mr396953pjb.0.1690371370071; Wed, 26 Jul 2023 04:36:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690371370; cv=none; d=google.com; s=arc-20160816; b=O4vbv8Ng+g65L+lNF9VPdXRUFlLWkq03i78GDlQPIjuhK0/bbQv/bgZt29VPb9gRCx r5WXYflvL01iibmtUVrfs2g1LjhIHrqgNUPU63s6ix8JuXqdRjrhgHnV2cOjkeinsMRr fGtrHCq/Ju3gpVOecGbjvvH+cx5w++F1BI86b/WhE97GuYXvzEy8MC+1XkUhkKRpOWeI GndoYyORO65ooRM2Rmu/1yQ30SYjahomeoNQeMwBKmHF7cc108S2qzq+/HJnIRN7snYG o2h2+dl6g1/Icw/oMReG511M2MXxhz6BLrDBwg5pdnoFo2ypVRnb1Pg+/IpPtGBeIQX7 65sA== 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=K0ynCD+/JwB68gob6lOamTCJX1Gw9qJZSlEwIL0zPvo=; fh=lHtUygPuyDqDXmLQa3x6TuiEioC8bNshDFp//Fz2cIM=; b=n12XYIihePZZ4oK9tdsj3un87u4WTAqWL4SiaGnkhvgwFxqeERL0NYKjn6bl1GwCT+ eKtaCxBztmRwwki1PctGNUsM2VOo+BxmxLkwHZ5X4YXHhbEXVLKqGUky8u33zEQN/AQm VkpfrKuWvYBKQBVrHrIkJIt8bNpx3Pe4va7SLMyj4yal+5toqoC3/Hm5BERVXf9Kr7ya FbJUGJhJXtT6Zv2Joq0XGJhkSSkBWFCwvMb1hT1FPwQuPzhKoOq3iCY9kJSBMj7EET8h 2paa6XCqbATquvAx9JXzP0+/oe/QrOPUYDiXsqJ/2H7G4OTrgJDU9E2nnzd3hriCcYJ3 yrVA== 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 o92-20020a17090a0a6500b00263860e1f4csi1024058pjo.16.2023.07.26.04.35.55; Wed, 26 Jul 2023 04:36:10 -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 S233251AbjGZLXU (ORCPT + 99 others); Wed, 26 Jul 2023 07:23:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231167AbjGZLXQ (ORCPT ); Wed, 26 Jul 2023 07:23:16 -0400 Received: from mail-sh.amlogic.com (mail-sh.amlogic.com [58.32.228.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 194A4FD; Wed, 26 Jul 2023 04:22:31 -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:07 +0800 From: Huqiang Qin To: , , , , , , , , CC: , , , , , Huqiang Qin Subject: [PATCH 1/4] dt-bindings: watchdog: Add support for Amlogic-T7 SoCs Date: Wed, 26 Jul 2023 19:21:43 +0800 Message-ID: <20230726112146.1127145-2-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: 1772482850131837661 X-GMAIL-MSGID: 1772482850131837661 Update dt-binding document for watchdog of Amlogic-T7 SoCs. Signed-off-by: Huqiang Qin Acked-by: Conor Dooley --- .../devicetree/bindings/watchdog/amlogic,meson-gxbb-wdt.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/watchdog/amlogic,meson-gxbb-wdt.yaml b/Documentation/devicetree/bindings/watchdog/amlogic,meson-gxbb-wdt.yaml index f5cc7aa1b93b..443e2e7ab467 100644 --- a/Documentation/devicetree/bindings/watchdog/amlogic,meson-gxbb-wdt.yaml +++ b/Documentation/devicetree/bindings/watchdog/amlogic,meson-gxbb-wdt.yaml @@ -17,6 +17,7 @@ properties: compatible: enum: - amlogic,meson-gxbb-wdt + - amlogic,t7-wdt reg: maxItems: 1 From patchwork Wed Jul 26 11:21:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Huqiang Qin X-Patchwork-Id: 126320 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp365631vqo; Wed, 26 Jul 2023 05:28:46 -0700 (PDT) X-Google-Smtp-Source: APBJJlHkIzqsB/Y95AsexCMElSuIrGVdyOJCYVke2AzvvJeU/AmYffDgFh4yfk/MJB1kC/SaP5Wb X-Received: by 2002:a17:906:cc14:b0:999:37ff:be94 with SMTP id ml20-20020a170906cc1400b0099937ffbe94mr1619029ejb.71.1690374525873; Wed, 26 Jul 2023 05:28:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690374525; cv=none; d=google.com; s=arc-20160816; b=rC0KjGhBFcXmY7PdhmumUFp/vwbTUCf9IaBK/X3Fcn2bycJWKuYdodc20C1bybzV6I q42OvTdZHPQ7hcaM6RzBvBDLPes7TLiCqpH6v4huoqy2bYihjs3upu2NKA2D/LKRB8P1 BtPKzacZ9962o2z58L3KKe8mywI0EwtApL5EiizMGAtbpHZK02XxaLjPIzSFtNDd6o6r 8XwaG9osCLrQBLlvfQZw6hkOWXB8M5bl0w1Am9Q3YFGTJG/U99KYBYzN+xqm3izzsBsd GluNLygAqZguLDUa/bMpQKoUkqIUP2U5oiBwh87OWVuQ8ySMm9bHVLi9ZrdDPG5fM1UJ xmlA== 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=ZYvZRTaa9HmNCnS39xZ6WqO7oa0qg3Khkbi5chaJiTY=; fh=lHtUygPuyDqDXmLQa3x6TuiEioC8bNshDFp//Fz2cIM=; b=QVleTipzOsKnmy0Stp1lVawqjikyjGpzUlTai+Li+9kkoFsx4VlCY2X5Jgmh3F+OGv C8EuYxT7QrC2gztQUCcp/3v2R5JHx0jUT0nsy3s75OSeVxRFyhuZsuS2TwL7YiHtguUb K3rQbEW2fNVm5f3YNBBy2ZYwF7uJgsbLPbLwV87fB+wfr4G55TH8bkVFykwkN/ct/DJ1 yC2UDG6jNmNGBAEL8qF79nuWEdgpw+o94t93u22ujOeMKCxvyBwWiRbliW48gwGl5ic1 sheT6JgOZdnj2dEdf2GbEeuKx/fCmVcN+9Y/WG9voedwvp/atjn7XMze8u9JiZiR0635 x+RA== 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 w6-20020a1709064a0600b0099bcee97a5dsi181362eju.761.2023.07.26.05.28.21; Wed, 26 Jul 2023 05:28:45 -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 S232975AbjGZLWg (ORCPT + 99 others); Wed, 26 Jul 2023 07:22:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231167AbjGZLWe (ORCPT ); Wed, 26 Jul 2023 07:22:34 -0400 Received: from mail-sh.amlogic.com (mail-sh.amlogic.com [58.32.228.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91C2D116; Wed, 26 Jul 2023 04:22:32 -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:08 +0800 From: Huqiang Qin To: , , , , , , , , CC: , , , , , Huqiang Qin Subject: [PATCH 2/4] watchdog: Add a new struct for Amlogic-GXBB driver Date: Wed, 26 Jul 2023 19:21:44 +0800 Message-ID: <20230726112146.1127145-3-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: 1772486158667300176 X-GMAIL-MSGID: 1772486158667300176 Add a new structure wdt_params to describe the watchdog difference of different chips. Signed-off-by: Huqiang Qin --- drivers/watchdog/meson_gxbb_wdt.c | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/drivers/watchdog/meson_gxbb_wdt.c b/drivers/watchdog/meson_gxbb_wdt.c index 35d80cb39856..a6c0d743b607 100644 --- a/drivers/watchdog/meson_gxbb_wdt.c +++ b/drivers/watchdog/meson_gxbb_wdt.c @@ -22,7 +22,6 @@ #define GXBB_WDT_CTRL_CLKDIV_EN BIT(25) #define GXBB_WDT_CTRL_CLK_EN BIT(24) -#define GXBB_WDT_CTRL_EE_RESET BIT(21) #define GXBB_WDT_CTRL_EN BIT(18) #define GXBB_WDT_CTRL_DIV_MASK (BIT(18) - 1) @@ -45,6 +44,10 @@ struct meson_gxbb_wdt { struct clk *clk; }; +struct wdt_params { + u8 rst_shift; +}; + static int meson_gxbb_wdt_start(struct watchdog_device *wdt_dev) { struct meson_gxbb_wdt *data = watchdog_get_drvdata(wdt_dev); @@ -140,8 +143,12 @@ static const struct dev_pm_ops meson_gxbb_wdt_pm_ops = { SET_SYSTEM_SLEEP_PM_OPS(meson_gxbb_wdt_suspend, meson_gxbb_wdt_resume) }; +static const struct wdt_params gxbb_params = { + .rst_shift = 21, +}; + static const struct of_device_id meson_gxbb_wdt_dt_ids[] = { - { .compatible = "amlogic,meson-gxbb-wdt", }, + { .compatible = "amlogic,meson-gxbb-wdt", .data = &gxbb_params, }, { /* sentinel */ }, }; MODULE_DEVICE_TABLE(of, meson_gxbb_wdt_dt_ids); @@ -150,6 +157,7 @@ static int meson_gxbb_wdt_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; struct meson_gxbb_wdt *data; + struct wdt_params *params; u32 ctrl_reg; data = devm_kzalloc(dev, sizeof(*data), GFP_KERNEL); @@ -164,6 +172,8 @@ static int meson_gxbb_wdt_probe(struct platform_device *pdev) if (IS_ERR(data->clk)) return PTR_ERR(data->clk); + params = (struct wdt_params *)of_device_get_match_data(dev); + platform_set_drvdata(pdev, data); data->wdt_dev.parent = dev; @@ -191,7 +201,7 @@ static int meson_gxbb_wdt_probe(struct platform_device *pdev) /* Setup with 1ms timebase */ ctrl_reg |= ((clk_get_rate(data->clk) / 1000) & GXBB_WDT_CTRL_DIV_MASK) | - GXBB_WDT_CTRL_EE_RESET | + BIT(params->rst_shift) | GXBB_WDT_CTRL_CLK_EN | GXBB_WDT_CTRL_CLKDIV_EN; 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); From patchwork Wed Jul 26 11:21:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Huqiang Qin X-Patchwork-Id: 126280 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp345656vqo; Wed, 26 Jul 2023 04:55:48 -0700 (PDT) X-Google-Smtp-Source: APBJJlGV37hYtnYPVOKe3QuLIqI5QdeKSiC4eH+1595lCgxlLSQVR7zcXEUfCVvs9upUfAaaP84v X-Received: by 2002:a17:902:ec83:b0:1b5:1787:d23f with SMTP id x3-20020a170902ec8300b001b51787d23fmr1555468plg.5.1690372547962; Wed, 26 Jul 2023 04:55:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690372547; cv=none; d=google.com; s=arc-20160816; b=01TSBPl71f2hxxc1V4A6esBGXT+2FwjV+KL8b3pGJJ9zUMrQHr1MrHleAnqvafBbJe p2L0DBnppIBNZtyzzUvJOx1WN2/gv5uO9Ade4OVyYHzq51Cgbnulg9Hn1ByA/98QouaP 3RUSERWyoEHiuSHeAkpgQUvt+bNNbE1PXkoI0gskAks26TAaIFZcepXqJqnvMKWS4vOI DuSAHhf4ZSoXNUX2RHHI+bMpEHP4nubhA5T6NpR/AI7jTlOtTMoOi9J8ADwejH05331c ptOLYcbtNia+m0lKpcYhZj2N7yHMJHsupPXdL84BIKAL0dzZGiQoHWn8nXYTQxGXMHor qWhA== 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=VhboGLS11TzUzKPRjVJn6O99zy02+RjKyU78MoSm4AI=; fh=lHtUygPuyDqDXmLQa3x6TuiEioC8bNshDFp//Fz2cIM=; b=aWaK5GwUYs7AIcfjeD2VlRmBzT0z25P3L6kvBqv8VfWGTE+Br4zJj1gG0mB74xBLJF PDhckkGQgvfPs0d2jgwLsZt1wS0WMlNXu1jYfApNmfrbCOkCnFhbLlL34xdV3lnH+qTP 5aSRazUv0K/jCNyzIB+PsCkaesG1VmSD1sNbI9apILwwSc1XyAepOiQ+VRtbOv3r5hfB 9t695xrRT8TR+OO195k0Xo3pasQP34+plxZbwuHbjg7Qgbm7u6hDnQ8huQobmUJlRx8E bOxR/C2g8n14JQHnIPhouAm+sbCcY0oFYMvxitgoHvaVgdTosDNbAXfT5jfELfQYjDzi 593Q== 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 q15-20020a170902dacf00b001b3f9cedbb7si7079706plx.398.2023.07.26.04.55.34; Wed, 26 Jul 2023 04:55:47 -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 S230405AbjGZLWj (ORCPT + 99 others); Wed, 26 Jul 2023 07:22:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231167AbjGZLWh (ORCPT ); Wed, 26 Jul 2023 07:22:37 -0400 Received: from mail-sh.amlogic.com (mail-sh.amlogic.com [58.32.228.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA8AE1FC4; Wed, 26 Jul 2023 04:22:35 -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:10 +0800 From: Huqiang Qin To: , , , , , , , , CC: , , , , , Huqiang Qin Subject: [PATCH 4/4] arm64: dts: Add watchdog node for Amlogic-T7 SoCs Date: Wed, 26 Jul 2023 19:21:46 +0800 Message-ID: <20230726112146.1127145-5-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: 1772484084927571869 X-GMAIL-MSGID: 1772484084927571869 Add watchdog device. Signed-off-by: Huqiang Qin Reviewed-by: Dmitry Rokosov --- arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi b/arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi index 1423d4a79156..6e34d11214b7 100644 --- a/arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi +++ b/arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi @@ -143,6 +143,12 @@ apb4: bus@fe000000 { #size-cells = <2>; ranges = <0x0 0x0 0x0 0xfe000000 0x0 0x480000>; + watchdog@2100 { + compatible = "amlogic,t7-wdt"; + reg = <0x0 0x2100 0x0 0x10>; + clocks = <&xtal>; + }; + uart_a: serial@78000 { compatible = "amlogic,t7-uart", "amlogic,meson-s4-uart"; reg = <0x0 0x78000 0x0 0x18>;