From nobody Sun Oct 5 09:10:59 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 D2F81246761; Thu, 7 Aug 2025 12:11:57 +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=1754568719; cv=none; b=EesGIbshUyyaCc9PDPKciMKHvoqHlcZN6Jm+UyFXTt0aXWM4ASUZdBFAegJ1QR31rQ8L4poG5AzYLSFlILdhbf7ShZpBlGjo605hbaxHsNPWmOcFBU0DDRZXjYozRhhe72eIPZMORhUbQrTmc6hmuMuzQzQbAdl44Ok2X3kpSlI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754568719; c=relaxed/simple; bh=hqlE0XckVoUgsvHmM7UX7nbAabm9mlf3eWocFV7W3mU=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=SjqZ3k10UVb54doIVkL4UwLrVlLaX9zIyt0oJJpb6lTx8ZV2dbI7QMXZF5Ep2SvL6G7J5XR/UDGA32sFLeiZdDe1uAeLP5HXOqn32QujaUrC2g6KJNLuVplbC1hvL2vA/vttIAaIOlsWlM0N/vNPQkjBz262/D78VuuYbM9cpho= 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=JR3KFNMu; 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="JR3KFNMu" 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 5779Cvol018054; Thu, 7 Aug 2025 12:11:48 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= qAvJ9BU4lGcGgfLzMFd4cNDHaR/UvnJIKRQafMp6WQw=; b=JR3KFNMu/Bvr7ZIi mJB0ctsomKSyKkOzcVV7QIjL7PQsXZ7U35A0lRCwtpiV0iTdLSVAb8kEpCXfiEl8 XKqJcMv1tI9LLVD1ShnzMPmR6rzyuOoUDJkK/QTPUQy9TLJgq+TKqui4i69mlFUK IJcpVirdtMB5r0PaurPWgGO5SfEFpvJZoFkodpEno2ECyvsfqqrXVJigJVwqFycp yReL7pI4CELC4FOLQb2LkNqQJ9EWOGC2AHUfACiCxHArRTMZW20vktWi4akaxON7 avOm7BpeAuSOZoeTcDGWk1aYtxK4kxQUfHgGjUatVkccH1QWyAjfawSYPo87lwCG JjV2sw== Received: from nasanppmta02.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 48c586bt9m-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 07 Aug 2025 12:11:48 +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 577CBlsV028445 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 7 Aug 2025 12:11:47 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; Thu, 7 Aug 2025 05:11:42 -0700 From: Vikram Sharma To: , , , , , , , , , , , , CC: , , , , , Subject: [PATCH v4 4/9] media: qcom: camss: Add sa8775p compatible Date: Thu, 7 Aug 2025 17:41:00 +0530 Message-ID: <20250807121105.710072-5-quic_vikramsa@quicinc.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20250807121105.710072-1-quic_vikramsa@quicinc.com> References: <20250807121105.710072-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: BkT3NDwMRqn-OA-69lhBR8mD5Zcd5Vkb X-Authority-Analysis: v=2.4 cv=MZpsu4/f c=1 sm=1 tr=0 ts=68949804 cx=c_pps a=JYp8KDb2vCoCEuGobkYCKw==:117 a=JYp8KDb2vCoCEuGobkYCKw==:17 a=GEpy-HfZoHoA:10 a=2OwXVqhp2XgA:10 a=COk6AnOGAAAA:8 a=KKAkSRfTAAAA:8 a=gE60Ov1lhapgyOv8Ur0A:9 a=TjNXssC_j7lpFel5tvFf:22 a=cvBusfyB2V15izCimMoJ:22 X-Proofpoint-ORIG-GUID: BkT3NDwMRqn-OA-69lhBR8mD5Zcd5Vkb X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwODA2MDA2NCBTYWx0ZWRfXztSsVdC9yFHC mzHmBy1B3j1wDjAnMYgSCw63KaQRFaZySvQQWCSfKpzX0RLch1TCJgVBRDr7N3GfYxcb/LiFr0o frifWQ/SesYBWdtJxlCAFRlVMX65lAeuszOumMkvykh6A1pSqdC+4ilGNu0mFmCdnvKF2vvZmFm mfK/Kh/d17AyYeF1G4y2AaPHVZpmayMtrLq3D2b+mEZhFWKyEj8vcxzm4KxT8DGEfiKCaGnwDcy vWy44uNhys0Dmmxj7PCzTFkOTyUsfZU6CSVqMy9qlmqgyNYOH3M9Mr3x5CaHk+tAJoMk/vzGnpV 2I2CntskK1E0UKlJ37leMw2pu9lVacLJUzEV2k8yXyEoy7hWljyNRnOfi5iyN+kxFNKKg3FJXaJ CzhWObWU 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-07_02,2025-08-06_01,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 malwarescore=0 spamscore=0 clxscore=1015 bulkscore=0 adultscore=0 suspectscore=0 phishscore=0 priorityscore=1501 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2507300000 definitions=main-2508060064 Content-Type: text/plain; charset="utf-8" Add CAMSS_8775P enum, SA8775P compatible and sa8775p camss driver private data, the private data just include some basic information now, later changes will enumerate with csiphy, tpg, csid and vfe resources. Co-developed-by: Suresh Vankadara Signed-off-by: Suresh Vankadara Signed-off-by: Vikram Sharma Reviewed-by: Bryan O'Donoghue --- drivers/media/platform/qcom/camss/camss.c | 23 +++++++++++++++++++++++ drivers/media/platform/qcom/camss/camss.h | 1 + 2 files changed, 24 insertions(+) diff --git a/drivers/media/platform/qcom/camss/camss.c b/drivers/media/plat= form/qcom/camss/camss.c index 346cfc4fb392..98efc373a694 100644 --- a/drivers/media/platform/qcom/camss/camss.c +++ b/drivers/media/platform/qcom/camss/camss.c @@ -2483,6 +2483,19 @@ static const struct resources_icc icc_res_sm8550[] = =3D { }, }; =20 +static const struct resources_icc icc_res_sa8775p[] =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 camss_subdev_resources csiphy_res_x1e80100[] =3D { /* CSIPHY0 */ { @@ -3752,6 +3765,15 @@ static const struct camss_resources msm8996_resource= s =3D { .link_entities =3D camss_link_entities }; =20 + +static const struct camss_resources sa8775p_resources =3D { + .version =3D CAMSS_8775P, + .pd_name =3D "top", + .icc_res =3D icc_res_sa8775p, + .icc_path_num =3D ARRAY_SIZE(icc_res_sa8775p), + .link_entities =3D camss_link_entities +}; + static const struct camss_resources sdm660_resources =3D { .version =3D CAMSS_660, .csiphy_res =3D csiphy_res_660, @@ -3864,6 +3886,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,sa8775p-camss", .data =3D &sa8775p_resources }, { .compatible =3D "qcom,sc7280-camss", .data =3D &sc7280_resources }, { .compatible =3D "qcom,sc8280xp-camss", .data =3D &sc8280xp_resources }, { .compatible =3D "qcom,sdm660-camss", .data =3D &sdm660_resources }, diff --git a/drivers/media/platform/qcom/camss/camss.h b/drivers/media/plat= form/qcom/camss/camss.h index 63c0afee154a..345479f6feba 100644 --- a/drivers/media/platform/qcom/camss/camss.h +++ b/drivers/media/platform/qcom/camss/camss.h @@ -86,6 +86,7 @@ enum camss_version { CAMSS_8280XP, CAMSS_845, CAMSS_8550, + CAMSS_8775P, CAMSS_X1E80100, }; =20 --=20 2.25.1