|
|
Log in / Subscribe / Register

media: pci: mgb4: Add support for GMSL1 and GMSL-coax modules

From:  tumic-AT-gpxsee.org
To:  Mauro Carvalho Chehab <mchehab-AT-kernel.org>, Hans Verkuil <hverkuil-AT-xs4all.nl>
Subject:  [PATCH v3 0/3] media: pci: mgb4: Add support for GMSL1 and GMSL-coax modules
Date:  Thu, 20 Nov 2025 14:08:24 +0100
Message-ID:  <20251120130827.1882-1-tumic@gpxsee.org>
Cc:  linux-media-AT-vger.kernel.org, linux-kernel-AT-vger.kernel.org, Martin Tůma <martin.tuma-AT-digiteqautomotive.com>
Archive-link:  Article

From: Martin Tůma <martin.tuma@digiteqautomotive.com>

This patches add support for two new mgb4 card modules - GMSL1 and
GMSL3-coax. The GMSL3-coax module is a variant of the already supported
GMSL3 module with a coaxial interface instead of a twisted-pair interface.
The GMSL1 module is completely new and requires a separate FW type as well.

Changes from v2 to v3:
* fixed oldi_lane_width_show() returning empty string with GMSL1 modules
* unified the default GMSL3c deserializer I2C setup with the chip wiring
  (the GMSL3c modules have a different HW setup than the twisted-pair
  modules).

Changes from v1 to v2:
* Properly use NULL instead of 0.
* Fixed missing "media" prefix in patch #2.

Martin Tůma (3):
  media: pci: mgb4: Add support for GMSL1 modules
  media: pci: mgb4: Add support for GMSL3 coaxial modules
  Documentation: admin-guide: media: mgb4: Add GMSL1 & GMSL3-coax
    modules info

 Documentation/admin-guide/media/mgb4.rst | 11 ++-
 drivers/media/pci/mgb4/mgb4_core.c       | 22 +++++-
 drivers/media/pci/mgb4/mgb4_core.h       | 16 ++--
 drivers/media/pci/mgb4/mgb4_sysfs.h      |  6 +-
 drivers/media/pci/mgb4/mgb4_sysfs_in.c   | 49 ++++++++++---
 drivers/media/pci/mgb4/mgb4_sysfs_out.c  | 38 ++++++++--
 drivers/media/pci/mgb4/mgb4_vin.c        | 93 +++++++++++++++++-------
 drivers/media/pci/mgb4/mgb4_vout.c       | 64 +++++++++++-----
 8 files changed, 221 insertions(+), 78 deletions(-)


base-commit: 1a31cb2782104969e48c7ce7e4fc06e403fcb5cf
-- 
2.51.2




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