Skip to content

Commit eec34eb

Browse files
committed
dt-bindings: timer: Add NXP System Timer Module
Add the System Timer Module description found on the NXP s32 platform and the compatible for the s32g2 variant. Cc: Ghennadi Procopciuc <[email protected]> Cc: Thomas Fossati <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Reviewed-by: Rob Herring (Arm) <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Daniel Lezcano <[email protected]>
1 parent 0af2f6b commit eec34eb

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/timer/nxp,s32g2-stm.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: NXP System Timer Module (STM)
8+
9+
maintainers:
10+
- Daniel Lezcano <[email protected]>
11+
12+
description:
13+
The System Timer Module supports commonly required system and application
14+
software timing functions. STM includes a 32-bit count-up timer and four
15+
32-bit compare channels with a separate interrupt source for each channel.
16+
The timer is driven by the STM module clock divided by an 8-bit prescale
17+
value.
18+
19+
properties:
20+
compatible:
21+
oneOf:
22+
- const: nxp,s32g2-stm
23+
- items:
24+
- const: nxp,s32g3-stm
25+
- const: nxp,s32g2-stm
26+
27+
reg:
28+
maxItems: 1
29+
30+
interrupts:
31+
maxItems: 1
32+
33+
clocks:
34+
items:
35+
- description: Counter clock
36+
- description: Module clock
37+
- description: Register clock
38+
39+
clock-names:
40+
items:
41+
- const: counter
42+
- const: module
43+
- const: register
44+
45+
required:
46+
- compatible
47+
- reg
48+
- interrupts
49+
- clocks
50+
- clock-names
51+
52+
additionalProperties: false
53+
54+
examples:
55+
- |
56+
#include <dt-bindings/interrupt-controller/arm-gic.h>
57+
58+
timer@4011c000 {
59+
compatible = "nxp,s32g2-stm";
60+
reg = <0x4011c000 0x3000>;
61+
interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
62+
clocks = <&clks 0x3b>, <&clks 0x3c>, <&clks 0x3c>;
63+
clock-names = "counter", "module", "register";
64+
};

0 commit comments

Comments
 (0)