Skip to content

Commit 8b9d91d

Browse files
Stanislav Jakubekthierryreding
authored andcommitted
dt-bindings: pwm: brcm,kona-pwm: convert to YAML
Convert Broadcom Kona family PWM controller bindings to DT schema. Change during conversion: - add used, but previously undocumented brcm,bcm11351-pwm compatible Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Stanislav Jakubek <stano.jakubek@gmail.com> Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
1 parent b2c71e9 commit 8b9d91d

File tree

2 files changed

+51
-21
lines changed

2 files changed

+51
-21
lines changed

Documentation/devicetree/bindings/pwm/brcm,kona-pwm.txt

Lines changed: 0 additions & 21 deletions
This file was deleted.
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/pwm/brcm,kona-pwm.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Broadcom Kona family PWM controller
8+
9+
description:
10+
This controller has 6 channels.
11+
12+
maintainers:
13+
- Florian Fainelli <f.fainelli@gmail.com>
14+
15+
allOf:
16+
- $ref: pwm.yaml#
17+
18+
properties:
19+
compatible:
20+
items:
21+
- enum:
22+
- brcm,bcm11351-pwm
23+
- const: brcm,kona-pwm
24+
25+
reg:
26+
maxItems: 1
27+
28+
clocks:
29+
maxItems: 1
30+
31+
'#pwm-cells':
32+
const: 3
33+
34+
required:
35+
- compatible
36+
- reg
37+
- clocks
38+
39+
unevaluatedProperties: false
40+
41+
examples:
42+
- |
43+
#include <dt-bindings/clock/bcm281xx.h>
44+
45+
pwm@3e01a000 {
46+
compatible = "brcm,bcm11351-pwm", "brcm,kona-pwm";
47+
reg = <0x3e01a000 0xcc>;
48+
clocks = <&slave_ccu BCM281XX_SLAVE_CCU_PWM>;
49+
#pwm-cells = <3>;
50+
};
51+
...

0 commit comments

Comments
 (0)