<feed xmlns='http://www.w3.org/2005/Atom'>
<title>u-boot.git/drivers/i2c/mt7621_i2c.c, branch main</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/u-boot.git/atom/drivers/i2c/mt7621_i2c.c?h=main</id>
<link rel='self' href='http://cgit.235523.xyz/u-boot.git/atom/drivers/i2c/mt7621_i2c.c?h=main'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/'/>
<updated>2025-10-28T08:49:57Z</updated>
<entry>
<title>i2c: add support for the MT7621 I2C controller</title>
<updated>2025-10-28T08:49:57Z</updated>
<author>
<name>Justin Swartz</name>
<email>justin.swartz@risingedge.co.za</email>
</author>
<published>2025-10-27T13:09:42Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=9ffbce80df0a70d4b636b6b1d2b9faf3728d556a'/>
<id>urn:sha1:9ffbce80df0a70d4b636b6b1d2b9faf3728d556a</id>
<content type='text'>
This commit introduces a port of the Linux kernel's driver for the
Mediatek's MT7621 I2C controller.

The port was undertaken as the existing driver intended for Mediatek
I2C controllers (mtk_i2c.c) is not compatible with the MT7621.

To use the driver:

  1.  Ensure that the mode of the i2c pin group is
      configured for "i2c" rather than "gpio".

  2.  Delete the existing (bitbanged) i2c node from
      arch/mips/dts/mt7621.dtsi, or specify:

        /delete-node/ &amp;i2c;

  3.  Declare:

        i2c: i2c@1e000900 {
                compatible = "mediatek,mt7621-i2c";
                reg = &lt;0x1e000900 0x100&gt;;

                clocks = &lt;&amp;clk50m&gt;;
                clock-names = "sys_clock";

                resets = &lt;&amp;rstctrl RST_I2C&gt;;
                reset-names = "i2c_reset";

                pinctrl-names = "default";
                pinctrl-0 = &lt;&amp;i2c_pins&gt;;

                #address-cells = &lt;1&gt;;
                #size-cells = &lt;0&gt;;
                status = "okay";
        };

Signed-off-by: Justin Swartz &lt;justin.swartz@risingedge.co.za&gt;
Reviewed-by: Heiko Schocher &lt;hs@nabladev.com&gt;
</content>
</entry>
</feed>
