aboutsummaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/timer/realtek,otto-timer.yaml
blob: 7b6ec2c6948435c57230cbdfd97c7b7dc4f350f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/timer/realtek,otto-timer.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Realtek Otto SoCs Timer/Counter

description:
  Realtek SoCs support a number of timers/counters. These are used
  as a per CPU clock event generator and an overall CPU clocksource.

maintainers:
  - Chris Packham <chris.packham@alliedtelesis.co.nz>

properties:
  $nodename:
    pattern: "^timer@[0-9a-f]+$"

  compatible:
    items:
      - enum:
          - realtek,rtl9302-timer
      - const: realtek,otto-timer

  reg:
    items:
      - description: timer0 registers
      - description: timer1 registers
      - description: timer2 registers
      - description: timer3 registers
      - description: timer4 registers

  clocks:
    maxItems: 1

  interrupts:
    items:
      - description: timer0 interrupt
      - description: timer1 interrupt
      - description: timer2 interrupt
      - description: timer3 interrupt
      - description: timer4 interrupt

required:
  - compatible
  - reg
  - clocks
  - interrupts

additionalProperties: false

examples:
  - |
    timer@3200 {
      compatible = "realtek,rtl9302-timer", "realtek,otto-timer";
      reg = <0x3200 0x10>, <0x3210 0x10>, <0x3220 0x10>,
            <0x3230 0x10>, <0x3240 0x10>;

      interrupt-parent = <&intc>;
      interrupts = <7>, <8>, <9>, <10>, <11>;
      clocks = <&lx_clk>;
    };