Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp942159pxb; Wed, 6 Apr 2022 04:57:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzPgthjU/lA1uzTF4cvhvZHxIX41J4PfjC6PeaGqMzu8u5jLg9S/YaguIb57H4mVXOVIXpK X-Received: by 2002:a63:4919:0:b0:382:6f3d:e48 with SMTP id w25-20020a634919000000b003826f3d0e48mr6784509pga.613.1649246278682; Wed, 06 Apr 2022 04:57:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649246278; cv=none; d=google.com; s=arc-20160816; b=YnU61FQkCr3WBnUQSfucubql+wfTA5DP2/9QXcGzXK54cG8hTnsktKGOCu6icCyZf6 Gp3qRPo2qvWEd3YSgUnDRHXmvPfF9OIuedb2L+ENdEpO9KXyKaq1VnKlEp+82oaSXoCO nQYNbVW4JsQJIf2jMY9JX7Zfdd+OwZZ/2n5upG0vPT7lWrjx+PzA1agPN/AylDfzH5uF Shu4HX8ZKCHeqpgbQrAY5fxYqjhP/U/eSMhZIVk4betJzHmteIsk42vbsvpuyLs8chbv bMsmssCotfC8CM5hBCX7+xjVpkzx8M/cqeaVxQZVSpwNd1IqRXbeA83YbsjDDVWA8ZSn xCQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:references:mime-version :message-id:in-reply-to:date:dkim-signature; bh=AxU4sa8Q3Vc8i3PPINAb0+zKHHjXN87FdHl8DAkuO3A=; b=ZI6BhnjsYClPry2BVnQCISIdll7H5MOLC+MtbFTGN/0J+E5gMg4au9h6cKUUub7R79 QVl4ulGOLRr8GyWUX1JdpkudZ0dHTcngc3WPx3zYxiQ1f3pdjcWwJUfeTKlLjkYNdgA2 HmbLjWjEMUkJrjTpOKDTGdItXIT37LdVnc/E+93i1GQsmFB7cSdz+5/8N+msHcZoPO3Y 07CvGXsRbJ/q+DU9RmyM05B8F16i5ks6mDg+GaYFPt+MQJ1SIs2f6eczMGZYMIPEfJub fmg75khrWOOCxjLvFnOa5mcbHUbpt2EYWcDB9/wDG7bv+9U3pcxZwAacazb8BASMgVKt xU6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=FXRzPVIx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id b10-20020a63e70a000000b003816043f0d5si15433623pgi.714.2022.04.06.04.57.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 04:57:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=FXRzPVIx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5668F65810D; Wed, 6 Apr 2022 03:20:23 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1837964AbiDFAt2 (ORCPT + 99 others); Tue, 5 Apr 2022 20:49:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49268 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1447346AbiDEPqU (ORCPT ); Tue, 5 Apr 2022 11:46:20 -0400 Received: from mail-wm1-x34a.google.com (mail-wm1-x34a.google.com [IPv6:2a00:1450:4864:20::34a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48936972A2 for ; Tue, 5 Apr 2022 07:21:14 -0700 (PDT) Received: by mail-wm1-x34a.google.com with SMTP id c125-20020a1c3583000000b0038e3f6e871aso4079228wma.8 for ; Tue, 05 Apr 2022 07:21:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=AxU4sa8Q3Vc8i3PPINAb0+zKHHjXN87FdHl8DAkuO3A=; b=FXRzPVIxVwymFA22cVrY4G9XF+i6IJeIFm36Ivz6IzidBy8nhsDs4LElaYBJvgYczS /ZfALuvngPVtoxp2uhnjlCoH8sKQjUd4Y8Z3B74wQ59EnEgYtTtNyvG06VsuftNQpRUM pEEKyJfDF8doBr5LBf/SevUG8rHPEVEselas1nPySjiL3BcYOXg4Dx5/19wwJ+abhGdH yv4MtmZCBEosOU6BkcIM4TKOQOOKuXZzI7m+9w9HXJ9jI6EbpHYvDnSiqkCx+Yn0ObTJ pZEi3NUbwvwcSXvC1wmVQcxJetdUVz59WAgxYVg2CM51mpTtQw+OLRQpBPsi/EVI2ij0 QH+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=AxU4sa8Q3Vc8i3PPINAb0+zKHHjXN87FdHl8DAkuO3A=; b=YDGKb2vvOlreZxNBlKJoqRdAIDpQIN4JfwmF5ori3pT9w/8FYUkDftF+t4LOO7cvA1 rMjVXrbsvvc/BO/LltehxfUvKAfn4rRmvxKfJqlPZdY17gKUJ6WZ6ReKQ2ESytK5rKmO ty8ItJu7XN6BvykD3jmGxWhR1sEHcXNDB78TIssV53qKnWpuOnQqy11wFYMg9nZlrrQM QcSqUGS9LjOyA07YReoT5DdBI4PAQL0ko8RKSnBjJDTjZdSLoFJLN7WPOJKIg0tBC/jb kU1HWdXRzieGRnYJPTG8TcagM0fQBJpahAYI07w4ZCkx9tfgWjYX1UxNKuKLH8+c7wTL jFcA== X-Gm-Message-State: AOAM533JxLzHvwBkmmzXLCskOPvTrnzoYaLuGAcGh+x+ZZ/bk/WxOxRw yeuLehiLGAQd0ZS04Up7G9tUt4IRiWCP8IV1Wf4= X-Received: from sene.c.googlers.com ([fda3:e722:ac3:cc00:28:9cb1:c0a8:27c4]) (user=sebastianene job=sendgmr) by 2002:a05:600c:1c11:b0:38b:4924:9a77 with SMTP id j17-20020a05600c1c1100b0038b49249a77mr383558wms.0.1649168472631; Tue, 05 Apr 2022 07:21:12 -0700 (PDT) Date: Tue, 5 Apr 2022 14:19:54 +0000 In-Reply-To: <20220405141954.1489782-1-sebastianene@google.com> Message-Id: <20220405141954.1489782-2-sebastianene@google.com> Mime-Version: 1.0 References: <20220405141954.1489782-1-sebastianene@google.com> X-Mailer: git-send-email 2.35.1.1094.g7c7d902a7c-goog Subject: [PATCH 1/2] dt-bindings: watchdog: Add qemu,vm-watchdog compatible From: Sebastian Ene To: Wim Van Sebroeck , Guenter Roeck , Rob Herring Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-watchdog@vger.kernel.org, will@kernel.org, qperret@google.com, maz@kernel.org, Sebastian Ene Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.5 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL 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 This watchdog can be used to detect stalls on vCPUs. Signed-off-by: Sebastian Ene --- .../devicetree/bindings/watchdog/vm-wdt.yaml | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 Documentation/devicetree/bindings/watchdog/vm-wdt.yaml diff --git a/Documentation/devicetree/bindings/watchdog/vm-wdt.yaml b/Documentation/devicetree/bindings/watchdog/vm-wdt.yaml new file mode 100644 index 000000000000..5365c963a7f6 --- /dev/null +++ b/Documentation/devicetree/bindings/watchdog/vm-wdt.yaml @@ -0,0 +1,44 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/watchdog/vm-wdt.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: VM watchdog + +allOf: + - $ref: "watchdog.yaml#" + +maintainers: + - Sebastian Ene + +properties: + compatible: + enum: + - qemu,vm-watchdog + clock: + $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 + +unevaluatedProperties: false + +examples: + - | + watchdog { + compatible = "qemu,vm-watchdog"; + clock = <10>; + timeout-sec = <8>; + }; + +... -- 2.35.1.1094.g7c7d902a7c-goog