Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: clock: Convert fixed-clock binding to json-schema

Convert the fixed-clock binding to DT schema format using json-schema.

Cc: Michael Turquette <mturquette@baylibre.com>
Cc: Stephen Boyd <sboyd@kernel.org>
Cc: linux-clk@vger.kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>
[sboyd@kernel.org: Drop full stop on title]
Signed-off-by: Stephen Boyd <sboyd@kernel.org>

authored by

Rob Herring and committed by
Stephen Boyd
420601d2 bfeffd15

+44 -23
-23
Documentation/devicetree/bindings/clock/fixed-clock.txt
··· 1 - Binding for simple fixed-rate clock sources. 2 - 3 - This binding uses the common clock binding[1]. 4 - 5 - [1] Documentation/devicetree/bindings/clock/clock-bindings.txt 6 - 7 - Required properties: 8 - - compatible : shall be "fixed-clock". 9 - - #clock-cells : from common clock binding; shall be set to 0. 10 - - clock-frequency : frequency of clock in Hz. Should be a single cell. 11 - 12 - Optional properties: 13 - - clock-accuracy : accuracy of clock in ppb (parts per billion). 14 - Should be a single cell. 15 - - clock-output-names : From common clock binding. 16 - 17 - Example: 18 - clock { 19 - compatible = "fixed-clock"; 20 - #clock-cells = <0>; 21 - clock-frequency = <1000000000>; 22 - clock-accuracy = <100>; 23 - };
+44
Documentation/devicetree/bindings/clock/fixed-clock.yaml
··· 1 + # SPDX-License-Identifier: GPL-2.0 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/clock/fixed-clock.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Binding for simple fixed-rate clock sources 8 + 9 + maintainers: 10 + - Michael Turquette <mturquette@baylibre.com> 11 + - Stephen Boyd <sboyd@kernel.org> 12 + 13 + properties: 14 + compatible: 15 + const: fixed-clock 16 + 17 + "#clock-cells": 18 + const: 0 19 + 20 + clock-frequency: true 21 + 22 + clock-accuracy: 23 + description: accuracy of clock in ppb (parts per billion). 24 + $ref: /schemas/types.yaml#/definitions/uint32 25 + 26 + clock-output-names: 27 + maxItems: 1 28 + 29 + required: 30 + - compatible 31 + - "#clock-cells" 32 + - clock-frequency 33 + 34 + additionalProperties: false 35 + 36 + examples: 37 + - | 38 + clock { 39 + compatible = "fixed-clock"; 40 + #clock-cells = <0>; 41 + clock-frequency = <1000000000>; 42 + clock-accuracy = <100>; 43 + }; 44 + ...