forked from torvalds/linux
Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
dt-binding: clock: Document canaan,k210-clk bindings
Document the device tree bindings of the Canaan Kendryte K210 SoC clock driver in Documentation/devicetree/bindings/clock/canaan,k210-clk.yaml. The header file include/dt-bindings/clock/k210-clk.h is modified to include the complete list of IDs for all clocks of the SoC. Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com> Reviewed-by: Rob Herring <robh@kernel.org>
- Loading branch information
1 parent
39bc7de
commit c991c894ad9babfd2aa8c6ce90bc4ce67559937c
Showing
2 changed files
with
98 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) | ||
| %YAML 1.2 | ||
| --- | ||
| $id: http://devicetree.org/schemas/clock/canaan,k210-clk.yaml# | ||
| $schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
|
||
| title: Canaan Kendryte K210 Clock Device Tree Bindings | ||
|
|
||
| maintainers: | ||
| - Damien Le Moal <damien.lemoal@wdc.com> | ||
|
|
||
| description: | | ||
| Canaan Kendryte K210 SoC clocks driver bindings. The clock | ||
| controller node must be defined as a child node of the K210 | ||
| system controller node. | ||
| See also: | ||
| - dt-bindings/clock/k210-clk.h | ||
| properties: | ||
| compatible: | ||
| const: canaan,k210-clk | ||
|
|
||
| clocks: | ||
| description: | ||
| Phandle of the SoC 26MHz fixed-rate oscillator clock. | ||
|
|
||
| '#clock-cells': | ||
| const: 1 | ||
|
|
||
| required: | ||
| - compatible | ||
| - '#clock-cells' | ||
| - clocks | ||
|
|
||
| additionalProperties: false | ||
|
|
||
| examples: | ||
| - | | ||
| #include <dt-bindings/clock/k210-clk.h> | ||
| clocks { | ||
| in0: oscillator { | ||
| compatible = "fixed-clock"; | ||
| #clock-cells = <0>; | ||
| clock-frequency = <26000000>; | ||
| }; | ||
| }; | ||
| /* ... */ | ||
| sysclk: clock-controller { | ||
| #clock-cells = <1>; | ||
| compatible = "canaan,k210-clk"; | ||
| clocks = <&in0>; | ||
| }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters