Documentation / devicetree / bindings / i2c / mediatek,mt7621-i2c.yaml


Based on kernel version 6.8. Page generated on 2024-03-11 21:26 EST.

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 60 61
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/i2c/mediatek,mt7621-i2c.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

maintainers:
  - Stefan Roese <sr@denx.de>

title: Mediatek MT7621/MT7628 I2C master controller

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

properties:
  compatible:
    const: mediatek,mt7621-i2c

  reg:
    maxItems: 1

  clocks:
    maxItems: 1

  clock-names:
    const: i2c

  resets:
    maxItems: 1

  reset-names:
    const: i2c

required:
  - compatible
  - reg
  - resets
  - "#address-cells"
  - "#size-cells"

unevaluatedProperties: false

examples:
  - |
    #include <dt-bindings/clock/mt7621-clk.h>
    #include <dt-bindings/reset/mt7621-reset.h>
 
    i2c: i2c@900 {
      compatible = "mediatek,mt7621-i2c";
      reg = <0x900 0x100>;
      clocks = <&sysc MT7621_CLK_I2C>;
      clock-names = "i2c";
      resets = <&sysc MT7621_RST_I2C>;
      reset-names = "i2c";
 
      #address-cells = <1>;
      #size-cells = <0>;
 
      pinctrl-names = "default";
      pinctrl-0 = <&i2c_pins>;
    };