i2c: Add Loongson-2K0300 I2C controller support
Status from this message: merged to i2c/i2c-host-v7.1
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v8 Latest2 patches 1 replyApplied
- v72 patches 4 repliesSuperseded
- v62 patches 5 repliesSuperseded
Earlier versions · 5
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v5 | 2 patches | 4 replies | Superseded | |
| v4 | 2 patches | 2 replies | Superseded | |
| v3 | 2 patches | 2 replies | Superseded | |
| v2 | 2 patches | 7 replies | Superseded | |
| v1 | 2 patches | 3 replies | Superseded |
Changes in v8 from the cover letter
Patch (2/2):
- Since the physical unit is specific, revert the change made in v7 to replace MHz with mhz.
Patches in v8 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | dt-bindings: i2c: loongson,ls2x: Add ls2k0300-i2c compatibleDocumentation/ | +4 | 0 replies | |
| 2/2 | i2c: ls2x-v2: Add driver for Loongson-2K0300 I2C controllerMAINTAINERS drivers/ drivers/ +1 more | +557 | 0 replies |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Conor Dooley | Huacai Chen | Andy Shevchenko |
|---|---|---|---|
| 1/2 | A-b | R-b | |
| 2/2 | R-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [PATCH v8 0/2] i2c: Add Loongson-2K0300 I2C controller support
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.
======
V8:
Patch (2/2):
- Since the physical unit is specific, revert the change made in v7 to replace MHz with mhz.
Link to V7:
https://lore.kernel.org/all/[email protected]/
V7:
- Add Reviewed-by tag from Huacai & Andy, thanks. Patch (2/2):
- Add the REGMAP_MMIO Kconfig dependency;
- parent_rate_MHz -> parent_rate_mhz to avoid CamelCase.
Link to V6:
https://lore.kernel.org/all/[email protected]/
V6:
- Rebase on linux-i2c/i2c-next;
Patch (2/2):
- Update comment;
- Use regmap_get_device();
Link to V5:
https://lore.kernel.org/all/[email protected]/
V5:
- Rebase on linux-i2c/i2c-next;
Patch (2/2):
- Add time.h header file;
- Add the MHz suffix to parent_rate and freq;
- Define an iterator within the for loop, with its type being
`unsigned int`;
- Use dev_err_probe() in loongson2_i2c_adjust_bus_speed();
- i2c_adapter_set_node()->device_set_node().
Link to V4:
https://lore.kernel.org/all/[email protected]/
V4:
- Rebase on linux-i2c/i2c-next;
Patch (2/2):
- The parent_rate parameter type should be unsigned long;
- Drop fallthrough and add missing break;
- device_set_node()->i2c_adapter_set_node();
- Use i2c_parse_fw_timings();
- Use i2c_t.bus_freq_hz instead of priv->speed;
- Sperate loongson2_i2c_handle_read() into loongson2_i2c_handle_read() and loongson2_i2c_handle_rx_done().
Link to V3:
https://lore.kernel.org/all/[email protected]/
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/[email protected]/
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/[email protected]/
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 | 11 + drivers/i2c/busses/Makefile | 1 + drivers/i2c/busses/i2c-ls2x-v2.c | 544 ++++++++++++++++++ 5 files changed, 561 insertions(+) create mode 100644 drivers/i2c/busses/i2c-ls2x-v2.c
base-commit: 8fc326e15895c9f0403e6243dd4ad468b10aab3d
Signature · 1 line
2.52.0