1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/i2c/i2c-mt65xx.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: MediaTek I2C controller
10 This driver interfaces with the native I2C controller present in
11 various MediaTek SoCs.
14 - $ref: /schemas/i2c/i2c-controller.yaml#
17 - Qii Wang <qii.wang@mediatek.com>
22 - const: mediatek,mt2712-i2c
23 - const: mediatek,mt6577-i2c
24 - const: mediatek,mt6589-i2c
25 - const: mediatek,mt7622-i2c
26 - const: mediatek,mt8168-i2c
27 - const: mediatek,mt8173-i2c
28 - const: mediatek,mt8183-i2c
29 - const: mediatek,mt8186-i2c
30 - const: mediatek,mt8188-i2c
31 - const: mediatek,mt8192-i2c
36 - const: mediatek,mt2712-i2c
42 - const: mediatek,mt6577-i2c
46 - const: mediatek,mt8192-i2c
50 - description: Physical base address
51 - description: DMA base address
59 - description: Main clock for I2C bus
60 - description: Clock for I2C via DMA
61 - description: Bus arbitrator clock
62 - description: Clock for I2C from PMIC
73 $ref: /schemas/types.yaml#/definitions/uint32
74 description: Frequency divider of clock source in I2C module
79 SCL frequency to use (in Hz). If omitted, 100kHz is used.
82 description: Platform controls I2C from PMIC side
85 mediatek,use-push-pull:
86 description: Use push-pull mode I/O config
90 description: Phandle to the regulator providing power to SCL/SDA
100 unevaluatedProperties: false
104 #include <dt-bindings/interrupt-controller/arm-gic.h>
105 #include <dt-bindings/interrupt-controller/irq.h>
108 compatible = "mediatek,mt6577-i2c";
109 reg = <0x1100d000 0x70>, <0x11000300 0x80>;
110 interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_LOW>;
111 clocks = <&i2c0_ck>, <&ap_dma_ck>;
112 clock-names = "main", "dma";
114 clock-frequency = <400000>;
117 #address-cells = <1>;