[PATCH v3 0/2] i2c: Add Loongson-2K0300 I2C controller support
From: Binbin Zhou <zhoubinbin@loongson.cn>
Date: 2026-02-25 07:35:02
Also in:
linux-i2c, loongarch
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. ====== V3: - Rebase on linux-i2c/i2c-next; Patch (2/2): - Reorder header file follow IWYU principle; - Better indentation and coding style; - Use generic macro definitions; - Amend *all* struct data types; - Correct unreasonable variable type definitions; - Refact loongson2_i2c_isr_error(); - of_property_read_u32()->device_property_read_u32(); - Remove meaningless blank lines and output. Link to V2: https://lore.kernel.org/all/cover.1769476820.git.zhoubinbin@loongson.cn/ (local) 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.zhoubinbin@loongson.cn/ (local) 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 | 4 + MAINTAINERS | 1 + drivers/i2c/busses/Kconfig | 10 + drivers/i2c/busses/Makefile | 1 + drivers/i2c/busses/i2c-ls2x-v2.c | 510 ++++++++++++++++++ 5 files changed, 526 insertions(+) create mode 100644 drivers/i2c/busses/i2c-ls2x-v2.c base-commit: 6de23f81a5e08be8fbf5e8d7e9febc72a5b5f27f -- 2.52.0