|
|
Log in / Subscribe / Register

i2c: Add Loongson-2K0300 I2C controller support

From:  Binbin Zhou <zhoubinbin-AT-loongson.cn>
To:  Binbin Zhou <zhoubb.aaron-AT-gmail.com>, Huacai Chen <chenhuacai-AT-loongson.cn>, Rob Herring <robh-AT-kernel.org>, Krzysztof Kozlowski <krzk+dt-AT-kernel.org>, Conor Dooley <conor+dt-AT-kernel.org>, Andi Shyti <andi.shyti-AT-kernel.org>, Wolfram Sang <wsa+renesas-AT-sang-engineering.com>, Andy Shevchenko <andy-AT-kernel.org>, linux-i2c-AT-vger.kernel.org
Subject:  [PATCH v2 0/2] i2c: Add Loongson-2K0300 I2C controller support
Date:  Tue, 27 Jan 2026 10:47:55 +0800
Message-ID:  <cover.1769476820.git.zhoubinbin@loongson.cn>
Cc:  Huacai Chen <chenhuacai-AT-kernel.org>, Xuerui Wang <kernel-AT-xen0n.name>, loongarch-AT-lists.linux.dev, devicetree-AT-vger.kernel.org, Binbin Zhou <zhoubinbin-AT-loongson.cn>
Archive-link:  Article

Hi all:

This patch set describes the I2C controller integrated the
Loongson-2K0300 chip.

It has a significantly different design from the previous I2C
controller(i2c-ls2x), such as support for master-slave transfer mode,
and  DMA transfers (implementation in progress), etc. Therefore, we try
to name it i2c-ls2x-v2.

Thanks.

======
V2:
Patch (1/2):
 - Add Acked-by tag from Conor, thanks.

Patch (2/2):
 - Reorder the definitions of read() and write();
 - Adjust the calculation method for bus speed.

Link to V1:
https://lore.kernel.org/all/cover.1763018288.git.zhoubinb...

Binbin Zhou (2):
  dt-bindings: i2c: loongson,ls2x: Add ls2k0300-i2c compatible
  i2c: ls2x-v2: Add driver for Loongson-2K0300 I2C controller

 .../bindings/i2c/loongson,ls2x-i2c.yaml       |  15 +
 MAINTAINERS                                   |   1 +
 drivers/i2c/busses/Kconfig                    |  10 +
 drivers/i2c/busses/Makefile                   |   1 +
 drivers/i2c/busses/i2c-ls2x-v2.c              | 545 ++++++++++++++++++
 5 files changed, 572 insertions(+)
 create mode 100644 drivers/i2c/busses/i2c-ls2x-v2.c


base-commit: 880977fdc7f67923d1904ee23ca75fa1e375ea46
-- 
2.47.3




Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds