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

title: Sophgo SG2042 Gate Clock Generator for RP(riscv processors) subsystem

maintainers:
  - Chen Wang <unicorn_wang@outlook.com>

properties:
  compatible:
    const: sophgo,sg2042-rpgate

  reg:
    maxItems: 1

  clocks:
    items:
      - description: Gate clock for RP subsystem

  clock-names:
    items:
      - const: rpgate

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

required:
  - compatible
  - reg
  - clocks
  - clock-names
  - '#clock-cells'

additionalProperties: false

examples:
  - |
    clock-controller@20000000 {
      compatible = "sophgo,sg2042-rpgate";
      reg = <0x20000000 0x10000>;
      clocks = <&clkgen 85>;
      clock-names = "rpgate";
      #clock-cells = <1>;
    };