1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2c66ec88fSEmmanuel Vadot%YAML 1.2 3c66ec88fSEmmanuel Vadot--- 4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/timer/renesas,ostm.yaml# 5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6c66ec88fSEmmanuel Vadot 7c66ec88fSEmmanuel Vadottitle: Renesas OS Timer (OSTM) 8c66ec88fSEmmanuel Vadot 9c66ec88fSEmmanuel Vadotmaintainers: 10c66ec88fSEmmanuel Vadot - Chris Brandt <chris.brandt@renesas.com> 11c66ec88fSEmmanuel Vadot - Geert Uytterhoeven <geert+renesas@glider.be> 12c66ec88fSEmmanuel Vadot 13c66ec88fSEmmanuel Vadotdescription: 14c66ec88fSEmmanuel Vadot The OSTM is a multi-channel 32-bit timer/counter with fixed clock source that 15c66ec88fSEmmanuel Vadot can operate in either interval count down timer or free-running compare match 16c66ec88fSEmmanuel Vadot mode. 17c66ec88fSEmmanuel Vadot 18c66ec88fSEmmanuel Vadot Channels are independent from each other. 19c66ec88fSEmmanuel Vadot 20c66ec88fSEmmanuel Vadotproperties: 21c66ec88fSEmmanuel Vadot compatible: 22c66ec88fSEmmanuel Vadot items: 23c66ec88fSEmmanuel Vadot - enum: 24c66ec88fSEmmanuel Vadot - renesas,r7s72100-ostm # RZ/A1H 25c66ec88fSEmmanuel Vadot - renesas,r7s9210-ostm # RZ/A2M 26*d5b0e70fSEmmanuel Vadot - renesas,r9a07g043-ostm # RZ/G2UL 27e67e8565SEmmanuel Vadot - renesas,r9a07g044-ostm # RZ/G2{L,LC} 28c9ccf3a3SEmmanuel Vadot - renesas,r9a07g054-ostm # RZ/V2L 29c66ec88fSEmmanuel Vadot - const: renesas,ostm # Generic 30c66ec88fSEmmanuel Vadot 31c66ec88fSEmmanuel Vadot reg: 32c66ec88fSEmmanuel Vadot maxItems: 1 33c66ec88fSEmmanuel Vadot 34c66ec88fSEmmanuel Vadot interrupts: 35c66ec88fSEmmanuel Vadot maxItems: 1 36c66ec88fSEmmanuel Vadot 37c66ec88fSEmmanuel Vadot clocks: 38c66ec88fSEmmanuel Vadot maxItems: 1 39c66ec88fSEmmanuel Vadot 40c66ec88fSEmmanuel Vadot power-domains: 41c66ec88fSEmmanuel Vadot maxItems: 1 42c66ec88fSEmmanuel Vadot 43e67e8565SEmmanuel Vadot resets: 44e67e8565SEmmanuel Vadot maxItems: 1 45e67e8565SEmmanuel Vadot 46c66ec88fSEmmanuel Vadotrequired: 47c66ec88fSEmmanuel Vadot - compatible 48c66ec88fSEmmanuel Vadot - reg 49c66ec88fSEmmanuel Vadot - interrupts 50c66ec88fSEmmanuel Vadot - clocks 51c66ec88fSEmmanuel Vadot - power-domains 52c66ec88fSEmmanuel Vadot 53e67e8565SEmmanuel Vadotif: 54e67e8565SEmmanuel Vadot properties: 55e67e8565SEmmanuel Vadot compatible: 56e67e8565SEmmanuel Vadot contains: 57e67e8565SEmmanuel Vadot enum: 58*d5b0e70fSEmmanuel Vadot - renesas,r9a07g043-ostm 59e67e8565SEmmanuel Vadot - renesas,r9a07g044-ostm 60c9ccf3a3SEmmanuel Vadot - renesas,r9a07g054-ostm 61e67e8565SEmmanuel Vadotthen: 62e67e8565SEmmanuel Vadot required: 63e67e8565SEmmanuel Vadot - resets 64e67e8565SEmmanuel Vadot 65c66ec88fSEmmanuel VadotadditionalProperties: false 66c66ec88fSEmmanuel Vadot 67c66ec88fSEmmanuel Vadotexamples: 68c66ec88fSEmmanuel Vadot - | 69c66ec88fSEmmanuel Vadot #include <dt-bindings/clock/r7s72100-clock.h> 70c66ec88fSEmmanuel Vadot #include <dt-bindings/interrupt-controller/arm-gic.h> 71c66ec88fSEmmanuel Vadot ostm0: timer@fcfec000 { 72c66ec88fSEmmanuel Vadot compatible = "renesas,r7s72100-ostm", "renesas,ostm"; 73c66ec88fSEmmanuel Vadot reg = <0xfcfec000 0x30>; 74c66ec88fSEmmanuel Vadot interrupts = <GIC_SPI 102 IRQ_TYPE_EDGE_RISING>; 75c66ec88fSEmmanuel Vadot clocks = <&mstp5_clks R7S72100_CLK_OSTM0>; 76c66ec88fSEmmanuel Vadot power-domains = <&cpg_clocks>; 77c66ec88fSEmmanuel Vadot }; 78