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