* [PATCH 0/2] arm64: dts: qcom: qcs615: Add support for camss
@ 2025-05-20 8:56 Wenmeng Liu
2025-05-20 8:56 ` [PATCH 1/2] " Wenmeng Liu
` (2 more replies)
0 siblings, 3 replies; 16+ messages in thread
From: Wenmeng Liu @ 2025-05-20 8:56 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, bryan.odonoghue, todor.too, rfoss
Cc: linux-arm-msm, devicetree, linux-kernel, Wenmeng Liu, linux-media
This series adds support to bring up the CSIPHY, CSID, VFE/RDI interfaces
in QCS615. Tested this on QCS615 ADP AIR board with CSID TPG.
Tested with following commands:
media-ctl --reset
v4l2-ctl -d /dev/v4l-subdev3 -c test_pattern=0
media-ctl -V '"msm_csid0":0[fmt:SRGGB10/1920x1080 field:none]'
media-ctl -V '"msm_vfe0_rdi0":0[fmt:SRGGB10/1920x1080 field:none]'
media-ctl -l '"msm_csid0":1->"msm_vfe0_rdi0":0[1]'
v4l2-ctl -d /dev/v4l-subdev3 -c test_pattern=9
yavta -B capture-mplane -n 5 -f SRGGB10P -s 1920x1080 /dev/video0 --capture=7
This patch series depends on patch series:
https://lore.kernel.org/all/20250518-qcs615_camss-v1-0-12723e26ea3e@quicinc.com/
https://lore.kernel.org/all/20250518-qcs615_camss-v1-0-12723e26ea3e@quicinc.com/
https://lore.kernel.org/all/20250424-qcs615-mm-v7-clock-controllers-v8-0-bacad5b3659a@quicinc.com/
Signed-off-by: Wenmeng Liu <quic_wenmliu@quicinc.com>
---
Wenmeng Liu (2):
arm64: dts: qcom: qcs615: Add support for camss
arm64: dts: qcom: qcs615: Enable camss for qcs615-adp-air
arch/arm64/boot/dts/qcom/qcs615-ride.dts | 7 ++
arch/arm64/boot/dts/qcom/qcs615.dtsi | 133 +++++++++++++++++++++++++++++++
2 files changed, 140 insertions(+)
---
base-commit: 5840726e19bb6e86566a9fa68c2dc21ed64761d4
change-id: 20250520-qcs615-adp-air-camss-4109fc2ce430
Best regards,
--
Wenmeng Liu <quic_wenmliu@quicinc.com>
^ permalink raw reply [flat|nested] 16+ messages in thread
* [PATCH 1/2] arm64: dts: qcom: qcs615: Add support for camss
2025-05-20 8:56 [PATCH 0/2] arm64: dts: qcom: qcs615: Add support for camss Wenmeng Liu
@ 2025-05-20 8:56 ` Wenmeng Liu
2025-05-20 10:52 ` Dmitry Baryshkov
2025-05-22 18:57 ` Konrad Dybcio
2025-05-20 8:56 ` [PATCH 2/2] arm64: dts: qcom: qcs615: Enable camss for qcs615-adp-air Wenmeng Liu
2025-05-20 9:42 ` [PATCH 0/2] arm64: dts: qcom: qcs615: Add support for camss Krzysztof Kozlowski
2 siblings, 2 replies; 16+ messages in thread
From: Wenmeng Liu @ 2025-05-20 8:56 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, bryan.odonoghue, todor.too, rfoss
Cc: linux-arm-msm, devicetree, linux-kernel, Wenmeng Liu, linux-media
Add support for the camera subsystem on the QCS615 Qualcomm SoC. This
includes bringing up the CSIPHY, CSID, VFE/RDI interfaces.
QCS615 provides
- 2 x VFE, 3 RDI per VFE
- 1 x VFE Lite, 4 RDI per VFE
- 2 x CSID
- 1 x CSID Lite
- 3 x CSI PHY
Signed-off-by: Wenmeng Liu <quic_wenmliu@quicinc.com>
---
arch/arm64/boot/dts/qcom/qcs615.dtsi | 133 +++++++++++++++++++++++++++++++++++
1 file changed, 133 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/qcs615.dtsi b/arch/arm64/boot/dts/qcom/qcs615.dtsi
index 47e350f175860e7b06f7b2c13fed75a65e489c8a..535251efc6b559447482b9ecc67ca26e7efbbb8c 100644
--- a/arch/arm64/boot/dts/qcom/qcs615.dtsi
+++ b/arch/arm64/boot/dts/qcom/qcs615.dtsi
@@ -3242,6 +3242,139 @@ videocc: clock-controller@ab00000 {
#power-domain-cells = <1>;
};
+ camss: camss@acb3000 {
+ compatible = "qcom,qcs615-camss";
+
+ reg = <0x0 0x0acb3000 0x0 0x1000>,
+ <0x0 0x0acba000 0x0 0x1000>,
+ <0x0 0x0acc8000 0x0 0x1000>,
+ <0x0 0x0ac65000 0x0 0x1000>,
+ <0x0 0x0ac66000 0x0 0x1000>,
+ <0x0 0x0ac67000 0x0 0x1000>,
+ <0x0 0x0acaf000 0x0 0x4000>,
+ <0x0 0x0acb6000 0x0 0x4000>,
+ <0x0 0x0acc4000 0x0 0x4000>;
+ reg-names = "csid0",
+ "csid1",
+ "csid_lite",
+ "csiphy0",
+ "csiphy1",
+ "csiphy2",
+ "vfe0",
+ "vfe1",
+ "vfe_lite";
+
+ clocks = <&camcc CAM_CC_CAMNOC_AXI_CLK>,
+ <&camcc CAM_CC_CPAS_AHB_CLK>,
+ <&camcc CAM_CC_CPHY_RX_CLK_SRC>,
+ <&camcc CAM_CC_CSIPHY0_CLK>,
+ <&camcc CAM_CC_CSI0PHYTIMER_CLK>,
+ <&camcc CAM_CC_CSIPHY1_CLK>,
+ <&camcc CAM_CC_CSI1PHYTIMER_CLK>,
+ <&camcc CAM_CC_CSIPHY2_CLK>,
+ <&camcc CAM_CC_CSI2PHYTIMER_CLK>,
+ <&gcc GCC_CAMERA_HF_AXI_CLK>,
+ <&camcc CAM_CC_SLOW_AHB_CLK_SRC>,
+ <&camcc CAM_CC_SOC_AHB_CLK>,
+ <&camcc CAM_CC_IFE_0_CLK>,
+ <&camcc CAM_CC_IFE_0_AXI_CLK>,
+ <&camcc CAM_CC_IFE_0_CPHY_RX_CLK>,
+ <&camcc CAM_CC_IFE_0_CSID_CLK>,
+ <&camcc CAM_CC_IFE_0_CLK_SRC>,
+ <&camcc CAM_CC_IFE_1_CLK>,
+ <&camcc CAM_CC_IFE_1_AXI_CLK>,
+ <&camcc CAM_CC_IFE_1_CPHY_RX_CLK>,
+ <&camcc CAM_CC_IFE_1_CSID_CLK>,
+ <&camcc CAM_CC_IFE_1_CLK_SRC>,
+ <&camcc CAM_CC_IFE_LITE_CLK>,
+ <&camcc CAM_CC_IFE_LITE_CPHY_RX_CLK>,
+ <&camcc CAM_CC_IFE_LITE_CSID_CLK>,
+ <&camcc CAM_CC_IFE_LITE_CLK_SRC>;
+
+ clock-names = "camnoc_axi",
+ "cpas_ahb",
+ "cphy_rx_src",
+ "csiphy0",
+ "csiphy0_timer",
+ "csiphy1",
+ "csiphy1_timer",
+ "csiphy2",
+ "csiphy2_timer",
+ "gcc_axi_hf",
+ "slow_ahb_src",
+ "soc_ahb",
+ "vfe0",
+ "vfe0_axi",
+ "vfe0_cphy_rx",
+ "vfe0_csid",
+ "vfe0_src",
+ "vfe1",
+ "vfe1_axi",
+ "vfe1_cphy_rx",
+ "vfe1_csid",
+ "vfe1_src",
+ "vfe_lite",
+ "vfe_lite_cphy_rx",
+ "vfe_lite_csid",
+ "vfe_lite_src";
+
+ interconnects = <&gem_noc MASTER_APPSS_PROC 0
+ &config_noc SLAVE_CAMERA_CFG 0>,
+ <&mmss_noc MASTER_CAMNOC_HF0 0
+ &mc_virt SLAVE_EBI1 0>;
+ interconnect-names = "ahb",
+ "hf_0_mnoc";
+
+ interrupts = <GIC_SPI 464 IRQ_TYPE_EDGE_RISING>,
+ <GIC_SPI 466 IRQ_TYPE_EDGE_RISING>,
+ <GIC_SPI 468 IRQ_TYPE_EDGE_RISING>,
+ <GIC_SPI 477 IRQ_TYPE_EDGE_RISING>,
+ <GIC_SPI 478 IRQ_TYPE_EDGE_RISING>,
+ <GIC_SPI 479 IRQ_TYPE_EDGE_RISING>,
+ <GIC_SPI 465 IRQ_TYPE_EDGE_RISING>,
+ <GIC_SPI 467 IRQ_TYPE_EDGE_RISING>,
+ <GIC_SPI 469 IRQ_TYPE_EDGE_RISING>;
+ interrupt-names = "csid0",
+ "csid1",
+ "csid_lite",
+ "csiphy0",
+ "csiphy1",
+ "csiphy2",
+ "vfe0",
+ "vfe1",
+ "vfe_lite";
+
+ iommus = <&apps_smmu 0x820 0x40>,
+ <&apps_smmu 0x840 0x0>,
+ <&apps_smmu 0x860 0x40>;
+
+ power-domains = <&camcc IFE_0_GDSC>,
+ <&camcc IFE_1_GDSC>,
+ <&camcc TITAN_TOP_GDSC>;
+ power-domain-names = "ife0",
+ "ife1",
+ "top";
+
+ status = "disabled";
+
+ ports {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ port@0 {
+ reg = <0>;
+ };
+
+ port@1 {
+ reg = <1>;
+ };
+
+ port@2 {
+ reg = <2>;
+ };
+ };
+ };
+
camcc: clock-controller@ad00000 {
compatible = "qcom,qcs615-camcc";
reg = <0 0x0ad00000 0 0x10000>;
--
2.34.1
^ permalink raw reply related [flat|nested] 16+ messages in thread
* [PATCH 2/2] arm64: dts: qcom: qcs615: Enable camss for qcs615-adp-air
2025-05-20 8:56 [PATCH 0/2] arm64: dts: qcom: qcs615: Add support for camss Wenmeng Liu
2025-05-20 8:56 ` [PATCH 1/2] " Wenmeng Liu
@ 2025-05-20 8:56 ` Wenmeng Liu
2025-05-20 9:44 ` Krzysztof Kozlowski
` (2 more replies)
2025-05-20 9:42 ` [PATCH 0/2] arm64: dts: qcom: qcs615: Add support for camss Krzysztof Kozlowski
2 siblings, 3 replies; 16+ messages in thread
From: Wenmeng Liu @ 2025-05-20 8:56 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, bryan.odonoghue, todor.too, rfoss
Cc: linux-arm-msm, devicetree, linux-kernel, Wenmeng Liu, linux-media
This change enables camera driver for QCS615 ADP AIR board.
Signed-off-by: Wenmeng Liu <quic_wenmliu@quicinc.com>
---
arch/arm64/boot/dts/qcom/qcs615-ride.dts | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/qcs615-ride.dts b/arch/arm64/boot/dts/qcom/qcs615-ride.dts
index 2b5aa3c66867676bda59ff82b902b6e4974126f8..be8b829ec508d7de7a4cd6be6d1d4e83b09734bb 100644
--- a/arch/arm64/boot/dts/qcom/qcs615-ride.dts
+++ b/arch/arm64/boot/dts/qcom/qcs615-ride.dts
@@ -211,6 +211,13 @@ vreg_l17a: ldo17 {
};
};
+&camss {
+ vdda-phy-supply = <&vreg_l5a>;
+ vdda-pll-supply = <&vreg_l12a>;
+
+ status = "ok";
+};
+
&gcc {
clocks = <&rpmhcc RPMH_CXO_CLK>,
<&rpmhcc RPMH_CXO_CLK_A>,
--
2.34.1
^ permalink raw reply related [flat|nested] 16+ messages in thread
* Re: [PATCH 0/2] arm64: dts: qcom: qcs615: Add support for camss
2025-05-20 8:56 [PATCH 0/2] arm64: dts: qcom: qcs615: Add support for camss Wenmeng Liu
2025-05-20 8:56 ` [PATCH 1/2] " Wenmeng Liu
2025-05-20 8:56 ` [PATCH 2/2] arm64: dts: qcom: qcs615: Enable camss for qcs615-adp-air Wenmeng Liu
@ 2025-05-20 9:42 ` Krzysztof Kozlowski
2 siblings, 0 replies; 16+ messages in thread
From: Krzysztof Kozlowski @ 2025-05-20 9:42 UTC (permalink / raw)
To: Wenmeng Liu, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, bryan.odonoghue, todor.too,
rfoss
Cc: linux-arm-msm, devicetree, linux-kernel, linux-media
On 20/05/2025 10:56, Wenmeng Liu wrote:
> This series adds support to bring up the CSIPHY, CSID, VFE/RDI interfaces
> in QCS615. Tested this on QCS615 ADP AIR board with CSID TPG.
>
> Tested with following commands:
> media-ctl --reset
> v4l2-ctl -d /dev/v4l-subdev3 -c test_pattern=0
> media-ctl -V '"msm_csid0":0[fmt:SRGGB10/1920x1080 field:none]'
> media-ctl -V '"msm_vfe0_rdi0":0[fmt:SRGGB10/1920x1080 field:none]'
> media-ctl -l '"msm_csid0":1->"msm_vfe0_rdi0":0[1]'
> v4l2-ctl -d /dev/v4l-subdev3 -c test_pattern=9
> yavta -B capture-mplane -n 5 -f SRGGB10P -s 1920x1080 /dev/video0 --capture=7
>
> This patch series depends on patch series:
> https://lore.kernel.org/all/20250518-qcs615_camss-v1-0-12723e26ea3e@quicinc.com/
> https://lore.kernel.org/all/20250518-qcs615_camss-v1-0-12723e26ea3e@quicinc.com/
> https://lore.kernel.org/all/20250424-qcs615-mm-v7-clock-controllers-v8-0-bacad5b3659a@quicinc.com/
Three dependencies? So this cannot be tested in any close future. You
need to rework the way you upstream, to avoid multiple dependencies.
This was already communicated multiple times.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH 2/2] arm64: dts: qcom: qcs615: Enable camss for qcs615-adp-air
2025-05-20 8:56 ` [PATCH 2/2] arm64: dts: qcom: qcs615: Enable camss for qcs615-adp-air Wenmeng Liu
@ 2025-05-20 9:44 ` Krzysztof Kozlowski
2025-05-20 10:06 ` Wenmeng Liu
2025-05-20 12:19 ` Vladimir Zapolskiy
2025-05-21 13:07 ` Bryan O'Donoghue
2 siblings, 1 reply; 16+ messages in thread
From: Krzysztof Kozlowski @ 2025-05-20 9:44 UTC (permalink / raw)
To: Wenmeng Liu, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, bryan.odonoghue, todor.too,
rfoss
Cc: linux-arm-msm, devicetree, linux-kernel, linux-media
On 20/05/2025 10:56, Wenmeng Liu wrote:
> This change enables camera driver for QCS615 ADP AIR board.
>
> Signed-off-by: Wenmeng Liu <quic_wenmliu@quicinc.com>
> ---
> arch/arm64/boot/dts/qcom/qcs615-ride.dts | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/qcom/qcs615-ride.dts b/arch/arm64/boot/dts/qcom/qcs615-ride.dts
> index 2b5aa3c66867676bda59ff82b902b6e4974126f8..be8b829ec508d7de7a4cd6be6d1d4e83b09734bb 100644
> --- a/arch/arm64/boot/dts/qcom/qcs615-ride.dts
> +++ b/arch/arm64/boot/dts/qcom/qcs615-ride.dts
> @@ -211,6 +211,13 @@ vreg_l17a: ldo17 {
> };
> };
>
> +&camss {
> + vdda-phy-supply = <&vreg_l5a>;
> + vdda-pll-supply = <&vreg_l12a>;
> +
> + status = "ok";
Standard qcom comment...
It does not look like you tested the DTS against bindings. Please run
`make dtbs_check W=1` (see
Documentation/devicetree/bindings/writing-schema.rst or
https://www.linaro.org/blog/tips-and-tricks-for-validating-devicetree-sources-with-the-devicetree-schema/
for instructions).
Maybe you need to update your dtschema and yamllint. Don't rely on
distro packages for dtschema and be sure you are using the latest
released dtschema.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH 2/2] arm64: dts: qcom: qcs615: Enable camss for qcs615-adp-air
2025-05-20 9:44 ` Krzysztof Kozlowski
@ 2025-05-20 10:06 ` Wenmeng Liu
0 siblings, 0 replies; 16+ messages in thread
From: Wenmeng Liu @ 2025-05-20 10:06 UTC (permalink / raw)
To: Krzysztof Kozlowski, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, bryan.odonoghue, todor.too,
rfoss
Cc: linux-arm-msm, devicetree, linux-kernel, linux-media
On 2025/5/20 17:44, Krzysztof Kozlowski wrote:
> On 20/05/2025 10:56, Wenmeng Liu wrote:
>> This change enables camera driver for QCS615 ADP AIR board.
>>
>> Signed-off-by: Wenmeng Liu <quic_wenmliu@quicinc.com>
>> ---
>> arch/arm64/boot/dts/qcom/qcs615-ride.dts | 7 +++++++
>> 1 file changed, 7 insertions(+)
>>
>> diff --git a/arch/arm64/boot/dts/qcom/qcs615-ride.dts b/arch/arm64/boot/dts/qcom/qcs615-ride.dts
>> index 2b5aa3c66867676bda59ff82b902b6e4974126f8..be8b829ec508d7de7a4cd6be6d1d4e83b09734bb 100644
>> --- a/arch/arm64/boot/dts/qcom/qcs615-ride.dts
>> +++ b/arch/arm64/boot/dts/qcom/qcs615-ride.dts
>> @@ -211,6 +211,13 @@ vreg_l17a: ldo17 {
>> };
>> };
>>
>> +&camss {
>> + vdda-phy-supply = <&vreg_l5a>;
>> + vdda-pll-supply = <&vreg_l12a>;
>> +
>> + status = "ok";
> Standard qcom comment...
>
> It does not look like you tested the DTS against bindings. Please run
> `make dtbs_check W=1` (see
> Documentation/devicetree/bindings/writing-schema.rst or
> https://www.linaro.org/blog/tips-and-tricks-for-validating-devicetree-sources-with-the-devicetree-schema/
> for instructions).
> Maybe you need to update your dtschema and yamllint. Don't rely on
> distro packages for dtschema and be sure you are using the latest
> released dtschema.
>
> Best regards,
> Krzysztof
Hi Krzysztof
I only used the CAMSS dt-bindings to check the DTS. Will pay more
attention to it next time.
Thanks,
Wenmeng
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH 1/2] arm64: dts: qcom: qcs615: Add support for camss
2025-05-20 8:56 ` [PATCH 1/2] " Wenmeng Liu
@ 2025-05-20 10:52 ` Dmitry Baryshkov
2025-05-22 18:57 ` Konrad Dybcio
1 sibling, 0 replies; 16+ messages in thread
From: Dmitry Baryshkov @ 2025-05-20 10:52 UTC (permalink / raw)
To: Wenmeng Liu
Cc: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, bryan.odonoghue, todor.too, rfoss, linux-arm-msm,
devicetree, linux-kernel, linux-media
On Tue, May 20, 2025 at 04:56:51PM +0800, Wenmeng Liu wrote:
> Add support for the camera subsystem on the QCS615 Qualcomm SoC. This
> includes bringing up the CSIPHY, CSID, VFE/RDI interfaces.
>
> QCS615 provides
> - 2 x VFE, 3 RDI per VFE
> - 1 x VFE Lite, 4 RDI per VFE
> - 2 x CSID
> - 1 x CSID Lite
> - 3 x CSI PHY
>
> Signed-off-by: Wenmeng Liu <quic_wenmliu@quicinc.com>
> ---
> arch/arm64/boot/dts/qcom/qcs615.dtsi | 133 +++++++++++++++++++++++++++++++++++
> 1 file changed, 133 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/qcom/qcs615.dtsi b/arch/arm64/boot/dts/qcom/qcs615.dtsi
> index 47e350f175860e7b06f7b2c13fed75a65e489c8a..535251efc6b559447482b9ecc67ca26e7efbbb8c 100644
> --- a/arch/arm64/boot/dts/qcom/qcs615.dtsi
> +++ b/arch/arm64/boot/dts/qcom/qcs615.dtsi
> @@ -3242,6 +3242,139 @@ videocc: clock-controller@ab00000 {
> #power-domain-cells = <1>;
> };
>
> + camss: camss@acb3000 {
camss: isp@acb3000 {}
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH 2/2] arm64: dts: qcom: qcs615: Enable camss for qcs615-adp-air
2025-05-20 8:56 ` [PATCH 2/2] arm64: dts: qcom: qcs615: Enable camss for qcs615-adp-air Wenmeng Liu
2025-05-20 9:44 ` Krzysztof Kozlowski
@ 2025-05-20 12:19 ` Vladimir Zapolskiy
2025-05-21 1:32 ` Wenmeng Liu
2025-05-21 13:07 ` Bryan O'Donoghue
2 siblings, 1 reply; 16+ messages in thread
From: Vladimir Zapolskiy @ 2025-05-20 12:19 UTC (permalink / raw)
To: Wenmeng Liu, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, bryan.odonoghue, todor.too,
rfoss
Cc: linux-arm-msm, devicetree, linux-kernel, linux-media
Hello Wenmeng,
On 5/20/25 11:56, Wenmeng Liu wrote:
> This change enables camera driver for QCS615 ADP AIR board.
what is the rationale of enabling CAMSS on the board without giving any
description of any sensors connected to the SoC?
> Signed-off-by: Wenmeng Liu <quic_wenmliu@quicinc.com>
> ---
> arch/arm64/boot/dts/qcom/qcs615-ride.dts | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/qcom/qcs615-ride.dts b/arch/arm64/boot/dts/qcom/qcs615-ride.dts
> index 2b5aa3c66867676bda59ff82b902b6e4974126f8..be8b829ec508d7de7a4cd6be6d1d4e83b09734bb 100644
> --- a/arch/arm64/boot/dts/qcom/qcs615-ride.dts
> +++ b/arch/arm64/boot/dts/qcom/qcs615-ride.dts
> @@ -211,6 +211,13 @@ vreg_l17a: ldo17 {
> };
> };
>
> +&camss {
> + vdda-phy-supply = <&vreg_l5a>;
> + vdda-pll-supply = <&vreg_l12a>;
> +
> + status = "ok";
> +};
> +
--
Best wishes,
Vladimir
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH 2/2] arm64: dts: qcom: qcs615: Enable camss for qcs615-adp-air
2025-05-20 12:19 ` Vladimir Zapolskiy
@ 2025-05-21 1:32 ` Wenmeng Liu
2025-05-21 5:52 ` Vladimir Zapolskiy
2025-05-21 13:07 ` Dmitry Baryshkov
0 siblings, 2 replies; 16+ messages in thread
From: Wenmeng Liu @ 2025-05-21 1:32 UTC (permalink / raw)
To: Vladimir Zapolskiy, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, bryan.odonoghue, todor.too,
rfoss
Cc: linux-arm-msm, devicetree, linux-kernel, linux-media
On 2025/5/20 20:19, Vladimir Zapolskiy wrote:
> Hello Wenmeng,
>
> On 5/20/25 11:56, Wenmeng Liu wrote:
>> This change enables camera driver for QCS615 ADP AIR board.
>
> what is the rationale of enabling CAMSS on the board without giving any
> description of any sensors connected to the SoC?
>
Hi Vladimir,
We can perform validation through the CSID TPG(Test Pattern Generator),
so I enabled CAMSS.
Thanks,
Wenmeng
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH 2/2] arm64: dts: qcom: qcs615: Enable camss for qcs615-adp-air
2025-05-21 1:32 ` Wenmeng Liu
@ 2025-05-21 5:52 ` Vladimir Zapolskiy
2025-05-21 6:04 ` Krzysztof Kozlowski
2025-05-21 13:07 ` Dmitry Baryshkov
1 sibling, 1 reply; 16+ messages in thread
From: Vladimir Zapolskiy @ 2025-05-21 5:52 UTC (permalink / raw)
To: Wenmeng Liu, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, bryan.odonoghue, todor.too,
rfoss
Cc: linux-arm-msm, devicetree, linux-kernel, linux-media
Hi Wenmeng.
On 5/21/25 04:32, Wenmeng Liu wrote:
>
>
> On 2025/5/20 20:19, Vladimir Zapolskiy wrote:
>> Hello Wenmeng,
>>
>> On 5/20/25 11:56, Wenmeng Liu wrote:
>>> This change enables camera driver for QCS615 ADP AIR board.
>>
>> what is the rationale of enabling CAMSS on the board without giving any
>> description of any sensors connected to the SoC?
>>
>
> Hi Vladimir,
>
> We can perform validation through the CSID TPG(Test Pattern Generator),
> so I enabled CAMSS.
>
Since this is just a test of CAMSS without any sensors/CSIPHY, then
1. camss-csiphy-3ph-1-0.c changes from the series have never been tested
and added as dead code, it shall be removed from the series,
2. adding voltage regulators to the board dts is void and shall be removed.
Not to substitute but in addition to the above it's still doubtful, if just
a hardware/driver test configuration deserves to be added into the dts.
--
Best wishes,
Vladimir
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH 2/2] arm64: dts: qcom: qcs615: Enable camss for qcs615-adp-air
2025-05-21 5:52 ` Vladimir Zapolskiy
@ 2025-05-21 6:04 ` Krzysztof Kozlowski
2025-05-21 13:00 ` Dmitry Baryshkov
0 siblings, 1 reply; 16+ messages in thread
From: Krzysztof Kozlowski @ 2025-05-21 6:04 UTC (permalink / raw)
To: Vladimir Zapolskiy, Wenmeng Liu, Bjorn Andersson, Konrad Dybcio,
Rob Herring, Krzysztof Kozlowski, Conor Dooley, bryan.odonoghue,
todor.too, rfoss
Cc: linux-arm-msm, devicetree, linux-kernel, linux-media
On 21/05/2025 07:52, Vladimir Zapolskiy wrote:
>> We can perform validation through the CSID TPG(Test Pattern Generator),
>> so I enabled CAMSS.
>>
>
> Since this is just a test of CAMSS without any sensors/CSIPHY, then
>
> 1. camss-csiphy-3ph-1-0.c changes from the series have never been tested
> and added as dead code, it shall be removed from the series,
> 2. adding voltage regulators to the board dts is void and shall be removed.
>
> Not to substitute but in addition to the above it's still doubtful, if just
> a hardware/driver test configuration deserves to be added into the dts.
No, it does not deserve to be added. It's useless code in upstream. They
just want to push whatever they had downstream and drop their patch count.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH 2/2] arm64: dts: qcom: qcs615: Enable camss for qcs615-adp-air
2025-05-21 6:04 ` Krzysztof Kozlowski
@ 2025-05-21 13:00 ` Dmitry Baryshkov
0 siblings, 0 replies; 16+ messages in thread
From: Dmitry Baryshkov @ 2025-05-21 13:00 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Vladimir Zapolskiy, Wenmeng Liu, Bjorn Andersson, Konrad Dybcio,
Rob Herring, Krzysztof Kozlowski, Conor Dooley, bryan.odonoghue,
todor.too, rfoss, linux-arm-msm, devicetree, linux-kernel,
linux-media
On Wed, May 21, 2025 at 08:04:10AM +0200, Krzysztof Kozlowski wrote:
> On 21/05/2025 07:52, Vladimir Zapolskiy wrote:
> >> We can perform validation through the CSID TPG(Test Pattern Generator),
> >> so I enabled CAMSS.
> >>
> >
> > Since this is just a test of CAMSS without any sensors/CSIPHY, then
> >
> > 1. camss-csiphy-3ph-1-0.c changes from the series have never been tested
> > and added as dead code, it shall be removed from the series,
> > 2. adding voltage regulators to the board dts is void and shall be removed.
> >
> > Not to substitute but in addition to the above it's still doubtful, if just
> > a hardware/driver test configuration deserves to be added into the dts.
> No, it does not deserve to be added. It's useless code in upstream. They
> just want to push whatever they had downstream and drop their patch count.
I doubt that they had camss downstream.
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH 2/2] arm64: dts: qcom: qcs615: Enable camss for qcs615-adp-air
2025-05-20 8:56 ` [PATCH 2/2] arm64: dts: qcom: qcs615: Enable camss for qcs615-adp-air Wenmeng Liu
2025-05-20 9:44 ` Krzysztof Kozlowski
2025-05-20 12:19 ` Vladimir Zapolskiy
@ 2025-05-21 13:07 ` Bryan O'Donoghue
2025-05-22 6:58 ` Wenmeng Liu
2 siblings, 1 reply; 16+ messages in thread
From: Bryan O'Donoghue @ 2025-05-21 13:07 UTC (permalink / raw)
To: Wenmeng Liu, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, todor.too, rfoss
Cc: linux-arm-msm, devicetree, linux-kernel, linux-media
On 20/05/2025 09:56, Wenmeng Liu wrote:
> This change enables camera driver for QCS615 ADP AIR board.
>
> Signed-off-by: Wenmeng Liu <quic_wenmliu@quicinc.com>
> ---
> arch/arm64/boot/dts/qcom/qcs615-ride.dts | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/qcom/qcs615-ride.dts b/arch/arm64/boot/dts/qcom/qcs615-ride.dts
> index 2b5aa3c66867676bda59ff82b902b6e4974126f8..be8b829ec508d7de7a4cd6be6d1d4e83b09734bb 100644
> --- a/arch/arm64/boot/dts/qcom/qcs615-ride.dts
> +++ b/arch/arm64/boot/dts/qcom/qcs615-ride.dts
> @@ -211,6 +211,13 @@ vreg_l17a: ldo17 {
> };
> };
>
> +&camss {
> + vdda-phy-supply = <&vreg_l5a>;
> + vdda-pll-supply = <&vreg_l12a>;
> +
> + status = "ok";
> +};
> +
> &gcc {
> clocks = <&rpmhcc RPMH_CXO_CLK>,
> <&rpmhcc RPMH_CXO_CLK_A>,
>
I think there's some confusion.
I'm willing to accept CSID and VFE changes with the minimum proof of TPG
driving it.
But - CSIPHY in CAMSS which is only proven by TPG is obviously not a
proof and again I agree with the consensus here - there's little value
to an end-user in just having the TPG for a camera.
No sensor:
CAMSS::CSID
CAMSS::VFE
Just about acceptable
No sensor:
CAMSS::CSIPHY
DTS::CAMSS enable
Is too much of an ask.
Just publish your sensor code ! We need more sensor enablement upstream
anyway.
---
bod
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH 2/2] arm64: dts: qcom: qcs615: Enable camss for qcs615-adp-air
2025-05-21 1:32 ` Wenmeng Liu
2025-05-21 5:52 ` Vladimir Zapolskiy
@ 2025-05-21 13:07 ` Dmitry Baryshkov
1 sibling, 0 replies; 16+ messages in thread
From: Dmitry Baryshkov @ 2025-05-21 13:07 UTC (permalink / raw)
To: Wenmeng Liu
Cc: Vladimir Zapolskiy, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, bryan.odonoghue, todor.too,
rfoss, linux-arm-msm, devicetree, linux-kernel, linux-media
On Wed, May 21, 2025 at 09:32:00AM +0800, Wenmeng Liu wrote:
>
>
> On 2025/5/20 20:19, Vladimir Zapolskiy wrote:
> > Hello Wenmeng,
> >
> > On 5/20/25 11:56, Wenmeng Liu wrote:
> > > This change enables camera driver for QCS615 ADP AIR board.
> >
> > what is the rationale of enabling CAMSS on the board without giving any
> > description of any sensors connected to the SoC?
> >
>
> Hi Vladimir,
>
> We can perform validation through the CSID TPG(Test Pattern Generator), so I
> enabled CAMSS.
Are there any _actual_ cameras being a part of the RIDE platform?
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH 2/2] arm64: dts: qcom: qcs615: Enable camss for qcs615-adp-air
2025-05-21 13:07 ` Bryan O'Donoghue
@ 2025-05-22 6:58 ` Wenmeng Liu
0 siblings, 0 replies; 16+ messages in thread
From: Wenmeng Liu @ 2025-05-22 6:58 UTC (permalink / raw)
To: Bryan O'Donoghue, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, todor.too, rfoss
Cc: linux-arm-msm, devicetree, linux-kernel, linux-media
On 2025/5/21 21:07, Bryan O'Donoghue wrote:
> On 20/05/2025 09:56, Wenmeng Liu wrote:
>> This change enables camera driver for QCS615 ADP AIR board.
>>
>> Signed-off-by: Wenmeng Liu <quic_wenmliu@quicinc.com>
>> ---
>> arch/arm64/boot/dts/qcom/qcs615-ride.dts | 7 +++++++
>> 1 file changed, 7 insertions(+)
>>
>> diff --git a/arch/arm64/boot/dts/qcom/qcs615-ride.dts b/arch/arm64/
>> boot/dts/qcom/qcs615-ride.dts
>> index
>> 2b5aa3c66867676bda59ff82b902b6e4974126f8..be8b829ec508d7de7a4cd6be6d1d4e83b09734bb 100644
>> --- a/arch/arm64/boot/dts/qcom/qcs615-ride.dts
>> +++ b/arch/arm64/boot/dts/qcom/qcs615-ride.dts
>> @@ -211,6 +211,13 @@ vreg_l17a: ldo17 {
>> };
>> };
>> +&camss {
>> + vdda-phy-supply = <&vreg_l5a>;
>> + vdda-pll-supply = <&vreg_l12a>;
>> +
>> + status = "ok";
>> +};
>> +
>> &gcc {
>> clocks = <&rpmhcc RPMH_CXO_CLK>,
>> <&rpmhcc RPMH_CXO_CLK_A>,
>>
>
> I think there's some confusion.
>
> I'm willing to accept CSID and VFE changes with the minimum proof of TPG
> driving it.
>
> But - CSIPHY in CAMSS which is only proven by TPG is obviously not a
> proof and again I agree with the consensus here - there's little value
> to an end-user in just having the TPG for a camera.
>
> No sensor:
> CAMSS::CSID
> CAMSS::VFE
>
> Just about acceptable
>
> No sensor:
> CAMSS::CSIPHY
> DTS::CAMSS enable
>
> Is too much of an ask.
>
> Just publish your sensor code ! We need more sensor enablement upstream
> anyway.
>
> ---
> bod
Hi bryan,
I will upload the sensor code together in the next version.
Thanks,
Wenmeng
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH 1/2] arm64: dts: qcom: qcs615: Add support for camss
2025-05-20 8:56 ` [PATCH 1/2] " Wenmeng Liu
2025-05-20 10:52 ` Dmitry Baryshkov
@ 2025-05-22 18:57 ` Konrad Dybcio
1 sibling, 0 replies; 16+ messages in thread
From: Konrad Dybcio @ 2025-05-22 18:57 UTC (permalink / raw)
To: Wenmeng Liu, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, bryan.odonoghue, todor.too,
rfoss
Cc: linux-arm-msm, devicetree, linux-kernel, linux-media
On 5/20/25 10:56 AM, Wenmeng Liu wrote:
> Add support for the camera subsystem on the QCS615 Qualcomm SoC. This
> includes bringing up the CSIPHY, CSID, VFE/RDI interfaces.
>
> QCS615 provides
> - 2 x VFE, 3 RDI per VFE
> - 1 x VFE Lite, 4 RDI per VFE
> - 2 x CSID
> - 1 x CSID Lite
> - 3 x CSI PHY
>
> Signed-off-by: Wenmeng Liu <quic_wenmliu@quicinc.com>
> ---
[...]
> + clocks = <&camcc CAM_CC_CAMNOC_AXI_CLK>,
> + <&camcc CAM_CC_CPAS_AHB_CLK>,
> + <&camcc CAM_CC_CPHY_RX_CLK_SRC>,
> + <&camcc CAM_CC_CSIPHY0_CLK>,
> + <&camcc CAM_CC_CSI0PHYTIMER_CLK>,
> + <&camcc CAM_CC_CSIPHY1_CLK>,
> + <&camcc CAM_CC_CSI1PHYTIMER_CLK>,
> + <&camcc CAM_CC_CSIPHY2_CLK>,
> + <&camcc CAM_CC_CSI2PHYTIMER_CLK>,
> + <&gcc GCC_CAMERA_HF_AXI_CLK>,
> + <&camcc CAM_CC_SLOW_AHB_CLK_SRC>,
> + <&camcc CAM_CC_SOC_AHB_CLK>,
> + <&camcc CAM_CC_IFE_0_CLK>,
> + <&camcc CAM_CC_IFE_0_AXI_CLK>,
> + <&camcc CAM_CC_IFE_0_CPHY_RX_CLK>,
> + <&camcc CAM_CC_IFE_0_CSID_CLK>,
> + <&camcc CAM_CC_IFE_0_CLK_SRC>,
> + <&camcc CAM_CC_IFE_1_CLK>,
> + <&camcc CAM_CC_IFE_1_AXI_CLK>,
> + <&camcc CAM_CC_IFE_1_CPHY_RX_CLK>,
> + <&camcc CAM_CC_IFE_1_CSID_CLK>,
> + <&camcc CAM_CC_IFE_1_CLK_SRC>,
> + <&camcc CAM_CC_IFE_LITE_CLK>,
> + <&camcc CAM_CC_IFE_LITE_CPHY_RX_CLK>,
> + <&camcc CAM_CC_IFE_LITE_CSID_CLK>,
> + <&camcc CAM_CC_IFE_LITE_CLK_SRC>;
Drop all _src clocks, the common clock framework has been handling
turning these on when their children need it for 13 years now :D
[...]
> + interconnects = <&gem_noc MASTER_APPSS_PROC 0
> + &config_noc SLAVE_CAMERA_CFG 0>,
QCOM_ICC_TAG_ACTIVE_ONLY
> + <&mmss_noc MASTER_CAMNOC_HF0 0
> + &mc_virt SLAVE_EBI1 0>;
QCOM_ICC_TAG_ALWAYS
> + interconnect-names = "ahb",
> + "hf_0_mnoc";
> +
> + interrupts = <GIC_SPI 464 IRQ_TYPE_EDGE_RISING>,
> + <GIC_SPI 466 IRQ_TYPE_EDGE_RISING>,
> + <GIC_SPI 468 IRQ_TYPE_EDGE_RISING>,
> + <GIC_SPI 477 IRQ_TYPE_EDGE_RISING>,
> + <GIC_SPI 478 IRQ_TYPE_EDGE_RISING>,
> + <GIC_SPI 479 IRQ_TYPE_EDGE_RISING>,
> + <GIC_SPI 465 IRQ_TYPE_EDGE_RISING>,
> + <GIC_SPI 467 IRQ_TYPE_EDGE_RISING>,
> + <GIC_SPI 469 IRQ_TYPE_EDGE_RISING>;
> + interrupt-names = "csid0",
> + "csid1",
> + "csid_lite",
> + "csiphy0",
> + "csiphy1",
> + "csiphy2",
> + "vfe0",
> + "vfe1",
> + "vfe_lite";
> +
> + iommus = <&apps_smmu 0x820 0x40>,
> + <&apps_smmu 0x840 0x0>,
> + <&apps_smmu 0x860 0x40>;
x1e defines a bunch more streams than its phy/csid count
plus entries 1 and 3 are equal after the mask is applied
(0x860 &~ 0x40 == 0x820 ~& 0x40 == 0x820)
Konrad
^ permalink raw reply [flat|nested] 16+ messages in thread
end of thread, other threads:[~2025-05-22 18:57 UTC | newest]
Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-20 8:56 [PATCH 0/2] arm64: dts: qcom: qcs615: Add support for camss Wenmeng Liu
2025-05-20 8:56 ` [PATCH 1/2] " Wenmeng Liu
2025-05-20 10:52 ` Dmitry Baryshkov
2025-05-22 18:57 ` Konrad Dybcio
2025-05-20 8:56 ` [PATCH 2/2] arm64: dts: qcom: qcs615: Enable camss for qcs615-adp-air Wenmeng Liu
2025-05-20 9:44 ` Krzysztof Kozlowski
2025-05-20 10:06 ` Wenmeng Liu
2025-05-20 12:19 ` Vladimir Zapolskiy
2025-05-21 1:32 ` Wenmeng Liu
2025-05-21 5:52 ` Vladimir Zapolskiy
2025-05-21 6:04 ` Krzysztof Kozlowski
2025-05-21 13:00 ` Dmitry Baryshkov
2025-05-21 13:07 ` Dmitry Baryshkov
2025-05-21 13:07 ` Bryan O'Donoghue
2025-05-22 6:58 ` Wenmeng Liu
2025-05-20 9:42 ` [PATCH 0/2] arm64: dts: qcom: qcs615: Add support for camss Krzysztof Kozlowski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).