xref: /freebsd/sys/contrib/device-tree/Bindings/clock/sunplus,sp7021-clkc.yaml (revision b97ee269eae3cbaf35c18f51a459aea581c2a7dc)
1*b97ee269SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*b97ee269SEmmanuel Vadot# Copyright (C) Sunplus Co., Ltd. 2021
3*b97ee269SEmmanuel Vadot%YAML 1.2
4*b97ee269SEmmanuel Vadot---
5*b97ee269SEmmanuel Vadot$id: http://devicetree.org/schemas/clock/sunplus,sp7021-clkc.yaml#
6*b97ee269SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
7*b97ee269SEmmanuel Vadot
8*b97ee269SEmmanuel Vadottitle: Sunplus SP7021 SoC Clock Controller
9*b97ee269SEmmanuel Vadot
10*b97ee269SEmmanuel Vadotmaintainers:
11*b97ee269SEmmanuel Vadot  - Qin Jian <qinjian@cqplus1.com>
12*b97ee269SEmmanuel Vadot
13*b97ee269SEmmanuel Vadotproperties:
14*b97ee269SEmmanuel Vadot  compatible:
15*b97ee269SEmmanuel Vadot    const: sunplus,sp7021-clkc
16*b97ee269SEmmanuel Vadot
17*b97ee269SEmmanuel Vadot  reg:
18*b97ee269SEmmanuel Vadot    maxItems: 3
19*b97ee269SEmmanuel Vadot
20*b97ee269SEmmanuel Vadot  clocks:
21*b97ee269SEmmanuel Vadot    maxItems: 1
22*b97ee269SEmmanuel Vadot
23*b97ee269SEmmanuel Vadot  "#clock-cells":
24*b97ee269SEmmanuel Vadot    const: 1
25*b97ee269SEmmanuel Vadot
26*b97ee269SEmmanuel Vadotrequired:
27*b97ee269SEmmanuel Vadot  - compatible
28*b97ee269SEmmanuel Vadot  - reg
29*b97ee269SEmmanuel Vadot  - clocks
30*b97ee269SEmmanuel Vadot  - "#clock-cells"
31*b97ee269SEmmanuel Vadot
32*b97ee269SEmmanuel VadotadditionalProperties: false
33*b97ee269SEmmanuel Vadot
34*b97ee269SEmmanuel Vadotexamples:
35*b97ee269SEmmanuel Vadot  - |
36*b97ee269SEmmanuel Vadot    extclk: osc0 {
37*b97ee269SEmmanuel Vadot      compatible = "fixed-clock";
38*b97ee269SEmmanuel Vadot      #clock-cells = <0>;
39*b97ee269SEmmanuel Vadot      clock-frequency = <27000000>;
40*b97ee269SEmmanuel Vadot      clock-output-names = "extclk";
41*b97ee269SEmmanuel Vadot    };
42*b97ee269SEmmanuel Vadot
43*b97ee269SEmmanuel Vadot    clkc: clock-controller@9c000004 {
44*b97ee269SEmmanuel Vadot      compatible = "sunplus,sp7021-clkc";
45*b97ee269SEmmanuel Vadot      reg = <0x9c000004 0x28>,
46*b97ee269SEmmanuel Vadot            <0x9c000200 0x44>,
47*b97ee269SEmmanuel Vadot            <0x9c000268 0x08>;
48*b97ee269SEmmanuel Vadot      clocks = <&extclk>;
49*b97ee269SEmmanuel Vadot      #clock-cells = <1>;
50*b97ee269SEmmanuel Vadot    };
51*b97ee269SEmmanuel Vadot
52*b97ee269SEmmanuel Vadot...
53