18f186321SGeert Uytterhoeven# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 28f186321SGeert Uytterhoeven%YAML 1.2 38f186321SGeert Uytterhoeven--- 48f186321SGeert Uytterhoeven$id: http://devicetree.org/schemas/timer/renesas,ostm.yaml# 58f186321SGeert Uytterhoeven$schema: http://devicetree.org/meta-schemas/core.yaml# 68f186321SGeert Uytterhoeven 78f186321SGeert Uytterhoeventitle: Renesas OS Timer (OSTM) 88f186321SGeert Uytterhoeven 98f186321SGeert Uytterhoevenmaintainers: 108f186321SGeert Uytterhoeven - Chris Brandt <chris.brandt@renesas.com> 118f186321SGeert Uytterhoeven - Geert Uytterhoeven <geert+renesas@glider.be> 128f186321SGeert Uytterhoeven 138f186321SGeert Uytterhoevendescription: 148f186321SGeert Uytterhoeven The OSTM is a multi-channel 32-bit timer/counter with fixed clock source that 158f186321SGeert Uytterhoeven can operate in either interval count down timer or free-running compare match 168f186321SGeert Uytterhoeven mode. 178f186321SGeert Uytterhoeven 188f186321SGeert Uytterhoeven Channels are independent from each other. 198f186321SGeert Uytterhoeven 208f186321SGeert Uytterhoevenproperties: 218f186321SGeert Uytterhoeven compatible: 228f186321SGeert Uytterhoeven items: 238f186321SGeert Uytterhoeven - enum: 248f186321SGeert Uytterhoeven - renesas,r7s72100-ostm # RZ/A1H 258f186321SGeert Uytterhoeven - renesas,r7s9210-ostm # RZ/A2M 2669518264SLad Prabhakar - renesas,r9a07g043-ostm # RZ/G2UL and RZ/Five 2792d06a3fSBiju Das - renesas,r9a07g044-ostm # RZ/G2{L,LC} 287419553dSLad Prabhakar - renesas,r9a07g054-ostm # RZ/V2L 29*6402eb80SLad Prabhakar - renesas,r9a09g057-ostm # RZ/V2H(P) 308f186321SGeert Uytterhoeven - const: renesas,ostm # Generic 318f186321SGeert Uytterhoeven 328f186321SGeert Uytterhoeven reg: 338f186321SGeert Uytterhoeven maxItems: 1 348f186321SGeert Uytterhoeven 358f186321SGeert Uytterhoeven interrupts: 368f186321SGeert Uytterhoeven maxItems: 1 378f186321SGeert Uytterhoeven 388f186321SGeert Uytterhoeven clocks: 398f186321SGeert Uytterhoeven maxItems: 1 408f186321SGeert Uytterhoeven 418f186321SGeert Uytterhoeven power-domains: 428f186321SGeert Uytterhoeven maxItems: 1 438f186321SGeert Uytterhoeven 4492d06a3fSBiju Das resets: 4592d06a3fSBiju Das maxItems: 1 4692d06a3fSBiju Das 478f186321SGeert Uytterhoevenrequired: 488f186321SGeert Uytterhoeven - compatible 498f186321SGeert Uytterhoeven - reg 508f186321SGeert Uytterhoeven - interrupts 518f186321SGeert Uytterhoeven - clocks 528f186321SGeert Uytterhoeven - power-domains 538f186321SGeert Uytterhoeven 5492d06a3fSBiju Dasif: 5592d06a3fSBiju Das properties: 5692d06a3fSBiju Das compatible: 5792d06a3fSBiju Das contains: 5892d06a3fSBiju Das enum: 59f14eb061SBiju Das - renesas,r9a07g043-ostm 6092d06a3fSBiju Das - renesas,r9a07g044-ostm 617419553dSLad Prabhakar - renesas,r9a07g054-ostm 62*6402eb80SLad Prabhakar - renesas,r9a09g057-ostm 6392d06a3fSBiju Dasthen: 6492d06a3fSBiju Das required: 6592d06a3fSBiju Das - resets 6692d06a3fSBiju Das 678f186321SGeert UytterhoevenadditionalProperties: false 688f186321SGeert Uytterhoeven 698f186321SGeert Uytterhoevenexamples: 708f186321SGeert Uytterhoeven - | 718f186321SGeert Uytterhoeven #include <dt-bindings/clock/r7s72100-clock.h> 728f186321SGeert Uytterhoeven #include <dt-bindings/interrupt-controller/arm-gic.h> 738f186321SGeert Uytterhoeven ostm0: timer@fcfec000 { 748f186321SGeert Uytterhoeven compatible = "renesas,r7s72100-ostm", "renesas,ostm"; 758f186321SGeert Uytterhoeven reg = <0xfcfec000 0x30>; 768f186321SGeert Uytterhoeven interrupts = <GIC_SPI 102 IRQ_TYPE_EDGE_RISING>; 778f186321SGeert Uytterhoeven clocks = <&mstp5_clks R7S72100_CLK_OSTM0>; 788f186321SGeert Uytterhoeven power-domains = <&cpg_clocks>; 798f186321SGeert Uytterhoeven }; 80