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: pwm: marvell,berlin-pwm: Convert from txt to yaml

Formalize the binding for marvell,berlin-pwm devices and make them
automatically checkable. No change to the binding intended.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20241029160837.590199-2-u.kleine-koenig@baylibre.com
Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org>

authored by

Uwe Kleine-König and committed by
Uwe Kleine-König
4ccf7e35 a0b67429

+44 -17
+44
Documentation/devicetree/bindings/pwm/marvell,berlin-pwm.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/pwm/marvell,berlin-pwm.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Berlin PWM controller 8 + 9 + maintainers: 10 + - Jisheng Zhang <jszhang@kernel.org> 11 + - Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> 12 + 13 + properties: 14 + compatible: 15 + const: marvell,berlin-pwm 16 + 17 + reg: 18 + maxItems: 1 19 + 20 + "#pwm-cells": 21 + const: 3 22 + 23 + clocks: 24 + maxItems: 1 25 + 26 + required: 27 + - compatible 28 + - reg 29 + - clocks 30 + 31 + allOf: 32 + - $ref: pwm.yaml# 33 + 34 + unevaluatedProperties: false 35 + 36 + examples: 37 + - | 38 + pwm@f7f20000 { 39 + compatible = "marvell,berlin-pwm"; 40 + reg = <0xf7f20000 0x40>; 41 + clocks = <&chip_clk 12>; 42 + #pwm-cells = <3>; 43 + }; 44 +
-17
Documentation/devicetree/bindings/pwm/pwm-berlin.txt
··· 1 - Berlin PWM controller 2 - 3 - Required properties: 4 - - compatible: should be "marvell,berlin-pwm" 5 - - reg: physical base address and length of the controller's registers 6 - - clocks: phandle to the input clock 7 - - #pwm-cells: should be 3. See pwm.yaml in this directory for a description of 8 - the cells format. 9 - 10 - Example: 11 - 12 - pwm: pwm@f7f20000 { 13 - compatible = "marvell,berlin-pwm"; 14 - reg = <0xf7f20000 0x40>; 15 - clocks = <&chip_clk CLKID_CFG>; 16 - #pwm-cells = <3>; 17 - }