mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-01 06:39:05 +00:00

Document support for the Renesas OS Timer (OSTM) found on the Renesas RZ/V2N (R9A09G056) SoC. The OSTM IP on RZ/V2N is identical to that on other RZ families, so no driver changes are required as `renesas,ostm` will be used as fallback compatible. Also update the bindings to require the "resets" property for RZ/V2N by inverting the logic: all SoCs except RZ/A1 and RZ/A2 now require the "resets" property. Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Conor Dooley <conor.dooley@microchip.com> Link: https://lore.kernel.org/r/20250515182207.329176-2-prabhakar.mahadev-lad.rj@bp.renesas.com Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
80 lines
1.8 KiB
YAML
80 lines
1.8 KiB
YAML
# 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:
|
|
- renesas,r7s72100-ostm # RZ/A1H
|
|
- renesas,r7s9210-ostm # RZ/A2M
|
|
- renesas,r9a07g043-ostm # RZ/G2UL and RZ/Five
|
|
- renesas,r9a07g044-ostm # RZ/G2{L,LC}
|
|
- renesas,r9a07g054-ostm # RZ/V2L
|
|
- renesas,r9a09g056-ostm # RZ/V2N
|
|
- renesas,r9a09g057-ostm # RZ/V2H(P)
|
|
- const: renesas,ostm # Generic
|
|
|
|
reg:
|
|
maxItems: 1
|
|
|
|
interrupts:
|
|
maxItems: 1
|
|
|
|
clocks:
|
|
maxItems: 1
|
|
|
|
power-domains:
|
|
maxItems: 1
|
|
|
|
resets:
|
|
maxItems: 1
|
|
|
|
required:
|
|
- compatible
|
|
- reg
|
|
- interrupts
|
|
- clocks
|
|
- power-domains
|
|
|
|
if:
|
|
properties:
|
|
compatible:
|
|
not:
|
|
contains:
|
|
enum:
|
|
- renesas,r7s72100-ostm
|
|
- renesas,r7s9210-ostm
|
|
then:
|
|
required:
|
|
- resets
|
|
|
|
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>;
|
|
};
|