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

dt-bindings: i2c: i2c-wmt: Convert to YAML

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

The controller only supports two bus speeds (100kHz and 400kHz)
so restrict clock-frequency values accordingly.

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Alexey Charkov <alchark@gmail.com>
Link: https://lore.kernel.org/r/20250506-vt8500-i2c-binding-v3-1-401c3e090a88@gmail.com
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>

authored by

Alexey Charkov and committed by
Andi Shyti
29b0b4ce d6ceb405

+48 -25
-24
Documentation/devicetree/bindings/i2c/i2c-wmt.txt
··· 1 - * Wondermedia I2C Controller 2 - 3 - Required properties : 4 - 5 - - compatible : should be "wm,wm8505-i2c" 6 - - reg : Offset and length of the register set for the device 7 - - interrupts : <IRQ> where IRQ is the interrupt number 8 - - clocks : phandle to the I2C clock source 9 - 10 - Optional properties : 11 - 12 - - clock-frequency : desired I2C bus clock frequency in Hz. 13 - Valid values are 100000 and 400000. 14 - Default to 100000 if not specified, or invalid value. 15 - 16 - Example : 17 - 18 - i2c_0: i2c@d8280000 { 19 - compatible = "wm,wm8505-i2c"; 20 - reg = <0xd8280000 0x1000>; 21 - interrupts = <19>; 22 - clocks = <&clki2c0>; 23 - clock-frequency = <400000>; 24 - };
+47
Documentation/devicetree/bindings/i2c/wm,wm8505-i2c.yaml
··· 1 + # SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/i2c/wm,wm8505-i2c.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: I2C Controller on WonderMedia WM8505 and related SoCs 8 + 9 + maintainers: 10 + - Alexey Charkov <alchark@gmail.com> 11 + 12 + allOf: 13 + - $ref: /schemas/i2c/i2c-controller.yaml# 14 + 15 + properties: 16 + compatible: 17 + const: wm,wm8505-i2c 18 + 19 + reg: 20 + maxItems: 1 21 + 22 + interrupts: 23 + maxItems: 1 24 + 25 + clocks: 26 + maxItems: 1 27 + 28 + clock-frequency: 29 + enum: [100000, 400000] 30 + 31 + required: 32 + - compatible 33 + - reg 34 + - interrupts 35 + - clocks 36 + 37 + unevaluatedProperties: false 38 + 39 + examples: 40 + - | 41 + i2c_0: i2c@d8280000 { 42 + compatible = "wm,wm8505-i2c"; 43 + reg = <0xd8280000 0x1000>; 44 + interrupts = <19>; 45 + clocks = <&clki2c0>; 46 + clock-frequency = <400000>; 47 + };
+1 -1
MAINTAINERS
··· 3434 3434 M: Krzysztof Kozlowski <krzk@kernel.org> 3435 3435 L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers) 3436 3436 S: Odd Fixes 3437 - F: Documentation/devicetree/bindings/i2c/i2c-wmt.txt 3437 + F: Documentation/devicetree/bindings/i2c/wm,wm8505-i2c.yaml 3438 3438 F: arch/arm/boot/dts/vt8500/ 3439 3439 F: arch/arm/mach-vt8500/ 3440 3440 F: drivers/clocksource/timer-vt8500.c