mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Gaurav Suman via B4 Relay <devnull+gauravsuman007.gmail.com@kernel.org>
To: Bryan O'Donoghue <bod@kernel.org>,
	 Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org>,
	 Loic Poulain <loic.poulain@oss.qualcomm.com>,
	 Mauro Carvalho Chehab <mchehab@kernel.org>,
	Rob Herring <robh@kernel.org>,
	 Krzysztof Kozlowski <krzk+dt@kernel.org>,
	 Conor Dooley <conor+dt@kernel.org>,
	Gaurav Suman <gauravsuman007@gmail.com>,
	 Bryan O'Donoghue <bryan.odonoghue@linaro.org>,
	 Sakari Ailus <sakari.ailus@linux.intel.com>
Cc: linux-arm-msm@vger.kernel.org, linux-media@vger.kernel.org,
	 devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH 0/8] Add SM8150 CAMSS and LG G8x ThinQ camera sensors
Date: Mon, 09 Nov 2026 22:38:18 +0000	[thread overview]
Message-ID: <20261109-sm8150-camera-v1-0-3d2e7b407516@gmail.com> (raw)

This series adds camera support for the Qualcomm SM8150 (Titan 175) and
the three cameras of the LG G8x ThinQ:

 - CAMSS for SM8150: four CSIPHYs, two CSIDs/VFEs plus two lite pairs,
   reusing the gen2 CSID and VFE 17x code with SM8150 clock rates, the
   CSIPHY v1.1 lane table and camnoc_axi set to 400 MHz by the driver,
 - a driver for the Samsung S5K3M3 13MP sensor (wide camera),
 - a driver for the Samsung S5KGD1 32MP quad-Bayer sensor (front
   camera, 2x2 binned mode),
 - a lens driver for the autofocus part of the ON Semiconductor
   LC898123F40 OIS/AF controller (main camera module).

The main camera, a Sony IMX363, uses the driver from the sdm670-mainline
tree (Pixel 3a), which its author plans to submit; it is not part of
this series. The board DT for the G8x will follow once the bindings are
settled.

The sensor register settings come from the phone's vendor camera module
data. Each driver supports one mode for now.

Testing: on an LG G8x ThinQ, all three sensors stream RAW10 at 30 fps
through CSID0/VFE0 RDI0 into libcamera's simple pipeline handler and
GPU software ISP (GNOME Snapshot), and the lens moves with
V4L2_CID_FOCUS_ABSOLUTE. The patches apply to next-20261105; the
drivers build with W=1 without warnings and the bindings pass
dt_binding_check. The same code runs on the phone on top of the
postmarketOS 7.0 kernel (only the client_info callback argument
differs).

Tree and test notes: https://github.com/gauravsuman007/nura-g8x

This series was written and tested with the help of an AI coding
assistant (Claude Opus 5.5, Anthropic). I have reviewed every patch and
the test results, and I am responsible for them.

Gaurav Suman (8):
  dt-bindings: media: Add qcom,sm8150-camss
  media: qcom: camss: Add SM8150 support
  dt-bindings: media: i2c: Add Samsung S5K3M3 image sensor
  media: i2c: Add Samsung S5K3M3 image sensor driver
  dt-bindings: media: i2c: Add Samsung S5KGD1 image sensor
  media: i2c: Add Samsung S5KGD1 image sensor driver
  dt-bindings: media: i2c: Add ON Semiconductor LC898123F40
  media: i2c: Add ON Semiconductor LC898123F40 lens autofocus driver

.../bindings/media/i2c/onnn,lc898123f40.yaml  |   46 +
 .../bindings/media/i2c/samsung,s5k3m3.yaml    |  104 +
 .../bindings/media/i2c/samsung,s5kgd1.yaml    |  105 +
 .../bindings/media/qcom,sm8150-camss.yaml     |  389 ++
 MAINTAINERS                                   |   25 +
 drivers/media/i2c/Kconfig                     |   30 +
 drivers/media/i2c/Makefile                    |    3 +
 drivers/media/i2c/lc898123.c                  |  138 +
 drivers/media/i2c/s5k3m3-regs.h               |   71 +
 drivers/media/i2c/s5k3m3.c                    |  451 ++
 drivers/media/i2c/s5kgd1-regs.h               | 6137 +++++++++++++++++
 drivers/media/i2c/s5kgd1.c                    |  451 ++
 .../qcom/camss/camss-csiphy-3ph-1-0.c         |   80 +
 drivers/media/platform/qcom/camss/camss-vfe.c |    2 +
 drivers/media/platform/qcom/camss/camss.c     |  250 +
 drivers/media/platform/qcom/camss/camss.h     |    1 +
 16 files changed, 8283 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/media/i2c/onnn,lc898123f40.yaml
 create mode 100644 Documentation/devicetree/bindings/media/i2c/samsung,s5k3m3.yaml
 create mode 100644 Documentation/devicetree/bindings/media/i2c/samsung,s5kgd1.yaml
 create mode 100644 Documentation/devicetree/bindings/media/qcom,sm8150-camss.yaml
 create mode 100644 drivers/media/i2c/lc898123.c
 create mode 100644 drivers/media/i2c/s5k3m3-regs.h
 create mode 100644 drivers/media/i2c/s5k3m3.c
 create mode 100644 drivers/media/i2c/s5kgd1-regs.h
 create mode 100644 drivers/media/i2c/s5kgd1.c

---
Gaurav Suman (8):
      dt-bindings: media: Add qcom,sm8150-camss
      media: qcom: camss: Add SM8150 support
      dt-bindings: media: i2c: Add Samsung S5K3M3 image sensor
      media: i2c: Add Samsung S5K3M3 image sensor driver
      dt-bindings: media: i2c: Add Samsung S5KGD1 image sensor
      media: i2c: Add Samsung S5KGD1 image sensor driver
      dt-bindings: media: i2c: Add ON Semiconductor LC898123F40
      media: i2c: Add ON Semiconductor LC898123F40 lens autofocus driver

 .../bindings/media/i2c/onnn,lc898123f40.yaml       |   46 +
 .../bindings/media/i2c/samsung,s5k3m3.yaml         |  104 +
 .../bindings/media/i2c/samsung,s5kgd1.yaml         |  105 +
 .../bindings/media/qcom,sm8150-camss.yaml          |  389 ++
 MAINTAINERS                                        |   23 +
 drivers/media/i2c/Kconfig                          |   30 +
 drivers/media/i2c/Makefile                         |    3 +
 drivers/media/i2c/lc898123.c                       |  138 +
 drivers/media/i2c/s5k3m3-regs.h                    |   71 +
 drivers/media/i2c/s5k3m3.c                         |  451 ++
 drivers/media/i2c/s5kgd1-regs.h                    | 6137 ++++++++++++++++++++
 drivers/media/i2c/s5kgd1.c                         |  451 ++
 .../platform/qcom/camss/camss-csiphy-3ph-1-0.c     |   80 +
 drivers/media/platform/qcom/camss/camss-vfe.c      |    2 +
 drivers/media/platform/qcom/camss/camss.c          |  250 +
 drivers/media/platform/qcom/camss/camss.h          |    1 +
 16 files changed, 8281 insertions(+)
---
base-commit: ddfe51b0a0f5dc9e415cc2c8ad8db17532dd426b
change-id: 20261109-sm8150-camera-6df20588bbd2

Best regards,
-- 
Gaurav Suman <gauravsuman007@gmail.com>



             reply	other threads:[~2026-11-09 22:38 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-09 22:38 Gaurav Suman via B4 Relay [this message]
2026-11-09 22:38 ` [PATCH 1/8] dt-bindings: media: Add qcom,sm8150-camss Gaurav Suman via B4 Relay
2026-11-09 22:38 ` [PATCH 2/8] media: qcom: camss: Add SM8150 support Gaurav Suman via B4 Relay
2026-11-09 22:38 ` [PATCH 3/8] dt-bindings: media: i2c: Add Samsung S5K3M3 image sensor Gaurav Suman via B4 Relay
2026-11-09 22:38 ` [PATCH 4/8] media: i2c: Add Samsung S5K3M3 image sensor driver Gaurav Suman via B4 Relay
2026-11-09 22:38 ` [PATCH 5/8] dt-bindings: media: i2c: Add Samsung S5KGD1 image sensor Gaurav Suman via B4 Relay
2026-11-09 22:38 ` [PATCH 6/8] media: i2c: Add Samsung S5KGD1 image sensor driver Gaurav Suman via B4 Relay
2026-11-09 22:38 ` [PATCH 7/8] dt-bindings: media: i2c: Add ON Semiconductor LC898123F40 Gaurav Suman via B4 Relay
2026-11-09 22:38 ` [PATCH 8/8] media: i2c: Add ON Semiconductor LC898123F40 lens autofocus driver Gaurav Suman via B4 Relay

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261109-sm8150-camera-v1-0-3d2e7b407516@gmail.com \
    --to=devnull+gauravsuman007.gmail.com@kernel.org \
    --cc=bod@kernel.org \
    --cc=bryan.odonoghue@linaro.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=gauravsuman007@gmail.com \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=loic.poulain@oss.qualcomm.com \
    --cc=mchehab@kernel.org \
    --cc=robh@kernel.org \
    --cc=sakari.ailus@linux.intel.com \
    --cc=vladimir.zapolskiy@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®