summaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/i2c/brcm,kona-i2c.yaml
blob: 7a694af90fc623e03b818fa9b7e1921344f03e73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/i2c/brcm,kona-i2c.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Broadcom Kona family I2C controller

maintainers:
  - Florian Fainelli <f.fainelli@gmail.com>

allOf:
  - $ref: /schemas/i2c/i2c-controller.yaml#

properties:
  compatible:
    items:
      - enum:
          - brcm,bcm11351-i2c
          - brcm,bcm21664-i2c
          - brcm,bcm23550-i2c
      - const: brcm,kona-i2c

  reg:
    maxItems: 1

  interrupts:
    maxItems: 1

  clocks:
    maxItems: 1

  clock-frequency:
    enum: [ 100000, 400000, 1000000, 3400000 ]

required:
  - compatible
  - reg
  - interrupts
  - clocks
  - clock-frequency

unevaluatedProperties: false

examples:
  - |
    #include <dt-bindings/interrupt-controller/arm-gic.h>
    #include <dt-bindings/interrupt-controller/irq.h>

    i2c@3e016000 {
        compatible = "brcm,bcm11351-i2c", "brcm,kona-i2c";
        reg = <0x3e016000 0x80>;
        interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>;
        clocks = <&bsc1_clk>;
        clock-frequency = <400000>;
        #address-cells = <1>;
        #size-cells = <0>;
    };
...