Skip to content

Commit 1bd9228

Browse files
Stanislav Jakubekwsakernel
authored andcommitted
dt-bindings: i2c: brcm,kona-i2c: convert to YAML
Changes during conversion: - add used, but previously undocumented SoC-specific compatibles - drop references to SoCs that are not upstream - add supported clock frequencies Signed-off-by: Stanislav Jakubek <stano.jakubek@gmail.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Wolfram Sang <wsa@kernel.org>
1 parent 5d38814 commit 1bd9228

File tree

2 files changed

+59
-35
lines changed

2 files changed

+59
-35
lines changed

Documentation/devicetree/bindings/i2c/brcm,kona-i2c.txt

Lines changed: 0 additions & 35 deletions
This file was deleted.
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/i2c/brcm,kona-i2c.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Broadcom Kona family I2C controller
8+
9+
maintainers:
10+
- Florian Fainelli <f.fainelli@gmail.com>
11+
12+
allOf:
13+
- $ref: /schemas/i2c/i2c-controller.yaml#
14+
15+
properties:
16+
compatible:
17+
items:
18+
- enum:
19+
- brcm,bcm11351-i2c
20+
- brcm,bcm21664-i2c
21+
- brcm,bcm23550-i2c
22+
- const: brcm,kona-i2c
23+
24+
reg:
25+
maxItems: 1
26+
27+
interrupts:
28+
maxItems: 1
29+
30+
clocks:
31+
maxItems: 1
32+
33+
clock-frequency:
34+
enum: [ 100000, 400000, 1000000, 3400000 ]
35+
36+
required:
37+
- compatible
38+
- reg
39+
- interrupts
40+
- clocks
41+
- clock-frequency
42+
43+
unevaluatedProperties: false
44+
45+
examples:
46+
- |
47+
#include <dt-bindings/interrupt-controller/arm-gic.h>
48+
#include <dt-bindings/interrupt-controller/irq.h>
49+
50+
i2c@3e016000 {
51+
compatible = "brcm,bcm11351-i2c", "brcm,kona-i2c";
52+
reg = <0x3e016000 0x80>;
53+
interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>;
54+
clocks = <&bsc1_clk>;
55+
clock-frequency = <400000>;
56+
#address-cells = <1>;
57+
#size-cells = <0>;
58+
};
59+
...

0 commit comments

Comments
 (0)