summaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/clock/starfive,jh7100-clkgen.yaml
blob: 12f17b60ecbeb45616db701cdd13bf5ae5a46bc3 (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
56
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/clock/starfive,jh7100-clkgen.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: StarFive JH7100 Clock Generator

maintainers:
  - Geert Uytterhoeven <geert@linux-m68k.org>
  - Emil Renner Berthing <kernel@esmil.dk>

properties:
  compatible:
    const: starfive,jh7100-clkgen

  reg:
    maxItems: 1

  clocks:
    items:
      - description: Main clock source (25 MHz)
      - description: Application-specific clock source (12-27 MHz)
      - description: RMII reference clock (50 MHz)
      - description: RGMII RX clock (125 MHz)

  clock-names:
    items:
      - const: osc_sys
      - const: osc_aud
      - const: gmac_rmii_ref
      - const: gmac_gr_mii_rxclk

  '#clock-cells':
    const: 1
    description:
      See <dt-bindings/clock/starfive-jh7100.h> for valid indices.

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

additionalProperties: false

examples:
  - |
    clock-controller@11800000 {
            compatible = "starfive,jh7100-clkgen";
            reg = <0x11800000 0x10000>;
            clocks = <&osc_sys>, <&osc_aud>, <&gmac_rmii_ref>, <&gmac_gr_mii_rxclk>;
            clock-names = "osc_sys", "osc_aud", "gmac_rmii_ref", "gmac_gr_mii_rxclk";
            #clock-cells = <1>;
    };