0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/misc/qemu,vcpu-stall-detector.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: VCPU stall detector
0008
0009 description:
0010 This binding describes a CPU stall detector mechanism for virtual CPUs
0011 which is accessed through MMIO.
0012
0013 maintainers:
0014 - Sebastian Ene <sebastianene@google.com>
0015
0016 properties:
0017 compatible:
0018 enum:
0019 - qemu,vcpu-stall-detector
0020
0021 reg:
0022 maxItems: 1
0023
0024 clock-frequency:
0025 $ref: /schemas/types.yaml#/definitions/uint32
0026 description: |
0027 The internal clock of the stall detector peripheral measure in Hz used
0028 to decrement its internal counter register on each tick.
0029 Defaults to 10 if unset.
0030 default: 10
0031
0032 timeout-sec:
0033 description: |
0034 The stall detector expiration timeout measured in seconds.
0035 Defaults to 8 if unset. Please note that it also takes into account the
0036 time spent while the VCPU is not running.
0037 default: 8
0038
0039 required:
0040 - compatible
0041
0042 additionalProperties: false
0043
0044 examples:
0045 - |
0046 vmwdt@9030000 {
0047 compatible = "qemu,vcpu-stall-detector";
0048 reg = <0x9030000 0x10000>;
0049 clock-frequency = <10>;
0050 timeout-sec = <8>;
0051 };