From: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
To: Nihal Kumar Gupta <nihal.gupta@oss.qualcomm.com>,
Loic Poulain <loic.poulain@oss.qualcomm.com>,
Robert Foss <rfoss@kernel.org>,
Andi Shyti <andi.shyti@kernel.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Bryan O'Donoghue <bod@kernel.org>,
Manivannan Sadhasivam <mani@kernel.org>,
Hangxiang Ma <hangxiang.ma@oss.qualcomm.com>,
Bjorn Andersson <andersson@kernel.org>,
Konrad Dybcio <konradybcio@kernel.org>,
Abel Vesa <abelvesa@kernel.org>
Cc: linux-arm-msm@vger.kernel.org, linux-i2c@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-media@vger.kernel.org,
Suresh Vankadara <svankada@qti.qualcomm.com>,
Vikram Sharma <vikram.sharma@oss.qualcomm.com>
Subject: Re: [PATCH RFC 06/15] media: qcom: camss: vfe: Add support for VFE 1190
Date: Fri, 2 Oct 2026 15:35:48 +0100 [thread overview]
Message-ID: <45d79c84-cc76-4bee-835d-ed11ce07bf2f@linaro.org> (raw)
In-Reply-To: <20260923-hawi-maili-camss-v1-6-cbbb42e534ef@oss.qualcomm.com>
On 23/09/2026 12:02, Nihal Kumar Gupta wrote:
> drivers/media/platform/qcom/camss/camss-vfe-gen4.c
So I'd like to completely drop the genX.c stuff it is not descriptive.
For example:
diff --git a/drivers/media/platform/qcom/camss/camss-vfe-gen3.c
b/drivers/media/platform/qcom/camss/camss-vfe-gen3.c
index 93d16b0951e99..f2001140ead12 100644
--- a/drivers/media/platform/qcom/camss/camss-vfe-gen3.c
+++ b/drivers/media/platform/qcom/camss/camss-vfe-gen3.c
@@ -12,13 +12,43 @@
#include "camss.h"
#include "camss-vfe.h"
-#define BUS_REG_BASE (vfe_is_lite(vfe) ? 0x200 : 0xC00)
+#define IS_VFE_690(vfe) \
+ (vfe->camss->res->version == CAMSS_8775P)
+
+#define BUS_REG_BASE_690 \
+ (vfe_is_lite(vfe) ? 0x480 : 0x400)
+#define BUS_REG_BASE_780 \
+ (vfe_is_lite(vfe) ? 0x200 : 0xC00)
+#define BUS_REG_BASE \
+ (IS_VFE_690(vfe) ? BUS_REG_BASE_690 : BUS_REG_BASE_780)
+
+#define VFE_TOP_CORE_CFG (0x24)
+#define VFE_DISABLE_DSCALING_DS4 BIT(21)
+#define VFE_DISABLE_DSCALING_DS16 BIT(22)
+
+#define VFE_BUS_WM_TEST_BUS_CTRL_690 (BUS_REG_BASE + 0xFC)
+#define VFE_BUS_WM_TEST_BUS_CTRL_780 (BUS_REG_BASE + 0xDC)
+#define VFE_BUS_WM_TEST_BUS_CTRL \
+ (IS_VFE_690(vfe) ? VFE_BUS_WM_TEST_BUS_CTRL_690 \
+ : VFE_BUS_WM_TEST_BUS_CTRL_780)
+/*
+ * Bus client mapping:
+ *
+ * Full VFE:
+ * VFE_690: 16 = RDI0, 17 = RDI1, 18 = RDI2
+ * VFE_780: 23 = RDI0, 24 = RDI1, 25 = RDI2
+ *
+ * VFE LITE:
+ * VFE_690 : 0 = RDI0, 1 = RDI1, 2 = RDI2, 3 = RDI3, 4 = RDI4, 5 = RDI5
+ * VFE_780 : 0 = RDI0, 1 = RDI1, 2 = RDI2, 3 = RDI3, 4 = RDI4
+ */
+#define RDI_WM_690(n) ((vfe_is_lite(vfe) ? 0x0 : 0x10) + (n))
+#define RDI_WM_780(n) ((vfe_is_lite(vfe) ? 0x0 : 0x17) + (n))
+#define RDI_WM(n) (IS_VFE_690(vfe) ? RDI_WM_690(n) : RDI_WM_780(n))
In other words VFE 690 and VFE 780/880 don't share the same write-master
index.
So they aren't the same silicon.
I'll go and find the Kaanapali thread but the feedback here will apply
there.
Name the files per their silicon version not some genX.c moniker, please.
It _looks_ like 690 and 780 will need to be separated so, I'd like to
move away from this misleading genX notation - it may mean things to
qcom but I feel we are burying inappropriate hacks inside of convenient
gen files.
---
bod
next prev parent reply other threads:[~2026-10-02 14:35 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-23 11:02 [PATCH RFC 00/15] Add CAMSS and S5KJN5 sensor support for Qualcomm Hawi and Maili Nihal Kumar Gupta
2026-09-23 11:02 ` [PATCH RFC 01/15] dt-bindings: i2c: qcom,i2c-cci: Add Hawi compatible Nihal Kumar Gupta
2026-10-01 12:14 ` Loic Poulain
2026-09-23 11:02 ` [PATCH RFC 02/15] dt-bindings: phy: qcom,x1e80100-csi2-phy: Add Hawi and Maili compatibles Nihal Kumar Gupta
2026-09-23 12:11 ` Bryan O'Donoghue
2026-09-23 11:02 ` [PATCH RFC 03/15] dt-bindings: media: Add CAMSS device for Hawi Nihal Kumar Gupta
2026-09-23 11:02 ` [PATCH RFC 04/15] dt-bindings: media: Add CAMSS device for Maili Nihal Kumar Gupta
2026-09-23 11:02 ` [PATCH RFC 05/15] media: qcom: camss: Add Hawi compatible camss driver Nihal Kumar Gupta
2026-09-23 12:30 ` Bryan O'Donoghue
2026-09-24 6:01 ` Nihal Kumar Gupta
2026-09-24 9:34 ` Bryan O'Donoghue
2026-09-23 11:02 ` [PATCH RFC 06/15] media: qcom: camss: vfe: Add support for VFE 1190 Nihal Kumar Gupta
2026-10-02 14:35 ` Bryan O'Donoghue [this message]
2026-10-03 4:35 ` Nihal Kumar Gupta
2026-09-23 11:02 ` [PATCH RFC 07/15] arm64: dts: qcom: hawi: Add CAMSS and CSIPHY nodes for Hawi Nihal Kumar Gupta
2026-09-23 12:40 ` Bryan O'Donoghue
2026-09-23 11:02 ` [PATCH RFC 08/15] arm64: dts: qcom: hawi: Add CCI definitions " Nihal Kumar Gupta
2026-09-23 12:42 ` Bryan O'Donoghue
2026-09-30 11:04 ` Konrad Dybcio
2026-09-23 11:02 ` [PATCH RFC 09/15] arm64: dts: qcom: hawi: Add camera MCLK pinctrl " Nihal Kumar Gupta
2026-09-30 11:04 ` Konrad Dybcio
2026-09-23 11:02 ` [PATCH RFC 10/15] arm64: dts: qcom: hawi-mtp: Enable camera subsystem for Hawi MTP Nihal Kumar Gupta
2026-09-23 12:44 ` Bryan O'Donoghue
2026-09-30 11:04 ` Konrad Dybcio
2026-09-23 11:02 ` [PATCH RFC 11/15] arm64: dts: qcom: maili: Add support for cambistmclkcc and camcc Nihal Kumar Gupta
2026-10-02 9:19 ` Abel Vesa
2026-09-23 11:02 ` [PATCH RFC 12/15] arm64: dts: qcom: maili: Add CAMSS and CSIPHY nodes for Maili Nihal Kumar Gupta
2026-09-30 11:09 ` Konrad Dybcio
2026-09-23 11:02 ` [PATCH RFC 13/15] arm64: dts: qcom: maili: Add camera MCLK pinctrl " Nihal Kumar Gupta
2026-09-30 11:11 ` Konrad Dybcio
2026-09-23 11:02 ` [PATCH RFC 14/15] arm64: dts: qcom: maili-mtp: Enable S5KJN5 camera for Maili MTP Nihal Kumar Gupta
2026-09-30 11:11 ` Konrad Dybcio
2026-09-23 11:02 ` [PATCH RFC 15/15] arm64: defconfig: Enable S5KJN5 camera sensor for Qualcomm boards Nihal Kumar Gupta
2026-09-23 12:48 ` Bryan O'Donoghue
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=45d79c84-cc76-4bee-835d-ed11ce07bf2f@linaro.org \
--to=bryan.odonoghue@linaro.org \
--cc=abelvesa@kernel.org \
--cc=andersson@kernel.org \
--cc=andi.shyti@kernel.org \
--cc=bod@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=hangxiang.ma@oss.qualcomm.com \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=loic.poulain@oss.qualcomm.com \
--cc=mani@kernel.org \
--cc=nihal.gupta@oss.qualcomm.com \
--cc=rfoss@kernel.org \
--cc=robh@kernel.org \
--cc=svankada@qti.qualcomm.com \
--cc=vikram.sharma@oss.qualcomm.com \
/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®