Skip to content

Commit 7c631cd

Browse files
krzkWim Van Sebroeck
authored andcommitted
dt-bindings: watchdog: qcom-wdt: allow interrupts
Both of type of watchdogs described in the binding (the KPSS watchdog and APSS WDT timer) have interrupts. Allow interrupts and describe them for KPSS watchdog to fix warnings like: watchdog@17c10000: Unevaluated properties are not allowed ('interrupts' was unexpected) Signed-off-by: Krzysztof Kozlowski <[email protected]> Reviewed-by: Rob Herring <[email protected]> Reviewed-by: Guenter Roeck <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Guenter Roeck <[email protected]> Signed-off-by: Wim Van Sebroeck <[email protected]>
1 parent 2bb28d1 commit 7c631cd

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ title: Qualcomm Krait Processor Sub-system (KPSS) Watchdog timer
99
maintainers:
1010
- Sai Prakash Ranjan <[email protected]>
1111

12-
allOf:
13-
- $ref: watchdog.yaml#
14-
1512
properties:
1613
compatible:
1714
oneOf:
@@ -51,11 +48,31 @@ properties:
5148
clocks:
5249
maxItems: 1
5350

51+
interrupts:
52+
minItems: 1
53+
maxItems: 5
54+
5455
required:
5556
- compatible
5657
- reg
5758
- clocks
5859

60+
allOf:
61+
- $ref: watchdog.yaml#
62+
63+
- if:
64+
properties:
65+
compatible:
66+
contains:
67+
const: qcom,kpss-wdt
68+
then:
69+
properties:
70+
interrupts:
71+
minItems: 1
72+
items:
73+
- description: Bark
74+
- description: Bite
75+
5976
unevaluatedProperties: false
6077

6178
examples:
@@ -66,5 +83,6 @@ examples:
6683
compatible = "qcom,apss-wdt-sm8150", "qcom,kpss-wdt";
6784
reg = <0x17c10000 0x1000>;
6885
clocks = <&sleep_clk>;
86+
interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
6987
timeout-sec = <10>;
7088
};

0 commit comments

Comments
 (0)