* [PATCH v2 1/2] dt-bindings: timer: Add NXP System Timer Module
[not found] <20250328134208.2183653-1-daniel.lezcano@linaro.org>
@ 2025-03-28 13:42 ` Daniel Lezcano
2025-03-29 5:03 ` Krzysztof Kozlowski
0 siblings, 1 reply; 3+ messages in thread
From: Daniel Lezcano @ 2025-03-28 13:42 UTC (permalink / raw)
To: daniel.lezcano, tglx
Cc: linux-kernel, thomas.fossati, Larisa.Grigore, ghennadi.procopciuc,
krzk, S32, Ghennadi Procopciuc, Krzysztof Kozlowski, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Maxime Coquelin,
Alexandre Torgue,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
moderated list:ARM/STM32 ARCHITECTURE,
moderated list:ARM/STM32 ARCHITECTURE
Add the System Timer Module description found on the NXP s32 platform
and the compatible for the s32g2 variant.
Cc: Ghennadi Procopciuc <ghennadi.procopciuc@oss.nxp.com>
Cc: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Cc: Thomas Fossati <thomas.fossati@linaro.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
---
.../bindings/timer/nxp,stm-timer.yaml | 50 +++++++++++++++++++
1 file changed, 50 insertions(+)
create mode 100644 Documentation/devicetree/bindings/timer/nxp,stm-timer.yaml
diff --git a/Documentation/devicetree/bindings/timer/nxp,stm-timer.yaml b/Documentation/devicetree/bindings/timer/nxp,stm-timer.yaml
new file mode 100644
index 000000000000..a9c0151d62be
--- /dev/null
+++ b/Documentation/devicetree/bindings/timer/nxp,stm-timer.yaml
@@ -0,0 +1,50 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/timer/nxp,stm-timer.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: NXP System Timer Module (STM)
+
+maintainers:
+ - Daniel Lezcano <daniel.lezcano@kernel.org>
+
+description:
+ The System Timer Module supports commonly required system and application
+ software timing functions. STM includes a 32-bit count-up timer and four
+ 32-bit compare channels with a separate interrupt source for each channel.
+ The timer is driven by the STM module clock divided by an 8-bit prescale
+ value.
+
+properties:
+ compatible:
+ enum:
+ - nxp,s32g-stm
+
+ reg:
+ maxItems: 1
+
+ interrupts:
+ maxItems: 1
+
+ clocks:
+ maxItems: 1
+
+required:
+ - compatible
+ - reg
+ - interrupts
+ - clocks
+
+additionalProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/interrupt-controller/arm-gic.h>
+
+ timer@4011c000 {
+ compatible = "nxp,s32g-stm";
+ reg = <0x4011c000 0x3000>;
+ interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&clks 0x3b>;
+ };
--
2.43.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v2 1/2] dt-bindings: timer: Add NXP System Timer Module
2025-03-28 13:42 ` [PATCH v2 1/2] dt-bindings: timer: Add NXP System Timer Module Daniel Lezcano
@ 2025-03-29 5:03 ` Krzysztof Kozlowski
2025-03-31 8:38 ` Daniel Lezcano
0 siblings, 1 reply; 3+ messages in thread
From: Krzysztof Kozlowski @ 2025-03-29 5:03 UTC (permalink / raw)
To: Daniel Lezcano, tglx
Cc: linux-kernel, thomas.fossati, Larisa.Grigore, ghennadi.procopciuc,
S32, Ghennadi Procopciuc, Krzysztof Kozlowski, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Maxime Coquelin,
Alexandre Torgue,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
moderated list:ARM/STM32 ARCHITECTURE,
moderated list:ARM/STM32 ARCHITECTURE
On 28/03/2025 14:42, Daniel Lezcano wrote:
> Add the System Timer Module description found on the NXP s32 platform
> and the compatible for the s32g2 variant.
>
> Cc: Ghennadi Procopciuc <ghennadi.procopciuc@oss.nxp.com>
> Cc: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> Cc: Thomas Fossati <thomas.fossati@linaro.org>
> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
> ---
I got only this patch, no cover letter, no changelog. What happened here?
> .../bindings/timer/nxp,stm-timer.yaml | 50 +++++++++++++++++++
> 1 file changed, 50 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/timer/nxp,stm-timer.yaml
>
> diff --git a/Documentation/devicetree/bindings/timer/nxp,stm-timer.yaml b/Documentation/devicetree/bindings/timer/nxp,stm-timer.yaml
> new file mode 100644
> index 000000000000..a9c0151d62be
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/timer/nxp,stm-timer.yaml
Filename following compatible.
> @@ -0,0 +1,50 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/timer/nxp,stm-timer.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: NXP System Timer Module (STM)
> +
> +maintainers:
> + - Daniel Lezcano <daniel.lezcano@kernel.org>
> +
> +description:
> + The System Timer Module supports commonly required system and application
> + software timing functions. STM includes a 32-bit count-up timer and four
> + 32-bit compare channels with a separate interrupt source for each channel.
> + The timer is driven by the STM module clock divided by an 8-bit prescale
> + value.
> +
> +properties:
> + compatible:
> + enum:
> + - nxp,s32g-stm
Previously it was told to me there is no such soc as s32g but they are
named differently, e.g. s32g2. See other bindings.
Please consult internally and come with one unified approach to all NXP
bindings. Otherwise, if this is a real soc, fix this for top level
compatibles, because there is no s32g there either.
This applies to all NXP-related patches (which I am sure was previously
discussed on the lists).
What is confusing: previous compatible was correct and I did not ask to
change it.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2 1/2] dt-bindings: timer: Add NXP System Timer Module
2025-03-29 5:03 ` Krzysztof Kozlowski
@ 2025-03-31 8:38 ` Daniel Lezcano
0 siblings, 0 replies; 3+ messages in thread
From: Daniel Lezcano @ 2025-03-31 8:38 UTC (permalink / raw)
To: Krzysztof Kozlowski, tglx
Cc: linux-kernel, thomas.fossati, Larisa.Grigore, ghennadi.procopciuc,
S32, Ghennadi Procopciuc, Krzysztof Kozlowski, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Maxime Coquelin,
Alexandre Torgue,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
moderated list:ARM/STM32 ARCHITECTURE,
moderated list:ARM/STM32 ARCHITECTURE
On 29/03/2025 06:03, Krzysztof Kozlowski wrote:
> On 28/03/2025 14:42, Daniel Lezcano wrote:
>> Add the System Timer Module description found on the NXP s32 platform
>> and the compatible for the s32g2 variant.
>>
>> Cc: Ghennadi Procopciuc <ghennadi.procopciuc@oss.nxp.com>
>> Cc: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
>> Cc: Thomas Fossati <thomas.fossati@linaro.org>
>> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
>> ---
>
> I got only this patch, no cover letter, no changelog. What happened here?
My bad, my scripts needs some more work :)
Will Cc you in the next version
>> .../bindings/timer/nxp,stm-timer.yaml | 50 +++++++++++++++++++
>> 1 file changed, 50 insertions(+)
>> create mode 100644 Documentation/devicetree/bindings/timer/nxp,stm-timer.yaml
>>
>> diff --git a/Documentation/devicetree/bindings/timer/nxp,stm-timer.yaml b/Documentation/devicetree/bindings/timer/nxp,stm-timer.yaml
>> new file mode 100644
>> index 000000000000..a9c0151d62be
>> --- /dev/null
>> +++ b/Documentation/devicetree/bindings/timer/nxp,stm-timer.yaml
>
> Filename following compatible.
>
>> @@ -0,0 +1,50 @@
>> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
>> +%YAML 1.2
>> +---
>> +$id: http://devicetree.org/schemas/timer/nxp,stm-timer.yaml#
>> +$schema: http://devicetree.org/meta-schemas/core.yaml#
>> +
>> +title: NXP System Timer Module (STM)
>> +
>> +maintainers:
>> + - Daniel Lezcano <daniel.lezcano@kernel.org>
>> +
>> +description:
>> + The System Timer Module supports commonly required system and application
>> + software timing functions. STM includes a 32-bit count-up timer and four
>> + 32-bit compare channels with a separate interrupt source for each channel.
>> + The timer is driven by the STM module clock divided by an 8-bit prescale
>> + value.
>> +
>> +properties:
>> + compatible:
>> + enum:
>> + - nxp,s32g-stm
>
> Previously it was told to me there is no such soc as s32g but they are
> named differently, e.g. s32g2. See other bindings.
>
> Please consult internally and come with one unified approach to all NXP
> bindings. Otherwise, if this is a real soc, fix this for top level
> compatibles, because there is no s32g there either.
>
> This applies to all NXP-related patches (which I am sure was previously
> discussed on the lists).
>
> What is confusing: previous compatible was correct and I did not ask to
> change it.
Yeah, I think the answer is straightforward. It is s32g2 and s32g3, the
two platforms having the STM. I'll will fix the compatibles.
--
<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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-03-31 8:38 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20250328134208.2183653-1-daniel.lezcano@linaro.org>
2025-03-28 13:42 ` [PATCH v2 1/2] dt-bindings: timer: Add NXP System Timer Module Daniel Lezcano
2025-03-29 5:03 ` Krzysztof Kozlowski
2025-03-31 8:38 ` Daniel Lezcano
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).