Skip to content

i2c: tegra20: add target controller support

Marc Dietrich linux-devicetree linux-i2c linux-tegra 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 2 repliesIn review
  2. v12 patches 2 repliesSuperseded

Changes in v2 from the cover letter

- fix minor issues highlighted by Uwe
- removed NACK support, because it is not used by the EC I tested the patch with
- do not access the registers or disable the IRQ and clocks again if resume failed (noted by Sashiko)

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2dt-bindings: i2c: Add Tegra20 I2C target controllerDocumentation/devicetree/bindings/i2c/nvidia,tegra20-i2c.yaml+23 -42 replies
2/2i2c: tegra20: Add driver for Tegra20 I2C target controller instancesMAINTAINERS drivers/i2c/busses/Kconfig drivers/i2c/busses/Makefile +1 more+372 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/2] i2c: tegra20: add target controller support

Hi,

this series adds I2C target mode support to the Tegra20 I2C controller. The driver is very simple and only supports single byte transfers. The goal is to remove the NVEC driver from staging with which this implentation was also tested.
I used a separate driver for the target for maintainability and extensibility reasons, in case support for more Tegra SOCs will be added. The driver was coded by use of an LLM with a few adaptions by me.

Marc

---
Changes since V1:
- fix minor issues highlighted by Uwe
- removed NACK support, because it is not used by the EC I tested the patch with
- do not access the registers or disable the IRQ and clocks again if resume failed (noted by Sashiko)

Marc Dietrich (2):
dt-bindings: i2c: Add Tegra20 I2C target controller
i2c: tegra20: Add driver for Tegra20 I2C target controller instances

 .../bindings/i2c/nvidia,tegra20-i2c.yaml      |  27 +-
 MAINTAINERS                                   |   6 +
 drivers/i2c/busses/Kconfig                    |  14 +
 drivers/i2c/busses/Makefile                   |   1 +
 drivers/i2c/busses/i2c-tegra-target.c         | 351 ++++++++++++++++++
 5 files changed, 395 insertions(+), 4 deletions(-)
 create mode 100644 drivers/i2c/busses/i2c-tegra-target.c
Signature · 1 line
2.55.0