From patchwork Wed Aug 2 03:32:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Huqiang Qin X-Patchwork-Id: 129596 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f41:0:b0:3e4:2afc:c1 with SMTP id v1csp192501vqx; Tue, 1 Aug 2023 21:13:45 -0700 (PDT) X-Google-Smtp-Source: APBJJlGtuYK/6Tbfgzx4jxxzBzm4L14BF7hp2MYLhi3gnbQDXxWY7HT7sRW7+htsfIslb5cE6e7K X-Received: by 2002:aa7:c1d1:0:b0:522:27f1:3c06 with SMTP id d17-20020aa7c1d1000000b0052227f13c06mr3833655edp.21.1690949625620; Tue, 01 Aug 2023 21:13:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690949625; cv=none; d=google.com; s=arc-20160816; b=eaNh+haLaqC1SSBviEZUCQWYsoOcD9i/WrwOjZBJ+rcvbhv33wX8c6ebOO+/XXUy5h exzKOa8H8Ufqygm4gCvOiBLghS3kb3xj/gGvx32pNUkHbXktHKuQTqCtA0pzgjvxMkqs n4ven7FamwYGEOHkpHDcv308/bdUEO1lICrRORyMSxLg7Aluvz7CT99uwBYU38LhY/8O 4vKG/Y3kvsCMmGra+pqH7gxm9pPy72iSJVlc59O6Fs+kLI0Iz//7oB8KMXDPRkDAABUC 1Swf+wvxPKv4et9RqZBvLjNBi1j9VMaKn/bJzh4W3CNvKPJiyaOZ6bGfeLRx0r1X/i/9 99Bg== 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=OJgRDUDfyfcFNlfuzEfz0WwQC9d8ETqV9Cu9kMpxYv4=; fh=uHQUrutRWktaDH0+9VessQlaoJfjwl78X5jE4KDCpt8=; b=qloI+T5UZ+YvPy3TYEDiMM8/LVI/fwU6GlnLJOs3C/ZOIUB+c/xdj+3G99TRWKN4yt kQ7akPc9Djx3LB35W2ch+bB/QwUAYFZAh5pUFT7Nu+6G7qfOiz0TZ0r2TNEcAOXGAuoi hijU/07KnZYBYqQoFydX64qxs+RIkQ9ViN4LOAcnsTi+2DI7NmXNizr0GkcEiE5nmo6z KE52Kwpr7gxoum49RSFQMDrvPxndl1ZtfLnT5hZSbC8Y3xoZkFScEsRUykfLHjEHdrNt qR6+twEtXuTl3poLX3sD0iRLZuU15HUFFGhIoULEkxV+iQLMCEFd6q3nHVbLGfTgnKA8 j49g== 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 m26-20020a50ef1a000000b00522bafb8d08si73230eds.144.2023.08.01.21.13.22; Tue, 01 Aug 2023 21:13: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 S232005AbjHBDdD (ORCPT + 99 others); Tue, 1 Aug 2023 23:33:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229928AbjHBDct (ORCPT ); Tue, 1 Aug 2023 23:32:49 -0400 Received: from mail-sh.amlogic.com (mail-sh.amlogic.com [58.32.228.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EEB1B12B; Tue, 1 Aug 2023 20:32:47 -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:28 +0800 From: Huqiang Qin To: , , , , , , , , CC: , , , , , Huqiang Qin , "Conor Dooley" Subject: [PATCH V2 1/4] dt-bindings: watchdog: Add support for Amlogic-T7 SoCs Date: Wed, 2 Aug 2023 11:32:19 +0800 Message-ID: <20230802033222.4024946-2-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: 1773089194503788541 X-GMAIL-MSGID: 1773089194503788541 Update dt-binding document for watchdog of Amlogic-T7 SoCs. Signed-off-by: Huqiang Qin Acked-by: Conor Dooley Reviewed-by: Dmitry Rokosov --- V1 -> V2: Unchanged. .../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 Aug 2 03:32:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Huqiang Qin X-Patchwork-Id: 129587 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f41:0:b0:3e4:2afc:c1 with SMTP id v1csp183665vqx; Tue, 1 Aug 2023 20:50:36 -0700 (PDT) X-Google-Smtp-Source: APBJJlGDtXMYHLe+HVaImJxY6RHFNAdXh/oN4Ry6rTGWdYk1MQ7BZiU2g1NgelUOaRY8kLfil1c7 X-Received: by 2002:a05:6a00:1249:b0:674:6dd4:8337 with SMTP id u9-20020a056a00124900b006746dd48337mr17269454pfi.12.1690948235940; Tue, 01 Aug 2023 20:50:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690948235; cv=none; d=google.com; s=arc-20160816; b=yPFGnNesitUvMtRsqIyqGnYati/9QWdPGB9e0iGMGUSPuL1jhdONd6+nVHT/3to18h t0mdQ6EVLheGC0Pp/BV9RfGNE5CaR5VV0/Vbc+2WpE36D8wmrRRV67rR672q9r0KGM+i BAOtdjSF+FoEoHIKPV+73Q0sMT5SCh6ilgMPm0/D3dQuq2x8beyH5QCmSgvJZDIUiT2E 0eFbV8Ke+ee0qT34OSn5P2R66HpKsIjmRXHrXwFfokkeoafp/spHXAz42YvuMKPIAQ9P Xywkrv0vr6iNgo8/OPCVNtqOjzpWgzFY/JHRE/wJp5K7xqFLBikwlmnik3OgQRuOtKum vfvw== 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=SQMQjnZADkemdwHNJcY4Jula6NTZWb3afwBJ+DSh9DA=; fh=lHtUygPuyDqDXmLQa3x6TuiEioC8bNshDFp//Fz2cIM=; b=1KVHibW5KnGfSxIyHxNmFiMwEAnrHY2XZhaRGWpu4Yj2grHiN3KyiBTiwr5UUBunBD thGgx0pcFf6vVri0e7cmNCoVm7A8jkP6mn4tXDL6I4gR5IA17wPVkKQNrMTlBXEQmIjG mvxBomkH2gO49SxJrXg31YzmTgreswJAuBnpdR7nU3yv1Ek72edm4P60DKnrRcSDhVxt CgjvW8t203MIdF+bBj5W5dHHIj0yF7uHDaorWSZ3fpa1B/E3uUOjQcSPsO1g+atPPKK3 IfbFs0OTX0JZCwdMzjmwpReKYtIJHXZpfBBcSD+sPx7ucDdSG7isekcZYQv1hipVhPtq FSpA== 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 z33-20020a056a001da100b006870878c6dbsi1142911pfw.191.2023.08.01.20.50.23; Tue, 01 Aug 2023 20:50:35 -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 S232181AbjHBDeB (ORCPT + 99 others); Tue, 1 Aug 2023 23:34:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232146AbjHBDde (ORCPT ); Tue, 1 Aug 2023 23:33:34 -0400 Received: from mail-sh.amlogic.com (mail-sh.amlogic.com [58.32.228.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E7B71B6; Tue, 1 Aug 2023 20:32:49 -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:29 +0800 From: Huqiang Qin To: , , , , , , , , CC: , , , , , Huqiang Qin Subject: [PATCH V2 2/4] watchdog: Add a new struct for Amlogic-GXBB driver Date: Wed, 2 Aug 2023 11:32:20 +0800 Message-ID: <20230802033222.4024946-3-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: 1773087737467001409 X-GMAIL-MSGID: 1773087737467001409 Add a new structure wdt_params to describe the watchdog difference of different chips. Signed-off-by: Huqiang Qin Reviewed-by: Dmitry Rokosov --- V1 -> V2: Rename rst_shift to rst and use the BIT() macro to build its initial value. 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..18180d91543e 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 { + u32 rst; +}; + 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 = BIT(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 | + params->rst | GXBB_WDT_CTRL_CLK_EN | GXBB_WDT_CTRL_CLKDIV_EN; 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); From patchwork Wed Aug 2 03:32:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Huqiang Qin X-Patchwork-Id: 129602 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f41:0:b0:3e4:2afc:c1 with SMTP id v1csp204968vqx; Tue, 1 Aug 2023 21:45:15 -0700 (PDT) X-Google-Smtp-Source: APBJJlGembN/H9n+NHu5MHij8K5v9x2VWHLX9QWWc91pYmeWmVVA3kbscesegOHgjk1U7w+8hjjI X-Received: by 2002:a17:906:145:b0:98e:933:28fe with SMTP id 5-20020a170906014500b0098e093328femr3955722ejh.66.1690951515357; Tue, 01 Aug 2023 21:45:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690951515; cv=none; d=google.com; s=arc-20160816; b=eBvrM3FUDAz7sKOVp6y2ke0NxQ6dji0JCjPYOWoypk75GAxtLrdi1geiU2Ya2z6tSF yRBdNMaRl+hAFrziN4sgby8Teuil+vv7ZBw5Cnin+jzp11P/Z6WVXsvUwG3z8wLdt1lL wCjLuSYZ6BAKLQn976YN2xcEO97VZO/o+cfcZBvwTE8Ztf64HZs9VWRFbTGOAMGg/R+j 7VBmy2qTCGYFMUhb1TGG9Um001VZDrDaO/7bOsFEak7R0bu9b2WTBhBk3mIddZEVhCir QC8uNR/M+k4lASLZcPSc7si3wo9Sg2s0KSax+0SzXgR+iRgRTP+dm6BNLXc6STg1g1+i rDcQ== 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=fjGlZ8isXViVpY0z87Z+zp0BXZ6pwwJUDq5uFKApOio=; fh=3WoT9kP5q+Sam9PGRwvPEipl2wqumfFk0LZoLIOgIWA=; b=cmLpX2ZqzEh8AzGrAy3OJJBZkH3rI4gPxPiPCRDyBIycevu+e+cEfEPIS3+dMRPsyq IJDB2wwe2FRxm4cltfJo1xivytylQLGHYio9AImWZAA2YrHWsdJN80AE+IMfq55xE3ZK RoGnGiTtPcW2WlyX7eDCaL0OzxvjiVuHN8ec/PyflQvOz95Ic27C69cy8mQ5AEugsNWt d+kSm/1Mjax3pUA57JAEMQGVG2gn8CPoHQAon9HMgu+dfV9GR3QWrQcb63d1taGKVHmV w7pBBVbV5OzWyUZqLdZtGapp9RYOWYIigTsLCVirDAIf/F+dfz6WavInvn2FSfOZcUNp thSA== 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 s23-20020a1709066c9700b0099bcb8f4f00si9698661ejr.409.2023.08.01.21.44.46; Tue, 01 Aug 2023 21:45:15 -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 S232039AbjHBDdH (ORCPT + 99 others); Tue, 1 Aug 2023 23:33:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229606AbjHBDcx (ORCPT ); Tue, 1 Aug 2023 23:32:53 -0400 Received: from mail-sh.amlogic.com (mail-sh.amlogic.com [58.32.228.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94956E4D; Tue, 1 Aug 2023 20:32:52 -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 , "Dmitry Rokosov" Subject: [PATCH V2 4/4] arm64: dts: Add watchdog node for Amlogic-T7 SoCs Date: Wed, 2 Aug 2023 11:32:22 +0800 Message-ID: <20230802033222.4024946-5-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: 1773091176334734866 X-GMAIL-MSGID: 1773091176334734866 Add watchdog device. Signed-off-by: Huqiang Qin Reviewed-by: Dmitry Rokosov --- V1 -> V2: Unchanged. 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>;