[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <c570c99d-53f5-4f77-a730-42e5a2016dc5@linaro.org>
Date: Thu, 3 Apr 2025 17:10:10 +0200
From: Daniel Lezcano <daniel.lezcano@...aro.org>
To: Ghennadi Procopciuc <ghennadi.procopciuc@....nxp.com>,
wim@...ux-watchdog.org
Cc: linux@...ck-us.net, linux-watchdog@...r.kernel.org,
linux-kernel@...r.kernel.org, S32@....com, ghennadi.procopciuc@....com,
thomas.fossati@...aro.org, robh@...nel.org, krzk+dt@...nel.org,
conor+dt@...nel.org, devicetree@...r.kernel.org,
Vincent Guittot <vincent.guittot@...aro.org>
Subject: Re: [PATCH v2 1/2] dt-bindings: watchdog: Add NXP Software Watchdog
Timer
On 03/04/2025 08:19, Ghennadi Procopciuc wrote:
> On 4/2/2025 6:49 PM, Daniel Lezcano wrote:
> [ ... ]
>> +examples:
>> + - |
>> + watchdog@...0100000 {
>> + compatible = "nxp,s32g2-swt";
>> + reg = <0x40100000 0x1000>;
>> + clocks = <&clks 0x3a>;
>> + timeout-sec = <10>;
>> + };
>
> The S32G reference manual specifies two clocks for the SWT module: one
> for the registers and another for the counter itself. Shouldn't both
> clocks be represented in the bindings?
AFAICS, there are two clocks as described in the documentation for the
s32g2 page 846, section 23.7.3.3 SWT clocking.
The module and the register clock are fed by the XBAR_DIV3_CLK which is
an system clock always-on.
The counter is fed by the FIRC_CLK which described as "FIRC_CLK is the
default clock for the entire system at power-up."
From my understanding, we should not describe the XBAR_DIV3_CLK as it
is a system clock.
And the FIRC_CLK is only there to get the clock rate in the driver.
--
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs
Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog
Powered by blists - more mailing lists