Skip to content

Commit af35098

Browse files
geertuesmil
authored andcommitted
dt-bindings: clock: starfive: Add JH7100 bindings
Add bindings for the clock generator on the JH7100 RISC-V SoC by StarFive Ltd. This is a test chip for their upcoming JH7110 SoC. Reviewed-by: Rob Herring <robh@kernel.org> Acked-by: Stephen Boyd <sboyd@kernel.org> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Emil Renner Berthing <kernel@esmil.dk>
1 parent 38bb8a7 commit af35098

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/clock/starfive,jh7100-clkgen.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: StarFive JH7100 Clock Generator
8+
9+
maintainers:
10+
- Geert Uytterhoeven <geert@linux-m68k.org>
11+
- Emil Renner Berthing <kernel@esmil.dk>
12+
13+
properties:
14+
compatible:
15+
const: starfive,jh7100-clkgen
16+
17+
reg:
18+
maxItems: 1
19+
20+
clocks:
21+
items:
22+
- description: Main clock source (25 MHz)
23+
- description: Application-specific clock source (12-27 MHz)
24+
- description: RMII reference clock (50 MHz)
25+
- description: RGMII RX clock (125 MHz)
26+
27+
clock-names:
28+
items:
29+
- const: osc_sys
30+
- const: osc_aud
31+
- const: gmac_rmii_ref
32+
- const: gmac_gr_mii_rxclk
33+
34+
'#clock-cells':
35+
const: 1
36+
description:
37+
See <dt-bindings/clock/starfive-jh7100.h> for valid indices.
38+
39+
required:
40+
- compatible
41+
- reg
42+
- clocks
43+
- clock-names
44+
- '#clock-cells'
45+
46+
additionalProperties: false
47+
48+
examples:
49+
- |
50+
clock-controller@11800000 {
51+
compatible = "starfive,jh7100-clkgen";
52+
reg = <0x11800000 0x10000>;
53+
clocks = <&osc_sys>, <&osc_aud>, <&gmac_rmii_ref>, <&gmac_gr_mii_rxclk>;
54+
clock-names = "osc_sys", "osc_aud", "gmac_rmii_ref", "gmac_gr_mii_rxclk";
55+
#clock-cells = <1>;
56+
};

0 commit comments

Comments
 (0)