Message ID | 20230308034036.99213-4-xingyu.wu@starfivetech.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp117604wrd; Tue, 7 Mar 2023 19:44:52 -0800 (PST) X-Google-Smtp-Source: AK7set+zzz9CGPZ3FDXRjZNX73Xu2xwrVf3Cg9SlFkr39TzblowW/P2ldxglYUdv25JLTCQZU/ni X-Received: by 2002:a17:907:6d92:b0:8ed:e8d6:4e0e with SMTP id sb18-20020a1709076d9200b008ede8d64e0emr24227852ejc.36.1678247091926; Tue, 07 Mar 2023 19:44:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678247091; cv=none; d=google.com; s=arc-20160816; b=EJmE3LZcjgxh9SOhy0a+ZJRuzf/eaPuP7jVYmCL6IUXk+iCx4T0m1BmWxzs3mBcyZZ YqssxKPlnLFzTpzb7L9PnGw9ZSj1a7Gm+nnDBoKt7mL6dFxOHHvu42oIKHTLEx6JWl6l UjyKYMsLiRWLJEIUrin8xb6Ien+KlB91bG5to6hX5evTK8TETb2oDqdx+ae2vE8fBD3z 7XOwGgdRf5XBnPWDrVC9EdKlEFeYzc7dmcDxsdcOTlaQKe0NccNmNyJC+HWSHcdTT4U4 Z4MoekJ6PouQe9mXUFFpRNoaTYHQL0pmpAZ+iJ0EGJzf3iR4SesksBFZEwyFFAOU++FR 4mXw== 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=qRAJ5WcV6lvKicCaH7HPhXugBxWGWKStlhhuv7HGWb4=; b=GLSPQVPJsYQzra9+ulHLVwRmnluhAi5hOBAEZd4E4nsO5ZVRJC68N3TpYsRibPudKa 4Wc/YB+0xhFzFiY0NULEyeuX5Y5YJtIc3+F2c5qdgBaRaIUCxcql7EDdv+38soMDcBaP yKg02YKOEJ9tRebLZOULiRC4Uy0rhggXxe/CHkX5E44MexfsMSerZ8zTMNVhN3LXjKWr Bp9jT3IX2MT3nsvQS6JZ2IvvZzPyeGnslGCRVuPmQHBPS7oDTPeTcG4f1Di8bFPfB+/y 5trLAg8u8+bBdJ9oaZJhLZeGL1sV6jVzu6aX3kvaRmSkG/0GZfQMa2xKhPapKOM4/COR kj8Q== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mp18-20020a1709071b1200b008dbbcfae102si2632349ejc.773.2023.03.07.19.44.28; Tue, 07 Mar 2023 19:44:51 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229975AbjCHDlT convert rfc822-to-8bit (ORCPT <rfc822;toshivichauhan@gmail.com> + 99 others); Tue, 7 Mar 2023 22:41:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229891AbjCHDku (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 7 Mar 2023 22:40:50 -0500 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0CCB893E3F; Tue, 7 Mar 2023 19:40:47 -0800 (PST) Received: from EXMBX166.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX166", Issuer "EXMBX166" (not verified)) by fd01.gateway.ufhost.com (Postfix) with ESMTP id 6C07524E328; Wed, 8 Mar 2023 11:40:40 +0800 (CST) Received: from EXMBX061.cuchost.com (172.16.6.61) by EXMBX166.cuchost.com (172.16.6.76) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Wed, 8 Mar 2023 11:40:40 +0800 Received: from localhost.localdomain (183.27.97.46) by EXMBX061.cuchost.com (172.16.6.61) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Wed, 8 Mar 2023 11:40:39 +0800 From: Xingyu Wu <xingyu.wu@starfivetech.com> To: <linux-riscv@lists.infradead.org>, <devicetree@vger.kernel.org>, <linux-watchdog@vger.kernel.org>, Wim Van Sebroeck <wim@linux-watchdog.org>, Guenter Roeck <linux@roeck-us.net>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Emil Renner Berthing <kernel@esmil.dk>, Conor Dooley <conor@kernel.org> CC: Rob Herring <robh+dt@kernel.org>, Paul Walmsley <paul.walmsley@sifive.com>, Palmer Dabbelt <palmer@dabbelt.com>, Albert Ou <aou@eecs.berkeley.edu>, Philipp Zabel <p.zabel@pengutronix.de>, Xingyu Wu <xingyu.wu@starfivetech.com>, Samin Guo <samin.guo@starfivetech.com>, <linux-kernel@vger.kernel.org> Subject: [PATCH v4 3/3] riscv: dts: starfive: jh7100: Add watchdog node Date: Wed, 8 Mar 2023 11:40:36 +0800 Message-ID: <20230308034036.99213-4-xingyu.wu@starfivetech.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230308034036.99213-1-xingyu.wu@starfivetech.com> References: <20230308034036.99213-1-xingyu.wu@starfivetech.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [183.27.97.46] X-ClientProxiedBy: EXCAS066.cuchost.com (172.16.6.26) To EXMBX061.cuchost.com (172.16.6.61) X-YovoleRuleAgent: yovoleflag Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_MSPIKE_H2, SPF_HELO_PASS,SPF_PASS 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759769622776031543?= X-GMAIL-MSGID: =?utf-8?q?1759769622776031543?= |
Series |
Add watchdog driver for StarFive JH7100/JH7110 RISC-V SoCs
|
|
Commit Message
Xingyu Wu
March 8, 2023, 3:40 a.m. UTC
Add watchdog node for the StarFive JH7100 RISC-V SoC.
Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
---
arch/riscv/boot/dts/starfive/jh7100.dtsi | 10 ++++++++++
1 file changed, 10 insertions(+)
Comments
On Wed, 8 Mar 2023 at 04:42, Xingyu Wu <xingyu.wu@starfivetech.com> wrote: > > Add watchdog node for the StarFive JH7100 RISC-V SoC. > > Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com> > --- > arch/riscv/boot/dts/starfive/jh7100.dtsi | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/arch/riscv/boot/dts/starfive/jh7100.dtsi b/arch/riscv/boot/dts/starfive/jh7100.dtsi > index 000447482aca..1eb7c21a94fd 100644 > --- a/arch/riscv/boot/dts/starfive/jh7100.dtsi > +++ b/arch/riscv/boot/dts/starfive/jh7100.dtsi > @@ -238,5 +238,15 @@ i2c3: i2c@12460000 { > #size-cells = <0>; > status = "disabled"; > }; > + > + wdog: watchdog@12480000 { I don't see anything referencing this node, so the label can be dropped. With that fixed: Reviewed-by: Emil Renner Berthing <emil.renner.berthing@canonical.com> > + compatible = "starfive,jh7100-wdt"; > + reg = <0x0 0x12480000 0x0 0x10000>; > + clocks = <&clkgen JH7100_CLK_WDTIMER_APB>, > + <&clkgen JH7100_CLK_WDT_CORE>; > + clock-names = "apb", "core"; > + resets = <&rstgen JH7100_RSTN_WDTIMER_APB>, > + <&rstgen JH7100_RSTN_WDT>; > + }; > }; > }; > -- > 2.25.1 > > > _______________________________________________ > linux-riscv mailing list > linux-riscv@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-riscv
On 2023/3/9 0:09, Emil Renner Berthing wrote: > On Wed, 8 Mar 2023 at 04:42, Xingyu Wu <xingyu.wu@starfivetech.com> wrote: >> >> Add watchdog node for the StarFive JH7100 RISC-V SoC. >> >> Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com> >> --- >> arch/riscv/boot/dts/starfive/jh7100.dtsi | 10 ++++++++++ >> 1 file changed, 10 insertions(+) >> >> diff --git a/arch/riscv/boot/dts/starfive/jh7100.dtsi b/arch/riscv/boot/dts/starfive/jh7100.dtsi >> index 000447482aca..1eb7c21a94fd 100644 >> --- a/arch/riscv/boot/dts/starfive/jh7100.dtsi >> +++ b/arch/riscv/boot/dts/starfive/jh7100.dtsi >> @@ -238,5 +238,15 @@ i2c3: i2c@12460000 { >> #size-cells = <0>; >> status = "disabled"; >> }; >> + >> + wdog: watchdog@12480000 { > > I don't see anything referencing this node, so the label can be dropped. > With that fixed: > Reviewed-by: Emil Renner Berthing <emil.renner.berthing@canonical.com> > Will drop the label and just use: watchdog@12480000 { Best regards, Xingyu Wu
diff --git a/arch/riscv/boot/dts/starfive/jh7100.dtsi b/arch/riscv/boot/dts/starfive/jh7100.dtsi index 000447482aca..1eb7c21a94fd 100644 --- a/arch/riscv/boot/dts/starfive/jh7100.dtsi +++ b/arch/riscv/boot/dts/starfive/jh7100.dtsi @@ -238,5 +238,15 @@ i2c3: i2c@12460000 { #size-cells = <0>; status = "disabled"; }; + + wdog: watchdog@12480000 { + compatible = "starfive,jh7100-wdt"; + reg = <0x0 0x12480000 0x0 0x10000>; + clocks = <&clkgen JH7100_CLK_WDTIMER_APB>, + <&clkgen JH7100_CLK_WDT_CORE>; + clock-names = "apb", "core"; + resets = <&rstgen JH7100_RSTN_WDTIMER_APB>, + <&rstgen JH7100_RSTN_WDT>; + }; }; };