Skip to content

drm/xe: i2c support

Raag Jadav intel-xe linux-i2c lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v7 Latest5 patches 3 repliesIn review

Changes in v7 from the cover letter

- Fix SPDX checkpatch warning.

Patches in v7 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5i2c: designware: Use polling by default when there is no irq resourcedrivers/i2c/busses/i2c-designware-platdrv.c+7 -41 reply
2/5i2c: designware: Add quirk for Intel Xedrivers/i2c/busses/i2c-designware-platdrv.c+5 -21 reply
3/5drm/xe: Support for I2C attached MCUsdrivers/gpu/drm/xe/Kconfig drivers/gpu/drm/xe/Makefile drivers/gpu/drm/xe/regs/xe_i2c_regs.h +8 more+390 -10 replies
4/5drm/xe/pm: Wire up suspend/resume for I2C controllerdrivers/gpu/drm/xe/regs/xe_i2c_regs.h drivers/gpu/drm/xe/xe_i2c.c drivers/gpu/drm/xe/xe_i2c.h +1 more+47 -00 replies
5/5drm/xe/xe_i2c: Add support for i2c in survivability modedrivers/gpu/drm/xe/xe_survivability_mode.c+11 -80 replies

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchAndi ShytiMichael J. RuhlRodrigo ViviKarthik PoosaRaag JadavJarkko Nikula
1/5R-b A-b
2/5R-b Originally-by A-b
3/5R-b Originally-by R-b
4/5R-b R-b
5/5R-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 6 reviewers.

Read the v7 thread

Cover letter [PATCH v7 0/5] drm/xe: i2c support

Hi,

On behalf of Heikki, since he's on vacation.

Changed since v6:
- Fix SPDX checkpatch warning.

Changed since v5:
- The modification to the dw_i2c_plat_probe() is split into its own patch as proposed by Andi.
- I removed completely the comment from the last patch in the series ("drm/xe/xe_i2c: Add support for i2c in survivability mode").

Changed since v4:
- Cleanups requested by Andy.
- Casting the PCI power modes to make sparse happy - Raag.
- Limiting the use of this thing to Battlemage again. But I'm not sure if this is the correct thing to do.

Changed since v3:
- Cleanups as requested by Rodrigo.
- The licence is now changed, but still need confirmation for it!

Changed since v2:
- Added dependency on regmap when i2c is enabled.

Changed since v1:
- Now rebased on top of drm-tip.
- No longer ignoring errors from xe_i2c_probe().
- Cleanups pointed out by Lucas.

I've also included followup patches from Raag and Riana to this series.

Original cover letter:

Some of the future GPUs will provide access to the on-board Synopsys DesignWare I2C host adapter. The i2c is used to connect various microcontrollers. The initially supported microcontroller unit is called Add-In Management Controller (AMC).

Thanks,

Heikki Krogerus (3):
i2c: designware: Use polling by default when there is no irq resource
i2c: designware: Add quirk for Intel Xe
drm/xe: Support for I2C attached MCUs

Raag Jadav (1):
drm/xe/pm: Wire up suspend/resume for I2C controller

Riana Tauro (1):
drm/xe/xe_i2c: Add support for i2c in survivability mode

 drivers/gpu/drm/xe/Kconfig                  |   1 +
 drivers/gpu/drm/xe/Makefile                 |   1 +
 drivers/gpu/drm/xe/regs/xe_i2c_regs.h       |  20 ++
 drivers/gpu/drm/xe/regs/xe_irq_regs.h       |   1 +
 drivers/gpu/drm/xe/regs/xe_pmt.h            |   2 +-
 drivers/gpu/drm/xe/regs/xe_regs.h           |   2 +
 drivers/gpu/drm/xe/xe_device.c              |   5 +
 drivers/gpu/drm/xe/xe_device_types.h        |   4 +
 drivers/gpu/drm/xe/xe_i2c.c                 | 329 ++++++++++++++++++++
 drivers/gpu/drm/xe/xe_i2c.h                 |  62 ++++
 drivers/gpu/drm/xe/xe_irq.c                 |   2 +
 drivers/gpu/drm/xe/xe_pm.c                  |   9 +
 drivers/gpu/drm/xe/xe_survivability_mode.c  |  19 +-
 drivers/i2c/busses/i2c-designware-platdrv.c |  18 +-
 14 files changed, 460 insertions(+), 15 deletions(-)
 create mode 100644 drivers/gpu/drm/xe/regs/xe_i2c_regs.h
 create mode 100644 drivers/gpu/drm/xe/xe_i2c.c
 create mode 100644 drivers/gpu/drm/xe/xe_i2c.h
Signature · 1 line
2.34.1