xref: /freebsd/sys/contrib/device-tree/Bindings/clock/starfive,jh7110-syscrg.yaml (revision aa1a8ff2d6dbc51ef058f46f3db5a8bb77967145)
1fac71e4eSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2fac71e4eSEmmanuel Vadot%YAML 1.2
3fac71e4eSEmmanuel Vadot---
4fac71e4eSEmmanuel Vadot$id: http://devicetree.org/schemas/clock/starfive,jh7110-syscrg.yaml#
5fac71e4eSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6fac71e4eSEmmanuel Vadot
7fac71e4eSEmmanuel Vadottitle: StarFive JH7110 System Clock and Reset Generator
8fac71e4eSEmmanuel Vadot
9fac71e4eSEmmanuel Vadotmaintainers:
10fac71e4eSEmmanuel Vadot  - Emil Renner Berthing <kernel@esmil.dk>
11fac71e4eSEmmanuel Vadot
12fac71e4eSEmmanuel Vadotproperties:
13fac71e4eSEmmanuel Vadot  compatible:
14fac71e4eSEmmanuel Vadot    const: starfive,jh7110-syscrg
15fac71e4eSEmmanuel Vadot
16fac71e4eSEmmanuel Vadot  reg:
17fac71e4eSEmmanuel Vadot    maxItems: 1
18fac71e4eSEmmanuel Vadot
19fac71e4eSEmmanuel Vadot  clocks:
20fac71e4eSEmmanuel Vadot    oneOf:
21fac71e4eSEmmanuel Vadot      - items:
22fac71e4eSEmmanuel Vadot          - description: Main Oscillator (24 MHz)
23fac71e4eSEmmanuel Vadot          - description: GMAC1 RMII reference or GMAC1 RGMII RX
24fac71e4eSEmmanuel Vadot          - description: External I2S TX bit clock
25fac71e4eSEmmanuel Vadot          - description: External I2S TX left/right channel clock
26fac71e4eSEmmanuel Vadot          - description: External I2S RX bit clock
27fac71e4eSEmmanuel Vadot          - description: External I2S RX left/right channel clock
28fac71e4eSEmmanuel Vadot          - description: External TDM clock
29fac71e4eSEmmanuel Vadot          - description: External audio master clock
30*aa1a8ff2SEmmanuel Vadot          - description: PLL0
31*aa1a8ff2SEmmanuel Vadot          - description: PLL1
32*aa1a8ff2SEmmanuel Vadot          - description: PLL2
33fac71e4eSEmmanuel Vadot
34fac71e4eSEmmanuel Vadot      - items:
35fac71e4eSEmmanuel Vadot          - description: Main Oscillator (24 MHz)
36fac71e4eSEmmanuel Vadot          - description: GMAC1 RMII reference
37fac71e4eSEmmanuel Vadot          - description: GMAC1 RGMII RX
38fac71e4eSEmmanuel Vadot          - description: External I2S TX bit clock
39fac71e4eSEmmanuel Vadot          - description: External I2S TX left/right channel clock
40fac71e4eSEmmanuel Vadot          - description: External I2S RX bit clock
41fac71e4eSEmmanuel Vadot          - description: External I2S RX left/right channel clock
42fac71e4eSEmmanuel Vadot          - description: External TDM clock
43fac71e4eSEmmanuel Vadot          - description: External audio master clock
44*aa1a8ff2SEmmanuel Vadot          - description: PLL0
45*aa1a8ff2SEmmanuel Vadot          - description: PLL1
46*aa1a8ff2SEmmanuel Vadot          - description: PLL2
47fac71e4eSEmmanuel Vadot
48fac71e4eSEmmanuel Vadot  clock-names:
49fac71e4eSEmmanuel Vadot    oneOf:
50fac71e4eSEmmanuel Vadot      - items:
51fac71e4eSEmmanuel Vadot          - const: osc
52fac71e4eSEmmanuel Vadot          - enum:
53fac71e4eSEmmanuel Vadot              - gmac1_rmii_refin
54fac71e4eSEmmanuel Vadot              - gmac1_rgmii_rxin
55fac71e4eSEmmanuel Vadot          - const: i2stx_bclk_ext
56fac71e4eSEmmanuel Vadot          - const: i2stx_lrck_ext
57fac71e4eSEmmanuel Vadot          - const: i2srx_bclk_ext
58fac71e4eSEmmanuel Vadot          - const: i2srx_lrck_ext
59fac71e4eSEmmanuel Vadot          - const: tdm_ext
60fac71e4eSEmmanuel Vadot          - const: mclk_ext
61*aa1a8ff2SEmmanuel Vadot          - const: pll0_out
62*aa1a8ff2SEmmanuel Vadot          - const: pll1_out
63*aa1a8ff2SEmmanuel Vadot          - const: pll2_out
64fac71e4eSEmmanuel Vadot
65fac71e4eSEmmanuel Vadot      - items:
66fac71e4eSEmmanuel Vadot          - const: osc
67fac71e4eSEmmanuel Vadot          - const: gmac1_rmii_refin
68fac71e4eSEmmanuel Vadot          - const: gmac1_rgmii_rxin
69fac71e4eSEmmanuel Vadot          - const: i2stx_bclk_ext
70fac71e4eSEmmanuel Vadot          - const: i2stx_lrck_ext
71fac71e4eSEmmanuel Vadot          - const: i2srx_bclk_ext
72fac71e4eSEmmanuel Vadot          - const: i2srx_lrck_ext
73fac71e4eSEmmanuel Vadot          - const: tdm_ext
74fac71e4eSEmmanuel Vadot          - const: mclk_ext
75*aa1a8ff2SEmmanuel Vadot          - const: pll0_out
76*aa1a8ff2SEmmanuel Vadot          - const: pll1_out
77*aa1a8ff2SEmmanuel Vadot          - const: pll2_out
78fac71e4eSEmmanuel Vadot
79fac71e4eSEmmanuel Vadot  '#clock-cells':
80fac71e4eSEmmanuel Vadot    const: 1
81fac71e4eSEmmanuel Vadot    description:
82fac71e4eSEmmanuel Vadot      See <dt-bindings/clock/starfive,jh7110-crg.h> for valid indices.
83fac71e4eSEmmanuel Vadot
84fac71e4eSEmmanuel Vadot  '#reset-cells':
85fac71e4eSEmmanuel Vadot    const: 1
86fac71e4eSEmmanuel Vadot    description:
87fac71e4eSEmmanuel Vadot      See <dt-bindings/reset/starfive,jh7110-crg.h> for valid indices.
88fac71e4eSEmmanuel Vadot
89fac71e4eSEmmanuel Vadotrequired:
90fac71e4eSEmmanuel Vadot  - compatible
91fac71e4eSEmmanuel Vadot  - reg
92fac71e4eSEmmanuel Vadot  - clocks
93fac71e4eSEmmanuel Vadot  - clock-names
94fac71e4eSEmmanuel Vadot  - '#clock-cells'
95fac71e4eSEmmanuel Vadot  - '#reset-cells'
96fac71e4eSEmmanuel Vadot
97fac71e4eSEmmanuel VadotadditionalProperties: false
98fac71e4eSEmmanuel Vadot
99fac71e4eSEmmanuel Vadotexamples:
100fac71e4eSEmmanuel Vadot  - |
101fac71e4eSEmmanuel Vadot    clock-controller@13020000 {
102fac71e4eSEmmanuel Vadot        compatible = "starfive,jh7110-syscrg";
103fac71e4eSEmmanuel Vadot        reg = <0x13020000 0x10000>;
104fac71e4eSEmmanuel Vadot        clocks = <&osc>, <&gmac1_rmii_refin>,
105fac71e4eSEmmanuel Vadot                 <&gmac1_rgmii_rxin>,
106fac71e4eSEmmanuel Vadot                 <&i2stx_bclk_ext>, <&i2stx_lrck_ext>,
107fac71e4eSEmmanuel Vadot                 <&i2srx_bclk_ext>, <&i2srx_lrck_ext>,
108*aa1a8ff2SEmmanuel Vadot                 <&tdm_ext>, <&mclk_ext>,
109*aa1a8ff2SEmmanuel Vadot                 <&pllclk 0>, <&pllclk 1>, <&pllclk 2>;
110fac71e4eSEmmanuel Vadot        clock-names = "osc", "gmac1_rmii_refin",
111fac71e4eSEmmanuel Vadot                      "gmac1_rgmii_rxin",
112fac71e4eSEmmanuel Vadot                      "i2stx_bclk_ext", "i2stx_lrck_ext",
113fac71e4eSEmmanuel Vadot                      "i2srx_bclk_ext", "i2srx_lrck_ext",
114*aa1a8ff2SEmmanuel Vadot                      "tdm_ext", "mclk_ext",
115*aa1a8ff2SEmmanuel Vadot                      "pll0_out", "pll1_out", "pll2_out";
116fac71e4eSEmmanuel Vadot        #clock-cells = <1>;
117fac71e4eSEmmanuel Vadot        #reset-cells = <1>;
118fac71e4eSEmmanuel Vadot    };
119