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

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: clock: Convert pwm-clock to DT schema

Convert the pwm-clock binding to DT schema format. A straight-forward
conversion.

Reviewed-by: Stephen Boyd <sboyd@kernel.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20221011162919.3025038-1-robh@kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>

+45 -26
-26
Documentation/devicetree/bindings/clock/pwm-clock.txt
··· 1 - Binding for an external clock signal driven by a PWM pin. 2 - 3 - This binding uses the common clock binding[1] and the common PWM binding[2]. 4 - 5 - [1] Documentation/devicetree/bindings/clock/clock-bindings.txt 6 - [2] Documentation/devicetree/bindings/pwm/pwm.txt 7 - 8 - Required properties: 9 - - compatible : shall be "pwm-clock". 10 - - #clock-cells : from common clock binding; shall be set to 0. 11 - - pwms : from common PWM binding; this determines the clock frequency 12 - via the period given in the PWM specifier. 13 - 14 - Optional properties: 15 - - clock-output-names : From common clock binding. 16 - - clock-frequency : Exact output frequency, in case the PWM period 17 - is not exact but was rounded to nanoseconds. 18 - 19 - Example: 20 - clock { 21 - compatible = "pwm-clock"; 22 - #clock-cells = <0>; 23 - clock-frequency = <25000000>; 24 - clock-output-names = "mipi_mclk"; 25 - pwms = <&pwm2 0 40>; /* 1 / 40 ns = 25 MHz */ 26 - };
+45
Documentation/devicetree/bindings/clock/pwm-clock.yaml
··· 1 + # SPDX-License-Identifier: GPL-2.0 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/clock/pwm-clock.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: An external clock signal driven by a PWM pin. 8 + 9 + maintainers: 10 + - Philipp Zabel <p.zabel@pengutronix.de> 11 + 12 + properties: 13 + compatible: 14 + const: pwm-clock 15 + 16 + '#clock-cells': 17 + const: 0 18 + 19 + clock-frequency: 20 + description: Exact output frequency, in case the PWM period is not exact 21 + but was rounded to nanoseconds. 22 + 23 + clock-output-names: 24 + maxItems: 1 25 + 26 + pwms: 27 + maxItems: 1 28 + 29 + required: 30 + - compatible 31 + - '#clock-cells' 32 + - pwms 33 + 34 + additionalProperties: false 35 + 36 + examples: 37 + - | 38 + clock { 39 + compatible = "pwm-clock"; 40 + #clock-cells = <0>; 41 + clock-frequency = <25000000>; 42 + clock-output-names = "mipi_mclk"; 43 + pwms = <&pwm2 0 40>; /* 1 / 40 ns = 25 MHz */ 44 + }; 45 + ...