Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp2973176rwe; Sun, 16 Apr 2023 09:02:23 -0700 (PDT) X-Google-Smtp-Source: AKy350Y9oEE8Mc1KR7o16MZnHMRpMwVbS6Yp0a8zPuwh+mzMz37yo3qphNssiWGP8sQIFznvvaX0 X-Received: by 2002:a17:902:ceca:b0:1a6:5332:25b with SMTP id d10-20020a170902ceca00b001a65332025bmr12089186plg.42.1681660943552; Sun, 16 Apr 2023 09:02:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681660943; cv=none; d=google.com; s=arc-20160816; b=BCPb2MUH9CYcqNQ0AjP8PcdfhMf4YyrtgXkGrge0Rdk8PiPh76Kk3n3GHzrDKQG78H EqXe/TE0aohFdCbActHnbHh0kC6e0+letNnS4CMFunDT2uga0ZrbUG4FFDm+INLp3Pqa kplfp7ZDMorCLR6Z4Nh2CZbZnsD3olyTDrUhMSNYzkFzSdWp9HDGqE5ISHktvcNWKfV0 1OlL3lntXVBdRB4GUK4f1/wiwcH1t1C2dtTuXqxOi0/NZi7XaOuZ7pm1zz8d1tFELPyl GR5Do8lzHwmiFAohZLhP/aIapK8FzEuBVP0riJ5DGwky9R8Yg1PIU0Wf4DPgZaZf4N17 4HHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:sender:dkim-signature; bh=bimSNd6xEhIq8jA9htH7BjEd6GsGtZ/bQFysqXyDsPY=; b=yenZB3eOCxgKLpHv4xZFdjSwNkPjmM3TzO/UvJvjXjHU4hS9pOdybCxRXbwwuhWJI8 tVysBibIu/dt+jUDJYtbWejzrJcvPESi873XDBGkjMAyr9BMCDt18KERyFvdtuLFONRe 7bfROI86WL2gSeOXUlJn/04E4xyjAF2UUAJU9O1dN+dWGYecrNNc6O0EZVNsQrwdrg21 0QX5EK2W1CJBH7b/J9Fr5QJGlqLkbIT1a0PAYLqF+8xV+Xpich45yyC1lzE8pPNQoCla o4kq9GAO3De8iJrYh6PknzIHdCFt/9E6iRXe4wG+oIqX/3/Vj87V/jxsl2NvzevJTTaS 4haQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=L9fdHOka; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l3-20020a170902f68300b001a1b776489dsi10568770plg.300.2023.04.16.09.02.11; Sun, 16 Apr 2023 09:02:23 -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; dkim=pass header.i=@gmail.com header.s=20221208 header.b=L9fdHOka; 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 S230319AbjDPPyM (ORCPT + 99 others); Sun, 16 Apr 2023 11:54:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229446AbjDPPyL (ORCPT ); Sun, 16 Apr 2023 11:54:11 -0400 Received: from mail-io1-xd34.google.com (mail-io1-xd34.google.com [IPv6:2607:f8b0:4864:20::d34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 797952D78; Sun, 16 Apr 2023 08:54:10 -0700 (PDT) Received: by mail-io1-xd34.google.com with SMTP id ca18e2360f4ac-760ec550833so30367739f.3; Sun, 16 Apr 2023 08:54:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681660450; x=1684252450; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=bimSNd6xEhIq8jA9htH7BjEd6GsGtZ/bQFysqXyDsPY=; b=L9fdHOkaueZCGnggsVEqGNsBL0NjmhD0edl9v1kf3/xgWmYnGmNi9nm5+0owWt3k6D Ws4GmQpIw2XcEgZVUfljQBuUTjQLTzDdBm8DbNkZDyavieXNCRGTz885287fCPrkbZni p5VdUVQCztd7vSH1cXOZghBxxmob304rzZ28GiZ427CHTBMHggsVsYKu78iQhXHg28g3 TPHkIhEn7Zb8nv3s9Om+MISSRBTDw33+viGyP1T5ekY2c//XnUNJ5+5AHV5c0um8up6p /q0FE6wdhNAnV4SMCNGrS5TaZOQ8gIhyY9BiiXWW6UN5rbHn6tqsD9Vk1XQT90laYeIH YIiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681660450; x=1684252450; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=bimSNd6xEhIq8jA9htH7BjEd6GsGtZ/bQFysqXyDsPY=; b=Vmu5JBYxRz9hqOr9Gjajks1/VX8McilOcKfmPco7Gbf+vQ6cpg68n39aKVQrSjYr3v Iu0SnLJJ3xyf6anI+EjGsBYaF4x0MRFuc/QKbhLYU+TF9tzb/1ryT2uLu9lqPxxc+wna 7yjGw3RPwD0+hH6LIjlEsADJuPf6+1amXr1Z0smXNK0n/UfhRQDUaLEoMAki3LsdOr1u ruFQW4rIoMxkFEz+QLdye3vwHYY7N9g4X8SzCG++gnsYXE9rSQctOJxodMJGo8Oui0Xf TVAxMK79aNkp4V4+Sc4m5c/pdWwFbYrCd/nmZUqE1umbgmgvm3QqmVy0wAHitcAd3FRd moPw== X-Gm-Message-State: AAQBX9c+L/Mb9IJQFb2+HB4XvSv9F2wn6UhbdHsnY17vgIttdep+40GB c4tgM1viQGhEeklsFwh4/xE= X-Received: by 2002:a92:c648:0:b0:32a:dfdd:1d80 with SMTP id 8-20020a92c648000000b0032adfdd1d80mr2923101ill.23.1681660449768; Sun, 16 Apr 2023 08:54:09 -0700 (PDT) Received: from server.roeck-us.net ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id y10-20020a927d0a000000b00312f2936087sm1021391ilc.63.2023.04.16.08.54.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 Apr 2023 08:54:09 -0700 (PDT) Sender: Guenter Roeck Date: Sun, 16 Apr 2023 08:54:08 -0700 From: Guenter Roeck To: Xingyu Wu Cc: linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-watchdog@vger.kernel.org, Wim Van Sebroeck , Krzysztof Kozlowski , Emil Renner Berthing , Conor Dooley , Rob Herring , Paul Walmsley , Palmer Dabbelt , Albert Ou , Philipp Zabel , Samin Guo , linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 1/3] dt-bindings: watchdog: Add watchdog for StarFive JH7100 and JH7110 Message-ID: References: <20230314132437.121534-1-xingyu.wu@starfivetech.com> <20230314132437.121534-2-xingyu.wu@starfivetech.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230314132437.121534-2-xingyu.wu@starfivetech.com> X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=no 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 On Tue, Mar 14, 2023 at 09:24:35PM +0800, Xingyu Wu wrote: > Add bindings to describe the watchdog for the StarFive JH7100/JH7110 SoC. > And Use JH7100 as first StarFive SoC with watchdog. > > Signed-off-by: Xingyu Wu > Reviewed-by: Krzysztof Kozlowski Reviewed-by: Guenter Roeck > --- > .../watchdog/starfive,jh7100-wdt.yaml | 71 +++++++++++++++++++ > 1 file changed, 71 insertions(+) > create mode 100644 Documentation/devicetree/bindings/watchdog/starfive,jh7100-wdt.yaml > > diff --git a/Documentation/devicetree/bindings/watchdog/starfive,jh7100-wdt.yaml b/Documentation/devicetree/bindings/watchdog/starfive,jh7100-wdt.yaml > new file mode 100644 > index 000000000000..68f3f6fd08a6 > --- /dev/null > +++ b/Documentation/devicetree/bindings/watchdog/starfive,jh7100-wdt.yaml > @@ -0,0 +1,71 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/watchdog/starfive,jh7100-wdt.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: StarFive Watchdog for JH7100 and JH7110 SoC > + > +maintainers: > + - Xingyu Wu > + - Samin Guo > + > +description: > + The JH7100 and JH7110 watchdog both are 32 bit counters. JH7100 watchdog > + has only one timeout phase and reboots. And JH7110 watchdog has two > + timeout phases. At the first phase, the signal of watchdog interrupt > + output(WDOGINT) will rise when counter is 0. The counter will reload > + the timeout value. And then, if counter decreases to 0 again and WDOGINT > + isn't cleared, the watchdog will reset the system unless the watchdog > + reset is disabled. > + > +allOf: > + - $ref: watchdog.yaml# > + > +properties: > + compatible: > + enum: > + - starfive,jh7100-wdt > + - starfive,jh7110-wdt > + > + reg: > + maxItems: 1 > + > + interrupts: > + maxItems: 1 > + > + clocks: > + items: > + - description: APB clock > + - description: Core clock > + > + clock-names: > + items: > + - const: apb > + - const: core > + > + resets: > + items: > + - description: APB reset > + - description: Core reset > + > +required: > + - compatible > + - reg > + - clocks > + - clock-names > + - resets > + > +unevaluatedProperties: false > + > +examples: > + - | > + watchdog@12480000 { > + compatible = "starfive,jh7100-wdt"; > + reg = <0x12480000 0x10000>; > + clocks = <&clk 171>, > + <&clk 172>; > + clock-names = "apb", "core"; > + resets = <&rst 99>, > + <&rst 100>; > + };