xref: /linux/Documentation/devicetree/bindings/clock/canaan,k210-clk.yaml (revision 1ac731c529cd4d6adbce134754b51ff7d822b145)
10c797d2cSDamien Le Moal# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
20c797d2cSDamien Le Moal%YAML 1.2
30c797d2cSDamien Le Moal---
40c797d2cSDamien Le Moal$id: http://devicetree.org/schemas/clock/canaan,k210-clk.yaml#
50c797d2cSDamien Le Moal$schema: http://devicetree.org/meta-schemas/core.yaml#
60c797d2cSDamien Le Moal
7dd3cb467SAndrew Lunntitle: Canaan Kendryte K210 Clock
80c797d2cSDamien Le Moal
90c797d2cSDamien Le Moalmaintainers:
10*f7efdf5eSDamien Le Moal  - Damien Le Moal <dlemoal@kernel.org>
110c797d2cSDamien Le Moal
120c797d2cSDamien Le Moaldescription: |
130c797d2cSDamien Le Moal  Canaan Kendryte K210 SoC clocks driver bindings. The clock
140c797d2cSDamien Le Moal  controller node must be defined as a child node of the K210
150c797d2cSDamien Le Moal  system controller node.
160c797d2cSDamien Le Moal
170c797d2cSDamien Le Moal  See also:
180c797d2cSDamien Le Moal  - dt-bindings/clock/k210-clk.h
190c797d2cSDamien Le Moal
200c797d2cSDamien Le Moalproperties:
210c797d2cSDamien Le Moal  compatible:
220c797d2cSDamien Le Moal    const: canaan,k210-clk
230c797d2cSDamien Le Moal
240c797d2cSDamien Le Moal  clocks:
250499220dSRob Herring    maxItems: 1
260c797d2cSDamien Le Moal    description:
270c797d2cSDamien Le Moal      Phandle of the SoC 26MHz fixed-rate oscillator clock.
280c797d2cSDamien Le Moal
290c797d2cSDamien Le Moal  '#clock-cells':
300c797d2cSDamien Le Moal    const: 1
310c797d2cSDamien Le Moal
320c797d2cSDamien Le Moalrequired:
330c797d2cSDamien Le Moal  - compatible
340c797d2cSDamien Le Moal  - '#clock-cells'
350c797d2cSDamien Le Moal  - clocks
360c797d2cSDamien Le Moal
370c797d2cSDamien Le MoaladditionalProperties: false
380c797d2cSDamien Le Moal
390c797d2cSDamien Le Moalexamples:
400c797d2cSDamien Le Moal  - |
410c797d2cSDamien Le Moal    #include <dt-bindings/clock/k210-clk.h>
420c797d2cSDamien Le Moal    clocks {
430c797d2cSDamien Le Moal      in0: oscillator {
440c797d2cSDamien Le Moal        compatible = "fixed-clock";
450c797d2cSDamien Le Moal        #clock-cells = <0>;
460c797d2cSDamien Le Moal        clock-frequency = <26000000>;
470c797d2cSDamien Le Moal      };
480c797d2cSDamien Le Moal    };
490c797d2cSDamien Le Moal
500c797d2cSDamien Le Moal    /* ... */
510c797d2cSDamien Le Moal    sysclk: clock-controller {
520c797d2cSDamien Le Moal      #clock-cells = <1>;
530c797d2cSDamien Le Moal      compatible = "canaan,k210-clk";
540c797d2cSDamien Le Moal      clocks = <&in0>;
550c797d2cSDamien Le Moal    };
56