Skip to content

Commit 4bd69ec

Browse files
robherringalexandrebelloni
authored andcommitted
dt-bindings: i3c: Convert cdns,i3c-master to DT schema
Convert the Cadence I3C master to DT schema format. This fixes a warning as it is used in the i3c.yaml example. The "nintendo,nunchuk" is not documented by a schema, so change the example child device to something which is documented. Signed-off-by: Rob Herring <robh@kernel.org> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Link: https://lore.kernel.org/r/20220422192224.2594098-1-robh@kernel.org
1 parent 3123109 commit 4bd69ec

File tree

2 files changed

+60
-43
lines changed

2 files changed

+60
-43
lines changed

Documentation/devicetree/bindings/i3c/cdns,i3c-master.txt

Lines changed: 0 additions & 43 deletions
This file was deleted.
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/i3c/cdns,i3c-master.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Cadence I3C master block
8+
9+
maintainers:
10+
- Boris Brezillon <bbrezillon@kernel.org>
11+
12+
allOf:
13+
- $ref: i3c.yaml#
14+
15+
properties:
16+
compatible:
17+
const: cdns,i3c-master
18+
19+
reg:
20+
maxItems: 1
21+
22+
clocks:
23+
maxItems: 2
24+
25+
clock-names:
26+
items:
27+
- const: pclk
28+
- const: sysclk
29+
30+
interrupts:
31+
maxItems: 1
32+
33+
required:
34+
- compatible
35+
- reg
36+
- clocks
37+
- clock-names
38+
- interrupts
39+
40+
unevaluatedProperties: false
41+
42+
examples:
43+
- |
44+
i3c-master@d040000 {
45+
compatible = "cdns,i3c-master";
46+
clocks = <&coreclock>, <&i3csysclock>;
47+
clock-names = "pclk", "sysclk";
48+
interrupts = <3 0>;
49+
reg = <0x0d040000 0x1000>;
50+
#address-cells = <3>;
51+
#size-cells = <0>;
52+
i2c-scl-hz = <100000>;
53+
54+
eeprom@57{
55+
compatible = "atmel,24c01";
56+
reg = <0x57 0x0 0x10>;
57+
pagesize = <0x8>;
58+
};
59+
};
60+
...

0 commit comments

Comments
 (0)