xref: /freebsd/sys/contrib/device-tree/Bindings/clock/canaan,k210-clk.yaml (revision 1719886f6d08408b834d270c59ffcfd821c8f63a)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/clock/canaan,k210-clk.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Canaan Kendryte K210 Clock
8
9maintainers:
10  - Damien Le Moal <dlemoal@kernel.org>
11
12description: |
13  Canaan Kendryte K210 SoC clocks driver bindings. The clock
14  controller node must be defined as a child node of the K210
15  system controller node.
16
17  See also:
18  - dt-bindings/clock/k210-clk.h
19
20properties:
21  compatible:
22    const: canaan,k210-clk
23
24  clocks:
25    maxItems: 1
26    description:
27      Phandle of the SoC 26MHz fixed-rate oscillator clock.
28
29  '#clock-cells':
30    const: 1
31
32required:
33  - compatible
34  - '#clock-cells'
35  - clocks
36
37additionalProperties: false
38
39examples:
40  - |
41    #include <dt-bindings/clock/k210-clk.h>
42    clocks {
43      in0: oscillator {
44        compatible = "fixed-clock";
45        #clock-cells = <0>;
46        clock-frequency = <26000000>;
47      };
48    };
49
50    /* ... */
51    sysclk: clock-controller {
52      #clock-cells = <1>;
53      compatible = "canaan,k210-clk";
54      clocks = <&in0>;
55    };
56