xref: /freebsd/sys/contrib/device-tree/Bindings/timer/ingenic,sysost.yaml (revision 8cc087a1eee9ec1ca9f7ac1e63ad51bdb5a682eb)
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/ingenic,sysost.yaml#
5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6c66ec88fSEmmanuel Vadot
7c66ec88fSEmmanuel Vadottitle: Bindings for SYSOST in Ingenic XBurst family SoCs
8c66ec88fSEmmanuel Vadot
9c66ec88fSEmmanuel Vadotmaintainers:
10c66ec88fSEmmanuel Vadot  - 周琰杰 (Zhou Yanjie) <zhouyanjie@wanyeetech.com>
11c66ec88fSEmmanuel Vadot
12c66ec88fSEmmanuel Vadotdescription:
13c66ec88fSEmmanuel Vadot  The SYSOST in an Ingenic SoC provides one 64bit timer for clocksource
14c66ec88fSEmmanuel Vadot  and one or more 32bit timers for clockevent.
15c66ec88fSEmmanuel Vadot
16c66ec88fSEmmanuel Vadotproperties:
17c66ec88fSEmmanuel Vadot  "#clock-cells":
18c66ec88fSEmmanuel Vadot    const: 1
19c66ec88fSEmmanuel Vadot
20c66ec88fSEmmanuel Vadot  compatible:
21c66ec88fSEmmanuel Vadot    enum:
22c66ec88fSEmmanuel Vadot      - ingenic,x1000-ost
23c66ec88fSEmmanuel Vadot      - ingenic,x2000-ost
24c66ec88fSEmmanuel Vadot
25c66ec88fSEmmanuel Vadot  reg:
26c66ec88fSEmmanuel Vadot    maxItems: 1
27c66ec88fSEmmanuel Vadot
28c66ec88fSEmmanuel Vadot  clocks:
29c66ec88fSEmmanuel Vadot    maxItems: 1
30c66ec88fSEmmanuel Vadot
31c66ec88fSEmmanuel Vadot  clock-names:
32c66ec88fSEmmanuel Vadot    const: ost
33c66ec88fSEmmanuel Vadot
34c66ec88fSEmmanuel Vadot  interrupts:
35c66ec88fSEmmanuel Vadot    maxItems: 1
36c66ec88fSEmmanuel Vadot
37c66ec88fSEmmanuel Vadotrequired:
38c66ec88fSEmmanuel Vadot  - "#clock-cells"
39c66ec88fSEmmanuel Vadot  - compatible
40c66ec88fSEmmanuel Vadot  - reg
41c66ec88fSEmmanuel Vadot  - clocks
42c66ec88fSEmmanuel Vadot  - clock-names
43c66ec88fSEmmanuel Vadot  - interrupts
44c66ec88fSEmmanuel Vadot
45c66ec88fSEmmanuel VadotadditionalProperties: false
46c66ec88fSEmmanuel Vadot
47c66ec88fSEmmanuel Vadotexamples:
48c66ec88fSEmmanuel Vadot  - |
49*8cc087a1SEmmanuel Vadot    #include <dt-bindings/clock/ingenic,x1000-cgu.h>
50c66ec88fSEmmanuel Vadot
51c66ec88fSEmmanuel Vadot    ost: timer@12000000 {
52c66ec88fSEmmanuel Vadot        compatible = "ingenic,x1000-ost";
53c66ec88fSEmmanuel Vadot        reg = <0x12000000 0x3c>;
54c66ec88fSEmmanuel Vadot
55c66ec88fSEmmanuel Vadot        #clock-cells = <1>;
56c66ec88fSEmmanuel Vadot
57c66ec88fSEmmanuel Vadot        clocks = <&cgu X1000_CLK_OST>;
58c66ec88fSEmmanuel Vadot        clock-names = "ost";
59c66ec88fSEmmanuel Vadot
60c66ec88fSEmmanuel Vadot        interrupt-parent = <&cpuintc>;
61c66ec88fSEmmanuel Vadot        interrupts = <3>;
62c66ec88fSEmmanuel Vadot    };
63c66ec88fSEmmanuel Vadot...
64