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