From: Srinivas Neeli <srinivas.neeli@amd.com> To: <shubhrajyoti.datta@amd.com>, <michal.simek@amd.com>, <srinivas.goud@amd.com>, <wim@linux-watchdog.org>, <linux@roeck-us.net>, <robh+dt@kernel.org>, <krzysztof.kozlowski+dt@linaro.org> Cc: <srinivas.neeli@amd.com>, <linux-watchdog@vger.kernel.org>, <devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org>, <git@amd.com>, <git@xilinx.com>, <neelisrinivas18@gmail.com> Subject: [PATCH V3 2/4] dt-bindings: watchdog: xlnx,versal-wwdt: Add versal watchdog bindings Date: Fri, 31 Mar 2023 13:11:15 +0530 [thread overview] Message-ID: <20230331074117.356339-3-srinivas.neeli@amd.com> (raw) In-Reply-To: <20230331074117.356339-1-srinivas.neeli@amd.com> Versal watchdog driver uses window watchdog mode. Window watchdog timer(WWDT) contains closed(first) and open(second) window with 32 bit width. Write to the watchdog timer within predefined window periods of time. This means a period that is not too soon and a period that is not too late. This patch adds devicetree bindings for versal window watchdog device. Signed-off-by: Srinivas Neeli <srinivas.neeli@amd.com> --- Changes in V3: - Removed xlnx,close_percent property. Changes in V2: - Added watchdog ref - Removed timeout-sec property - Used 4 spaces for example indentation. --- .../bindings/watchdog/xlnx,versal-wwdt.yaml | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 Documentation/devicetree/bindings/watchdog/xlnx,versal-wwdt.yaml diff --git a/Documentation/devicetree/bindings/watchdog/xlnx,versal-wwdt.yaml b/Documentation/devicetree/bindings/watchdog/xlnx,versal-wwdt.yaml new file mode 100644 index 000000000000..dea1e7c487d3 --- /dev/null +++ b/Documentation/devicetree/bindings/watchdog/xlnx,versal-wwdt.yaml @@ -0,0 +1,50 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/watchdog/xlnx,versal-wwdt.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Xilinx Versal window watchdog timer controller + +maintainers: + - Neeli Srinivas <srinivas.neeli@amd.com> + +description: + Versal watchdog driver uses window watchdog mode. Window watchdog + timer(WWDT) contains closed(first) and open(second) window with + 32 bit width. Write to the watchdog timer within predefined window + periods of time. This means a period that is not too soon and a + period that is not too late. The WWDT has to be restarted within + the open window time. If software tries to restart WWDT outside of + the open window time period, it generates a reset. + +allOf: + - $ref: /schemas/watchdog/watchdog.yaml# + +properties: + compatible: + enum: + - xlnx,versal-wwdt + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + +required: + - compatible + - reg + - clocks + +unevaluatedProperties: false + +examples: + - | + watchdog@fd4d0000 { + compatible = "xlnx,versal-wwdt"; + reg = <0xfd4d0000 0x10000>; + clocks = <&clock25>; + timeout-sec = <30>; + }; +... -- 2.25.1
WARNING: multiple messages have this Message-ID (diff)
From: Srinivas Neeli <srinivas.neeli@amd.com> To: <shubhrajyoti.datta@amd.com>, <michal.simek@amd.com>, <srinivas.goud@amd.com>, <wim@linux-watchdog.org>, <linux@roeck-us.net>, <robh+dt@kernel.org>, <krzysztof.kozlowski+dt@linaro.org> Cc: <srinivas.neeli@amd.com>, <linux-watchdog@vger.kernel.org>, <devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org>, <git@amd.com>, <git@xilinx.com>, <neelisrinivas18@gmail.com> Subject: [PATCH V3 2/4] dt-bindings: watchdog: xlnx,versal-wwdt: Add versal watchdog bindings Date: Fri, 31 Mar 2023 13:11:15 +0530 [thread overview] Message-ID: <20230331074117.356339-3-srinivas.neeli@amd.com> (raw) In-Reply-To: <20230331074117.356339-1-srinivas.neeli@amd.com> Versal watchdog driver uses window watchdog mode. Window watchdog timer(WWDT) contains closed(first) and open(second) window with 32 bit width. Write to the watchdog timer within predefined window periods of time. This means a period that is not too soon and a period that is not too late. This patch adds devicetree bindings for versal window watchdog device. Signed-off-by: Srinivas Neeli <srinivas.neeli@amd.com> --- Changes in V3: - Removed xlnx,close_percent property. Changes in V2: - Added watchdog ref - Removed timeout-sec property - Used 4 spaces for example indentation. --- .../bindings/watchdog/xlnx,versal-wwdt.yaml | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 Documentation/devicetree/bindings/watchdog/xlnx,versal-wwdt.yaml diff --git a/Documentation/devicetree/bindings/watchdog/xlnx,versal-wwdt.yaml b/Documentation/devicetree/bindings/watchdog/xlnx,versal-wwdt.yaml new file mode 100644 index 000000000000..dea1e7c487d3 --- /dev/null +++ b/Documentation/devicetree/bindings/watchdog/xlnx,versal-wwdt.yaml @@ -0,0 +1,50 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/watchdog/xlnx,versal-wwdt.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Xilinx Versal window watchdog timer controller + +maintainers: + - Neeli Srinivas <srinivas.neeli@amd.com> + +description: + Versal watchdog driver uses window watchdog mode. Window watchdog + timer(WWDT) contains closed(first) and open(second) window with + 32 bit width. Write to the watchdog timer within predefined window + periods of time. This means a period that is not too soon and a + period that is not too late. The WWDT has to be restarted within + the open window time. If software tries to restart WWDT outside of + the open window time period, it generates a reset. + +allOf: + - $ref: /schemas/watchdog/watchdog.yaml# + +properties: + compatible: + enum: + - xlnx,versal-wwdt + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + +required: + - compatible + - reg + - clocks + +unevaluatedProperties: false + +examples: + - | + watchdog@fd4d0000 { + compatible = "xlnx,versal-wwdt"; + reg = <0xfd4d0000 0x10000>; + clocks = <&clock25>; + timeout-sec = <30>; + }; +... -- 2.25.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2023-03-31 7:42 UTC|newest] Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-03-31 7:41 [PATCH V3 0/4] watchdog: xilinx_wwdt: Add Versal watchdog support Srinivas Neeli 2023-03-31 7:41 ` Srinivas Neeli 2023-03-31 7:41 ` [PATCH V3 1/4] MAINTAINERS: Add fragment for Xilinx watchdog driver Srinivas Neeli 2023-03-31 7:41 ` Srinivas Neeli 2023-04-03 18:30 ` Krzysztof Kozlowski 2023-04-03 18:30 ` Krzysztof Kozlowski 2023-04-03 18:35 ` Krzysztof Kozlowski 2023-04-03 18:35 ` Krzysztof Kozlowski 2023-04-16 16:15 ` Guenter Roeck 2023-04-16 16:15 ` Guenter Roeck 2023-03-31 7:41 ` Srinivas Neeli [this message] 2023-03-31 7:41 ` [PATCH V3 2/4] dt-bindings: watchdog: xlnx,versal-wwdt: Add versal watchdog bindings Srinivas Neeli 2023-04-03 18:32 ` Krzysztof Kozlowski 2023-04-03 18:32 ` Krzysztof Kozlowski 2023-04-11 10:46 ` Neeli, Srinivas 2023-04-11 10:46 ` Neeli, Srinivas 2023-03-31 7:41 ` [PATCH V3 3/4] watchdog: xilinx_wwdt: Add Versal window watchdog support Srinivas Neeli 2023-03-31 7:41 ` Srinivas Neeli 2023-04-16 16:28 ` Guenter Roeck 2023-04-16 16:28 ` Guenter Roeck 2023-03-31 7:41 ` [PATCH V3 4/4] MAINTAINERS: Add support for Xilinx versal watchdog Srinivas Neeli 2023-03-31 7:41 ` Srinivas Neeli
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20230331074117.356339-3-srinivas.neeli@amd.com \ --to=srinivas.neeli@amd.com \ --cc=devicetree@vger.kernel.org \ --cc=git@amd.com \ --cc=git@xilinx.com \ --cc=krzysztof.kozlowski+dt@linaro.org \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-watchdog@vger.kernel.org \ --cc=linux@roeck-us.net \ --cc=michal.simek@amd.com \ --cc=neelisrinivas18@gmail.com \ --cc=robh+dt@kernel.org \ --cc=shubhrajyoti.datta@amd.com \ --cc=srinivas.goud@amd.com \ --cc=wim@linux-watchdog.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.