1*e7c21940SSergio Paracuellos# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*e7c21940SSergio Paracuellos%YAML 1.2
3*e7c21940SSergio Paracuellos---
4*e7c21940SSergio Paracuellos$id: http://devicetree.org/schemas/i2c/mediatek,mt7621-i2c.yaml#
5*e7c21940SSergio Paracuellos$schema: http://devicetree.org/meta-schemas/core.yaml#
6*e7c21940SSergio Paracuellos
7*e7c21940SSergio Paracuellosmaintainers:
8*e7c21940SSergio Paracuellos  - Stefan Roese <sr@denx.de>
9*e7c21940SSergio Paracuellos
10*e7c21940SSergio Paracuellostitle: Mediatek MT7621/MT7628 I2C master controller
11*e7c21940SSergio Paracuellos
12*e7c21940SSergio ParacuellosallOf:
13*e7c21940SSergio Paracuellos  - $ref: /schemas/i2c/i2c-controller.yaml#
14*e7c21940SSergio Paracuellos
15*e7c21940SSergio Paracuellosproperties:
16*e7c21940SSergio Paracuellos  compatible:
17*e7c21940SSergio Paracuellos    const: mediatek,mt7621-i2c
18*e7c21940SSergio Paracuellos
19*e7c21940SSergio Paracuellos  reg:
20*e7c21940SSergio Paracuellos    maxItems: 1
21*e7c21940SSergio Paracuellos
22*e7c21940SSergio Paracuellos  clocks:
23*e7c21940SSergio Paracuellos    maxItems: 1
24*e7c21940SSergio Paracuellos
25*e7c21940SSergio Paracuellos  clock-names:
26*e7c21940SSergio Paracuellos    const: i2c
27*e7c21940SSergio Paracuellos
28*e7c21940SSergio Paracuellos  resets:
29*e7c21940SSergio Paracuellos    maxItems: 1
30*e7c21940SSergio Paracuellos
31*e7c21940SSergio Paracuellos  reset-names:
32*e7c21940SSergio Paracuellos    const: i2c
33*e7c21940SSergio Paracuellos
34*e7c21940SSergio Paracuellosrequired:
35*e7c21940SSergio Paracuellos  - compatible
36*e7c21940SSergio Paracuellos  - reg
37*e7c21940SSergio Paracuellos  - resets
38*e7c21940SSergio Paracuellos  - "#address-cells"
39*e7c21940SSergio Paracuellos  - "#size-cells"
40*e7c21940SSergio Paracuellos
41*e7c21940SSergio ParacuellosunevaluatedProperties: false
42*e7c21940SSergio Paracuellos
43*e7c21940SSergio Paracuellosexamples:
44*e7c21940SSergio Paracuellos  - |
45*e7c21940SSergio Paracuellos    #include <dt-bindings/clock/mt7621-clk.h>
46*e7c21940SSergio Paracuellos    #include <dt-bindings/reset/mt7621-reset.h>
47*e7c21940SSergio Paracuellos
48*e7c21940SSergio Paracuellos    i2c: i2c@900 {
49*e7c21940SSergio Paracuellos      compatible = "mediatek,mt7621-i2c";
50*e7c21940SSergio Paracuellos      reg = <0x900 0x100>;
51*e7c21940SSergio Paracuellos      clocks = <&sysc MT7621_CLK_I2C>;
52*e7c21940SSergio Paracuellos      clock-names = "i2c";
53*e7c21940SSergio Paracuellos      resets = <&sysc MT7621_RST_I2C>;
54*e7c21940SSergio Paracuellos      reset-names = "i2c";
55*e7c21940SSergio Paracuellos
56*e7c21940SSergio Paracuellos      #address-cells = <1>;
57*e7c21940SSergio Paracuellos      #size-cells = <0>;
58*e7c21940SSergio Paracuellos
59*e7c21940SSergio Paracuellos      pinctrl-names = "default";
60*e7c21940SSergio Paracuellos      pinctrl-0 = <&i2c_pins>;
61*e7c21940SSergio Paracuellos    };
62