Skip to content

Commit 29b0b4c

Browse files
alcharkAndi Shyti
authored andcommitted
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>
1 parent d6ceb40 commit 29b0b4c

File tree

3 files changed

+48
-25
lines changed

3 files changed

+48
-25
lines changed

Documentation/devicetree/bindings/i2c/i2c-wmt.txt

Lines changed: 0 additions & 24 deletions
This file was deleted.
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
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+
};

MAINTAINERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3434,7 +3434,7 @@ M: Alexey Charkov <alchark@gmail.com>
34343434
M: Krzysztof Kozlowski <krzk@kernel.org>
34353435
L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers)
34363436
S: Odd Fixes
3437-
F: Documentation/devicetree/bindings/i2c/i2c-wmt.txt
3437+
F: Documentation/devicetree/bindings/i2c/wm,wm8505-i2c.yaml
34383438
F: arch/arm/boot/dts/vt8500/
34393439
F: arch/arm/mach-vt8500/
34403440
F: drivers/clocksource/timer-vt8500.c

0 commit comments

Comments
 (0)