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

dt-bindings: pwm: vt8500-pwm: Convert to YAML

Rewrite the textual description for the WonderMedia PWM controller
as YAML schema, and switch the filename to follow the compatible
string.

Signed-off-by: Alexey Charkov <alchark@gmail.com>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Link: https://lore.kernel.org/r/20250418-via_pwm_binding-v2-1-17545f4d719e@gmail.com
Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org>

authored by

Alexey Charkov and committed by
Uwe Kleine-König
b6b5683e 769aa278

+44 -18
+43
Documentation/devicetree/bindings/pwm/via,vt8500-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/via,vt8500-pwm.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: VIA/Wondermedia VT8500/WM8xxx series SoC PWM controller 8 + 9 + maintainers: 10 + - Alexey Charkov <alchark@gmail.com> 11 + 12 + allOf: 13 + - $ref: pwm.yaml# 14 + 15 + properties: 16 + compatible: 17 + items: 18 + - const: via,vt8500-pwm 19 + 20 + reg: 21 + maxItems: 1 22 + 23 + '#pwm-cells': 24 + const: 3 25 + 26 + clocks: 27 + maxItems: 1 28 + 29 + required: 30 + - compatible 31 + - reg 32 + - clocks 33 + 34 + additionalProperties: false 35 + 36 + examples: 37 + - | 38 + pwm1: pwm@d8220000 { 39 + compatible = "via,vt8500-pwm"; 40 + reg = <0xd8220000 0x1000>; 41 + #pwm-cells = <3>; 42 + clocks = <&clkpwm>; 43 + };
-18
Documentation/devicetree/bindings/pwm/vt8500-pwm.txt
··· 1 - VIA/Wondermedia VT8500/WM8xxx series SoC PWM controller 2 - 3 - Required properties: 4 - - compatible: should be "via,vt8500-pwm" 5 - - reg: physical base address and length of the controller's registers 6 - - #pwm-cells: should be 3. See pwm.yaml in this directory for a description of 7 - the cells format. The only third cell flag supported by this binding is 8 - PWM_POLARITY_INVERTED. 9 - - clocks: phandle to the PWM source clock 10 - 11 - Example: 12 - 13 - pwm1: pwm@d8220000 { 14 - #pwm-cells = <3>; 15 - compatible = "via,vt8500-pwm"; 16 - reg = <0xd8220000 0x1000>; 17 - clocks = <&clkpwm>; 18 - };
+1
MAINTAINERS
··· 3428 3428 L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers) 3429 3429 S: Odd Fixes 3430 3430 F: Documentation/devicetree/bindings/i2c/i2c-wmt.txt 3431 + F: Documentation/devicetree/bindings/pwm/via,vt8500-pwm.yaml 3431 3432 F: arch/arm/boot/dts/vt8500/ 3432 3433 F: arch/arm/mach-vt8500/ 3433 3434 F: drivers/clocksource/timer-vt8500.c