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 A2A6534E774 for ; Tue, 21 Jul 2026 13:21:13 +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=1784640078; cv=none; b=nVdOsFF87ZjIWH92cgR/MOQzYVmvuY7p6pGj3zrQIZbw+YXAR5C6wRnS7AppazCuYbPBSfMBzJottCxetfN7HloqmVBFyW5kxe9GjUe5sGN91zjP0Vm2cx1fOoKGCi8g/ouxHUoqRiqSP9Dt8lgQP3KNs0O28M2VLZ+kieo+2og= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784640078; c=relaxed/simple; bh=uWOMXeaD7MK1c8npIECmu0+72rBlgBlf7ZnWFnrji/g=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=CP3+TAjQ9ILaazt6uajixBxdsyfg7SHAqlu70tFFrALfsr8DsbtGSNo1/Hj+DaNUODbXDegkwmBttMwo8mxYCCytdPXqmoFAmc/UWolbdCVRYBqn3Caut3WfC7LGLvcliq1JV4wx27W6hlrKkdUd2iUo8GmchBcbvasEZup8Y74= 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=R5VKWZZf; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=MRtrem0M; 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="R5VKWZZf"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="MRtrem0M" Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 66LARPwf945923 for ; Tue, 21 Jul 2026 13:21:13 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=qcppdkim1; bh=1B1bpITxNj0fdko2dvptB/ +3xeAM2PNOaCl1+gbFVDU=; b=R5VKWZZfTL4rVH9MDfSGglvMpCrVisrhEMLSto 52OYgEPgIdX5G/TvtA4Vcc2naYx5BjyKAKp1BgbZLNYoMsnxUyJEIoW2m+zHa1/v wabbmRl8TtbDRA96pPpNAaqYZKOXMaNtKkC5z+GTtbaB9YbpuuDWZ8RKR1Ayv3VF Q7hRwZnsDfpl9/nQ7oLJKtc4aOw+4W8gpXYPiBKI6A2Lc2geFOq8gfwrKJ665qrM kqzcpSk+nrlSl/hjOIuD8WrZN7MWhJWiKXM84Z5Ky8fV7c7DhduwuFKokadIb/g2 AiN0Ly+zXsEZ8WBS6O4EHExR6P704/qhOLVnjG5d9Y9AoVPw== Received: from mail-qt1-f197.google.com (mail-qt1-f197.google.com [209.85.160.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4fj1es2j1v-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 21 Jul 2026 13:21:12 +0000 (GMT) Received: by mail-qt1-f197.google.com with SMTP id d75a77b69052e-51c0199faafso172227901cf.3 for ; Tue, 21 Jul 2026 06:21:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1784640072; x=1785244872; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:content-type:mime-version :message-id:date:subject:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=1B1bpITxNj0fdko2dvptB/+3xeAM2PNOaCl1+gbFVDU=; b=MRtrem0MfRhhaKPVzHpxRS82HHfmwszcrLCOyGMo5D2ESBVY0sH1FMHSJgqzMP/T+s qZE4hvvNXWBV2SsiOmBGjdyvstD67SIJR2C9j4swu9Gnd+kEdNxCm/+4382nlX/K712u VkNufc6Ea7fdGFmecZn194uxFLSW3zbg5PYXgUHWpxVmRWKIDBjy3l+mLsBUw67LuXmm zRCiCDaNwc9lNFXrBqzV3PCvPY8YZcdIaHh9yIvlPoXVVqaWxr9UaETb+tx+o+3pVHZy Gxw9/rd7YnNMpfXYTqx40wrao48MBU7OuTA15H5JQjv8KHeo6Zlr/TIDdCL6nh0kicUG LwXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784640072; x=1785244872; h=cc:to:content-transfer-encoding:content-type:mime-version :message-id:date:subject:from:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to:content-type; bh=1B1bpITxNj0fdko2dvptB/+3xeAM2PNOaCl1+gbFVDU=; b=QWJeJwyYBttGxMr3lHrSaBQGxydR+eT8TwqIwdyrqvKt4hagSqvHoa/Z80zZfHUwzp /rJtRMh0C383RcZ5L6Npo3m26+nywXOx+y1uhqeINsZhYIEnAEk9wMfDeo8Xy9+S1NHW xRkFVp2hYNneupf2yFid3f9BwQWyEoZ4x/O03+B2KkhuOLHTQ1xnrUfROJnidTJaodCr d69aL5S3w9s5QCgDo6Azm8SbqM6O+DIOVWv5BBbN8lANKvLXz4Fm/ESbE7a5nKgCNXpO WpyRMCY4Y7QUXAWyOvctfDgOXjZo6t4ZR69skBfHUW8PCN8jPIxFFJSdBUSegIF4G+Lh Helg== X-Forwarded-Encrypted: i=1; AHgh+RoOV/qn5zf2cvdIS1thm+1VyPJ6Uz06yT0gQmzHoMdcjSIRlNY8hFe8awQWJI4gvI5biXjnUInNqmwXTBaK@vger.kernel.org X-Gm-Message-State: AOJu0YyWuo8VcvCpGBThaulb0YuynfqVEB7Zzt6sI8ovFyEbWPVeLUsV 74dVh47y4QljdvQYU/0Vnxtj4vY0cAhNJoVs3CKi4ELle4xbK1Rg18doNjMba1hXCin1RR6IKIN tkQ3O1Tv8sS+tbnIljQUZolK0ZC3LUNyFehVirqAah5lbrkXnImjhQQopXBT5GSjrBlGB X-Gm-Gg: AfdE7cn8Kf94mjFTSp2KIOxHhQT9oUGpgUnlVcuP6T2qd2Q24qLUhkEoP441EIfaFPX kzcA8Z/JJxaoisFpQ0MyoAOtXktU1kt2JumQ93ynf+77Lay2t3MYmcwqiN0znUdvAi745tuSi/x GD0Ys4QoSKqQzXrYqHmMOzkH7WrDumG9NbCpph4zyUQO315ernKyKdUsqaVM2OcXwq+KtxhIloy DYwnEx+cCIV/DZ6kp4m1krsorQ7Tk5KMy6qDFEZU5UYSW98tTY0k5VH8uL7H7pnzbQRQHhdUVw6 NcINOhlvqKHhRn25dzwJl7rdWVtHaFP5/rcgoDkk7XqEFnhGGHu57FWTzBHXwn0pNU2auH3yM7T mlZtdI32BZSTzBj8fERVJZjtdl1nN7pN1MuhM4zOoP4VDrrY0+K4IVEL6ia+85d3tT3vykEbM5F gPd8+I2xvxd+3Z52qUC/y6WWyUe99XVQQ+j942k99wpDbOEzKXU5c= X-Received: by 2002:a05:622a:95:b0:51c:11aa:1cd with SMTP id d75a77b69052e-5213e28fc2fmr176835261cf.50.1784640071463; Tue, 21 Jul 2026 06:21:11 -0700 (PDT) X-Received: by 2002:a05:622a:95:b0:51c:11aa:1cd with SMTP id d75a77b69052e-5213e28fc2fmr176834491cf.50.1784640070586; Tue, 21 Jul 2026 06:21:10 -0700 (PDT) Received: from QCOM-eG0v1AUPpu.na.qualcomm.com ([2a01:e0a:830:450:751c:d61c:c91:60dd]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-c1712a5f8c5sm598326066b.34.2026.07.21.06.21.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Jul 2026 06:21:09 -0700 (PDT) From: Loic Poulain Subject: [PATCH v2 0/4] media: qcom: camss: Report CAMSS hardware version via media controller Date: Tue, 21 Jul 2026 15:21:07 +0200 Message-Id: <20260721-camss-version-v2-0-b2440d99085a@oss.qualcomm.com> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAENyX2oC/3WMwQrCMBBEf6Xs2ZQk0KZ68j9KD0uytQHTaFaDU vLvpr17GXjDzNuAKXliuDQbJMqefVwr6FMDdsH1RsK7yqCl7qVRRlgMzCJT2pcCB8JeuRmpc1A /j0Sz/xy+caq8eH7F9D30We3tP1NWQgpDzqiZ8NzRcI3M7fONdxtDaGvAVEr5AXs6XxixAAAA X-Change-ID: 20260717-camss-version-a8ea61dfae5d To: Bryan O'Donoghue , Vladimir Zapolskiy , Mauro Carvalho Chehab Cc: linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Loic Poulain , Konrad Dybcio X-Mailer: b4 0.14.2 X-Authority-Analysis: v=2.4 cv=SPZykuvH c=1 sm=1 tr=0 ts=6a5f7248 cx=c_pps a=EVbN6Ke/fEF3bsl7X48z0g==:117 a=xqWC_Br6kY4A:10 a=IkcTkHD0fZMA:10 a=RAioF0-LDSMA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=DJpcGTmdVt4CTyJn9g5Z:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=MrhWIHkXN22OVaadGZ4A:9 a=QEXdDO2ut3YA:10 a=a_PwQJl-kcHnX1M80qC6:22 X-Proofpoint-GUID: Unx2l2gcB6AMkkvskvnVmgG6p17pSTjN X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNzIxMDE0MSBTYWx0ZWRfXytJtjB/3kSw1 5gUPdHK/+Xp410SCaCuXdSWplIlVqqk4MNRv4GtlpVLCqoQ0mYHAvSTpePopHiiP32wGv9pnvEC oQC/1lPqcrEBuvvHQ93Qo4hFBODEanm2Cik6A4pdHisE2dGwTbPPhCc6q28IyKziZWa0kT2FvIo sCVR1vb8FXbZ3UV3Hke0UvjtciwWwFTQVKJgwvPeaM5aW0e9EqLaGsyH9bY45537xryQGVuFTbJ hz79RvnnDhcUayAIG/VVJZEXP9HGkuuVEZmVmuABbctXVCmfW7U17HMOaflL+80Au/A6JrN6h/i /VmJtXvA6GdaNOn5TU0c+U5dsE+Cg/O+v1psiaAjXJWNDK/s67QXY15QKTbXKnsskfdbEdx5ajU M+/l6CJavY4og2DhSkxgjB6rGgggNBtt5M3hrFI42vUKyWWp8uyhbQ+It7L870qyggg3F9nirky 0IO4gwZRSOwO2Jep7Wg== X-Proofpoint-ORIG-GUID: Unx2l2gcB6AMkkvskvnVmgG6p17pSTjN X-Proofpoint-Spam-Info: AW1haW4tMjYwNzIxMDE0MSBTYWx0ZWRfX1xzfU1i6NQvD IgXZ4F7u1ywDQ35x1aS9oa1l/blWaPAsP/4MOZeoj3f78sMCqzdYW8SwosgB4yNjw5gtewOjI+r H5gV23ZFkHpqpHXOkCeuMu+p4bW/Vhg= X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-07-21_01,2026-07-20_03,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 priorityscore=1501 bulkscore=0 phishscore=0 lowpriorityscore=0 spamscore=0 clxscore=1015 suspectscore=0 malwarescore=0 impostorscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2607210141 This series lets user space discover the exact CAMSS hardware variant by reporting the top-level CAMSS hardware version register through the media controller (media_dev.hw_revision), queryable via media-ctl -p or MEDIA_IOC_DEVICE_INFO. This helps identify the platform variant and adapt behaviour accordingly, for example allowing libcamera to apply quirks or enable features that cannot be discovered through standard V4L2 or media-controller APIs. The version register is exposed by some platforms through the top-level "top" (or "cpas-top") reg region at offset 0. Accessing it requires the AHB bus to be clocked. To make this possible at probe time, the series first moves the shared CAMSS clocks (top_ahb, ahb, axi on QCM2290) into the PM clock framework, so they are managed by runtime PM at the CAMSS instance level rather than by each individual sub-block (VFE, CSID, ...). For now, only Agatti is supported. But support for other platforms like TITAN-based ones will be introduced in a follow-up series. Reported media info on Agatti/CM2290 (Spectra 520): Media Driver Info: Driver name : qcom-camss Model : Qualcomm Camera Subsystem Bus info : platform:5c11000.camss Hardware revision: 0x00050200 (328192) Signed-off-by: Loic Poulain --- Changes in v2: - PM clock support: propagate pm_clk_add() failures (Bryan) - make camss_read_version() return an int and propagate (Bryan) - use pm_runtime_put() instead of pm_runtime_put_sync() (Konrad) - Link to v1: https://lore.kernel.org/r/20260717-camss-version-v1-0-7ed71fea95e8@oss.qualcomm.com --- Loic Poulain (4): media: qcom: camss: Add PM clock support and integrate with runtime PM media: qcom: camss: Add PM clock definitions for QCM2290 media: qcom: camss: Drop top_ahb/ahb/axi from QCM2290 subdevice clocks media: qcom: camss: Report hardware version via media controller drivers/media/platform/qcom/camss/camss.c | 121 +++++++++++++++++++++++------- drivers/media/platform/qcom/camss/camss.h | 2 + 2 files changed, 96 insertions(+), 27 deletions(-) --- base-commit: 8c7fc7de3b6cc89e68f115ee5ffe28cb93d99e5b change-id: 20260717-camss-version-a8ea61dfae5d Best regards, -- Loic Poulain