2020-04-27 12:32:24 -07:00
|
|
|
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
|
|
|
|
%YAML 1.2
|
|
|
|
---
|
|
|
|
$id: http://devicetree.org/schemas/timer/renesas,ostm.yaml#
|
|
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
|
|
|
|
title: Renesas OS Timer (OSTM)
|
|
|
|
|
|
|
|
maintainers:
|
|
|
|
- Chris Brandt <chris.brandt@renesas.com>
|
|
|
|
- Geert Uytterhoeven <geert+renesas@glider.be>
|
|
|
|
|
|
|
|
description:
|
|
|
|
The OSTM is a multi-channel 32-bit timer/counter with fixed clock source that
|
|
|
|
can operate in either interval count down timer or free-running compare match
|
|
|
|
mode.
|
|
|
|
|
|
|
|
Channels are independent from each other.
|
|
|
|
|
|
|
|
properties:
|
|
|
|
compatible:
|
|
|
|
items:
|
|
|
|
- enum:
|
2021-11-12 11:44:11 -07:00
|
|
|
- renesas,r7s72100-ostm # RZ/A1H
|
|
|
|
- renesas,r7s9210-ostm # RZ/A2M
|
2023-11-15 14:29:08 -07:00
|
|
|
- renesas,r9a07g043-ostm # RZ/G2UL and RZ/Five
|
2021-11-12 11:44:11 -07:00
|
|
|
- renesas,r9a07g044-ostm # RZ/G2{L,LC}
|
2022-02-27 15:48:44 -07:00
|
|
|
- renesas,r9a07g054-ostm # RZ/V2L
|
2024-03-22 08:12:18 -07:00
|
|
|
- renesas,r9a09g057-ostm # RZ/V2H(P)
|
2021-11-12 11:44:11 -07:00
|
|
|
- const: renesas,ostm # Generic
|
2020-04-27 12:32:24 -07:00
|
|
|
|
|
|
|
reg:
|
|
|
|
maxItems: 1
|
|
|
|
|
|
|
|
interrupts:
|
|
|
|
maxItems: 1
|
|
|
|
|
|
|
|
clocks:
|
|
|
|
maxItems: 1
|
|
|
|
|
|
|
|
power-domains:
|
|
|
|
maxItems: 1
|
|
|
|
|
2021-11-12 11:44:11 -07:00
|
|
|
resets:
|
|
|
|
maxItems: 1
|
|
|
|
|
2020-04-27 12:32:24 -07:00
|
|
|
required:
|
|
|
|
- compatible
|
|
|
|
- reg
|
|
|
|
- interrupts
|
|
|
|
- clocks
|
|
|
|
- power-domains
|
|
|
|
|
2021-11-12 11:44:11 -07:00
|
|
|
if:
|
|
|
|
properties:
|
|
|
|
compatible:
|
|
|
|
contains:
|
|
|
|
enum:
|
2022-04-25 07:18:28 -07:00
|
|
|
- renesas,r9a07g043-ostm
|
2021-11-12 11:44:11 -07:00
|
|
|
- renesas,r9a07g044-ostm
|
2022-02-27 15:48:44 -07:00
|
|
|
- renesas,r9a07g054-ostm
|
2024-03-22 08:12:18 -07:00
|
|
|
- renesas,r9a09g057-ostm
|
2021-11-12 11:44:11 -07:00
|
|
|
then:
|
|
|
|
required:
|
|
|
|
- resets
|
|
|
|
|
2020-04-27 12:32:24 -07:00
|
|
|
additionalProperties: false
|
|
|
|
|
|
|
|
examples:
|
|
|
|
- |
|
|
|
|
#include <dt-bindings/clock/r7s72100-clock.h>
|
|
|
|
#include <dt-bindings/interrupt-controller/arm-gic.h>
|
|
|
|
ostm0: timer@fcfec000 {
|
|
|
|
compatible = "renesas,r7s72100-ostm", "renesas,ostm";
|
|
|
|
reg = <0xfcfec000 0x30>;
|
|
|
|
interrupts = <GIC_SPI 102 IRQ_TYPE_EDGE_RISING>;
|
|
|
|
clocks = <&mstp5_clks R7S72100_CLK_OSTM0>;
|
|
|
|
power-domains = <&cpg_clocks>;
|
|
|
|
};
|