xref: /freebsd/sys/contrib/device-tree/Bindings/i2c/brcm,bcm2835-i2c.yaml (revision 7ef62cebc2f965b0f640263e179276928885e33d)
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,bcm2835-i2c.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Broadcom BCM2835 I2C controller
8
9maintainers:
10  - Stephen Warren <swarren@wwwdotorg.org>
11
12allOf:
13  - $ref: /schemas/i2c/i2c-controller.yaml#
14
15properties:
16  compatible:
17    oneOf:
18      - enum:
19          - brcm,bcm2835-i2c
20      - items:
21          - const: brcm,bcm2711-i2c
22          - const: brcm,bcm2835-i2c
23
24  reg:
25    maxItems: 1
26
27  interrupts:
28    maxItems: 1
29
30  clock-names:
31    maxItems: 1
32
33  clocks:
34    maxItems: 1
35
36  clock-frequency: true
37
38required:
39  - compatible
40  - reg
41  - interrupts
42  - clocks
43
44unevaluatedProperties: false
45
46examples:
47  - |
48    i2c@7e205000 {
49        compatible = "brcm,bcm2835-i2c";
50        reg = <0x7e205000 0x1000>;
51        interrupts = <2 21>;
52        clocks = <&clk_i2c>;
53        clock-frequency = <100000>;
54    };
55