ath25: switch default kernel to 5.15
[openwrt/openwrt.git] / target / linux / realtek / files-5.10 / Documentation / devicetree / bindings / realtek,otto-timer.yaml
1 # SPDX-License-Identifier: GPL-2.0
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/timer/realtek,rtl8300-timer.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Realtek Timer Device Tree Bindings
8
9 maintainers:
10 - Markus Stockhausen <markus.stockhausen@gmx.de>
11
12 description: |
13 The Realtek SOCs of the RTL83XX and RTL93XX series have at least 5 known
14 timers with corresponding interrupt lines . Their speed is derived from the
15 Lexra Bus (LXB) by dividers. Each timer has a block of 4 control registers in
16 the address range 0xb800xxxx with following start offsets.
17
18 RTL83XX: 0x3100, 0x3110, 0x3120, 0x3130, 0x3140
19 RTL93XX: 0x3200, 0x3210, 0x3220, 0x3230, 0x3240
20
21 properties:
22 compatible:
23 items:
24 - enum:
25 - realtek,rtl8380-timer
26 - realtek,rtl8390-timer
27 - realtek,rtl9300-timer
28 - const: realtek,otto-timer
29
30 reg:
31 minItems: 5
32 maxItems: 5
33 description:
34 List of timer register addresses.
35
36 interrupts:
37 minItems: 5
38 maxItems: 5
39 description:
40 List of timer interrupts.
41
42 clocks:
43 maxItems: 1
44
45 required:
46 - compatible
47 - reg
48 - interrupts
49 - clocks
50
51 additionalProperties: false
52
53 examples:
54 - |
55 timer0: timer@3100 {
56 compatible = "realtek,rtl8380-timer", "realtek,otto-timer";
57 reg = <0x3100 0x10>, <0x3110 0x10>, <0x3120 0x10>,
58 <0x3130 0x10>, <0x3140 0x10>;
59
60 interrupt-parent = <&intc>;
61 interrupts = <29 4>, <28 4>, <17 4>, <16 4>, <15 4>;
62 clocks = <&ccu CLK_LXB>;
63 };
64 - |
65 timer0: timer@3100 {
66 compatible = "realtek,rtl8390-timer", "realtek,otto-timer";
67 reg = <0x3100 0x10>, <0x3110 0x10>, <0x3120 0x10>,
68 <0x3130 0x10>, <0x3140 0x10>;
69
70 interrupt-parent = <&intc>;
71 interrupts = <29 4>, <28 4>, <17 4>, <16 4>, <15 4>;
72 clocks = <&ccu CLK_LXB>;
73 };
74 - |
75 timer0: timer@3200 {
76 compatible = "realtek,rtl9300-timer", "realtek,otto-timer";
77 reg = <0x3200 0x10>, <0x3210 0x10>, <0x3220 0x10>,
78 <0x3230 0x10>, <0x3240 0x10>;
79
80 interrupt-parent = <&intc>;
81 interrupts = <7 4>, <8 4>, <9 4>, <10 4>, <11 4>;
82 clocks = <&ccu CLK_LXB>;
83 };
84
85 ...