From patchwork Wed Mar 8 03:40:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xingyu Wu X-Patchwork-Id: 66003 Return-Path: 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 + 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 ); 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 To: , , , Wim Van Sebroeck , Guenter Roeck , Krzysztof Kozlowski , Emil Renner Berthing , Conor Dooley CC: Rob Herring , Paul Walmsley , Palmer Dabbelt , Albert Ou , Philipp Zabel , Xingyu Wu , Samin Guo , 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 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 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: 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?= Add watchdog node for the StarFive JH7100 RISC-V SoC. Signed-off-by: Xingyu Wu Reviewed-by: Emil Renner Berthing --- 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 { + 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>; + }; }; };