xref: /linux/Documentation/devicetree/bindings/clock/mediatek,topckgen.yaml (revision 7f71507851fc7764b36a3221839607d3a45c2025)
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/clock/mediatek,topckgen.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: MediaTek Top Clock Generator Controller
8
9maintainers:
10  - Michael Turquette <mturquette@baylibre.com>
11  - Stephen Boyd <sboyd@kernel.org>
12
13description:
14  The Mediatek topckgen controller provides various clocks to the system.
15  The clock values can be found in <dt-bindings/clock/mt*-clk.h> and
16  <dt-bindings/clock/mediatek,mt*-topckgen.h>.
17
18properties:
19  compatible:
20    oneOf:
21      - enum:
22          - mediatek,mt6797-topckgen
23          - mediatek,mt7622-topckgen
24          - mediatek,mt8135-topckgen
25          - mediatek,mt8173-topckgen
26          - mediatek,mt8516-topckgen
27      - items:
28          - const: mediatek,mt7623-topckgen
29          - const: mediatek,mt2701-topckgen
30          - const: syscon
31      - items:
32          - enum:
33              - mediatek,mt2701-topckgen
34              - mediatek,mt2712-topckgen
35              - mediatek,mt6735-topckgen
36              - mediatek,mt6765-topckgen
37              - mediatek,mt6779-topckgen
38              - mediatek,mt6795-topckgen
39              - mediatek,mt7629-topckgen
40              - mediatek,mt7981-topckgen
41              - mediatek,mt7986-topckgen
42              - mediatek,mt7988-mcusys
43              - mediatek,mt7988-topckgen
44              - mediatek,mt8167-topckgen
45              - mediatek,mt8183-topckgen
46          - const: syscon
47
48  reg:
49    maxItems: 1
50
51  '#clock-cells':
52    const: 1
53
54required:
55  - compatible
56  - reg
57  - '#clock-cells'
58
59additionalProperties: false
60
61examples:
62  - |
63    topckgen: clock-controller@10000000 {
64        compatible = "mediatek,mt8173-topckgen";
65        reg = <0x10000000 0x1000>;
66        #clock-cells = <1>;
67    };
68