xref: /freebsd/sys/contrib/device-tree/Bindings/pwm/brcm,kona-pwm.yaml (revision db33c6f3ae9d1231087710068ee4ea5398aacca7)
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
7title: Broadcom Kona family PWM controller
8
9description:
10  This controller has 6 channels.
11
12maintainers:
13  - Florian Fainelli <f.fainelli@gmail.com>
14
15allOf:
16  - $ref: pwm.yaml#
17
18properties:
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
34required:
35  - compatible
36  - reg
37  - clocks
38
39unevaluatedProperties: false
40
41examples:
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...
52