| 1 |
|
| 2 |
%YAML 1.2 |
| 3 |
--- |
| 4 |
$id: http://devicetree.org/schemas/pwm/nxp,lpc3220-pwm.yaml# |
| 5 |
$schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 |
|
| 7 |
title: NXP LPC32XX PWM controller |
| 8 |
|
| 9 |
maintainers: |
| 10 |
- Frank Li <[email protected]> |
| 11 |
|
| 12 |
properties: |
| 13 |
compatible: |
| 14 |
enum: |
| 15 |
- nxp,lpc3220-pwm |
| 16 |
- nxp,lpc3220-motor-pwm |
| 17 |
|
| 18 |
reg: |
| 19 |
maxItems: 1 |
| 20 |
|
| 21 |
clocks: |
| 22 |
maxItems: 1 |
| 23 |
|
| 24 |
'#pwm-cells': |
| 25 |
const: 3 |
| 26 |
|
| 27 |
required: |
| 28 |
- compatible |
| 29 |
- reg |
| 30 |
- clocks |
| 31 |
- '#pwm-cells' |
| 32 |
|
| 33 |
allOf: |
| 34 |
- $ref: pwm.yaml# |
| 35 |
|
| 36 |
unevaluatedProperties: false |
| 37 |
|
| 38 |
examples: |
| 39 |
- | |
| 40 |
#include <dt-bindings/clock/lpc32xx-clock.h> |
| 41 |
|
| 42 |
pwm@4005c000 { |
| 43 |
compatible = "nxp,lpc3220-pwm"; |
| 44 |
reg = <0x4005c000 0x4>; |
| 45 |
clocks = <&clk LPC32XX_CLK_PWM1>; |
| 46 |
#pwm-cells = <3>; |
| 47 |
}; |
| 48 |
|