From nobody Mon Feb 9 07:54:50 2026 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 2BDF41D88B4 for ; Sun, 25 Jan 2026 13:20: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=1769347230; cv=none; b=SYPFlt6SpQvYAtzbc8LtqNQY1jgfO3XN8S3ov64YOsEJGnMLhxdsoCUUvVJM0GAvldV1nH7VDTWbCO4GMTUouv9csYkNR6U39ZK4T/eJZHZhyqRkyBmlD/EHEbXFffehxi6ShtUyZ8aeX9LangGH28DQKfp9EUYI6976kivPPDM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769347230; c=relaxed/simple; bh=Bmf9KEkMp4HJCg1ZJJDbmmSwGBTwEzmFyX3bT3VUuIk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=A0/yZwBB22vSIs2BoVVKAQCnX1ypPX8QeCgIQurBuWItj1BCkPk6m96SRVFPSPO9MMgu7AAOVgL+8HO7qblVi/dI5EE4Me1J+uy3zYT1QArB+y/CxAeqWDBcGvuPjZ5XdYFTpQh/cDaB3SbJyzh8CYjAKnhSvtlOk53lVEMgzMU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=pSh9p+3H; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=cPl0/a1t; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="pSh9p+3H"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="cPl0/a1t" Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 60PCrI903958254 for ; Sun, 25 Jan 2026 13:20:27 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= JArmttMS0xgGKN3K5jgd2M6cFrUBTdyxOVP5jaPlnSA=; b=pSh9p+3HA0dDAxQp S+XgNjM1XOXHLOyi3N35KbpevM66SoMNk0/KdN5LeuX0XYOaUQEUko3YRyHMA/li 8/kLnyZB0avKgUt+0XCbTxhjduUFWLA1Xft1JnzrGkZrP1zZtGhuUU7ch99jOJBG /s+9mqIG3mjSU5/FX/ZaeB251aSn1S0qLmHd9HklE6PyO0QKYp4tl7q05cNIiQpf bdzHApekEt4zlaIJS83LWtmlsFfvSlbRAtJq7oEPsEjxDCqwpSycEqe4HK3/1Pq5 4zngfSuNMQPQWk9TptjsRN9vNJhW3TEdOYHD7MkU1+PstwvJQG26AL/g79wA+Z4N F53uhw== Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4bvq9f24xw-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Sun, 25 Jan 2026 13:20:27 +0000 (GMT) Received: by mail-qk1-f199.google.com with SMTP id af79cd13be357-8c5e166fb75so966397885a.0 for ; Sun, 25 Jan 2026 05:20:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1769347226; x=1769952026; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=JArmttMS0xgGKN3K5jgd2M6cFrUBTdyxOVP5jaPlnSA=; b=cPl0/a1tmNmfrG/0ZrDkBkjZAQJ4Kp/mPRWgdh+LLJ4nLFH5YMnJH7qMO6BlpqnAqS UqE9hY+u2oWYX8+d4QeYS1qHHMStjrQpRYVB4myxSS654HKUE7QifQWGQIbKd7VYOfuQ v3JmneYxskHVQypgYkfkQcqOXSCnjt0vam3B+wJwCtu30JrLepFDoDZzQeBlkXkGQXCC u18XYk1FN7mT/coOp4Xid5R3vXi0grmSm8NCtBEbwgZXkleIUKML1MMeFD104Y1XVL/K noMX++pPsFMqVzIiChLXr0JMmDAygOW9PUJjqybynKNBXhybkRGnke4zBhKxd1RPSqDj 9rjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769347226; x=1769952026; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=JArmttMS0xgGKN3K5jgd2M6cFrUBTdyxOVP5jaPlnSA=; b=hzeEK+hrhcStE/csBqG1QW9VqoB/QnqsO8YAptzhcLRuP4Z6YOZHIGhdqE4Yb4J/MV rokDEmAQO8Jp8DJ83+8eTcdra1NbyViolpmOv5f8R+ZdAj0fuDyG3bcZCA26jDlGvDuP PSpqLz16i3HxZLxJ1ceDuwdegdXyLs1B2gdb2INnMDZK20/+EcdLtGXnbzCX8NNQq2xH f9Z8FyTJrtjJCbJrNcEGxS4blLEMVC/O6rTTMx8lE8iR5HgQx2pbt+YRCpaLNdG5M2WC vi2PXUa/7BL3n2Jj9HTVXEpUfBl/mN8JoxTAkTNYke4q7kSdg2vfGgqqogOmyJPF7/7e 7AXw== X-Forwarded-Encrypted: i=1; AJvYcCV07z1IffpjMtbzvl9b3Vpq3VFk3pb/P7zH51pfU47v7VxxREI68IzeQIJQDtpUYj9+RR1Yeihh3nZZ1+g=@vger.kernel.org X-Gm-Message-State: AOJu0Yy4O7xaeTxQpTSeDj8FrEcdl95EiI+7prEbm/OiD4rA0HOcx0qI S8qBYzTQoc1zVtsI6uLBUiWlOWdSqac0Fwm+BU1G7uZBsbNrqOajNUMhhST+9ejxNmj6TC3IfOP KdbB8T0aqc2QQykIn9ApOn1dqEyrMP35e5hfI5EqL/wPJVWbUt9pDTVGINDDktXkog7A= X-Gm-Gg: AZuq6aKp/6YlVuYwd+XeHvtOATZUA4EiE4I1AuYNCG3x9A0SnjJOxni85tnZRKtoP/b F1UQwb5ctqBk6PkZlCz06HdIaBE+2Q2RuWEQA4+Hus4bgKZndJosXOcp4LiLX7ygKrKLxeAOE+C E4GNMfINb4Wl0SM2joh5IjqisXxC++D7C4UUD57WTl0QDvHYnXiVrlEy1/7yPZuummwCeCkddSD JQS0spBXhCRgac5Wnm4srbaNaJYCLaV5xHb3cFfpY64M2ZndOeA7GP3jpWuA7AfzNWD1f03ZDCV 8B0FJ1x9BV+mbLcpMlg2mdUx8eaZnR+y5rd8Zsbm/cdxjsCkSsVJbFvmyfkeHYatXI8H+ZfWtTE Cy9HsQNiFm6XxqN4mVpHBYmHXNQQ8Z+vpAAZ34iI2TaF39mbjbZQFjMszWDITU7WdSaEmcUUnyg LVBmACMbpZf3l9aMQgarr1UQc= X-Received: by 2002:a05:620a:2953:b0:8b2:ec1e:fe30 with SMTP id af79cd13be357-8c6f9615bdamr178466985a.57.1769347226286; Sun, 25 Jan 2026 05:20:26 -0800 (PST) X-Received: by 2002:a05:620a:2953:b0:8b2:ec1e:fe30 with SMTP id af79cd13be357-8c6f9615bdamr178463685a.57.1769347225786; Sun, 25 Jan 2026 05:20:25 -0800 (PST) Received: from umbar.lan (2001-14ba-a073-af00-264b-feff-fe8b-be8a.rev.dnainternet.fi. [2001:14ba:a073:af00:264b:feff:fe8b:be8a]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-385da1706b5sm18901821fa.24.2026.01.25.05.20.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Jan 2026 05:20:25 -0800 (PST) From: Dmitry Baryshkov Date: Sun, 25 Jan 2026 15:20:19 +0200 Subject: [PATCH 2/7] media: iris: introduce SM8350 and SC8280XP support Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260125-iris-sc8280xp-v1-2-2c5e69fae76b@oss.qualcomm.com> References: <20260125-iris-sc8280xp-v1-0-2c5e69fae76b@oss.qualcomm.com> In-Reply-To: <20260125-iris-sc8280xp-v1-0-2c5e69fae76b@oss.qualcomm.com> To: Vikash Garodia , Dikshita Agarwal , Bryan O'Donoghue , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Konrad Dybcio , Abhinav Kumar , Bjorn Andersson , David Heidelberg Cc: linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio , Johan Hovold X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=8971; i=dmitry.baryshkov@oss.qualcomm.com; h=from:subject:message-id; bh=Bmf9KEkMp4HJCg1ZJJDbmmSwGBTwEzmFyX3bT3VUuIk=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBpdhiTEFN5VQ++J9hNTVXGC/cZclDCPl2PJ5DaO wZS1OEaLDeJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCaXYYkwAKCRCLPIo+Aiko 1YPHCACoOroUXwSvoKFeekjSnEEMhL1PzTA9GiInbseIYMQysxx3mPS8mtq30//oUaN5ISEl0JF u+9r0WYx4KLMndJL2Mj92H+u+Kl1v0BRQiXDrezHkE2OfR25JiZQpfK51SDE+E13mbGVWvw2w5X JAytYz6x/3b4T5mOLPOVlZeD7/BS5hk5PTquE0gJgSyFfye3fIZohdjDCoZ8kR4XKyJWAgS/yYr 6b1N3kapOnSxS/bihpdQks/3zTTbTyJv8CNWpHj+Skpmqd6hjJEv9eRsKzOhp3INBsHFHbavxL8 zgLyVJzcTspfsFhDef1SMZaVs2qH760xeE2A1am7tvaSTrL1 X-Developer-Key: i=dmitry.baryshkov@oss.qualcomm.com; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A X-Authority-Analysis: v=2.4 cv=YLGSCBGx c=1 sm=1 tr=0 ts=6976189b cx=c_pps a=HLyN3IcIa5EE8TELMZ618Q==:117 a=xqWC_Br6kY4A:10 a=IkcTkHD0fZMA:10 a=vUbySO9Y5rIA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=EUspDBNiAAAA:8 a=UUdjpNFb6dwvVqmIGXgA:9 a=QEXdDO2ut3YA:10 a=bTQJ7kPSJx9SKPbeHEYW:22 X-Proofpoint-GUID: cwOjBBQopi2DS6JA2sf1Wo17cJLpQvNf X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMTI1MDExMSBTYWx0ZWRfXwYowJwIw0/Fl 3c3jhDcd2vHrOC4PVRHGIwxWT8IqPqueda2ElASoGn1jl4wLbpfsP1db0/vK87D5ybon+BHVrDi Bab0/eg4buJNtN6RFQyRL0CG4uFNl9yATx0J7VrbvqnGnl+iT6fr1puuQ5iVu/nrxgK5HOVleak z3MuRBiQlnXYxyYQXZyu2G8XYet7SlM1LeHWBl6/TIF6jWvbwV46a3MFiO7J0DaQkZnzQkExLuW EVztZG/1+sCgxjjH886jjHi8+qdtf0qgX0kYy7OnNzfyB7NQsEJyQLwDsDyPPRkJcuTxI/YP5Ja 40mv+v5rjLL0EdVz7+KVcilBh0opDbc3rf9o2LZ3jAtvZDL7AJ0jjv8oNgQ105Ukg/W6gohOtrM d6ba9Nt7BXYhTlDmwHvK00pTvo3q4+amlrd5rWilXvfyCp45NZQcEE9S2K8tVQAuzaJQeBuaTWs VruvW8SkurBN/y0Et7Q== X-Proofpoint-ORIG-GUID: cwOjBBQopi2DS6JA2sf1Wo17cJLpQvNf X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.20,FMLib:17.12.100.49 definitions=2026-01-25_03,2026-01-22_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 priorityscore=1501 suspectscore=0 bulkscore=0 lowpriorityscore=0 clxscore=1015 impostorscore=0 phishscore=0 spamscore=0 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2601150000 definitions=main-2601250111 SM8350 and SC8280XP have an updated version of the Iris2 core also present on the SM8250 and SC7280 platforms. Add necessary platform data to utilize the core on those two platforms. The iris_platform_gen1.c is now compiled unconditionally, even if Venus driver is enabled, but SM8250 and SC7280 are still disabled in iris_dt_match. Signed-off-by: Dmitry Baryshkov --- drivers/media/platform/qcom/iris/Makefile | 5 +- .../platform/qcom/iris/iris_platform_common.h | 2 + .../media/platform/qcom/iris/iris_platform_gen1.c | 111 +++++++++++++++++= ++++ drivers/media/platform/qcom/iris/iris_probe.c | 10 ++ 4 files changed, 124 insertions(+), 4 deletions(-) diff --git a/drivers/media/platform/qcom/iris/Makefile b/drivers/media/plat= form/qcom/iris/Makefile index 2abbd3aeb4af..2fde45f81727 100644 --- a/drivers/media/platform/qcom/iris/Makefile +++ b/drivers/media/platform/qcom/iris/Makefile @@ -10,6 +10,7 @@ qcom-iris-objs +=3D iris_buffer.o \ iris_hfi_gen2_packet.o \ iris_hfi_gen2_response.o \ iris_hfi_queue.o \ + iris_platform_gen1.o \ iris_platform_gen2.o \ iris_power.o \ iris_probe.o \ @@ -26,8 +27,4 @@ qcom-iris-objs +=3D iris_buffer.o \ iris_vpu_buffer.o \ iris_vpu_common.o \ =20 -ifeq ($(CONFIG_VIDEO_QCOM_VENUS),) -qcom-iris-objs +=3D iris_platform_gen1.o -endif - obj-$(CONFIG_VIDEO_QCOM_IRIS) +=3D qcom-iris.o diff --git a/drivers/media/platform/qcom/iris/iris_platform_common.h b/driv= ers/media/platform/qcom/iris/iris_platform_common.h index 5a489917580e..49dba0f50988 100644 --- a/drivers/media/platform/qcom/iris/iris_platform_common.h +++ b/drivers/media/platform/qcom/iris/iris_platform_common.h @@ -43,7 +43,9 @@ enum pipe_type { =20 extern const struct iris_platform_data qcs8300_data; extern const struct iris_platform_data sc7280_data; +extern const struct iris_platform_data sc8280xp_data; extern const struct iris_platform_data sm8250_data; +extern const struct iris_platform_data sm8350_data; extern const struct iris_platform_data sm8550_data; extern const struct iris_platform_data sm8650_data; extern const struct iris_platform_data sm8750_data; diff --git a/drivers/media/platform/qcom/iris/iris_platform_gen1.c b/driver= s/media/platform/qcom/iris/iris_platform_gen1.c index df8e6bf9430e..c99ff4d4644d 100644 --- a/drivers/media/platform/qcom/iris/iris_platform_gen1.c +++ b/drivers/media/platform/qcom/iris/iris_platform_gen1.c @@ -14,6 +14,7 @@ #include "iris_instance.h" =20 #include "iris_platform_sc7280.h" +#include "iris_platform_sm8350.h" =20 #define BITRATE_MIN 32000 #define BITRATE_MAX 160000000 @@ -392,6 +393,61 @@ const struct iris_platform_data sm8250_data =3D { .enc_ip_int_buf_tbl_size =3D ARRAY_SIZE(sm8250_enc_ip_int_buf_tbl), }; =20 +const struct iris_platform_data sm8350_data =3D { + .get_instance =3D iris_hfi_gen1_get_instance, + .init_hfi_command_ops =3D &iris_hfi_gen1_command_ops_init, + .init_hfi_response_ops =3D iris_hfi_gen1_response_ops_init, + .get_vpu_buffer_size =3D iris_vpu_buf_size, + .vpu_ops =3D &iris_vpu2_ops, + .set_preset_registers =3D iris_set_sm8350_preset_registers, + .icc_tbl =3D sm8250_icc_table, + .icc_tbl_size =3D ARRAY_SIZE(sm8250_icc_table), + .clk_rst_tbl =3D sm8350_clk_reset_table, + .clk_rst_tbl_size =3D ARRAY_SIZE(sm8350_clk_reset_table), + .bw_tbl_dec =3D sm8250_bw_table_dec, + .bw_tbl_dec_size =3D ARRAY_SIZE(sm8250_bw_table_dec), + .pmdomain_tbl =3D sm8250_pmdomain_table, + .pmdomain_tbl_size =3D ARRAY_SIZE(sm8250_pmdomain_table), + .opp_pd_tbl =3D sm8250_opp_pd_table, + .opp_pd_tbl_size =3D ARRAY_SIZE(sm8250_opp_pd_table), + .clk_tbl =3D sm8250_clk_table, + .clk_tbl_size =3D ARRAY_SIZE(sm8250_clk_table), + .opp_clk_tbl =3D sm8250_opp_clk_table, + /* Upper bound of DMA address range */ + .dma_mask =3D 0xe0000000 - 1, + .fwname =3D "qcom/vpu/vpu20_p4.mbn", + .pas_id =3D IRIS_PAS_ID, + .inst_iris_fmts =3D platform_fmts_sm8250_dec, + .inst_iris_fmts_size =3D ARRAY_SIZE(platform_fmts_sm8250_dec), + .inst_caps =3D &platform_inst_cap_sm8250, + .inst_fw_caps_dec =3D inst_fw_cap_sm8250_dec, + .inst_fw_caps_dec_size =3D ARRAY_SIZE(inst_fw_cap_sm8250_dec), + .inst_fw_caps_enc =3D inst_fw_cap_sm8250_enc, + .inst_fw_caps_enc_size =3D ARRAY_SIZE(inst_fw_cap_sm8250_enc), + .tz_cp_config_data =3D tz_cp_config_sm8250, + .tz_cp_config_data_size =3D ARRAY_SIZE(tz_cp_config_sm8250), + .hw_response_timeout =3D HW_RESPONSE_TIMEOUT_VALUE, + .num_vpp_pipe =3D 4, + .max_session_count =3D 16, + .max_core_mbpf =3D NUM_MBS_8K, + .max_core_mbps =3D ((7680 * 4320) / 256) * 60, + .dec_input_config_params_default =3D + sm8250_vdec_input_config_param_default, + .dec_input_config_params_default_size =3D + ARRAY_SIZE(sm8250_vdec_input_config_param_default), + .enc_input_config_params =3D sm8250_venc_input_config_param, + .enc_input_config_params_size =3D + ARRAY_SIZE(sm8250_venc_input_config_param), + + .dec_ip_int_buf_tbl =3D sm8250_dec_ip_int_buf_tbl, + .dec_ip_int_buf_tbl_size =3D ARRAY_SIZE(sm8250_dec_ip_int_buf_tbl), + .dec_op_int_buf_tbl =3D sm8250_dec_op_int_buf_tbl, + .dec_op_int_buf_tbl_size =3D ARRAY_SIZE(sm8250_dec_op_int_buf_tbl), + + .enc_ip_int_buf_tbl =3D sm8250_enc_ip_int_buf_tbl, + .enc_ip_int_buf_tbl_size =3D ARRAY_SIZE(sm8250_enc_ip_int_buf_tbl), +}; + const struct iris_platform_data sc7280_data =3D { .get_instance =3D iris_hfi_gen1_get_instance, .init_hfi_command_ops =3D &iris_hfi_gen1_command_ops_init, @@ -446,3 +502,58 @@ const struct iris_platform_data sc7280_data =3D { .enc_ip_int_buf_tbl =3D sm8250_enc_ip_int_buf_tbl, .enc_ip_int_buf_tbl_size =3D ARRAY_SIZE(sm8250_enc_ip_int_buf_tbl), }; + +const struct iris_platform_data sc8280xp_data =3D { + .get_instance =3D iris_hfi_gen1_get_instance, + .init_hfi_command_ops =3D &iris_hfi_gen1_command_ops_init, + .init_hfi_response_ops =3D iris_hfi_gen1_response_ops_init, + .get_vpu_buffer_size =3D iris_vpu_buf_size, + .vpu_ops =3D &iris_vpu2_ops, + .set_preset_registers =3D iris_set_sm8350_preset_registers, + .icc_tbl =3D sm8250_icc_table, + .icc_tbl_size =3D ARRAY_SIZE(sm8250_icc_table), + .clk_rst_tbl =3D sm8350_clk_reset_table, + .clk_rst_tbl_size =3D ARRAY_SIZE(sm8350_clk_reset_table), + .bw_tbl_dec =3D sm8250_bw_table_dec, + .bw_tbl_dec_size =3D ARRAY_SIZE(sm8250_bw_table_dec), + .pmdomain_tbl =3D sm8250_pmdomain_table, + .pmdomain_tbl_size =3D ARRAY_SIZE(sm8250_pmdomain_table), + .opp_pd_tbl =3D sm8250_opp_pd_table, + .opp_pd_tbl_size =3D ARRAY_SIZE(sm8250_opp_pd_table), + .clk_tbl =3D sm8250_clk_table, + .clk_tbl_size =3D ARRAY_SIZE(sm8250_clk_table), + .opp_clk_tbl =3D sm8250_opp_clk_table, + /* Upper bound of DMA address range */ + .dma_mask =3D 0xe0000000 - 1, + .fwname =3D "qcom/vpu/vpu20_p2.mbn", + .pas_id =3D IRIS_PAS_ID, + .inst_iris_fmts =3D platform_fmts_sm8250_dec, + .inst_iris_fmts_size =3D ARRAY_SIZE(platform_fmts_sm8250_dec), + .inst_caps =3D &platform_inst_cap_sm8250, + .inst_fw_caps_dec =3D inst_fw_cap_sm8250_dec, + .inst_fw_caps_dec_size =3D ARRAY_SIZE(inst_fw_cap_sm8250_dec), + .inst_fw_caps_enc =3D inst_fw_cap_sm8250_enc, + .inst_fw_caps_enc_size =3D ARRAY_SIZE(inst_fw_cap_sm8250_enc), + .tz_cp_config_data =3D tz_cp_config_sm8250, + .tz_cp_config_data_size =3D ARRAY_SIZE(tz_cp_config_sm8250), + .hw_response_timeout =3D HW_RESPONSE_TIMEOUT_VALUE, + .num_vpp_pipe =3D 2, + .max_session_count =3D 16, + .max_core_mbpf =3D NUM_MBS_8K, + .max_core_mbps =3D ((7680 * 4320) / 256) * 60, + .dec_input_config_params_default =3D + sm8250_vdec_input_config_param_default, + .dec_input_config_params_default_size =3D + ARRAY_SIZE(sm8250_vdec_input_config_param_default), + .enc_input_config_params =3D sm8250_venc_input_config_param, + .enc_input_config_params_size =3D + ARRAY_SIZE(sm8250_venc_input_config_param), + + .dec_ip_int_buf_tbl =3D sm8250_dec_ip_int_buf_tbl, + .dec_ip_int_buf_tbl_size =3D ARRAY_SIZE(sm8250_dec_ip_int_buf_tbl), + .dec_op_int_buf_tbl =3D sm8250_dec_op_int_buf_tbl, + .dec_op_int_buf_tbl_size =3D ARRAY_SIZE(sm8250_dec_op_int_buf_tbl), + + .enc_ip_int_buf_tbl =3D sm8250_enc_ip_int_buf_tbl, + .enc_ip_int_buf_tbl_size =3D ARRAY_SIZE(sm8250_enc_ip_int_buf_tbl), +}; diff --git a/drivers/media/platform/qcom/iris/iris_probe.c b/drivers/media/= platform/qcom/iris/iris_probe.c index ddaacda523ec..10b00d9808d2 100644 --- a/drivers/media/platform/qcom/iris/iris_probe.c +++ b/drivers/media/platform/qcom/iris/iris_probe.c @@ -357,11 +357,21 @@ static const struct of_device_id iris_dt_match[] =3D { .compatible =3D "qcom,sc7280-venus", .data =3D &sc7280_data, }, +#endif + { + .compatible =3D "qcom,sc8280xp-venus", + .data =3D &sc8280xp_data, + }, +#if (!IS_ENABLED(CONFIG_VIDEO_QCOM_VENUS)) { .compatible =3D "qcom,sm8250-venus", .data =3D &sm8250_data, }, #endif + { + .compatible =3D "qcom,sm8350-venus", + .data =3D &sm8350_data, + }, { .compatible =3D "qcom,sm8550-iris", .data =3D &sm8550_data, --=20 2.47.3