dt-bindings: watchdog: Convert QCOM watchdog timer bindings to YAML
Convert QCOM watchdog timer bindings to DT schema format using json-schema. Signed-off-by: Sai Prakash Ranjan <saiprakash.ranjan@codeaurora.org> Reviewed-by: Stephen Boyd <swboyd@chromium.org> Reviewed-by: Rob Herring <robh@kernel.org> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Link: https://lore.kernel.org/r/77b47aad9d17cb4ec8359bdbbb30c33d818117e6.1593112534.git.saiprakash.ranjan@codeaurora.org Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
This commit is contained in:
committed by
Wim Van Sebroeck
parent
4105f19fd0
commit
137e9e68dd
@@ -1,28 +0,0 @@
|
|||||||
Qualcomm Krait Processor Sub-system (KPSS) Watchdog
|
|
||||||
---------------------------------------------------
|
|
||||||
|
|
||||||
Required properties :
|
|
||||||
- compatible : shall contain only one of the following:
|
|
||||||
|
|
||||||
"qcom,kpss-wdt-msm8960"
|
|
||||||
"qcom,kpss-wdt-apq8064"
|
|
||||||
"qcom,kpss-wdt-ipq8064"
|
|
||||||
"qcom,kpss-wdt-ipq4019"
|
|
||||||
"qcom,kpss-timer"
|
|
||||||
"qcom,scss-timer"
|
|
||||||
"qcom,kpss-wdt"
|
|
||||||
|
|
||||||
- reg : shall contain base register location and length
|
|
||||||
- clocks : shall contain the input clock
|
|
||||||
|
|
||||||
Optional properties :
|
|
||||||
- timeout-sec : shall contain the default watchdog timeout in seconds,
|
|
||||||
if unset, the default timeout is 30 seconds
|
|
||||||
|
|
||||||
Example:
|
|
||||||
watchdog@208a038 {
|
|
||||||
compatible = "qcom,kpss-wdt-ipq8064";
|
|
||||||
reg = <0x0208a038 0x40>;
|
|
||||||
clocks = <&sleep_clk>;
|
|
||||||
timeout-sec = <10>;
|
|
||||||
};
|
|
||||||
44
Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml
Normal file
44
Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
# 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:
|
||||||
|
enum:
|
||||||
|
- qcom,kpss-timer
|
||||||
|
- qcom,kpss-wdt
|
||||||
|
- 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
|
||||||
|
|
||||||
|
examples:
|
||||||
|
- |
|
||||||
|
watchdog@208a038 {
|
||||||
|
compatible = "qcom,kpss-wdt-ipq8064";
|
||||||
|
reg = <0x0208a038 0x40>;
|
||||||
|
clocks = <&sleep_clk>;
|
||||||
|
timeout-sec = <10>;
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user