Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: pwm: Convert lpc32xx-pwm.txt to yaml format

Convert pc32xx-pwm.txt to yaml format.

Additional changes:
- add ref to pwm.yaml
- add clocks
- restrict #pwm-cells to 3

Signed-off-by: Frank Li <Frank.Li@nxp.com>
Reviewed-by: Vladimir Zapolskiy <vz@mleia.com>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Link: https://lore.kernel.org/r/20250625161909.2541315-1-Frank.Li@nxp.com
Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org>

authored by

Frank Li and committed by
Uwe Kleine-König
4cd2f417 10e9b32d

+44 -17
-17
Documentation/devicetree/bindings/pwm/lpc32xx-pwm.txt
··· 1 - LPC32XX PWM controller 2 - 3 - Required properties: 4 - - compatible: should be "nxp,lpc3220-pwm" 5 - - reg: physical base address and length of the controller's registers 6 - 7 - Examples: 8 - 9 - pwm@4005c000 { 10 - compatible = "nxp,lpc3220-pwm"; 11 - reg = <0x4005c000 0x4>; 12 - }; 13 - 14 - pwm@4005c004 { 15 - compatible = "nxp,lpc3220-pwm"; 16 - reg = <0x4005c004 0x4>; 17 - };
+44
Documentation/devicetree/bindings/pwm/nxp,lpc3220-pwm.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 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 <Frank.Li@nxp.com> 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 + - '#pwm-cells' 31 + 32 + allOf: 33 + - $ref: pwm.yaml# 34 + 35 + unevaluatedProperties: false 36 + 37 + examples: 38 + - | 39 + pwm@4005c000 { 40 + compatible = "nxp,lpc3220-pwm"; 41 + reg = <0x4005c000 0x4>; 42 + #pwm-cells = <3>; 43 + }; 44 +