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 lpc1850-sct-pwm.txt to yaml format

Convert lpc1850-sct-pwm.txt to yaml format.

Additional changes:
- add ref pwm.yaml.
- add resets property to match existed dts.

Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Reviewed-by: Vladimir Zapolskiy <vz@mleia.com>
Signed-off-by: Frank Li <Frank.Li@nxp.com>
Link: https://lore.kernel.org/r/20250616190435.1998078-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
56ad79b8 0b4d1abe

+54 -20
-20
Documentation/devicetree/bindings/pwm/lpc1850-sct-pwm.txt
··· 1 - * NXP LPC18xx State Configurable Timer - Pulse Width Modulator driver 2 - 3 - Required properties: 4 - - compatible: Should be "nxp,lpc1850-sct-pwm" 5 - - reg: Should contain physical base address and length of pwm registers. 6 - - clocks: Must contain an entry for each entry in clock-names. 7 - See ../clock/clock-bindings.txt for details. 8 - - clock-names: Must include the following entries. 9 - - pwm: PWM operating clock. 10 - - #pwm-cells: Should be 3. See pwm.yaml in this directory for the description 11 - of the cells format. 12 - 13 - Example: 14 - pwm: pwm@40000000 { 15 - compatible = "nxp,lpc1850-sct-pwm"; 16 - reg = <0x40000000 0x1000>; 17 - clocks =<&ccu1 CLK_CPU_SCT>; 18 - clock-names = "pwm"; 19 - #pwm-cells = <3>; 20 - };
+54
Documentation/devicetree/bindings/pwm/nxp,lpc1850-sct-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,lpc1850-sct-pwm.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: NXP LPC18xx State Configurable Timer 8 + 9 + maintainers: 10 + - Frank Li <Frank.Li@nxp.com> 11 + 12 + properties: 13 + compatible: 14 + const: nxp,lpc1850-sct-pwm 15 + 16 + reg: 17 + maxItems: 1 18 + 19 + clocks: 20 + maxItems: 1 21 + 22 + clock-names: 23 + items: 24 + - const: pwm 25 + 26 + '#pwm-cells': 27 + const: 3 28 + 29 + resets: 30 + maxItems: 1 31 + 32 + required: 33 + - compatible 34 + - reg 35 + - clocks 36 + - clock-names 37 + - '#pwm-cells' 38 + 39 + allOf: 40 + - $ref: pwm.yaml# 41 + 42 + unevaluatedProperties: false 43 + 44 + examples: 45 + - | 46 + #include <dt-bindings/clock/lpc18xx-ccu.h> 47 + 48 + pwm@40000000 { 49 + compatible = "nxp,lpc1850-sct-pwm"; 50 + reg = <0x40000000 0x1000>; 51 + clocks =<&ccu1 CLK_CPU_SCT>; 52 + clock-names = "pwm"; 53 + #pwm-cells = <3>; 54 + };