From mboxrd@z Thu Jan 1 00:00:00 1970 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: 8bit Content-Type: text/plain 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 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/platform/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_8775p[] = { }, }; +static const struct resources_icc icc_res_qcs8300[] = { + { + .name = "ahb", + .icc_bw_tbl.avg = 38400, + .icc_bw_tbl.peak = 76800, + }, + { + .name = "hf_0", + .icc_bw_tbl.avg = 2097152, + .icc_bw_tbl.peak = 2097152, + }, +}; + static const struct resources_icc icc_res_sa8775p[] = { { .name = "ahb", @@ -4143,6 +4156,13 @@ static const struct camss_resources msm8996_resources = { .link_entities = camss_link_entities }; +static const struct camss_resources qcs8300_resources = { + .version = CAMSS_8300, + .pd_name = "top", + .icc_res = icc_res_qcs8300, + .icc_path_num = ARRAY_SIZE(icc_res_qcs8300), + .link_entities = camss_link_entities +}; static const struct camss_resources sa8775p_resources = { .version = CAMSS_8775P, @@ -4271,6 +4291,7 @@ static const struct of_device_id camss_dt_match[] = { { .compatible = "qcom,msm8916-camss", .data = &msm8916_resources }, { .compatible = "qcom,msm8953-camss", .data = &msm8953_resources }, { .compatible = "qcom,msm8996-camss", .data = &msm8996_resources }, + { .compatible = "qcom,qcs8300-camss", .data = &qcs8300_resources }, { .compatible = "qcom,sa8775p-camss", .data = &sa8775p_resources }, { .compatible = "qcom,sc7280-camss", .data = &sc7280_resources }, { .compatible = "qcom,sc8280xp-camss", .data = &sc8280xp_resources }, diff --git a/drivers/media/platform/qcom/camss/camss.h b/drivers/media/platform/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, -- 2.25.1