Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 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 | ... |