Qualcomm Krait Processor Sub-system (KPSS) Watchdog timer
Schema identifier ($id): "http://devicetree.org/schemas/watchdog/qcom-wdt.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Rajendra Nayak <quic_rjendra@quicinc.com>"
Properties and child nodes (properties) #
$nodename — not listed as required here #
String pattern (pattern): "^(watchdog|timer)@[0-9a-f]+$"
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Allowed values (
enum):"qcom,apss-wdt-glymur","qcom,kpss-wdt-ipq4019","qcom,apss-wdt-ipq5018","qcom,apss-wdt-ipq5332","qcom,apss-wdt-ipq5424","qcom,apss-wdt-ipq9574","qcom,apss-wdt-kaanapali","qcom,apss-wdt-msm8226","qcom,apss-wdt-msm8974","qcom,apss-wdt-msm8994","qcom,apss-wdt-qcm2290","qcom,apss-wdt-qcs404","qcom,apss-wdt-qcs615","qcom,apss-wdt-qcs8300","qcom,apss-wdt-sa8255p","qcom,apss-wdt-sa8775p","qcom,apss-wdt-sc7180","qcom,apss-wdt-sc7280","qcom,apss-wdt-sc8180x","qcom,apss-wdt-sc8280xp","qcom,apss-wdt-sdm845","qcom,apss-wdt-sdx55","qcom,apss-wdt-sdx65","qcom,apss-wdt-sm6115","qcom,apss-wdt-sm6350","qcom,apss-wdt-sm8150","qcom,apss-wdt-sm8250","qcom,apss-wdt-x1e80100"Item 2
Exact value (
const):"qcom,kpss-wdt"
Rule 2
Exact value (
const):"qcom,kpss-wdt"Deprecated (
deprecated):true
Rule 3
Array item rules (
items)Item 1
Exact value (
const):"qcom,scss-timer"Item 2
Exact value (
const):"qcom,msm-timer"
Rule 4
Array item rules (
items)Item 1
Allowed values (
enum):"qcom,kpss-wdt-apq8064","qcom,kpss-wdt-ipq8064","qcom,kpss-wdt-mdm9615","qcom,kpss-wdt-msm8960"Item 2
Exact value (
const):"qcom,kpss-timer"Item 3
Exact value (
const):"qcom,msm-timer"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
clock-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"sleep"
clock-frequency — not listed as required here #
The frequency of the general purpose timer in Hz.
cpu-offset — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Per-CPU offset used when the timer is accessed without the CPU remapping facilities. The offset is cpu-offset + (0x10000 * cpu-nr).
interrupts — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 5
Required in this object (required): "compatible", "reg", "clocks"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):watchdog.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"qcom,kpss-wdt"When the condition matches (
then) #Properties and child nodes (
properties)
clock-frequency— not listed as required here
false— Not permitted by this property rule.
cpu-offset— not listed as required here
false— Not permitted by this property rule.
interrupts— not listed as required hereMinimum number of items (
minItems):1Array item rules (
items)Item 1
Bark
Item 2
Bite
When the condition does not match (
else) #Properties and child nodes (
properties)
interrupts— not listed as required hereMinimum number of items (
minItems):3Array item rules (
items)Item 1
Debug
Item 2
First general purpose timer
Item 3
Second general purpose timer
Item 4
First watchdog
Item 5
Second watchdog
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
watchdog@17c10000 {
compatible = "qcom,apss-wdt-sm8150", "qcom,kpss-wdt";
reg = <0x17c10000 0x1000>;
clocks = <&sleep_clk>;
interrupts = <GIC_SPI 0 IRQ_TYPE_EDGE_RISING>;
timeout-sec = <10>;
};
#include <dt-bindings/interrupt-controller/arm-gic.h>
watchdog@200a000 {
compatible = "qcom,kpss-wdt-ipq8064", "qcom,kpss-timer", "qcom,msm-timer";
interrupts = <GIC_PPI 1 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_EDGE_RISING)>,
<GIC_PPI 2 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_EDGE_RISING)>,
<GIC_PPI 3 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_EDGE_RISING)>,
<GIC_PPI 4 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_EDGE_RISING)>,
<GIC_PPI 5 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_EDGE_RISING)>;
reg = <0x0200a000 0x100>;
clock-frequency = <25000000>;
clocks = <&sleep_clk>;
clock-names = "sleep";
cpu-offset = <0x80000>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)