Skip to content

Commit

Permalink
dt-bindings: pwm: marvell,berlin-pwm: Convert from txt to yaml
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Uwe Kleine-König authored and Uwe Kleine-König committed Dec 18, 2024
1 parent a0b6742 commit 4ccf7e3
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 17 deletions.
44 changes: 44 additions & 0 deletions Documentation/devicetree/bindings/pwm/marvell,berlin-pwm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/pwm/marvell,berlin-pwm.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Berlin PWM controller

maintainers:
- Jisheng Zhang <jszhang@kernel.org>
- Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>

properties:
compatible:
const: marvell,berlin-pwm

reg:
maxItems: 1

"#pwm-cells":
const: 3

clocks:
maxItems: 1

required:
- compatible
- reg
- clocks

allOf:
- $ref: pwm.yaml#

unevaluatedProperties: false

examples:
- |
pwm@f7f20000 {
compatible = "marvell,berlin-pwm";
reg = <0xf7f20000 0x40>;
clocks = <&chip_clk 12>;
#pwm-cells = <3>;
};
17 changes: 0 additions & 17 deletions Documentation/devicetree/bindings/pwm/pwm-berlin.txt

This file was deleted.

0 comments on commit 4ccf7e3

Please sign in to comment.