From patchwork Tue Apr 5 14:19:54 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Ene X-Patchwork-Id: 558763 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 33446C433EF for ; Wed, 6 Apr 2022 01:42:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236138AbiDFBf6 (ORCPT ); Tue, 5 Apr 2022 21:35:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1447345AbiDEPqU (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 4888A97291 for ; Tue, 5 Apr 2022 07:21:14 -0700 (PDT) Received: by mail-wm1-x34a.google.com with SMTP id z16-20020a05600c0a1000b0038bebbd8548so1418905wmp.3 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=hqr7TqBq+tEcr37CDYjyrMCPE3kjbQ9AeKYFwJftHcnJkvjhP5UGY1i4BLrixUT/xl 8eWh5E4EWVLpN0q+/JJwJ8XPs85yuDvgJK+2zVwVzwQK/JMzRW2zvlqMm6XYyxGHLd5B p6jKu5UWeWK8zo8fpU6VDpvuHpnuL4O+/AO1ebyTN4qVq8ClIpRIN6P9qXpA8wYmuVrA H+b/C8/mT6CfpETUWX3vkeUrdk/XE730i0EsYtXSQC9hX0ij2D4bltazYU9uJaDpLqQM DhnO7oLYLrgCgGsT/i3aULWg1uJmACeNikspfsOND+JKcKmgdJVqdBvygBT+VMMboX+8 BPMg== X-Gm-Message-State: AOAM5327iiY6a+L4NYiMhKqOC3MzQeUBZt1gcPJ6/8OD57b9t8FPyZNk eSVxP+TJMBcO0EdAU2Bcquui7dwQpciWsItZHIs= X-Google-Smtp-Source: ABdhPJy8yRbBfp7JJ9vsoLLwfEai6IIn9u2k9X2YUED5leE66rVPOiM8Nomw1qVKZQ5XYCsabUFPzbI21h5FTwSwa0U= 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 Precedence: bulk List-ID: X-Mailing-List: linux-watchdog@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>; + }; + +...