From: Nikita Shubin Date: Sun, 21 May 2023 16:32:55 +0000 (+0300) Subject: dt-bindings: clock: Add Cirrus EP93xx X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=e9a6727fada27cf789ef42b16a605bbb1a897dc1;p=linux.git dt-bindings: clock: Add Cirrus EP93xx This adds device tree bindings for the Cirrus Logic EP93xx clock block used in these SoCs. Signed-off-by: Nikita Shubin --- diff --git a/Documentation/devicetree/bindings/clock/cirrus,ep9301.yaml b/Documentation/devicetree/bindings/clock/cirrus,ep9301.yaml new file mode 100644 index 0000000000000..e4f3dfe727294 --- /dev/null +++ b/Documentation/devicetree/bindings/clock/cirrus,ep9301.yaml @@ -0,0 +1,66 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/cirrus,ep9301.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Cirrus Logic ep93xx SoC's clock controller + +maintainers: + - Nikita Shubin + - Alexander Sverdlin + +description: | + Cirrus Logic EP93XX SoC clocks driver bindings. The clock + controller node must be defined as a child node of the ep93xx + system controller node. + + See also: + - dt-bindings/clock/cirrus,ep93xx-clock.h + +properties: + compatible: + oneOf: + - const: cirrus,ep9301-clk + - items: + - enum: + - cirrus,ep9302-clk + - cirrus,ep9307-clk + - cirrus,ep9312-clk + - cirrus,ep9315-clk + - const: cirrus,ep9301-clk + + "#clock-cells": + const: 1 + + clocks: + description: List of clock specifiers which are external input + clocks to the given clock controller. + items: + - description: reference clock + +required: + - compatible + - "#clock-cells" + - clocks + +additionalProperties: false + +examples: + - | + clocks { + xtali: oscillator { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <14745600>; + }; + }; + + ... + + clock-controller { + #clock-cells = <1>; + compatible = "cirrus,ep9301-clk"; + clocks = <&xtali>; + }; +...