xref: /freebsd/sys/contrib/device-tree/Bindings/i2c/amlogic,meson6-i2c.yaml (revision cfd6422a5217410fbd66f7a7a8a64d9d85e61229)
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2# Copyright 2019 BayLibre, SAS
3%YAML 1.2
4---
5$id: "http://devicetree.org/schemas/i2c/amlogic,meson6-i2c.yaml#"
6$schema: "http://devicetree.org/meta-schemas/core.yaml#"
7
8title: Amlogic Meson I2C Controller
9
10maintainers:
11  - Neil Armstrong <narmstrong@baylibre.com>
12  - Beniamino Galvani <b.galvani@gmail.com>
13
14allOf:
15  - $ref: /schemas/i2c/i2c-controller.yaml#
16
17properties:
18  compatible:
19    enum:
20      - amlogic,meson6-i2c # Meson6, Meson8 and compatible SoCs
21      - amlogic,meson-gxbb-i2c # GXBB and compatible SoCs
22      - amlogic,meson-axg-i2c # AXG and compatible SoCs
23
24  reg:
25    maxItems: 1
26
27  interrupts:
28    maxItems: 1
29
30  clocks:
31    minItems: 1
32
33required:
34  - compatible
35  - reg
36  - interrupts
37  - clocks
38
39examples:
40  - |
41    i2c@c8100500 {
42        compatible = "amlogic,meson6-i2c";
43        reg = <0xc8100500 0x20>;
44        interrupts = <92>;
45        clocks = <&clk81>;
46        #address-cells = <1>;
47        #size-cells = <0>;
48
49        eeprom@52 {
50            compatible = "atmel,24c32";
51            reg = <0x52>;
52        };
53    };
54