summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/clock/sophgo,cv1800-clk.yaml
blob: 379ce3e9e391c5ad92722f723e7febbf2b2a6d2c (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
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/clock/sophgo,cv1800-clk.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Sophgo CV1800/SG2000 Series Clock Controller

maintainers:
  - Inochi Amaoto <inochiama@outlook.com>

properties:
  compatible:
    oneOf:
      - enum:
          - sophgo,cv1800b-clk
          - sophgo,cv1812h-clk
          - sophgo,sg2000-clk
      - items:
          - const: sophgo,sg2002-clk
          - const: sophgo,sg2000-clk
      - const: sophgo,cv1800-clk
        deprecated: true
      - const: sophgo,cv1810-clk
        deprecated: true

  reg:
    maxItems: 1

  clocks:
    maxItems: 1

  "#clock-cells":
    const: 1
    description:
      See <dt-bindings/clock/sophgo,cv1800.h> for valid indices.

required:
  - compatible
  - reg
  - clocks
  - "#clock-cells"

additionalProperties: false

examples:
  - |
    clock-controller@3002000 {
        compatible = "sophgo,cv1800-clk";
        reg = <0x03002000 0x1000>;
        clocks = <&osc>;
        #clock-cells = <1>;
    };

...