Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp3463165iob; Sat, 7 May 2022 05:56:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy3xNXnhrZOsTT1DAazmwj71mv1SxlUcj3L6791zCqfwBPM4rRA34eLDVQF+8CWrMM7EL9p X-Received: by 2002:a63:4723:0:b0:3c2:69ab:df80 with SMTP id u35-20020a634723000000b003c269abdf80mr6361112pga.23.1651928204663; Sat, 07 May 2022 05:56:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651928204; cv=none; d=google.com; s=arc-20160816; b=nj68HZZbhZPM4aDxj7ssOOezPRZF2z4ZnHjPG/MU7uYavZWX4YghdKJ0f1r+ELswL0 odU+SXFTAHHNRpkGnyDVxU+tv6mEZXwG1YSb5H8WjWAZY3nYJvPxG0LfBksk4FIF0ST9 hJDZM2xR2mBCiCJGIlmU2uGS0TvCzX/cCuj3Xf77+J9oczCH9VSaVdkZKwdsazSdtXyx Xcfchhq6yeWY5mzZ9wv8+lrDn/XEDI4toRRgcSVUGfh0JfB+kyPpyK3g9HU1VcNccJIu r6UfpGvPq+ii3J7oVZrJCUOFmS2QpsOgjoIdGRQTIKEWEGC9TBrR5gUVJwAifiM0mqFn 41iw== 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:dkim-signature; bh=ocuJE0gAGEqaqKxUV4jvj8obtrJ431aiQbMs9D9K8C4=; b=lMPS6MSBTECIez5bTUrH8FBsuIZtpNwh6YB6MplMjTPQ0SWovyzKbEWNtHSNrPeiTB NagJ0NM/BH7WtGfqeZ3kW6/uZ0D7nUn/ePziuDzPbRha+57oq2yseNAhaTTaKf0vrYZ+ Rh//oxhDzfoAxE1LTEfwO6Tqn0U6pTUA9Ve8C406RU6Uka5WVV3KsISUhX7lauhTD6/O znXqKlaCohU1uhmbtiAO00gbiuLsnRDKJ+hVUpTwQgCHW5+kNlFj+u+l59HW3dyjgbJG 8eWhoWDzu194WifPUpXLTbKIca4OgKqRyYudFFI4RgMmx/6c8wGBAu1QXEw57A6k3/L8 rFTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=Rt3p2REQ; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p11-20020a17090a74cb00b001dbd3fc29c7si11845056pjl.70.2022.05.07.05.56.30; Sat, 07 May 2022 05:56:44 -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=@google.com header.s=20210112 header.b=Rt3p2REQ; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1446044AbiEGIUG (ORCPT + 99 others); Sat, 7 May 2022 04:20:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45072 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238744AbiEGIUE (ORCPT ); Sat, 7 May 2022 04:20:04 -0400 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 397AEA7 for ; Sat, 7 May 2022 01:16:18 -0700 (PDT) Received: by mail-wm1-x32e.google.com with SMTP id a14-20020a7bc1ce000000b00393fb52a386so8126151wmj.1 for ; Sat, 07 May 2022 01:16:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=ocuJE0gAGEqaqKxUV4jvj8obtrJ431aiQbMs9D9K8C4=; b=Rt3p2REQwsRDFGcxc3f5ldBLgHOLUPQjis5BAVkVrGD/bwgBomG2SR2kPYmDlt7bto rRatI1I614wEHxyZ2Gc4oCwOWThnJQ2EB4EHYxJNi3adcUjk51D8SQGS3B3hTtPtCFKA /Af1ET/T3OXRbb8k5QL0+QmJiuPRAMWrDEhBJztaydK4d3KIvldLJmh4sEMYvQqZNQet eWZd4YXeSHU/6y64khr+LUBIAUZ1/ItXV7hgg/DW9yWYI8PbFt4kUOH/rCwbgghgENHN N+RpSTEhkHVc/lPsGrDzPSZLOn8o+MnHAi8cfsVZaLAUQdom3OCdM6O2cmOO07+QQHFI BM7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=ocuJE0gAGEqaqKxUV4jvj8obtrJ431aiQbMs9D9K8C4=; b=R2mog/z7wLSWgv+oVImR4JSEdtSmTLS2WofAdEiwZmVGRfuUygq0OhIqj5ZxJzqyB1 CJUdsp9JrdPxlEYmiuAlSzYUflOjNMsmJ91f5A2jExA278w2aj0AL+yA3d6kjMjf/x54 1z75uMMUql5moODAN+QQuixrCZUyAj13sa+n93ZZVy8/Ulex1uvp5oYGsKy2vuZC0kAm cHkQQ5KMJLsk88qfc0HuOPEKksZFPN2Sl9q+RoxVl3VVby0X22X/Fo71lpXxtCdb3S3D PwwJbgB6u5RkIc6xEQIcSfh79zznrY+2bWcNuJlsk4Q6R2SxM8386snE80LcV2KT7FRj tbMA== X-Gm-Message-State: AOAM533NcFYHK2zNeMKpzQ/9l/ouYQk8JclypMlGMRBY4AwDZW2h+swO iKeIobs86Lsgr14Zq84oPWpfYA== X-Received: by 2002:a05:600c:281:b0:394:1075:fe3e with SMTP id 1-20020a05600c028100b003941075fe3emr13513613wmk.155.1651911376473; Sat, 07 May 2022 01:16:16 -0700 (PDT) Received: from google.com (49.222.77.34.bc.googleusercontent.com. [34.77.222.49]) by smtp.gmail.com with ESMTPSA id v128-20020a1cac86000000b003942a244f56sm10957782wme.47.2022.05.07.01.16.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 May 2022 01:16:16 -0700 (PDT) Date: Sat, 7 May 2022 08:16:14 +0000 From: Sebastian Ene To: Sebastian Ene Cc: linux-kernel@vger.kernel.org, Derek Kiernan , Dragan Cvetic , Arnd Bergmann , devicetree@vger.kernel.org, qperret@google.com, will@kernel.org, maz@kernel.org, Greg Kroah-Hartman , Rob Herring , Guenter Roeck Subject: Re: [PATCH v4 1/2] dt-bindings: vm-wdt: Add qemu,vm-watchdog compatible Message-ID: References: <20220429083030.3241640-1-sebastianene@google.com> <20220429083030.3241640-2-sebastianene@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220429083030.3241640-2-sebastianene@google.com> X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 On Fri, Apr 29, 2022 at 08:30:31AM +0000, Sebastian Ene wrote: > The stall detection mechanism allows to configure the expiration > duration and the internal counter clock frequency measured in Hz. > Add these properties in the schema. > > Signed-off-by: Sebastian Ene > --- > .../devicetree/bindings/misc/vm-watchdog.yaml | 45 +++++++++++++++++++ > 1 file changed, 45 insertions(+) > create mode 100644 Documentation/devicetree/bindings/misc/vm-watchdog.yaml > > diff --git a/Documentation/devicetree/bindings/misc/vm-watchdog.yaml b/Documentation/devicetree/bindings/misc/vm-watchdog.yaml > new file mode 100644 > index 000000000000..d7cca23357ab > --- /dev/null > +++ b/Documentation/devicetree/bindings/misc/vm-watchdog.yaml > @@ -0,0 +1,45 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/misc/vm-watchdog.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: VM watchdog > + > +description: | > + This binding describes a CPU stall detector mechanism for virtual cpus > + which is accessed through MMIO. > + > +maintainers: > + - Sebastian Ene > + > +properties: > + compatible: > + enum: > + - qemu,vm-watchdog > + clock-frequency: > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: | > + The watchdog internal clock measure in Hz used to decrement the > + watchdog counter register on each tick. > + Defaults to 10 if unset. > + timeout-sec: > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: | > + The watchdog expiration timeout measured in seconds. > + Defaults to 8 if unset. > + > +required: > + - compatible > + > +additionalProperties: false Hi, > + > +examples: > + - | > + watchdog { > + compatible = "qemu,vm-watchdog"; > + clock-frequency = <10>; > + timeout-sec = <8>; > + }; > + > +... > -- > 2.36.0.464.gb9c8b46e94-goog > I was thinking to move the properties clock-frequency and timeout-sec as part of the emulated watchdog registers and keep only the registers property in the DT. Thanks, Seb