xref: /freebsd/sys/contrib/device-tree/Bindings/i2c/brcm,kona-i2c.yaml (revision fac71e4e09885bb2afa3d984a0c239a52e1a7418)
1*fac71e4eSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*fac71e4eSEmmanuel Vadot%YAML 1.2
3*fac71e4eSEmmanuel Vadot---
4*fac71e4eSEmmanuel Vadot$id: http://devicetree.org/schemas/i2c/brcm,kona-i2c.yaml#
5*fac71e4eSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*fac71e4eSEmmanuel Vadot
7*fac71e4eSEmmanuel Vadottitle: Broadcom Kona family I2C controller
8*fac71e4eSEmmanuel Vadot
9*fac71e4eSEmmanuel Vadotmaintainers:
10*fac71e4eSEmmanuel Vadot  - Florian Fainelli <f.fainelli@gmail.com>
11*fac71e4eSEmmanuel Vadot
12*fac71e4eSEmmanuel VadotallOf:
13*fac71e4eSEmmanuel Vadot  - $ref: /schemas/i2c/i2c-controller.yaml#
14*fac71e4eSEmmanuel Vadot
15*fac71e4eSEmmanuel Vadotproperties:
16*fac71e4eSEmmanuel Vadot  compatible:
17*fac71e4eSEmmanuel Vadot    items:
18*fac71e4eSEmmanuel Vadot      - enum:
19*fac71e4eSEmmanuel Vadot          - brcm,bcm11351-i2c
20*fac71e4eSEmmanuel Vadot          - brcm,bcm21664-i2c
21*fac71e4eSEmmanuel Vadot          - brcm,bcm23550-i2c
22*fac71e4eSEmmanuel Vadot      - const: brcm,kona-i2c
23*fac71e4eSEmmanuel Vadot
24*fac71e4eSEmmanuel Vadot  reg:
25*fac71e4eSEmmanuel Vadot    maxItems: 1
26*fac71e4eSEmmanuel Vadot
27*fac71e4eSEmmanuel Vadot  interrupts:
28*fac71e4eSEmmanuel Vadot    maxItems: 1
29*fac71e4eSEmmanuel Vadot
30*fac71e4eSEmmanuel Vadot  clocks:
31*fac71e4eSEmmanuel Vadot    maxItems: 1
32*fac71e4eSEmmanuel Vadot
33*fac71e4eSEmmanuel Vadot  clock-frequency:
34*fac71e4eSEmmanuel Vadot    enum: [ 100000, 400000, 1000000, 3400000 ]
35*fac71e4eSEmmanuel Vadot
36*fac71e4eSEmmanuel Vadotrequired:
37*fac71e4eSEmmanuel Vadot  - compatible
38*fac71e4eSEmmanuel Vadot  - reg
39*fac71e4eSEmmanuel Vadot  - interrupts
40*fac71e4eSEmmanuel Vadot  - clocks
41*fac71e4eSEmmanuel Vadot  - clock-frequency
42*fac71e4eSEmmanuel Vadot
43*fac71e4eSEmmanuel VadotunevaluatedProperties: false
44*fac71e4eSEmmanuel Vadot
45*fac71e4eSEmmanuel Vadotexamples:
46*fac71e4eSEmmanuel Vadot  - |
47*fac71e4eSEmmanuel Vadot    #include <dt-bindings/interrupt-controller/arm-gic.h>
48*fac71e4eSEmmanuel Vadot    #include <dt-bindings/interrupt-controller/irq.h>
49*fac71e4eSEmmanuel Vadot
50*fac71e4eSEmmanuel Vadot    i2c@3e016000 {
51*fac71e4eSEmmanuel Vadot        compatible = "brcm,bcm11351-i2c", "brcm,kona-i2c";
52*fac71e4eSEmmanuel Vadot        reg = <0x3e016000 0x80>;
53*fac71e4eSEmmanuel Vadot        interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>;
54*fac71e4eSEmmanuel Vadot        clocks = <&bsc1_clk>;
55*fac71e4eSEmmanuel Vadot        clock-frequency = <400000>;
56*fac71e4eSEmmanuel Vadot        #address-cells = <1>;
57*fac71e4eSEmmanuel Vadot        #size-cells = <0>;
58*fac71e4eSEmmanuel Vadot    };
59*fac71e4eSEmmanuel Vadot...
60