From: Fabrice Gasnier <fabrice.gasnier@foss.st.com>
To: Krzysztof Kozlowski <krzk@kernel.org>
Cc: <lee@kernel.org>, <ukleinek@kernel.org>,
<alexandre.torgue@foss.st.com>, <robh@kernel.org>,
<krzk+dt@kernel.org>, <conor+dt@kernel.org>, <wbg@kernel.org>,
<jic23@kernel.org>, <daniel.lezcano@linaro.org>,
<tglx@linutronix.de>, <catalin.marinas@arm.com>,
<will@kernel.org>, <devicetree@vger.kernel.org>,
<linux-stm32@st-md-mailman.stormreply.com>,
<linux-arm-kernel@lists.infradead.org>,
<linux-kernel@vger.kernel.org>, <linux-iio@vger.kernel.org>,
<linux-pwm@vger.kernel.org>, <olivier.moysan@foss.st.com>
Subject: Re: [PATCH 6/8] counter: stm32-lptimer-cnt: add support for stm32mp25
Date: Wed, 26 Feb 2025 19:16:17 +0100 [thread overview]
Message-ID: <4876e1a4-93b7-4bd8-be03-4a2895567f2b@foss.st.com> (raw)
In-Reply-To: <b9b3844e-bdd5-4f50-aa10-8bf97751c566@kernel.org>
On 2/26/25 08:49, Krzysztof Kozlowski wrote:
> On 25/02/2025 15:58, Fabrice Gasnier wrote:
>> On 2/25/25 13:02, Krzysztof Kozlowski wrote:
>>> On Mon, Feb 24, 2025 at 07:01:48PM +0100, Fabrice Gasnier wrote:
>>>> Add support for STM32MP25 SoC. Use newly introduced compatible to handle
>>>> this new HW variant, even if no major change is expected on the counter
>>>> driver.
>>>>
>>>> Signed-off-by: Fabrice Gasnier <fabrice.gasnier@foss.st.com>
>>>> ---
>>>> drivers/counter/stm32-lptimer-cnt.c | 1 +
>>>> 1 file changed, 1 insertion(+)
>>>>
>>>> diff --git a/drivers/counter/stm32-lptimer-cnt.c b/drivers/counter/stm32-lptimer-cnt.c
>>>> index b249c8647639..a5dce017c37b 100644
>>>> --- a/drivers/counter/stm32-lptimer-cnt.c
>>>> +++ b/drivers/counter/stm32-lptimer-cnt.c
>>>> @@ -508,6 +508,7 @@ static SIMPLE_DEV_PM_OPS(stm32_lptim_cnt_pm_ops, stm32_lptim_cnt_suspend,
>>>>
>>>> static const struct of_device_id stm32_lptim_cnt_of_match[] = {
>>>> { .compatible = "st,stm32-lptimer-counter", },
>>>> + { .compatible = "st,stm32mp25-lptimer-counter", },
>>>
>>> So fully compatible? Why this change then?
>>
>> Hi Krzysztof,
>>
>> I should have mentioned it in the commit message:
>>
>> Currently, same feature list as on STM32MP1x is supported.
>> New capture input stage is now available in the hardware. It's not added
>> yet to the driver.
>
> Which is the exact meaning of compatible. Express it properly in
> bindings and driver.
Could you please just clarify here, do you suggest to better explain it
in the commit message, both in bindings and driver ?
Or do you mean something else ?
There's one more thing here, I haven't mentioned earlier, which is
specific to the STM32MP25 SoC family (not only to the LPTimer revision).
The LPTimer has interconnect signals throughout all the SoC. It's listed
in the "Peripheral interconnects" section of the Reference Manual (RM0457).
Here, simply reading the LPTimer revision/identification register
wouldn't be enough, as it specific to the SoC. Upcoming STM32MP21 SoC
family will have a different list of inputs/outpus internally in the SoC
(but same controller revision).
So here I intend to keep the specific compatible
"st,stm32mp25-lptimer-counter", to be used even if not yet implemented
by the driver.
I'll try to explain it better in next revision.
Thanks for reviewing,
Best Regards,
Fabrice
>
>>
>> The Low Power Timer (LPTIM) hardware isn't fully backward compatible,
>
> How so? How can it work then with above ID table?
>
>
> Best regards,
> Krzysztof
next prev parent reply other threads:[~2025-02-26 20:44 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-24 18:01 [PATCH 0/8] Add STM32MP25 LPTIM support: MFD, PWM, IIO, counter, clocksource Fabrice Gasnier
2025-02-24 18:01 ` [PATCH 1/8] dt-bindings: mfd: stm32-lptimer: add support for stm32mp25 Fabrice Gasnier
2025-02-25 12:02 ` Krzysztof Kozlowski
2025-02-25 14:57 ` Fabrice Gasnier
2025-02-26 7:51 ` Krzysztof Kozlowski
2025-02-26 18:17 ` Fabrice Gasnier
2025-02-24 18:01 ` [PATCH 2/8] " Fabrice Gasnier
2025-02-24 18:01 ` [PATCH 3/8] iio: trigger: " Fabrice Gasnier
2025-03-05 14:38 ` Jonathan Cameron
2025-02-24 18:01 ` [PATCH 4/8] clocksource: stm32-lptimer: add stm32mp25 support Fabrice Gasnier
2025-02-25 12:02 ` Krzysztof Kozlowski
2025-02-25 14:57 ` Fabrice Gasnier
2025-02-26 18:14 ` Fabrice Gasnier
2025-02-24 18:01 ` [PATCH 5/8] pwm: stm32-lp: add support for stm32mp25 Fabrice Gasnier
2025-02-25 12:04 ` Krzysztof Kozlowski
2025-02-25 14:58 ` Fabrice Gasnier
2025-02-26 7:54 ` Krzysztof Kozlowski
2025-02-26 18:14 ` Fabrice Gasnier
2025-02-24 18:01 ` [PATCH 6/8] counter: stm32-lptimer-cnt: " Fabrice Gasnier
2025-02-25 12:02 ` Krzysztof Kozlowski
2025-02-25 14:58 ` Fabrice Gasnier
2025-02-26 7:49 ` Krzysztof Kozlowski
2025-02-26 18:16 ` Fabrice Gasnier [this message]
2025-02-24 18:01 ` [PATCH 7/8] arm64: defconfig: enable STM32 LP timers drivers Fabrice Gasnier
2025-02-25 7:48 ` Krzysztof Kozlowski
2025-02-25 8:43 ` Fabrice Gasnier
2025-02-25 12:00 ` Krzysztof Kozlowski
2025-02-24 18:01 ` [PATCH 8/8] arm64: dts: st: add low-power timer nodes on stm32mp251 Fabrice Gasnier
2025-02-25 20:12 ` [PATCH 0/8] Add STM32MP25 LPTIM support: MFD, PWM, IIO, counter, clocksource Rob Herring (Arm)
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=4876e1a4-93b7-4bd8-be03-4a2895567f2b@foss.st.com \
--to=fabrice.gasnier@foss.st.com \
--cc=alexandre.torgue@foss.st.com \
--cc=catalin.marinas@arm.com \
--cc=conor+dt@kernel.org \
--cc=daniel.lezcano@linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=jic23@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=krzk@kernel.org \
--cc=lee@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pwm@vger.kernel.org \
--cc=linux-stm32@st-md-mailman.stormreply.com \
--cc=olivier.moysan@foss.st.com \
--cc=robh@kernel.org \
--cc=tglx@linutronix.de \
--cc=ukleinek@kernel.org \
--cc=wbg@kernel.org \
--cc=will@kernel.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