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: 13327912 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C838BC0015E for ; Wed, 26 Jul 2023 11:55:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=A4x0xLTUU2/nCDT5PbGxcQj5Xgx0AEgdLvswNTDgHU8=; b=TEw3v8+ezfnzSE JucXhE8+meMbFMK6CaoW9xQT5u4ytY8Zj5piYIFNh5vri65D5alZsPPUBPfTs6efhPUYNnKohGmEq Eu17MG2UHmEmN1QGH+griWV/T7252cjPFoYWtO0kzQVXRcrF5foJjcuw5Htqx++Hu2xI4mSgdJy0P zqBkRKi+PGf7UiYQtzDGlZKXfsj5PknAgTtInNNf3pSm9rxHrZMc616nP/SzCvkGaBv08qvdGinaU EfQsxElafOG2Yq/lH+rc44AsnctuPQxJOOx+s3lw0ZgHvieReTyhEJUN8QVegElaxrKLaiy2KWJ0u nsR33bi5CPCibPM2UmJA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qOd6h-00AFew-1x; Wed, 26 Jul 2023 11:55:07 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qOd6g-00AFdj-0J; Wed, 26 Jul 2023 11:55:06 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Type:Content-Transfer-Encoding :MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From: Sender:Reply-To:Content-ID:Content-Description; bh=K0ynCD+/JwB68gob6lOamTCJX1Gw9qJZSlEwIL0zPvo=; b=IUwJd8sUPG2D01GrUueOQcbjf3 +Z2+WYdql/pKYfDA7PRR4IF3Jcre34KNU0cjcFR3/Rc/ZcI1oOPn2ZSHBVAtbnSWJWB2iQwjhMFwN 3p95GuYJ/6CvkoVtYUm30Np50u2npiBoPAXCziICHuFsLFvy8aEeS4qtEUC4mM8mtj/9uDMkqIp63 8pMgKEqY+AmjKvQW1VLRTXzQ8ryUKCNyNjy/D5QMerdNKv3mZQAUrkN+m643VEn6JV/lC4Q7Bb9rw 1Hye/YGvCh+H9Ui4ka/efi2Dl3xNqovjabGzAz6XGmHioghJTq2bJ56p9w1qOcdD/0DuBoMNX6Wna 2M6V4Ieg==; Received: from mail-sh.amlogic.com ([58.32.228.43]) by desiato.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qOcbO-005pDe-2t; Wed, 26 Jul 2023 11:22:48 +0000 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230726_122247_245576_A8FA5771 X-CRM114-Status: UNSURE ( 6.68 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org 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: 13327913 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9CCEBC0015E for ; Wed, 26 Jul 2023 11:56:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=WgmtlsVVU8T3wBFRn5nexXb4WjBEqFsLGjUCkHv8LUA=; b=OU7X1YYi23wPLc lm+ZMhGFyEYsap28MXjn6pACvQQuqmKuAit+BKdwHBtCsiVeA7VGF9gy7YSOW1x3XhqQ+NafXjkVK lPpUyoByw70s7s+8HBzIi/MQCMEb04BeYacOgi3AH9Iu7zlEkwiSORGzbSkTPGypLPr06Sbir2kDZ EBLafvxGLQaEJEg7ODTPF2giIVtTyv9qbSvc/piPaSrvqSfmXDlCOeOEmraSotyf+r86RXovqFpDl g2pFk/9mGpvSbiUj5McYxuSLaRPe4w8HvMIs280Nt+eFGmWKB73YGVZjvyEgv17Rjxqsx/9/H3Hbi ZnlBUon7cEHL+iBHhpEg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qOd7M-00AG3q-2W; Wed, 26 Jul 2023 11:55:48 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qOd7D-00AFyx-1H; Wed, 26 Jul 2023 11:55:39 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Type:Content-Transfer-Encoding :MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From: Sender:Reply-To:Content-ID:Content-Description; bh=ZYvZRTaa9HmNCnS39xZ6WqO7oa0qg3Khkbi5chaJiTY=; b=SehPZ+cxvgjOqvFb37ennXN7ZQ sUyBAIY+5KolZrUkASqP3JwTWpqhSlkFUpGo3NPdiwmMvUk1zCStn7M6lTEiqbm14bRwGYL0CHSdA 1vsXCZwTF1IEhn26/+VLiIfHsOXm76lzZY5MLK85yGK/0qtmVqULpHQ6uJIlMGCBfaCudVVxs5tpY Nlf9qqmjhY/XcFXK1GbrjfaKpQaj4Ff4T67Cm+jpO+1pWJ3TjC0Bp1Vljf4P5jXOQWVLAXzj5utcj qWAOrpRyJP14ws8uiGDw4JYyL16ySMMFx6OklWLqrnNmWMo6M2+meHZszubfXLEkXcDbm5F/dKVst XfjWEKgg==; Received: from mail-sh.amlogic.com ([58.32.228.43]) by desiato.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qOcbR-005pDe-29; Wed, 26 Jul 2023 11:22:51 +0000 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230726_122249_889899_9946CFD5 X-CRM114-Status: GOOD ( 13.44 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org 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: 13327915 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8CD57C001B0 for ; Wed, 26 Jul 2023 11:57:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=QX1ZeNxMZagpw66X/k5g7rvWLrdgDCQ4hHcgIffKakw=; b=aFm6+xR94ZOARH A5oBv0cWQijjGOZZTDe6XuKFkyfbjgY9eVGPn9vWOSUgPhGsogvRJPTHQw9jMgtXVeziuzd1FDgTZ NKRzViQmttTbai4xAMl9hYEuArB38AxoqsR6Y/I7rGJrz1MiGGEGu5CsegKAsf89GVTZQaJ3RcP0k GnjoDme2+NM+W16SI88fCpoKr9ehhDgcOqpKymcvS7k1xWFLC6B6E/y615mkCdrH4Kvm3ndtAe1UW yNPEsnmeY2//E63TPa4ZckyRW17rcRBT6rX2gwznUrnQfiVGAKkDgCiCz6klH+JBpt/gLLa4+wINC Ml52JNnZIiPf1dyNMWtw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qOd8H-00AGZb-21; Wed, 26 Jul 2023 11:56:45 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qOd8F-00AGYD-2p; Wed, 26 Jul 2023 11:56:43 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Type:Content-Transfer-Encoding :MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From: Sender:Reply-To:Content-ID:Content-Description; bh=6OrOunRbobEVYxEiv7Iyx0lwT+G6sADpP2biil22mPU=; b=BX3OhH/CMyQog/dxPbsypMaitz oJyFMHJcB5JGyZ77VzTwxOkX2tDd6FRrigTc4ldMrAlwgwFA/VJcI5b2n+8ZMRFQ1tgzI1BIb/4rB hARvSTGcy7pMCJryQaBtp8L88Z6hgdmJsuoIE3Y0ktFJZZrQr+ZA+K+cIvm7teAO8Hg0pyPf5Fr/I vztxRarPNaT7qxl8oxm2583fzEXv3slGs5kgxLQEIoU4eKEEymnCjshjufUMRyvASBYYrCtueqRtz TU4otgaTQmrIjy9QT2PSKHPuwXfrDzGAKCFAJE3eFbkB0IhN1M0OTaAObYbvKD1Oqgv/hC2CDP9lN PvSbgMTQ==; Received: from mail-sh.amlogic.com ([58.32.228.43]) by desiato.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qOcbU-005pDe-2B; Wed, 26 Jul 2023 11:22:54 +0000 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230726_122252_800656_FD71729C X-CRM114-Status: UNSURE ( 8.92 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org 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: 13327914 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CAD16C001B0 for ; Wed, 26 Jul 2023 11:56:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=/7djtz3Tx/gDWJj4s9kwEqGl7pA8BcmipUpGOxmn/PQ=; b=mCEt3xWAOTKefI oWOmsv7HlApUjp+0WjNPY4FDLlZ8YKVWAVJHGoCpVH1DzkgeEHSf9i+7GFosXcH9kPQmo2uPeXPsy HNCnxfi8j4z+Da6YY6kUmNhyRDKIRPWdafTNdDegY12nw/28mczGOYo7cn5xi3tyzcGNvzZE98Gr0 gNPDvxEsm1mMwksly2xE2wPd3ADc8/mp/dpXTdfyw5VAVABJFUn+Rbcy6R80zqcObKVyBZqZRrQeB tsVWoy5LAAg3Cvspe2EsHAMY3a2qMl0j8jX2PpACzFm0Tj/Yi2vp74IBz0oitXCNj7/+YbDR24fTW 0XKUFGzV0Ygvh65V2N4w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qOd7Y-00AGB6-21; Wed, 26 Jul 2023 11:56:00 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qOd7W-00AG9H-1e; Wed, 26 Jul 2023 11:55:58 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Type:Content-Transfer-Encoding :MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From: Sender:Reply-To:Content-ID:Content-Description; bh=VhboGLS11TzUzKPRjVJn6O99zy02+RjKyU78MoSm4AI=; b=na9Zug3UMGZTC+XrRe0fRBxMjY Q7UdyjUv+NyzlHholKg8Sc7BnVlV46sHiLljS/PWolJzb+Wy1vrcnD7Dr6K3knPR2fpaYupsZv9Bf 8Abmo1UEXtRyy5xxYYybr83yu+JoSZ/z8LoVUmTmv88q1py8rGJOfw7J2aUgQvnpjaI2EROifsKXA eO4lmz0/NGMYbH0uFbkid4gjxZMQiyIph0J/5IS/u1V9og/RIW7HWH4aqTYbIEMrGN1SvBuVFmF/a BeEDKT05Tj60GewHzq/KMYcefjByo/E2v+wIorPID5D9/WXp3Q/mq0rzJGRayoxoNKalywZJY0BFy 226W3fkg==; Received: from mail-sh.amlogic.com ([58.32.228.43]) by desiato.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qOcbX-005pDe-05; Wed, 26 Jul 2023 11:22:56 +0000 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230726_122255_216450_77EBE61A X-CRM114-Status: UNSURE ( 6.99 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org 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>;