[PATCH RFC 0/3] media: qcom: camss: vfe: Share the gen3 code with VFE 680 and 1080

From: Wenmeng Liu

Date: Thu Dec 03 2026 - 05:35:09 EST


The gen3 (690 and 780), 680 and 1080 VFE drivers program the RDI write
masters in the same way and mostly differ in their register layout. The
same applies to VFE 970 and 980 from the SM8750 and Eliza series [1].

This series describes the layout with a struct vfe_gen3_cfg referenced
from the VFE resources, and moves VFE 680 and 1080 to the gen3 code,
dropping camss-vfe-680.c and camss-vfe-1080.c. VFE 970 and 980 can then
be added as gen3 layouts as well.

VFE 1080 keeps its split address and register update through
vfe_ops_split_aup. VFE 680 switches from line based to frame based write
masters, like the other gen3 VFEs.

[1] https://lore.kernel.org/all/20261202-add-support-for-camss-on-sm8750-v8-0-a07210023c55@xxxxxxxxxxxxxxxx/

---
Wenmeng Liu (3):
media: qcom: camss: vfe: gen3: Describe the register layout with a struct
media: qcom: camss: vfe: Move VFE 680 to the gen3 code
media: qcom: camss: vfe: Move VFE 1080 to the gen3 code

drivers/media/platform/qcom/camss/Makefile | 2 -
drivers/media/platform/qcom/camss/camss-vfe-1080.c | 213 ------------------
drivers/media/platform/qcom/camss/camss-vfe-680.c | 244 ---------------------
drivers/media/platform/qcom/camss/camss-vfe-gen3.c | 170 ++++++++++----
drivers/media/platform/qcom/camss/camss-vfe.h | 11 +-
drivers/media/platform/qcom/camss/camss.c | 53 ++++-
6 files changed, 178 insertions(+), 515 deletions(-)
---
base-commit: 799dd936553182df5770dde7f38d94c8337df75a
change-id: 20261203-camss-vfe-a4ef8483c117

Best regards,
--
Wenmeng Liu <wenmeng.liu@xxxxxxxxxxxxxxxx>