0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/clock/canaan,k210-clk.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Canaan Kendryte K210 Clock Device Tree Bindings
0008
0009 maintainers:
0010 - Damien Le Moal <damien.lemoal@wdc.com>
0011
0012 description: |
0013 Canaan Kendryte K210 SoC clocks driver bindings. The clock
0014 controller node must be defined as a child node of the K210
0015 system controller node.
0016
0017 See also:
0018 - dt-bindings/clock/k210-clk.h
0019
0020 properties:
0021 compatible:
0022 const: canaan,k210-clk
0023
0024 clocks:
0025 maxItems: 1
0026 description:
0027 Phandle of the SoC 26MHz fixed-rate oscillator clock.
0028
0029 '#clock-cells':
0030 const: 1
0031
0032 required:
0033 - compatible
0034 - '#clock-cells'
0035 - clocks
0036
0037 additionalProperties: false
0038
0039 examples:
0040 - |
0041 #include <dt-bindings/clock/k210-clk.h>
0042 clocks {
0043 in0: oscillator {
0044 compatible = "fixed-clock";
0045 #clock-cells = <0>;
0046 clock-frequency = <26000000>;
0047 };
0048 };
0049
0050 /* ... */
0051 sysclk: clock-controller {
0052 #clock-cells = <1>;
0053 compatible = "canaan,k210-clk";
0054 clocks = <&in0>;
0055 };