1 # SPDX-License-Identifier: GPL-2.0 1 # SPDX-License-Identifier: GPL-2.0 2 %YAML 1.2 2 %YAML 1.2 3 --- 3 --- 4 $id: http://devicetree.org/schemas/clock/fixed 4 $id: http://devicetree.org/schemas/clock/fixed-factor-clock.yaml# 5 $schema: http://devicetree.org/meta-schemas/co 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 6 6 7 title: Simple fixed factor rate clock sources 7 title: Simple fixed factor rate clock sources 8 8 9 maintainers: 9 maintainers: 10 - Michael Turquette <mturquette@baylibre.com> 10 - Michael Turquette <mturquette@baylibre.com> 11 - Stephen Boyd <sboyd@kernel.org> 11 - Stephen Boyd <sboyd@kernel.org> 12 12 13 properties: 13 properties: 14 $nodename: 14 $nodename: 15 anyOf: 15 anyOf: 16 - description: 16 - description: 17 If the frequency is fixed, the prefe 17 If the frequency is fixed, the preferred name is 'clock-<freq>' with 18 <freq> being the output frequency. 18 <freq> being the output frequency. 19 pattern: "^clock-([0-9]+|[0-9a-z-]+)$" 19 pattern: "^clock-([0-9]+|[0-9a-z-]+)$" 20 - description: Any name allowed 20 - description: Any name allowed 21 deprecated: true 21 deprecated: true 22 22 23 compatible: 23 compatible: 24 enum: 24 enum: 25 - fixed-factor-clock 25 - fixed-factor-clock 26 26 27 "#clock-cells": 27 "#clock-cells": 28 const: 0 28 const: 0 29 29 30 clocks: 30 clocks: 31 maxItems: 1 31 maxItems: 1 32 32 33 clock-div: 33 clock-div: 34 description: Fixed divider 34 description: Fixed divider 35 $ref: /schemas/types.yaml#/definitions/uin 35 $ref: /schemas/types.yaml#/definitions/uint32 36 minimum: 1 36 minimum: 1 37 37 38 clock-mult: 38 clock-mult: 39 description: Fixed multiplier 39 description: Fixed multiplier 40 $ref: /schemas/types.yaml#/definitions/uin 40 $ref: /schemas/types.yaml#/definitions/uint32 41 41 42 clock-output-names: 42 clock-output-names: 43 maxItems: 1 43 maxItems: 1 44 44 45 required: 45 required: 46 - compatible 46 - compatible 47 - clocks 47 - clocks 48 - "#clock-cells" 48 - "#clock-cells" 49 - clock-div 49 - clock-div 50 - clock-mult 50 - clock-mult 51 51 52 additionalProperties: false 52 additionalProperties: false 53 53 54 examples: 54 examples: 55 - | 55 - | 56 clock { 56 clock { 57 compatible = "fixed-factor-clock"; 57 compatible = "fixed-factor-clock"; 58 clocks = <&parentclk>; 58 clocks = <&parentclk>; 59 #clock-cells = <0>; 59 #clock-cells = <0>; 60 clock-div = <2>; 60 clock-div = <2>; 61 clock-mult = <1>; 61 clock-mult = <1>; 62 }; 62 }; 63 ... 63 ...
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.