[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20250610180345.GA2382213-robh@kernel.org>
Date: Tue, 10 Jun 2025 13:03:45 -0500
From: Rob Herring <robh@...nel.org>
To: Kathiravan Thirumoorthy <kathiravan.thirumoorthy@....qualcomm.com>
Cc: Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>,
Bjorn Andersson <andersson@...nel.org>,
Konrad Dybcio <konradybcio@...nel.org>,
Wim Van Sebroeck <wim@...ux-watchdog.org>,
Guenter Roeck <linux@...ck-us.net>,
Rajendra Nayak <quic_rjendra@...cinc.com>,
linux-arm-msm@...r.kernel.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-watchdog@...r.kernel.org
Subject: Re: [PATCH v5 3/5] dt-bindings: watchdog: qcom-wdt: Document sram
property
On Tue, Jun 10, 2025 at 07:15:19PM +0530, Kathiravan Thirumoorthy wrote:
> Document the "sram" property for the watchdog device on Qualcomm
> IPQ platforms. Use this property to extract the restart reason from
> IMEM, which is updated by XBL. Populate the watchdog's bootstatus sysFS
> entry with this information, when the system reboots due to a watchdog
> timeout.
>
> Describe this property for the IPQ5424 watchdog device and extend support
> to other targets subsequently.
>
> Signed-off-by: Kathiravan Thirumoorthy <kathiravan.thirumoorthy@....qualcomm.com>
> ---
> Changes in v5:
> - Rename the property 'qcom,imem' to 'sram'
> Changes in v4:
> - New patch
> ---
> .../devicetree/bindings/watchdog/qcom-wdt.yaml | 20 ++++++++++++++++++++
> 1 file changed, 20 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml b/Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml
> index 49e2b807db0bc9d3edfc93ec41ad0df0b74ed032..74a09c391fd8e2befeac07f254ea16d0ca362248 100644
> --- a/Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml
> +++ b/Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml
> @@ -81,6 +81,16 @@ properties:
> minItems: 1
> maxItems: 5
>
> + sram:
> + $ref: /schemas/types.yaml#/definitions/phandle-array
> + description:
> + phandle to the IMEM syscon node that exposes the system restart reason
> + items:
> + - items:
> + - description: phandle of IMEM syscon
> + - description: offset of restart reason region
> + - description: value indicate that the watchdog timeout has occurred
A 'sram' property points to an SRAM region (see mmio-sram binding), not
a syscon and offset.
The 'value' should be a separate property or implied by the compatible.
Rob
Powered by blists - more mailing lists