From: Rob Herring <robh@kernel.org>
To: Kathiravan Thirumoorthy <kathiravan.thirumoorthy@oss.qualcomm.com>
Cc: Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Bjorn Andersson <andersson@kernel.org>,
Konrad Dybcio <konradybcio@kernel.org>,
Wim Van Sebroeck <wim@linux-watchdog.org>,
Guenter Roeck <linux@roeck-us.net>,
Rajendra Nayak <quic_rjendra@quicinc.com>,
linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-watchdog@vger.kernel.org
Subject: Re: [PATCH v2 3/5] dt-bindings: watchdog: separate out the IPQ5424 compatilble
Date: Mon, 21 Apr 2025 14:43:06 -0500 [thread overview]
Message-ID: <20250421194306.GA2648051-robh@kernel.org> (raw)
In-Reply-To: <20250416-wdt_reset_reason-v2-3-c65bba312914@oss.qualcomm.com>
On Wed, Apr 16, 2025 at 01:59:20PM +0530, Kathiravan Thirumoorthy wrote:
> To retrieve the system restart reason code from IMEM, need to define the
> certain device specific data. To achieve that, decouple the IPQ5424
> compatible from the existing list and define along with 'qcom,kpss-wdt'.
You have missed the whole point of why there's both a specific
compatible and a fallback. The specific one existed for a case like this
where you need to start distinguishing the specific device. In short,
this binding and dts changes are not needed at all, only the driver
change is needed. Then you maintain forwards and backwards
compatibility.
>
> Signed-off-by: Kathiravan Thirumoorthy <kathiravan.thirumoorthy@oss.qualcomm.com>
> ---
> Changes in v2:
> - New patch
> ---
> Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml | 7 +++++--
> 1 file changed, 5 insertions(+), 2 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml b/Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml
> index 49e2b807db0bc9d3edfc93ec41ad0df0b74ed032..e800f53381ef5626787eff1029bc94177e2635a4 100644
> --- a/Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml
> +++ b/Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml
> @@ -20,7 +20,6 @@ properties:
> - qcom,kpss-wdt-ipq4019
> - qcom,apss-wdt-ipq5018
> - qcom,apss-wdt-ipq5332
> - - qcom,apss-wdt-ipq5424
> - qcom,apss-wdt-ipq9574
> - qcom,apss-wdt-msm8226
> - qcom,apss-wdt-msm8974
> @@ -56,6 +55,8 @@ properties:
> - qcom,kpss-wdt-msm8960
> - const: qcom,kpss-timer
> - const: qcom,msm-timer
> + - items:
> + - const: qcom,apss-wdt-ipq5424
>
> reg:
> maxItems: 1
> @@ -93,7 +94,9 @@ allOf:
> properties:
> compatible:
> contains:
> - const: qcom,kpss-wdt
> + enum:
> + - qcom,apss-wdt-ipq5424
> + - qcom,kpss-wdt
> then:
> properties:
> clock-frequency: false
>
> --
> 2.34.1
>
next prev parent reply other threads:[~2025-04-21 19:43 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-16 8:29 [PATCH v2 0/5] Add support to read the restart reason from IMEM Kathiravan Thirumoorthy
2025-04-16 8:29 ` [PATCH v2 1/5] dt-bindings: sram: qcom,imem: Document IPQ5424 compatible Kathiravan Thirumoorthy
2025-04-21 19:12 ` Rob Herring (Arm)
2025-04-16 8:29 ` [PATCH v2 2/5] arm64: dts: qcom: ipq5424: Add the IMEM node Kathiravan Thirumoorthy
2025-04-16 14:52 ` Konrad Dybcio
2025-04-16 8:29 ` [PATCH v2 3/5] dt-bindings: watchdog: separate out the IPQ5424 compatilble Kathiravan Thirumoorthy
2025-04-21 19:43 ` Rob Herring [this message]
2025-04-28 4:02 ` Kathiravan Thirumoorthy
2025-04-16 8:29 ` [PATCH v2 4/5] arm64: dts: qcom: ipq5424: drop the fallback WDT compatible Kathiravan Thirumoorthy
2025-04-21 19:44 ` Rob Herring
2025-04-16 8:29 ` [PATCH v2 5/5] watchdog: qcom: add support to read the restart reason from IMEM Kathiravan Thirumoorthy
2025-04-16 14:51 ` Konrad Dybcio
2025-04-17 6:19 ` Kathiravan Thirumoorthy
2025-04-30 14:28 ` Konrad Dybcio
2025-04-30 14:58 ` Kathiravan Thirumoorthy
2025-05-01 0:01 ` Bryan O'Donoghue
2025-05-02 4:42 ` Kathiravan Thirumoorthy
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=20250421194306.GA2648051-robh@kernel.org \
--to=robh@kernel.org \
--cc=andersson@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=kathiravan.thirumoorthy@oss.qualcomm.com \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-watchdog@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=quic_rjendra@quicinc.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: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).