Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
| 2 | %YAML 1.2 |
| 3 | --- |
| 4 | $id: http://devicetree.org/schemas/clock/fixed-factor-clock.yaml# |
| 5 | $schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 | |
| 7 | title: Simple fixed factor rate clock sources |
| 8 | |
| 9 | maintainers: |
| 10 | - Michael Turquette <mturquette@baylibre.com> |
| 11 | - Stephen Boyd <sboyd@kernel.org> |
| 12 | |
| 13 | properties: |
| 14 | compatible: |
| 15 | enum: |
| 16 | - fixed-factor-clock |
| 17 | |
| 18 | "#clock-cells": |
| 19 | const: 0 |
| 20 | |
| 21 | clocks: |
| 22 | maxItems: 1 |
| 23 | |
| 24 | clock-div: |
| 25 | description: Fixed divider |
| 26 | $ref: /schemas/types.yaml#/definitions/uint32 |
| 27 | minimum: 1 |
| 28 | |
| 29 | clock-mult: |
| 30 | description: Fixed multiplier |
| 31 | $ref: /schemas/types.yaml#/definitions/uint32 |
| 32 | |
| 33 | clock-output-names: |
| 34 | maxItems: 1 |
| 35 | |
| 36 | required: |
| 37 | - compatible |
| 38 | - clocks |
| 39 | - "#clock-cells" |
| 40 | - clock-div |
| 41 | - clock-mult |
| 42 | |
| 43 | additionalProperties: false |
| 44 | |
| 45 | examples: |
| 46 | - | |
| 47 | clock { |
| 48 | compatible = "fixed-factor-clock"; |
| 49 | clocks = <&parentclk>; |
| 50 | #clock-cells = <0>; |
| 51 | clock-div = <2>; |
| 52 | clock-mult = <1>; |
| 53 | }; |
| 54 | ... |