xref: /linux-6.14.4/Documentation/devicetree/bindings/misc/qemu,vcpu-stall-detector.yaml
  • Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/misc/qemu,vcpu-stall-detector.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: VCPU stall detector
8
9description:
10  This binding describes a CPU stall detector mechanism for virtual CPUs
11  which is accessed through MMIO.
12
13maintainers:
14  - Sebastian Ene <[email protected]>
15
16properties:
17  compatible:
18    enum:
19      - qemu,vcpu-stall-detector
20
21  reg:
22    maxItems: 1
23
24  clock-frequency:
25    $ref: /schemas/types.yaml#/definitions/uint32
26    description: |
27      The internal clock of the stall detector peripheral measure in Hz used
28      to decrement its internal counter register on each tick.
29      Defaults to 10 if unset.
30    default: 10
31
32  interrupts:
33    maxItems: 1
34
35  timeout-sec:
36    description: |
37      The stall detector expiration timeout measured in seconds.
38      Defaults to 8 if unset. Please note that it also takes into account the
39      time spent while the VCPU is not running.
40    default: 8
41
42required:
43  - compatible
44
45additionalProperties: false
46
47examples:
48  - |
49    #include <dt-bindings/interrupt-controller/arm-gic.h>
50
51    vmwdt@9030000 {
52      compatible = "qemu,vcpu-stall-detector";
53      reg = <0x9030000 0x10000>;
54      clock-frequency = <10>;
55      timeout-sec = <8>;
56      interrupts = <GIC_PPI 15 IRQ_TYPE_EDGE_RISING>;
57    };
58

served by {OpenGrok

Last Index Update: Mon Apr 28 06:57:04 CEST 2025