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 7title: NXP System Timer Module (STM) 8 9maintainers: 10 - Daniel Lezcano <daniel.lezcano@kernel.org> 11 12description: 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 19properties: 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 45required: 46 - compatible 47 - reg 48 - interrupts 49 - clocks 50 - clock-names 51 52additionalProperties: false 53 54examples: 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 }; 65