From nobody Sat Oct 4 21:03:17 2025 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 813EC2BEC33; Wed, 13 Aug 2025 05:38:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755063500; cv=none; b=Imeb/tCS3N+aS/UrPbjr8OiLYkz0Ql51BeR8DTwbAriejHp6wZvViM4vNd5dwBOiT5b1KzKNai4j6a8/PmXYwS2EUrVI127hDS7z1JkIVSwOwNnRWbYZoeBJmixexKyYGshceNkMxfTmDNFfRsmKJQcGwIyUhwC5fzElSs586K0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755063500; c=relaxed/simple; bh=81t2SP4B4mx9Ja3kKb/TdOXcMe8Ijn9sBrMDW0p62kY=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=VG37r++qFqBZX6hhm5HY+CMfEKOAKAb0WEtBML2+xdC3+Wqt78kmmaY0CAtQcF0VlTESjlsWMAvVR+wB4N+WWD7+lDHC3C06ABSG0svoYm0l+amNPzmI0E8pNrzNWMEGDBfB2Y3WGm04EkiNC2CvWVV4Tz/cCds2vhtoG4n/JeU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=SX/ApBZH; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="SX/ApBZH" Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 57D3nYGo018824; Wed, 13 Aug 2025 05:38:09 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= H5RlZphP/PtC4YeOjnrDSEM//i4Lr0Zy2iXX0AsNvlY=; b=SX/ApBZHdOKsRL8I AOPKd1qFkRD+Atj7boTIV/D95DCrlvucqyRE3BKytuZe/LVMncCs+3kBRODV0tpP LEqohOIqMwVkA6Wzg1xJLXLD4CHSW0n783UyQ5bZfKna4cHFeQkRfKE9YzFyBPmC M1/KJ5DJMJryfGN4l36wo4qcWWN85Qm4TnDK3GDF1sqni5j9cCs9tY6PNgVqnWzR jWdTyen1xxQCxdAaqLRGLrQdvWufH3+XiS78+VAz79ianuNu3gUnBHwM0GEWrSwk n37diNch5SFa3ohCPB6NiR5RWAXlk/yicYt6A4vfZpCE6BZl+fkkIWg3zoQoI1uV UEUOWA== Received: from nasanppmta03.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 48fem4egxj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 13 Aug 2025 05:38:08 +0000 (GMT) Received: from nasanex01b.na.qualcomm.com (nasanex01b.na.qualcomm.com [10.46.141.250]) by NASANPPMTA03.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 57D5c759029305 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 13 Aug 2025 05:38:07 GMT Received: from hu-vikramsa-hyd.qualcomm.com (10.80.80.8) by nasanex01b.na.qualcomm.com (10.46.141.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1748.10; Tue, 12 Aug 2025 22:38:02 -0700 From: Vikram Sharma To: , , , , , , , , , , , , CC: , , , , , , "Krzysztof Kozlowski" Subject: [PATCH v3 1/7] media: dt-bindings: Add qcom,qcs8300-camss compatible Date: Wed, 13 Aug 2025 11:07:18 +0530 Message-ID: <20250813053724.232494-2-quic_vikramsa@quicinc.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20250813053724.232494-1-quic_vikramsa@quicinc.com> References: <20250813053724.232494-1-quic_vikramsa@quicinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nasanex01b.na.qualcomm.com (10.46.141.250) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: gzlCRLq15lskd4f_-zX2anNcFiexPU-M X-Proofpoint-ORIG-GUID: gzlCRLq15lskd4f_-zX2anNcFiexPU-M X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwODExMDA2OCBTYWx0ZWRfX5UM5XOnnMj5e ZIQE1kmg+GzfSMWSLwbPsTcqk85aoOa04qeILx29mDB6Ea/mMkbTc9OyrA5m9cqCpgt1S7nJcz2 CF+/UXpmGV/No424fFFGUv2h8BEaqQY10lQEl3Z2Mi12lXXdME6GZ/HJ4yjTlWHG2sUIKcSpRWn fmlLMheXXgSs4b37fAbrqOWN780k+iEWALKg+LON0Dr7gCUbOD94mNBpGePjx+X9xJmmoJHx5xj AwP/Ioek6OD0Mu8h0sBpvrAp3dZ4Mmw7OJ84MIB1RhXOE9sHqq9lVVUCTXV3+lxL8/Ki8W1dVDY 5y4Zo0xNynrYq99k2GEQfhGQHSxCEIAHrkbbGFh0kwBECh1zMuw8lN7vSCrdwg/HAloTTZivkAR zBDdiObf X-Authority-Analysis: v=2.4 cv=YMafyQGx c=1 sm=1 tr=0 ts=689c24c0 cx=c_pps a=JYp8KDb2vCoCEuGobkYCKw==:117 a=JYp8KDb2vCoCEuGobkYCKw==:17 a=GEpy-HfZoHoA:10 a=2OwXVqhp2XgA:10 a=gEfo2CItAAAA:8 a=COk6AnOGAAAA:8 a=KKAkSRfTAAAA:8 a=CXfGsmi0X-KHezRtte0A:9 a=sptkURWiP4Gy88Gu7hUp:22 a=TjNXssC_j7lpFel5tvFf:22 a=cvBusfyB2V15izCimMoJ:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.1.9,FMLib:17.12.80.40 definitions=2025-08-12_08,2025-08-11_01,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 clxscore=1015 priorityscore=1501 spamscore=0 suspectscore=0 adultscore=0 impostorscore=0 malwarescore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2507300000 definitions=main-2508110068 Content-Type: text/plain; charset="utf-8" Add the compatible string "qcom,qcs8300-camss" to support the Camera Subsystem (CAMSS) on the Qualcomm QCS8300 platform. The QCS8300 platform provides: - 2 x VFE (version 690), each with 3 RDI - 5 x VFE Lite (version 690), each with 6 RDI - 2 x CSID (version 690) - 5 x CSID Lite (version 690) - 3 x CSIPHY (version 690) - 3 x TPG Signed-off-by: Vikram Sharma Reviewed-by: Krzysztof Kozlowski Reviewed-by: Bryan O'Donoghue --- .../bindings/media/qcom,qcs8300-camss.yaml | 336 ++++++++++++++++++ 1 file changed, 336 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/qcom,qcs8300-ca= mss.yaml diff --git a/Documentation/devicetree/bindings/media/qcom,qcs8300-camss.yam= l b/Documentation/devicetree/bindings/media/qcom,qcs8300-camss.yaml new file mode 100644 index 000000000000..80a4540a22dc --- /dev/null +++ b/Documentation/devicetree/bindings/media/qcom,qcs8300-camss.yaml @@ -0,0 +1,336 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/qcom,qcs8300-camss.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm QCS8300 CAMSS ISP + +maintainers: + - Vikram Sharma + +description: + The CAMSS IP is a CSI decoder and ISP present on Qualcomm platforms. + +properties: + compatible: + const: qcom,qcs8300-camss + + reg: + maxItems: 21 + + reg-names: + items: + - const: csid_wrapper + - const: csid0 + - const: csid1 + - const: csid_lite0 + - const: csid_lite1 + - const: csid_lite2 + - const: csid_lite3 + - const: csid_lite4 + - const: csiphy0 + - const: csiphy1 + - const: csiphy2 + - const: tpg0 + - const: tpg1 + - const: tpg2 + - const: vfe0 + - const: vfe1 + - const: vfe_lite0 + - const: vfe_lite1 + - const: vfe_lite2 + - const: vfe_lite3 + - const: vfe_lite4 + + clocks: + maxItems: 26 + + clock-names: + items: + - const: camnoc_axi + - const: core_ahb + - const: cpas_ahb + - const: cpas_fast_ahb_clk + - const: cpas_vfe_lite + - const: cpas_vfe0 + - const: cpas_vfe1 + - const: csid + - const: csiphy0 + - const: csiphy0_timer + - const: csiphy1 + - const: csiphy1_timer + - const: csiphy2 + - const: csiphy2_timer + - const: csiphy_rx + - const: gcc_axi_hf + - const: gcc_axi_sf + - const: icp_ahb + - const: vfe0 + - const: vfe0_fast_ahb + - const: vfe1 + - const: vfe1_fast_ahb + - const: vfe_lite + - const: vfe_lite_ahb + - const: vfe_lite_cphy_rx + - const: vfe_lite_csid + + interrupts: + maxItems: 20 + + interrupt-names: + items: + - const: csid0 + - const: csid1 + - const: csid_lite0 + - const: csid_lite1 + - const: csid_lite2 + - const: csid_lite3 + - const: csid_lite4 + - const: csiphy0 + - const: csiphy1 + - const: csiphy2 + - const: tpg0 + - const: tpg1 + - const: tpg2 + - const: vfe0 + - const: vfe1 + - const: vfe_lite0 + - const: vfe_lite1 + - const: vfe_lite2 + - const: vfe_lite3 + - const: vfe_lite4 + + interconnects: + maxItems: 2 + + interconnect-names: + items: + - const: ahb + - const: hf_0 + + iommus: + maxItems: 1 + + power-domains: + items: + - description: Titan GDSC - Titan ISP Block, Global Distributed Swit= ch Controller. + + power-domain-names: + items: + - const: top + + ports: + $ref: /schemas/graph.yaml#/properties/ports + + description: + CSI input ports. + + patternProperties: + "^port@[0-2]+$": + $ref: /schemas/graph.yaml#/$defs/port-base + unevaluatedProperties: false + description: + Input port for receiving CSI data on CSIPHY 0-2. + + properties: + endpoint: + $ref: video-interfaces.yaml# + unevaluatedProperties: false + + properties: + data-lanes: + minItems: 1 + maxItems: 4 + + required: + - data-lanes + +required: + - compatible + - reg + - reg-names + - clocks + - clock-names + - interrupts + - interrupt-names + - interconnects + - interconnect-names + - iommus + - power-domains + - power-domain-names + - ports + +additionalProperties: false + +examples: + - | + #include + #include + #include + #include + #include + #include + + soc { + #address-cells =3D <2>; + #size-cells =3D <2>; + + isp@ac78000 { + compatible =3D "qcom,qcs8300-camss"; + + reg =3D <0x0 0xac78000 0x0 0x1000>, + <0x0 0xac7a000 0x0 0x0f00>, + <0x0 0xac7c000 0x0 0x0f00>, + <0x0 0xac84000 0x0 0x0f00>, + <0x0 0xac88000 0x0 0x0f00>, + <0x0 0xac8c000 0x0 0x0f00>, + <0x0 0xac90000 0x0 0x0f00>, + <0x0 0xac94000 0x0 0x0f00>, + <0x0 0xac9c000 0x0 0x2000>, + <0x0 0xac9e000 0x0 0x2000>, + <0x0 0xaca0000 0x0 0x2000>, + <0x0 0xacac000 0x0 0x0400>, + <0x0 0xacad000 0x0 0x0400>, + <0x0 0xacae000 0x0 0x0400>, + <0x0 0xac4d000 0x0 0xd000>, + <0x0 0xac60000 0x0 0xd000>, + <0x0 0xac85000 0x0 0x0d00>, + <0x0 0xac89000 0x0 0x0d00>, + <0x0 0xac8d000 0x0 0x0d00>, + <0x0 0xac91000 0x0 0x0d00>, + <0x0 0xac95000 0x0 0x0d00>; + reg-names =3D "csid_wrapper", + "csid0", + "csid1", + "csid_lite0", + "csid_lite1", + "csid_lite2", + "csid_lite3", + "csid_lite4", + "csiphy0", + "csiphy1", + "csiphy2", + "tpg0", + "tpg1", + "tpg2", + "vfe0", + "vfe1", + "vfe_lite0", + "vfe_lite1", + "vfe_lite2", + "vfe_lite3", + "vfe_lite4"; + + clocks =3D <&camcc CAM_CC_CAMNOC_AXI_CLK>, + <&camcc CAM_CC_CORE_AHB_CLK>, + <&camcc CAM_CC_CPAS_AHB_CLK>, + <&camcc CAM_CC_CPAS_FAST_AHB_CLK>, + <&camcc CAM_CC_CPAS_IFE_LITE_CLK>, + <&camcc CAM_CC_CPAS_IFE_0_CLK>, + <&camcc CAM_CC_CPAS_IFE_1_CLK>, + <&camcc CAM_CC_CSID_CLK>, + <&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>, + <&camcc CAM_CC_CSID_CSIPHY_RX_CLK>, + <&gcc GCC_CAMERA_HF_AXI_CLK>, + <&gcc GCC_CAMERA_SF_AXI_CLK>, + <&camcc CAM_CC_ICP_AHB_CLK>, + <&camcc CAM_CC_IFE_0_CLK>, + <&camcc CAM_CC_IFE_0_FAST_AHB_CLK>, + <&camcc CAM_CC_IFE_1_CLK>, + <&camcc CAM_CC_IFE_1_FAST_AHB_CLK>, + <&camcc CAM_CC_IFE_LITE_CLK>, + <&camcc CAM_CC_IFE_LITE_AHB_CLK>, + <&camcc CAM_CC_IFE_LITE_CPHY_RX_CLK>, + <&camcc CAM_CC_IFE_LITE_CSID_CLK>; + clock-names =3D "camnoc_axi", + "core_ahb", + "cpas_ahb", + "cpas_fast_ahb_clk", + "cpas_vfe_lite", + "cpas_vfe0", + "cpas_vfe1", + "csid", + "csiphy0", + "csiphy0_timer", + "csiphy1", + "csiphy1_timer", + "csiphy2", + "csiphy2_timer", + "csiphy_rx", + "gcc_axi_hf", + "gcc_axi_sf", + "icp_ahb", + "vfe0", + "vfe0_fast_ahb", + "vfe1", + "vfe1_fast_ahb", + "vfe_lite", + "vfe_lite_ahb", + "vfe_lite_cphy_rx", + "vfe_lite_csid"; + + interrupts =3D , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + ; + interrupt-names =3D "csid0", + "csid1", + "csid_lite0", + "csid_lite1", + "csid_lite2", + "csid_lite3", + "csid_lite4", + "csiphy0", + "csiphy1", + "csiphy2", + "tpg0", + "tpg1", + "tpg2", + "vfe0", + "vfe1", + "vfe_lite0", + "vfe_lite1", + "vfe_lite2", + "vfe_lite3", + "vfe_lite4"; + + interconnects =3D <&gem_noc MASTER_APPSS_PROC QCOM_ICC_TAG_ACT= IVE_ONLY + &config_noc SLAVE_CAMERA_CFG QCOM_ICC_TAG_ACT= IVE_ONLY>, + <&mmss_noc MASTER_CAMNOC_HF QCOM_ICC_TAG_ALWAYS + &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>; + interconnect-names =3D "ahb", + "hf_0"; + + iommus =3D <&apps_smmu 0x2400 0x20>; + + power-domains =3D <&camcc CAM_CC_TITAN_TOP_GDSC>; + power-domain-names =3D "top"; + + ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + }; + }; + }; --=20 2.25.1 From nobody Sat Oct 4 21:03:17 2025 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BFF402BEC5F; Wed, 13 Aug 2025 05:38:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755063506; cv=none; b=gyf5/SGOL2tyBMvUMYQVGNKzInrKwGch2AYxoI2li+PBIKhOEnBkMSuNnuIqj2jNcLgzsj3P5Rl2JsX3QF3mtcn2pWwha4WYJYxKYChRDnvh+CsazXMxW1fNSZ2bWhPpDfsc5oWyDmVzNIUozmQQwWMwN1FexWVfR9jUSrRW/h8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755063506; c=relaxed/simple; bh=DZtBNQuhudkz5Q6fs8Q8WB2lBwM7KB4Nr4c+54fVPXI=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=mI7++1j4ulx1gwqK+To8PzHW8wDl7NSEiOdfd0U1nnJVh8NsK8CfHdcoFkPaC3zGlLaa8IaO8VV3XshYUsjB9a2gxenCsUzD2yVJr3+UvVVbFz3Xx5SQFcki3syHpKM2D8fisVwRWhuTvAyqZW47VCVvWb+9fFStTZDvy1oA8JM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=RVh5Oj1N; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="RVh5Oj1N" Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 57D3o2r8005853; Wed, 13 Aug 2025 05:38:14 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= QIB1XapK8q4S6EcNDLWXFHAFtcdqhQt5oySjOLsqvE0=; b=RVh5Oj1NzvkcWuB+ ubvtPlQouTa06YPClpgSVaEKhzvUoIk281dZErVwnkr7nzcBwXVnTnJtJcTBSrmn 3G3/ZhYsRnodxE5ZL+q3VEkA8D8t3tGrSG6jgNxm+KwWVoVG6UYCduQJbIz6dXxU T6uk9M+XSKjRegYi8Gk8db9VFuNIHz5YsJ4s6rAHX4hVQox3RT3lmMc7upIjkXxh iBGoQfBI2NHWD6qHipHKlyt9rJD3N8B6uJGePY5g5r+/uz3sCpLo+BbU3x0Tw6pR TGGImCKCXtOreZv+Rb9cyecdjams5X+r2PxVGOCaaLpWhFACSUn6HjFZAIuTZ3EW 7Cy08Q== Received: from nasanppmta05.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 48g5hmafrq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 13 Aug 2025 05:38:14 +0000 (GMT) Received: from nasanex01b.na.qualcomm.com (nasanex01b.na.qualcomm.com [10.46.141.250]) by NASANPPMTA05.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 57D5cCRT020956 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 13 Aug 2025 05:38:12 GMT Received: from hu-vikramsa-hyd.qualcomm.com (10.80.80.8) by nasanex01b.na.qualcomm.com (10.46.141.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1748.10; Tue, 12 Aug 2025 22:38:07 -0700 From: Vikram Sharma To: , , , , , , , , , , , , CC: , , , , , Subject: [PATCH v3 2/7] media: qcom: camss: Add qcs8300 compatible Date: Wed, 13 Aug 2025 11:07:19 +0530 Message-ID: <20250813053724.232494-3-quic_vikramsa@quicinc.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20250813053724.232494-1-quic_vikramsa@quicinc.com> References: <20250813053724.232494-1-quic_vikramsa@quicinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nasanex01b.na.qualcomm.com (10.46.141.250) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwODEyMDExOSBTYWx0ZWRfX9fyUDdBNNch8 /qnuGCtRdt8RY8f3LBUvR2QXqxuLnvHqCceymkHUX5NRprTBidl1Woz0xRXe4H7eUDnSF79CFIM Im/Ws/BzczUKCHZjppCJCJEhXqPN4L69d5JwPOumGEVX5RxiGWkwaRZTSQrCBvug2KfLOK6w9v9 oU2jpYlc3MDuOTW0BiZK2ZWXuT7zIF5E2gL08zEoJKt6UObaOWPSlvTeK4nkhUPfzlDcO1uU420 dcIZYe6lKnFh/Ldeho6pr8RJhjeXQ3ru1KVWr7afXf4bLAQekwdtom2Rb+bZTH3tNx4ArFeDb0b W4Lli7btrE9wWP0RlUhRbxJwvADmp8ba8txOLLEwnUUG03wnbckSfZhxBAPMx4P7AXs4CeKYtOk x3bLlBcF X-Proofpoint-GUID: 2CMu3aK6BYgxf7iYSWcGKeYdtRpvv_tQ X-Proofpoint-ORIG-GUID: 2CMu3aK6BYgxf7iYSWcGKeYdtRpvv_tQ X-Authority-Analysis: v=2.4 cv=d4b1yQjE c=1 sm=1 tr=0 ts=689c24c6 cx=c_pps a=JYp8KDb2vCoCEuGobkYCKw==:117 a=JYp8KDb2vCoCEuGobkYCKw==:17 a=GEpy-HfZoHoA:10 a=2OwXVqhp2XgA:10 a=COk6AnOGAAAA:8 a=KKAkSRfTAAAA:8 a=R4QheEYGlDiWUf2spAAA:9 a=TjNXssC_j7lpFel5tvFf:22 a=cvBusfyB2V15izCimMoJ:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.1.9,FMLib:17.12.80.40 definitions=2025-08-12_08,2025-08-11_01,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 malwarescore=0 spamscore=0 phishscore=0 adultscore=0 bulkscore=0 priorityscore=1501 impostorscore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2507300000 definitions=main-2508120119 Content-Type: text/plain; charset="utf-8" Add CAMSS_8300 enum, QCS8300 compatible and qcs8300 camss driver private data, the private data just include some basic information for now, later changes will enumerate with csiphy, tpg, csid and vfe resources. Signed-off-by: Vikram Sharma Reviewed-by: Bryan O'Donoghue --- drivers/media/platform/qcom/camss/camss.c | 21 +++++++++++++++++++++ drivers/media/platform/qcom/camss/camss.h | 1 + 2 files changed, 22 insertions(+) diff --git a/drivers/media/platform/qcom/camss/camss.c b/drivers/media/plat= form/qcom/camss/camss.c index 020cb2d608b6..6b9aba1029b5 100644 --- a/drivers/media/platform/qcom/camss/camss.c +++ b/drivers/media/platform/qcom/camss/camss.c @@ -2861,6 +2861,19 @@ static const struct camss_subdev_resources vfe_res_8= 775p[] =3D { }, }; =20 +static const struct resources_icc icc_res_qcs8300[] =3D { + { + .name =3D "ahb", + .icc_bw_tbl.avg =3D 38400, + .icc_bw_tbl.peak =3D 76800, + }, + { + .name =3D "hf_0", + .icc_bw_tbl.avg =3D 2097152, + .icc_bw_tbl.peak =3D 2097152, + }, +}; + static const struct resources_icc icc_res_sa8775p[] =3D { { .name =3D "ahb", @@ -4143,6 +4156,13 @@ static const struct camss_resources msm8996_resource= s =3D { .link_entities =3D camss_link_entities }; =20 +static const struct camss_resources qcs8300_resources =3D { + .version =3D CAMSS_8300, + .pd_name =3D "top", + .icc_res =3D icc_res_qcs8300, + .icc_path_num =3D ARRAY_SIZE(icc_res_qcs8300), + .link_entities =3D camss_link_entities +}; =20 static const struct camss_resources sa8775p_resources =3D { .version =3D CAMSS_8775P, @@ -4271,6 +4291,7 @@ static const struct of_device_id camss_dt_match[] =3D= { { .compatible =3D "qcom,msm8916-camss", .data =3D &msm8916_resources }, { .compatible =3D "qcom,msm8953-camss", .data =3D &msm8953_resources }, { .compatible =3D "qcom,msm8996-camss", .data =3D &msm8996_resources }, + { .compatible =3D "qcom,qcs8300-camss", .data =3D &qcs8300_resources }, { .compatible =3D "qcom,sa8775p-camss", .data =3D &sa8775p_resources }, { .compatible =3D "qcom,sc7280-camss", .data =3D &sc7280_resources }, { .compatible =3D "qcom,sc8280xp-camss", .data =3D &sc8280xp_resources }, diff --git a/drivers/media/platform/qcom/camss/camss.h b/drivers/media/plat= form/qcom/camss/camss.h index 345479f6feba..b5600a8b2c4b 100644 --- a/drivers/media/platform/qcom/camss/camss.h +++ b/drivers/media/platform/qcom/camss/camss.h @@ -84,6 +84,7 @@ enum camss_version { CAMSS_8x96, CAMSS_8250, CAMSS_8280XP, + CAMSS_8300, CAMSS_845, CAMSS_8550, CAMSS_8775P, --=20 2.25.1 From nobody Sat Oct 4 21:03:17 2025 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7B3042C158C; Wed, 13 Aug 2025 05:38:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755063510; cv=none; b=Zkd7zYIFLXnRTlyERugLwVEaDtHPPYY863C2ZLm9mRpLVuDIn94SS0ol6lg5hfI5CgIOtd8J/IaGc57WQojftaBEB/h9lz7g8qHocv3oA5mYGd2ZDtqmns1WuuNz2GAssoHI5E70kwFhWEpv8Nhhq0qewoGyCkIqBafwh+cpnsc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755063510; c=relaxed/simple; bh=8zglB4zaHDYCq6xkeIEmBxjlBZqgkgXfkxnbWWFsL+M=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=aeftqfDJycFtYSW8oblVLv4+3fWwz8n3SC+F6EAA8NRQ6vOT+szKIBeEzX8D9M4HgtlFQVfV0ZbXY06G24PZcbT/GcSFyzyfH3WizeuPCgWZhZ2NRS9NT8Qa86oXVrh65xqwtsFAq1jPSdaklBDf2ECawKhDvJgW/BBfXiCdMkg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=I6PbC1Td; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="I6PbC1Td" Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 57D3nmZu007454; Wed, 13 Aug 2025 05:38:19 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= CjuuFFpyLJ1wFfdT+fLqsc7pa7FB/gXxs1NbqY3SvTI=; b=I6PbC1Td4ZgMMwqK +U+Wb86RTEexFn0VjEwlTmoi9Gyv9ymHmf8M5A/nARetIrfNMu+Fuli28gcEbwRx JOUPjd1TBUrkeIGfHTCt7Ac61Nq5AbHoyovMPJl81OMSTdeOUv32cdvpxE3S9kd6 8TPcXwOpMEoNddwlVBGXQ4BTElvB6QUgow/OqUvKzgLfcUnBlDJwp+OkRZMJQ+wC pgo4cF+6VHJqGe3VRSojJKsFs7Iccti+0Lbfy5GNqHkJ6gsKWWr/UyCSIqNcl/tD 9vFiBZSaGi7TNizXHm5EknddR1VEITfKyK9E4ZihW1s24BtlU4CJw3gvbtftfTTW IhzN1A== Received: from nasanppmta01.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 48g9q9smwg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 13 Aug 2025 05:38:18 +0000 (GMT) Received: from nasanex01b.na.qualcomm.com (nasanex01b.na.qualcomm.com [10.46.141.250]) by NASANPPMTA01.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 57D5cIHK025550 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 13 Aug 2025 05:38:18 GMT Received: from hu-vikramsa-hyd.qualcomm.com (10.80.80.8) by nasanex01b.na.qualcomm.com (10.46.141.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1748.10; Tue, 12 Aug 2025 22:38:13 -0700 From: Vikram Sharma To: , , , , , , , , , , , , CC: , , , , , Subject: [PATCH v3 3/7] media: qcom: camss: Add CSIPHY support for QCS8300 Date: Wed, 13 Aug 2025 11:07:20 +0530 Message-ID: <20250813053724.232494-4-quic_vikramsa@quicinc.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20250813053724.232494-1-quic_vikramsa@quicinc.com> References: <20250813053724.232494-1-quic_vikramsa@quicinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nasanex01b.na.qualcomm.com (10.46.141.250) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Authority-Analysis: v=2.4 cv=CNMqXQrD c=1 sm=1 tr=0 ts=689c24ca cx=c_pps a=JYp8KDb2vCoCEuGobkYCKw==:117 a=JYp8KDb2vCoCEuGobkYCKw==:17 a=GEpy-HfZoHoA:10 a=2OwXVqhp2XgA:10 a=COk6AnOGAAAA:8 a=8aMUJFMWNzm9pSYggZkA:9 a=TjNXssC_j7lpFel5tvFf:22 X-Proofpoint-GUID: GZf9XGaxaySnxcrFt_8Nb0kbWhtVhzB_ X-Proofpoint-ORIG-GUID: GZf9XGaxaySnxcrFt_8Nb0kbWhtVhzB_ X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwODEyMDE2NCBTYWx0ZWRfXyLU8Form+oBA bjpdnbyiP3wA4MLwunx8NoDg/G73ZsCJ5q6irixhxT0oyjVr5r+Q1JL9ZBmlCNYT5IX5ozt5TVK lsZzf42huYf6HC7cL+2RopASGZCx3G8fwuOWGfBoBGDLEAbxHl6NA11jrrBxyPYvVgEz8Sn7fsJ 7kfZ6oJmAhfZ7BmlTm91BNGiXJXsrrwgVJtcOx49IlCin9op9CAv7rCe8uUKRFvz8LLf1At9eyR zuR9vMrrIV5Qe5GLK0TOJeMUG/nnGI3F6o/jyBDFCf8R4cikp/7lGTG4hqEHVB9te0L2a+njKMP RLhWhlV6AaQ8AhdXVIOAfIpU6xRDc+StY9ev8vt4Qxi+rKlqPcbFrzQfJ+tFhYlHZj2V0FmArr/ TQqaTCYy X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.1.9,FMLib:17.12.80.40 definitions=2025-08-12_08,2025-08-11_01,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 adultscore=0 phishscore=0 bulkscore=0 clxscore=1015 malwarescore=0 impostorscore=0 priorityscore=1501 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2507300000 definitions=main-2508120164 Content-Type: text/plain; charset="utf-8" QCS8300 uses the same CSIPHY hardware version (v1.3.0) as SA8775P. The only difference between the two platforms is the number of CSIPHY instances: SA8775P has four, while QCS8300 has three. Signed-off-by: Vikram Sharma Reviewed-by: Bryan O'Donoghue --- .../qcom/camss/camss-csiphy-3ph-1-0.c | 2 + drivers/media/platform/qcom/camss/camss.c | 57 +++++++++++++++++++ 2 files changed, 59 insertions(+) diff --git a/drivers/media/platform/qcom/camss/camss-csiphy-3ph-1-0.c b/dri= vers/media/platform/qcom/camss/camss-csiphy-3ph-1-0.c index a610504359d0..445f4d41e847 100644 --- a/drivers/media/platform/qcom/camss/camss-csiphy-3ph-1-0.c +++ b/drivers/media/platform/qcom/camss/camss-csiphy-3ph-1-0.c @@ -826,6 +826,7 @@ static bool csiphy_is_gen2(u32 version) case CAMSS_7280: case CAMSS_8250: case CAMSS_8280XP: + case CAMSS_8300: case CAMSS_845: case CAMSS_8550: case CAMSS_8775P: @@ -928,6 +929,7 @@ static int csiphy_init(struct csiphy_device *csiphy) regs->lane_array_size =3D ARRAY_SIZE(lane_regs_sm8550); regs->offset =3D 0x1000; break; + case CAMSS_8300: case CAMSS_8775P: regs->lane_regs =3D &lane_regs_sa8775p[0]; regs->lane_array_size =3D ARRAY_SIZE(lane_regs_sa8775p); diff --git a/drivers/media/platform/qcom/camss/camss.c b/drivers/media/plat= form/qcom/camss/camss.c index 6b9aba1029b5..410e188d26aa 100644 --- a/drivers/media/platform/qcom/camss/camss.c +++ b/drivers/media/platform/qcom/camss/camss.c @@ -2483,6 +2483,63 @@ static const struct resources_icc icc_res_sm8550[] = =3D { }, }; =20 +static const struct camss_subdev_resources csiphy_res_8300[] =3D { + /* CSIPHY0 */ + { + .regulators =3D { "vdda-phy", "vdda-pll" }, + + .clock =3D { "csiphy_rx", "csiphy0", "csiphy0_timer" }, + .clock_rate =3D { + { 400000000 }, + { 0 }, + { 400000000 }, + }, + .reg =3D { "csiphy0" }, + .interrupt =3D { "csiphy0" }, + .csiphy =3D { + .id =3D 0, + .hw_ops =3D &csiphy_ops_3ph_1_0, + .formats =3D &csiphy_formats_sdm845, + } + }, + /* CSIPHY1 */ + { + .regulators =3D { "vdda-phy", "vdda-pll" }, + + .clock =3D { "csiphy_rx", "csiphy1", "csiphy1_timer" }, + .clock_rate =3D { + { 400000000 }, + { 0 }, + { 400000000 }, + }, + .reg =3D { "csiphy1" }, + .interrupt =3D { "csiphy1" }, + .csiphy =3D { + .id =3D 1, + .hw_ops =3D &csiphy_ops_3ph_1_0, + .formats =3D &csiphy_formats_sdm845, + } + }, + /* CSIPHY2 */ + { + .regulators =3D { "vdda-phy", "vdda-pll" }, + + .clock =3D { "csiphy_rx", "csiphy2", "csiphy2_timer" }, + .clock_rate =3D { + { 400000000 }, + { 0 }, + { 400000000 }, + }, + .reg =3D { "csiphy2" }, + .interrupt =3D { "csiphy2" }, + .csiphy =3D { + .id =3D 2, + .hw_ops =3D &csiphy_ops_3ph_1_0, + .formats =3D &csiphy_formats_sdm845, + } + }, +}; + static const struct camss_subdev_resources csiphy_res_8775p[] =3D { /* CSIPHY0 */ { --=20 2.25.1 From nobody Sat Oct 4 21:03:17 2025 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C6F032C17A3; Wed, 13 Aug 2025 05:38:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755063515; cv=none; b=lquGrLlwRWo2jh5CATMEJ1gJWOd/tpHOEhamI/wiVQGqmFbPGpeNki2ye88+0GNK4LlClPnxJBMknbjb8+AFenBfQus7dUqf0nQM0zJ9dFaWYs4S9id3iTdwQL40H/gpVD6X19eW0wEBwkqU54UCMSZDXtU0TfUCTkViiVi+i6E= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755063515; c=relaxed/simple; bh=HqaUDcCVJt6Gxb0bVWilSWqUWPnpPgBm4kF9+H8qExU=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=cKyT1IPWTfghcEYl1dmwGxesV1v+X39o8aCgQDLXn3+A2xCnOWrn3B1CMAEfwI+7MdkGgc+tmFKnJjFNXhUy571AzBQB13pMRV9PRvPnekwUznGpiRQjuD126+mNBxBI7dwJF0wdO1DwR4UrE3U2kfUiJY8HQibxCZ7UYC14lo0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=hOdICp6z; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="hOdICp6z" Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 57D3o4cv022391; Wed, 13 Aug 2025 05:38:24 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= rIsk7bFT0PQfbbPX5ez5s+X0vx+VjCm7K4HT/zCa7U4=; b=hOdICp6zL7zgmkEj lK+5rfXpdavt/FVpvRbG2BIE2H79yiHGGxUbytEQQw19PGH7vJXWlXk9Cfd+TqLo WT4dsBVuRw+JpyUj0LjayjNVB6Kz0o8X5ubpi5Pn6VQ78eensdCRgMOOmJ065Luh rttLJadWBGBBDQ+0bUOfZxpLMgmZQPULHwWPNRd6O2710+BK0E99gwrpfBA91xOU SPyT7mYprIP3IdizCF4i7cIR+xAcSCjuUqwQ+Ayt+3Wkf5h+WqqqhAEAtwEM7Orq oDr0asm+TYE+dTrLpJJziaYBGC0KzQnEXzY/MPDfcDVU4mnFoq3eqcY8z7b2KkFS uYA7zA== Received: from nasanppmta01.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 48dxdv2hk0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 13 Aug 2025 05:38:24 +0000 (GMT) Received: from nasanex01b.na.qualcomm.com (nasanex01b.na.qualcomm.com [10.46.141.250]) by NASANPPMTA01.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 57D5cNM8025621 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 13 Aug 2025 05:38:23 GMT Received: from hu-vikramsa-hyd.qualcomm.com (10.80.80.8) by nasanex01b.na.qualcomm.com (10.46.141.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1748.10; Tue, 12 Aug 2025 22:38:18 -0700 From: Vikram Sharma To: , , , , , , , , , , , , CC: , , , , , Subject: [PATCH v3 4/7] media: qcom: camss: enable csid 690 for qcs8300 Date: Wed, 13 Aug 2025 11:07:21 +0530 Message-ID: <20250813053724.232494-5-quic_vikramsa@quicinc.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20250813053724.232494-1-quic_vikramsa@quicinc.com> References: <20250813053724.232494-1-quic_vikramsa@quicinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nasanex01b.na.qualcomm.com (10.46.141.250) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Authority-Analysis: v=2.4 cv=IuYecK/g c=1 sm=1 tr=0 ts=689c24d0 cx=c_pps a=JYp8KDb2vCoCEuGobkYCKw==:117 a=JYp8KDb2vCoCEuGobkYCKw==:17 a=GEpy-HfZoHoA:10 a=2OwXVqhp2XgA:10 a=COk6AnOGAAAA:8 a=U-p9drRfr8RQgJDSKZ8A:9 a=TjNXssC_j7lpFel5tvFf:22 X-Proofpoint-ORIG-GUID: eF6lv80CF4cQe0H3AvkQRZFVmcj0jp_a X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwODA5MDAyNSBTYWx0ZWRfXwlYZ+ahMbinP J8nhDc483FTH3aZdwO45WLpCYGUoUrHH75nqsebBJcQMCyINzEm/t7mRMVEs3m3KfTKGscTPrDv cXU+Ufg3F37z4FU28xjGwPh1XiaDKGJ6wcJxf7RAhElDkf9Kt7IFFGB9wwYD+KPIo8YnoGOJfAg qMnkQgIXIpc5BinL7dEJhKi//vRjj8LSZxI24hf4zBXsJ1phkAjNZjhmpIFR/Fv83tHmzhkllq9 PlwDS9VAX9b8FxCbuT5gYkDfxKfgUm1iBMo1kR7+y6ji6vsdwpkjMlVdb6sZxDZVE9m4G/LVbmx lFwapJ6VGv6oc0UfflJAwZKpjUBgEPZRGPLoav/KW1V6BswXJ+Re9ItQE6KAM3Y5pTgUpolEmc5 vW1lAWRY X-Proofpoint-GUID: eF6lv80CF4cQe0H3AvkQRZFVmcj0jp_a X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.1.9,FMLib:17.12.80.40 definitions=2025-08-12_08,2025-08-11_01,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 malwarescore=0 spamscore=0 priorityscore=1501 adultscore=0 clxscore=1015 phishscore=0 suspectscore=0 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2507300000 definitions=main-2508090025 Content-Type: text/plain; charset="utf-8" The CSID in qcs8300 is version 690, it is same as csid used in lemans(sa8775p). csid gen3 have support for csid 690. Signed-off-by: Vikram Sharma Reviewed-by: Bryan O'Donoghue --- drivers/media/platform/qcom/camss/camss-csid-gen3.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/media/platform/qcom/camss/camss-csid-gen3.c b/drivers/= media/platform/qcom/camss/camss-csid-gen3.c index fc6a9787febe..664245cf6eb0 100644 --- a/drivers/media/platform/qcom/camss/camss-csid-gen3.c +++ b/drivers/media/platform/qcom/camss/camss-csid-gen3.c @@ -45,7 +45,8 @@ #define CSID_CSI2_RX_IRQ_CLEAR 0xA4 #define CSID_CSI2_RX_IRQ_SET 0xA8 =20 -#define IS_CSID_690(csid) (csid->camss->res->version =3D=3D CAMSS_8775P) +#define IS_CSID_690(csid) ((csid->camss->res->version =3D=3D CAMSS_8775P) \ + || (csid->camss->res->version =3D=3D CAMSS_8300)) #define CSID_BUF_DONE_IRQ_STATUS 0x8C #define BUF_DONE_IRQ_STATUS_RDI_OFFSET (csid_is_lite(csid) ?\ 1 : (IS_CSID_690(csid) ?\ --=20 2.25.1 From nobody Sat Oct 4 21:03:17 2025 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5467E2BF3CF; Wed, 13 Aug 2025 05:38:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755063520; cv=none; b=hbPTgtjTotouc2XE/9sfuFhdi4IRiRdQeYc6oEzsT6kElrbvMJ8KB84qNHTjqop5KI1mu02LK7dtMKp6RLMETIawCWX0Nq/nCZ3jHsg5w+OLw7D988bmq+QODPxqgr+5ja9958fQsh+Kkq/WtTO9hkrpe0BcwZm2DcMNa056rAM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755063520; c=relaxed/simple; bh=EXdpO43cihyiV02dsNNfJzvTGtgGT8XE+PqbMbhN8Ro=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=ORAyomArnd4Qf8ojXk2Tb9DTuXYAC9rfx1BxjwXz9hXmSJYYyYFk5UA3AljbIyQ+pCQMT2pFfdnGUCFYHFkcaPBcA8Ey1H7diup7VGzZuaog5E7lhpKHGGS+UicrLbjdE+aSvuYpoMkWXOrYe3Ou7CZo7AqaVH3ihv1Cpu0ko20= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=UzaNPVaR; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="UzaNPVaR" Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 57D3nY7o027556; Wed, 13 Aug 2025 05:38:29 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= iFmkWWs70JXd9JixMQWXjQ9LuUavCOvCgbjsUfSnDbo=; b=UzaNPVaREY99Seko bDOyH/OXlX52n0GqpF2xS/w3DODbUXdXr/dzEMOipfxWVCwGKTiWvNjiDFCkzdvI NNUjy37ehIZiYMMJRTUOSsLu1E4kFS3lQq6o6Hc2prEIZXbUMppLS+DztfME+5PK v/41RHPjLHXyfdTfmwJjJ9sy/TxeZqWfOKrU4gGJtj6RIJwuIViBR8BA89UQuI+U qfUyn9rgWr3vtDP5mPuKtQQ9iKo8bYQeCEQAmkUHIg8OoRZ8AvjUaVbNV0vzA/DJ cfJQUyJPY0ZqvTdSzBj01c0apSB8CouY99wGEkT54ukhszP6OASGSSKOJaoj4Wnh /VGf0g== Received: from nasanppmta02.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 48ffq6pe73-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 13 Aug 2025 05:38:29 +0000 (GMT) Received: from nasanex01b.na.qualcomm.com (nasanex01b.na.qualcomm.com [10.46.141.250]) by NASANPPMTA02.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 57D5cSkR005488 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 13 Aug 2025 05:38:28 GMT Received: from hu-vikramsa-hyd.qualcomm.com (10.80.80.8) by nasanex01b.na.qualcomm.com (10.46.141.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1748.10; Tue, 12 Aug 2025 22:38:23 -0700 From: Vikram Sharma To: , , , , , , , , , , , , CC: , , , , , Subject: [PATCH v3 5/7] media: qcom: camss: enable vfe 690 for qcs8300 Date: Wed, 13 Aug 2025 11:07:22 +0530 Message-ID: <20250813053724.232494-6-quic_vikramsa@quicinc.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20250813053724.232494-1-quic_vikramsa@quicinc.com> References: <20250813053724.232494-1-quic_vikramsa@quicinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nasanex01b.na.qualcomm.com (10.46.141.250) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwODExMDA3NSBTYWx0ZWRfX5cC/VCLzmeap GAWK30s2rEFKc4X3YXQsAtRhs+pWbLFViJQE2+Qs1J/anMVqjA2a3TR0iIFMcLJHKk8vjrEPZ7w RKm2Cm8OD1OBy5TKGi2+RJ26zMVeu7dkvha6xFHX8OdwYUhVtWAUL439WLSdbeIbVtdVX9ogA9J bbZdRwOBFF3MiHlrLZYuDRdtz9O+evU1aDZ7omnjgEc3SekRVho5lAqPtK5D/IU0v2/XPGJMDQH WgafV0CVK3RLTkxLMjko8hFSIiYoKhmzmPqLjuV2/H2Fkwh2Bn+CzuUog5KRoZ9pPC+Bl8GJ4Ih 0PXMerVxiKW1G9n2RzE9G4kgHCn/QdPVWRJQJZFjov0zxKBVPJyKQ6HJ4LYQwSXEEKzREznC8ou +zY9168Y X-Authority-Analysis: v=2.4 cv=TLZFS0la c=1 sm=1 tr=0 ts=689c24d5 cx=c_pps a=JYp8KDb2vCoCEuGobkYCKw==:117 a=JYp8KDb2vCoCEuGobkYCKw==:17 a=GEpy-HfZoHoA:10 a=2OwXVqhp2XgA:10 a=COk6AnOGAAAA:8 a=DW1U1MRD-txlM0Xp4toA:9 a=TjNXssC_j7lpFel5tvFf:22 X-Proofpoint-GUID: wGuBm72kEo5UETQzBOsgIZ4Gu8WgTa1U X-Proofpoint-ORIG-GUID: wGuBm72kEo5UETQzBOsgIZ4Gu8WgTa1U X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.1.9,FMLib:17.12.80.40 definitions=2025-08-12_08,2025-08-11_01,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 phishscore=0 malwarescore=0 spamscore=0 priorityscore=1501 bulkscore=0 adultscore=0 impostorscore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2507300000 definitions=main-2508110075 Content-Type: text/plain; charset="utf-8" The vfe in qcs8300 is version 690, it is same as vfe used in lemans(sa8775p). vfe gen3 have support for vfe 690. Signed-off-by: Vikram Sharma Reviewed-by: Bryan O'Donoghue --- drivers/media/platform/qcom/camss/camss-vfe-gen3.c | 3 ++- drivers/media/platform/qcom/camss/camss-vfe.c | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/media/platform/qcom/camss/camss-vfe-gen3.c b/drivers/m= edia/platform/qcom/camss/camss-vfe-gen3.c index f2001140ead1..22579617def7 100644 --- a/drivers/media/platform/qcom/camss/camss-vfe-gen3.c +++ b/drivers/media/platform/qcom/camss/camss-vfe-gen3.c @@ -13,7 +13,8 @@ #include "camss-vfe.h" =20 #define IS_VFE_690(vfe) \ - (vfe->camss->res->version =3D=3D CAMSS_8775P) + ((vfe->camss->res->version =3D=3D CAMSS_8775P) \ + || (vfe->camss->res->version =3D=3D CAMSS_8300)) =20 #define BUS_REG_BASE_690 \ (vfe_is_lite(vfe) ? 0x480 : 0x400) diff --git a/drivers/media/platform/qcom/camss/camss-vfe.c b/drivers/media/= platform/qcom/camss/camss-vfe.c index 99cbe09343f2..1d40184d7d04 100644 --- a/drivers/media/platform/qcom/camss/camss-vfe.c +++ b/drivers/media/platform/qcom/camss/camss-vfe.c @@ -344,6 +344,7 @@ static u32 vfe_src_pad_code(struct vfe_line *line, u32 = sink_code, case CAMSS_8x96: case CAMSS_8250: case CAMSS_8280XP: + case CAMSS_8300: case CAMSS_845: case CAMSS_8550: case CAMSS_8775P: @@ -1974,6 +1975,7 @@ static int vfe_bpl_align(struct vfe_device *vfe) case CAMSS_7280: case CAMSS_8250: case CAMSS_8280XP: + case CAMSS_8300: case CAMSS_845: case CAMSS_8550: case CAMSS_8775P: --=20 2.25.1 From nobody Sat Oct 4 21:03:17 2025 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D16572BF3CF; Wed, 13 Aug 2025 05:38:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755063525; cv=none; b=RnaRqSFUcZyZpskFBpK/9rwgum0tUFNGzdx7poG+DUMMiCDfFvyV3nw0AtAi5vZlJtehd5no7B/GvcUTXNj1JbJEV+vgGQwIOsNOYSGw+BQa6eTQHkEADPHPPcGsDCC6UQjOQTSHNqC+TgywZkJ258Vr/nqu2sRJCbMdgm54ffs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755063525; c=relaxed/simple; bh=mc6ws8PSGJaqqaTkozs5c62nWvI2ZKZw8Bj6uGu123U=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=lPZ5PmwTNimllfG77WhMp7kfhTofCPQCeHvamRmJbBWrbO8zNcae9St9vgEyUTpyLriHgPs8Lhr9SukyEejNdOClDLCRV9fQVAoVs5CBpiFShyXGREjrAvgRNcIlt/yG+aSfvN/YvFAyTBLK64a6OqcEEt9asRV3aK9+5Lppj7Y= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=U6LBjXYU; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="U6LBjXYU" Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 57D3nYrO011486; Wed, 13 Aug 2025 05:38:35 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= MZ0oTJ7BNPy/AuEtcunjTR7FnjQNVLvYIrYGkJCiqYA=; b=U6LBjXYUWsgYoVtX RFY9zB1rbvXb4139LLD4VT+T+9obiL2e1a1u1Id1Pt6S/NRd5G+P7TSjPymZfE5k KkbbkZt15OJxLx6a4I5rbgnvedDVwzdDc+BzjsOtCD9NPaW3Dx71vIrDVZknYpO9 lHhvXzb3T+Qva3U/rTOBCLSJ0KcLReKZ9np1Ti93fAHYxSVlX0/z/EujdeRz8q9b sA4BMDaSpdCjM/qsNdqSi9dAQHfc60nLqzjVLVU+ceCZnYXK6dDkA2PtyGcCEerg 8jqLxyjw2/8HHc4a622x0yoel129PpjZTT2sgxczpJJcIn6mmMT4f/H6wKGnQpEU L9Lcag== Received: from nasanppmta01.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 48ffhjpcec-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 13 Aug 2025 05:38:35 +0000 (GMT) Received: from nasanex01b.na.qualcomm.com (nasanex01b.na.qualcomm.com [10.46.141.250]) by NASANPPMTA01.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 57D5cYQ3025732 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 13 Aug 2025 05:38:34 GMT Received: from hu-vikramsa-hyd.qualcomm.com (10.80.80.8) by nasanex01b.na.qualcomm.com (10.46.141.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1748.10; Tue, 12 Aug 2025 22:38:29 -0700 From: Vikram Sharma To: , , , , , , , , , , , , CC: , , , , , Subject: [PATCH v3 6/7] media: qcom: camss: Enumerate resources for QCS8300 Date: Wed, 13 Aug 2025 11:07:23 +0530 Message-ID: <20250813053724.232494-7-quic_vikramsa@quicinc.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20250813053724.232494-1-quic_vikramsa@quicinc.com> References: <20250813053724.232494-1-quic_vikramsa@quicinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nasanex01b.na.qualcomm.com (10.46.141.250) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwODExMDA3NCBTYWx0ZWRfX1omN0NRxmtWZ qb/FscVkccr4/1CG5pyFr6MtoxhShDh1WXCnUCd3qN6L5kmvwn2NOksbkW4HM7gEANK9Td6rvkt LrytLUvAzY60g2Y3MxGImTt9wS8vHJ6rn9EyYFKdzRySbNMbrn2D0qWNseLJYy8ldMrvUV56Hx4 7j2sC1/nMW1dp62i3lM2g2XTnO1tSuSZs+dx0g0GwhXpwalj3SodHiOaE3d7zbISrUUAJrWTbva tyh8votgrcgpcqUUUG5alrunE7OSJT64L0KJdrIcMdcUaCWR/0jm9UgvHE3lhST+2HTHfCvHYiS UFLc06IgV5Yaq0WG/iNEBy+60THzVIAeYZrHb/MhhxwjM999SWm83APFPQN8dbyIqpgLerSOEAh 5DJUgmMr X-Proofpoint-GUID: xlcmQg_avi1Xruu1g_YNVZABBUK1xUjt X-Authority-Analysis: v=2.4 cv=TJFFS0la c=1 sm=1 tr=0 ts=689c24db cx=c_pps a=JYp8KDb2vCoCEuGobkYCKw==:117 a=JYp8KDb2vCoCEuGobkYCKw==:17 a=GEpy-HfZoHoA:10 a=2OwXVqhp2XgA:10 a=COk6AnOGAAAA:8 a=KKAkSRfTAAAA:8 a=5xgrgTx84zIufkjN8CwA:9 a=TjNXssC_j7lpFel5tvFf:22 a=cvBusfyB2V15izCimMoJ:22 X-Proofpoint-ORIG-GUID: xlcmQg_avi1Xruu1g_YNVZABBUK1xUjt X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.1.9,FMLib:17.12.80.40 definitions=2025-08-12_08,2025-08-11_01,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 suspectscore=0 adultscore=0 impostorscore=0 malwarescore=0 phishscore=0 clxscore=1015 spamscore=0 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2507300000 definitions=main-2508110074 Content-Type: text/plain; charset="utf-8" Enumerate csiphy, csid and vfe resources for qcs8300. Signed-off-by: Vikram Sharma Reviewed-by: Bryan O'Donoghue --- drivers/media/platform/qcom/camss/camss.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/media/platform/qcom/camss/camss.c b/drivers/media/plat= form/qcom/camss/camss.c index 410e188d26aa..ad88356b329a 100644 --- a/drivers/media/platform/qcom/camss/camss.c +++ b/drivers/media/platform/qcom/camss/camss.c @@ -4216,7 +4216,14 @@ static const struct camss_resources msm8996_resource= s =3D { static const struct camss_resources qcs8300_resources =3D { .version =3D CAMSS_8300, .pd_name =3D "top", + .csiphy_res =3D csiphy_res_8300, + .csid_res =3D csid_res_8775p, + .csid_wrapper_res =3D &csid_wrapper_res_sm8550, + .vfe_res =3D vfe_res_8775p, .icc_res =3D icc_res_qcs8300, + .csiphy_num =3D ARRAY_SIZE(csiphy_res_8300), + .csid_num =3D ARRAY_SIZE(csid_res_8775p), + .vfe_num =3D ARRAY_SIZE(vfe_res_8775p), .icc_path_num =3D ARRAY_SIZE(icc_res_qcs8300), .link_entities =3D camss_link_entities }; --=20 2.25.1 From nobody Sat Oct 4 21:03:17 2025 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 514772D0C87; Wed, 13 Aug 2025 05:38:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755063530; cv=none; b=st/3YyOAJOMV2wgVvRNnIA5ao4rqxZabucxAehV5FUBqfyNWDHSh2A5GBYm4YUwCaGtC0wL6keAeuhZX/tujr8MIqaKk+P185prLsy9w+87WdK2Zcw4zz166uMyaTcvVE4Xrdi6kbvvLJ0ArtWFcSSFd4wXYtWfQDVrItYk8Wvc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755063530; c=relaxed/simple; bh=8DHrXzRC4dibtlFG1O00OgqyomASEBijUnmrVVgH7S8=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=bv5s/9Z/WrVz1HSAjjHYzaIpF9u/GehGa5m0fKokmGvWHDnHhKymgIKBWdFtzM5dQ7iAuVkvOOmC6NQeygO0iWDCNrXQVe+kHrzynh4LiiEPU/MyTK/qJA7dPz1Isryis0zGJwFrmNtlByi2cFb9I92wMEe3lcg8Mq43DhBvPpg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=oNac2Gif; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="oNac2Gif" Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 57D3oBOs028147; Wed, 13 Aug 2025 05:38:40 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= DcW4LBoOzlnOHMfM6zytGKE/rFXCIO551I0vhPafo7E=; b=oNac2GiftRD7P3z8 MPbVE19M79CC8sh9O1fQ0rXcSwB5vLgZT9M2KNlRO8vhOk7nLqDhVO+UVjwG1PtE 04F6fXoHrdfbJbYLhfcu/NZzVsdBoDLN8IZFEKavYQ1yw78fhog31x+eU4MB6keP dNOhpMWuuLhx3UrMQWRwk5qlFSAzWwaVIf8ja2Y3lhjxD3wgnfY9FrZ5lvCYIVqV Ueqh+GBmD3bIY/O+65RPsH560pqNhJ2pEEp4XIWmC5cxqrypuYaPJ13IqcGIXwQl B+2jFuqCj6Eou9eXPZWF06hsJWk3rs1xhaCZhuw9pLnAKRDEBiSaD81aTE4tmXmP u8grng== Received: from nasanppmta05.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 48ffq6pe7k-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 13 Aug 2025 05:38:40 +0000 (GMT) Received: from nasanex01b.na.qualcomm.com (nasanex01b.na.qualcomm.com [10.46.141.250]) by NASANPPMTA05.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 57D5cdsx021686 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 13 Aug 2025 05:38:39 GMT Received: from hu-vikramsa-hyd.qualcomm.com (10.80.80.8) by nasanex01b.na.qualcomm.com (10.46.141.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1748.10; Tue, 12 Aug 2025 22:38:34 -0700 From: Vikram Sharma To: , , , , , , , , , , , , CC: , , , , , Subject: [PATCH v3 7/7] arm64: dts: qcom: qcs8300: Add support for camss Date: Wed, 13 Aug 2025 11:07:24 +0530 Message-ID: <20250813053724.232494-8-quic_vikramsa@quicinc.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20250813053724.232494-1-quic_vikramsa@quicinc.com> References: <20250813053724.232494-1-quic_vikramsa@quicinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nasanex01b.na.qualcomm.com (10.46.141.250) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwODExMDA3NSBTYWx0ZWRfX/mpCziFzHU06 hxi6biavQRzryvhH3E9PtD1KeesTTu8UKMZCmAsCZ92vOO6PrC5utE4dr5eP4jFT4tHIdoK/EAc thMHbrNU0S+IhowpYGh3Yd42RnzdeGYEc54HeaFmsGk+ym6wVzMPveemSkdv2ef91Wx1exHfjk1 GHRNRB3kkh6bWdTGya4RTS0jL20Hqu4gdbDzW7TF/1Inp5fVIfvGhqCy9Mjf3SEN+8LQnaqp8fo dVv3eKc471m9h1LQXAKfupgbOAJGjgzEYtbZ802h0UfhgB00GSuf1AAPfM8FBmXC9ZKecKN4Cto QrBa+SM7rMPZyvTWN/MW36l2LRkNSXm/UpFvdrgZUj24Brj645iHhOtDv/o1GXlbtv2optH9Z+r l/hbLz8p X-Authority-Analysis: v=2.4 cv=TLZFS0la c=1 sm=1 tr=0 ts=689c24e0 cx=c_pps a=JYp8KDb2vCoCEuGobkYCKw==:117 a=JYp8KDb2vCoCEuGobkYCKw==:17 a=GEpy-HfZoHoA:10 a=2OwXVqhp2XgA:10 a=COk6AnOGAAAA:8 a=49fK2wAub7YDTLIv2YQA:9 a=vLbx9ZNBvJxxF4ac:21 a=TjNXssC_j7lpFel5tvFf:22 X-Proofpoint-GUID: 7v3O5tllXl5d76kdBrD5cVfiqFQFKjtE X-Proofpoint-ORIG-GUID: 7v3O5tllXl5d76kdBrD5cVfiqFQFKjtE X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.1.9,FMLib:17.12.80.40 definitions=2025-08-12_08,2025-08-11_01,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 phishscore=0 malwarescore=0 spamscore=0 priorityscore=1501 bulkscore=0 adultscore=0 impostorscore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2507300000 definitions=main-2508110075 Content-Type: text/plain; charset="utf-8" Add changes to support the camera subsystem on the QCS8300. Signed-off-by: Vikram Sharma Reviewed-by: Bryan O'Donoghue --- arch/arm64/boot/dts/qcom/qcs8300.dtsi | 171 ++++++++++++++++++++++++++ 1 file changed, 171 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qcs8300.dtsi b/arch/arm64/boot/dts/qc= om/qcs8300.dtsi index 3cf1d4bc7e4a..538b55a89f28 100644 --- a/arch/arm64/boot/dts/qcom/qcs8300.dtsi +++ b/arch/arm64/boot/dts/qcom/qcs8300.dtsi @@ -4641,6 +4641,177 @@ videocc: clock-controller@abf0000 { #power-domain-cells =3D <1>; }; =20 + camss: isp@ac78000 { + compatible =3D "qcom,qcs8300-camss"; + + reg =3D <0x0 0xac78000 0x0 0x1000>, + <0x0 0xac7a000 0x0 0x0f00>, + <0x0 0xac7c000 0x0 0x0f00>, + <0x0 0xac84000 0x0 0x0f00>, + <0x0 0xac88000 0x0 0x0f00>, + <0x0 0xac8c000 0x0 0x0f00>, + <0x0 0xac90000 0x0 0x0f00>, + <0x0 0xac94000 0x0 0x0f00>, + <0x0 0xac9c000 0x0 0x2000>, + <0x0 0xac9e000 0x0 0x2000>, + <0x0 0xaca0000 0x0 0x2000>, + <0x0 0xacac000 0x0 0x0400>, + <0x0 0xacad000 0x0 0x0400>, + <0x0 0xacae000 0x0 0x0400>, + <0x0 0xac4d000 0x0 0xf000>, + <0x0 0xac60000 0x0 0xf000>, + <0x0 0xac85000 0x0 0x0d00>, + <0x0 0xac89000 0x0 0x0d00>, + <0x0 0xac8d000 0x0 0x0d00>, + <0x0 0xac91000 0x0 0x0d00>, + <0x0 0xac95000 0x0 0x0d00>; + reg-names =3D "csid_wrapper", + "csid0", + "csid1", + "csid_lite0", + "csid_lite1", + "csid_lite2", + "csid_lite3", + "csid_lite4", + "csiphy0", + "csiphy1", + "csiphy2", + "tpg0", + "tpg1", + "tpg2", + "vfe0", + "vfe1", + "vfe_lite0", + "vfe_lite1", + "vfe_lite2", + "vfe_lite3", + "vfe_lite4"; + + clocks =3D <&camcc CAM_CC_CAMNOC_AXI_CLK>, + <&camcc CAM_CC_CORE_AHB_CLK>, + <&camcc CAM_CC_CPAS_AHB_CLK>, + <&camcc CAM_CC_CPAS_FAST_AHB_CLK>, + <&camcc CAM_CC_CPAS_IFE_LITE_CLK>, + <&camcc CAM_CC_CPAS_IFE_0_CLK>, + <&camcc CAM_CC_CPAS_IFE_1_CLK>, + <&camcc CAM_CC_CSID_CLK>, + <&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>, + <&camcc CAM_CC_CSID_CSIPHY_RX_CLK>, + <&gcc GCC_CAMERA_HF_AXI_CLK>, + <&gcc GCC_CAMERA_SF_AXI_CLK>, + <&camcc CAM_CC_ICP_AHB_CLK>, + <&camcc CAM_CC_IFE_0_CLK>, + <&camcc CAM_CC_IFE_0_FAST_AHB_CLK>, + <&camcc CAM_CC_IFE_1_CLK>, + <&camcc CAM_CC_IFE_1_FAST_AHB_CLK>, + <&camcc CAM_CC_IFE_LITE_CLK>, + <&camcc CAM_CC_IFE_LITE_AHB_CLK>, + <&camcc CAM_CC_IFE_LITE_CPHY_RX_CLK>, + <&camcc CAM_CC_IFE_LITE_CSID_CLK>; + clock-names =3D "camnoc_axi", + "core_ahb", + "cpas_ahb", + "cpas_fast_ahb_clk", + "cpas_vfe_lite", + "cpas_vfe0", + "cpas_vfe1", + "csid", + "csiphy0", + "csiphy0_timer", + "csiphy1", + "csiphy1_timer", + "csiphy2", + "csiphy2_timer", + "csiphy_rx", + "gcc_axi_hf", + "gcc_axi_sf", + "icp_ahb", + "vfe0", + "vfe0_fast_ahb", + "vfe1", + "vfe1_fast_ahb", + "vfe_lite", + "vfe_lite_ahb", + "vfe_lite_cphy_rx", + "vfe_lite_csid"; + + interrupts =3D , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + ; + interrupt-names =3D "csid0", + "csid1", + "csid_lite0", + "csid_lite1", + "csid_lite2", + "csid_lite3", + "csid_lite4", + "csiphy0", + "csiphy1", + "csiphy2", + "tpg0", + "tpg1", + "tpg2", + "vfe0", + "vfe1", + "vfe_lite0", + "vfe_lite1", + "vfe_lite2", + "vfe_lite3", + "vfe_lite4"; + + interconnects =3D <&gem_noc MASTER_APPSS_PROC QCOM_ICC_TAG_ACTIVE_ONLY + &config_noc SLAVE_CAMERA_CFG QCOM_ICC_TAG_ACTIVE_ONLY>, + <&mmss_noc MASTER_CAMNOC_HF QCOM_ICC_TAG_ALWAYS + &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>; + interconnect-names =3D "ahb", + "hf_0"; + + iommus =3D <&apps_smmu 0x2400 0x20>; + + power-domains =3D <&camcc CAM_CC_TITAN_TOP_GDSC>; + power-domain-names =3D "top"; + + status =3D "disabled"; + + ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + port@0 { + reg =3D <0>; + }; + + port@1 { + reg =3D <1>; + }; + + port@2 { + reg =3D <2>; + }; + }; + }; + camcc: clock-controller@ade0000 { compatible =3D "qcom,qcs8300-camcc"; reg =3D <0x0 0x0ade0000 0x0 0x20000>; --=20 2.25.1