Parse compatible as expected for modern QCOMs. Fixes warnings as: arch/arm64/boot/dts/qcom/sdm845-oneplus-fajita.dt.yaml: watchdog@17980000: compatible: ['qcom,apss-wdt-sdm845', 'qcom,kpss-wdt'] is too long From schema: Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml arch/arm64/boot/dts/qcom/sdm845-oneplus-fajita.dt.yaml: watchdog@17980000: compatible: Additional items are not allowed ('qcom,kpss-wdt' was unexpected) From schema: Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml Signed-off-by: David Heidelberg <david@ixit.cz> Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org> Reviewed-by: Rob Herring <robh@kernel.org> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Link: https://lore.kernel.org/r/20220111212310.97566-1-david@ixit.cz Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
60 lines
1.3 KiB
YAML
60 lines
1.3 KiB
YAML
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/watchdog/qcom-wdt.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: Qualcomm Krait Processor Sub-system (KPSS) Watchdog timer
|
|
|
|
maintainers:
|
|
- Sai Prakash Ranjan <saiprakash.ranjan@codeaurora.org>
|
|
|
|
allOf:
|
|
- $ref: watchdog.yaml#
|
|
|
|
properties:
|
|
compatible:
|
|
oneOf:
|
|
- items:
|
|
- enum:
|
|
- qcom,apss-wdt-qcs404
|
|
- qcom,apss-wdt-sc7180
|
|
- qcom,apss-wdt-sc7280
|
|
- qcom,apss-wdt-sdm845
|
|
- qcom,apss-wdt-sdx55
|
|
- qcom,apss-wdt-sm6350
|
|
- qcom,apss-wdt-sm8150
|
|
- qcom,apss-wdt-sm8250
|
|
- const: qcom,kpss-wdt
|
|
- items:
|
|
- enum:
|
|
- qcom,kpss-wdt
|
|
- qcom,kpss-timer
|
|
- qcom,kpss-wdt-apq8064
|
|
- qcom,kpss-wdt-ipq4019
|
|
- qcom,kpss-wdt-ipq8064
|
|
- qcom,kpss-wdt-msm8960
|
|
- qcom,scss-timer
|
|
|
|
reg:
|
|
maxItems: 1
|
|
|
|
clocks:
|
|
maxItems: 1
|
|
|
|
required:
|
|
- compatible
|
|
- reg
|
|
- clocks
|
|
|
|
unevaluatedProperties: false
|
|
|
|
examples:
|
|
- |
|
|
watchdog@208a038 {
|
|
compatible = "qcom,kpss-wdt-ipq8064";
|
|
reg = <0x0208a038 0x40>;
|
|
clocks = <&sleep_clk>;
|
|
timeout-sec = <10>;
|
|
};
|