From mboxrd@z Thu Jan 1 00:00:00 1970 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 16354C433EF for ; Fri, 29 Apr 2022 08:31:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355723AbiD2Ieb (ORCPT ); Fri, 29 Apr 2022 04:34:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32938 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355741AbiD2Ie1 (ORCPT ); Fri, 29 Apr 2022 04:34:27 -0400 Received: from mail-wr1-x44a.google.com (mail-wr1-x44a.google.com [IPv6:2a00:1450:4864:20::44a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3BB5734B8E for ; Fri, 29 Apr 2022 01:31:01 -0700 (PDT) Received: by mail-wr1-x44a.google.com with SMTP id l7-20020adfbd87000000b0020ac0a4d23dso2807920wrh.17 for ; Fri, 29 Apr 2022 01:31:01 -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=6tCN6YC1SbOxkw9kebJagYGepzk4PCTRnccS/M7E4Js=; b=sUH/xTLbgVFECXeDda1izPCkyp0hY2ooTRNnaSVxVgEf2GjXD9MzDrKbg1e6W+gY5a NRTIlA33obG7G3/wObPMweJgs6Y8cOpcE7BQRfYgZL8QhaNVFaaxsRVJh9G/RWtf5Frx rodceVOX9ROnub+Lcd4RAJyHKEJpOmsEQOfdNV6iN1ZVdevDfYt3m3YRxbCwqEutVLAh l5rd+iODRyI+/OIi7xeLWcVMMz0892erdBFLNKnp6Mcyi/GTPHXNbErUE4NxlUhHttJ6 8aErHOr9pnRYc9sLz0jMRB7Y/kY5he5x7LU1jbqWbIW0rkmqoMOkhCvE8BmXfnYd/XEC H2/Q== 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=6tCN6YC1SbOxkw9kebJagYGepzk4PCTRnccS/M7E4Js=; b=uCWddhl9os+8PsQ87K5TvbERi8KY5elbNEs5x+ZaTJZ+Ll2W4aFuK106p+UEVVjknd b+tKsUaW3cRVLYSlmID7hhd/cWsKREEjCXwwUk3ukR+sTRKPds+QXBOREDtIdyUeI5mv Zv0m2nVS+mMKmbocmNnCaPLEsaIJAfnTGcDEROeimLfDjMoN8MCoLxS4bS95DNLTKjuO lTuhAHJmLD7VLSmx1GouKP5C+hxvwWGZOXq+WYLq0Rjtc/YqVGvm568U+noZhf4dmodW hcraXLoGT9vTaFoE+xn0pPSdfDMhTf7cY0Bc/QLLVqL7prlPw6o60Vc21zG1DslwZzD6 7mZw== X-Gm-Message-State: AOAM531RiyXIHsdzu56Y9Ik1l0P+afXWZ7wrAs0fHYjwUsB2FG6u2cSC 0dRaGU/LZqsZJ3htuIdT4P7PaLZQwLHhZL1JsdA= X-Google-Smtp-Source: ABdhPJyuOWGU8Qh20SCTnm2Lp0A9mIDffkel2VDKIj6Zdyje9YeL1/NMyy9UqPQWXPo7n3CrTrBibqU5y06/vOTRUMk= X-Received: from sene.c.googlers.com ([fda3:e722:ac3:cc00:28:9cb1:c0a8:27c4]) (user=sebastianene job=sendgmr) by 2002:a05:600c:1e1e:b0:394:2426:7e38 with SMTP id ay30-20020a05600c1e1e00b0039424267e38mr236769wmb.195.1651221059882; Fri, 29 Apr 2022 01:30:59 -0700 (PDT) Date: Fri, 29 Apr 2022 08:30:31 +0000 In-Reply-To: <20220429083030.3241640-1-sebastianene@google.com> Message-Id: <20220429083030.3241640-2-sebastianene@google.com> Mime-Version: 1.0 References: <20220429083030.3241640-1-sebastianene@google.com> X-Mailer: git-send-email 2.36.0.464.gb9c8b46e94-goog Subject: [PATCH v4 1/2] dt-bindings: vm-wdt: Add qemu,vm-watchdog compatible From: Sebastian Ene To: Rob Herring , Greg Kroah-Hartman , Arnd Bergmann , Dragan Cvetic Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, maz@kernel.org, will@kernel.org, qperret@google.com, Guenter Roeck , Sebastian Ene Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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 + +examples: + - | + watchdog { + compatible = "qemu,vm-watchdog"; + clock-frequency = <10>; + timeout-sec = <8>; + }; + +... -- 2.36.0.464.gb9c8b46e94-goog