From mboxrd@z Thu Jan 1 00:00:00 1970 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 7644C399356 for ; Fri, 5 Jun 2026 09:31:46 +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=1780651907; cv=none; b=az7iftw4yRSCozilWXKqa98UMJW9/Vp+txjf6RHj498Nial/5Bg4y2VkbW9MbhKAiIcLbsCHj5vwyP0pjZ7rdYcDpJ/q8ll10nQ+2qGEKjGhJos6vYB6iCKitqiqwcEm6a/nFn8LAEenMNzqagZT4P4VH+owgRnenB9tLpsjNS8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780651907; c=relaxed/simple; bh=rSBT6+TAaqF35YqT/4bjC92zShTEGzrRj1LcNNhqYfs=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=ngH+AlNvhiaVcMuhOiHMSqORhhcqAExc+0a+lod+4VY/OawpjXRG0u8Ar5wF5sXHfc/zf93Sagbuw6UnfUezwDY8MDw5Sbjx1oodlZx27LT6AyFWJ7lM6x1CqPaw8/Ui4U7bQaquJIq/cCSj+pC9V0fsVyNB4LboLY+ADXFRgng= 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=DLUofgIv; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=N0ikqW/I; 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="DLUofgIv"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="N0ikqW/I" Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 65598l3M3603450 for ; Fri, 5 Jun 2026 09:31:46 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= WS/k+wgA9f1OsJg8r3jynZqlYrCdT0iV++pL/dGGg9s=; b=DLUofgIvQAQhGNfk /bKNuE2nUQitTF84ttk/YBylz57m1wTszZkdi1GBu2287W6yPg492ZOeNoQhbULm 2AW9yCLCHWoIsnI7MhMZfFa3wT8SzhtPQ0S3yiWcHVF+TGcG/nRSPRlQxRcbl8dS 9Z333gDYiRePLiSLI0zXtMiSKZQNN3SwqOSeMwuZYgkLRxptDs8g19Snp06+mnRV I0fOQ43Cnb4GDveSrgaxxdfJjftotQhQG5R7PmYWqQCZ2aGxN4b/rA43z8zJy2Zg Efw3YeeVdd5tSkdrpItZWi8o3p4tAQFfLbw0K9X6XJVvxy20tlXdYH257Kt+rMhn 3PWF4g== Received: from mail-pl1-f200.google.com (mail-pl1-f200.google.com [209.85.214.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4ekmhf9pcb-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 05 Jun 2026 09:31:45 +0000 (GMT) Received: by mail-pl1-f200.google.com with SMTP id d9443c01a7336-2c0c1e112dfso25507345ad.0 for ; Fri, 05 Jun 2026 02:31:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1780651905; x=1781256705; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=WS/k+wgA9f1OsJg8r3jynZqlYrCdT0iV++pL/dGGg9s=; b=N0ikqW/I6hbzgvwrUaoJuLnyGC70cviNNDfoqHwD/kNgqrymuQBRLsIrnXhKQbJsJm WrO5DAUnj/0diAwtfjQJbB9mYC+Umj3sxx6zC8HxxvhFXQmEEadulUIPNZeJaJyfA2jd uur9pbKHKF50w6QuJzX1jdVccCOoLdi6krTcGQNRVAg7A8lcKKct+aLxbzhHozTm6RoN Cen8Qp+tfXaXtx625KvsuxBl7Fye2UI4sEQVL2lNFo3jlTWdxnab+N/zmQgsxhpK57CN pEgbTMZ0EFT7JoNfxh+LCv6phhqzE27pxkVKy217ZoyfSusx0veyRABzGebTRl8t746S KZXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780651905; x=1781256705; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=WS/k+wgA9f1OsJg8r3jynZqlYrCdT0iV++pL/dGGg9s=; b=R8lIgCfDZFKfA0s6ZOguQhOMhyTTfeaCxBwBNw+LqJ0uvnf5vB8RbwuO1Ok1TIvSij ofjaGvtwUUR76y8iY+BL4CAN6Kr1vhmHVCfWbGvzCeVTqukb7463thcI8AV/2r9BTrOt gk+jUbv23c1snQnwkqH+86oExJxYW4G6jfmXhOZ5QozzZfFjz5KytENS+T/0x02UlNbe 7bvVaLSblU50cuA4jblw9uolmBph98k11ChFkgfQ1fWhUVsRBsrZR45HplYsSeLLd+19 4cD32VUoDLNSnLph7JzXX16idHbQqQtIe1yyW3QJ7k0jMUJbqzAdRCxu8LRXOO6t511w iSsQ== X-Forwarded-Encrypted: i=1; AFNElJ9N98ktXbO3h872s4n4cEq2eGd8noIh9ZtPY/VkaRHbBpKHpluKnIaqXLyJskKImy2ZZoqtV1tS+MXz@vger.kernel.org X-Gm-Message-State: AOJu0YzkUO5LxynznQTlXUQmlK0qzWpxCfNCWmnLopghP8BV/t+3PmGt /6Wbt4jie1e9fqvMMJ41zhgYxyZkyf3L0Pkd1MfDCXeJ5HuNd4vdHS5SZedvKWOosCJqBk/2T48 NSm9dBeck8FkSB9NMZsV3Vvcv4DzfShTywkLIPVwOHxA0Z1lsJOgn0PFoMXcmu9Gm X-Gm-Gg: Acq92OHh7u6SwmncB5tWyStSy2BMFbLoKhns2pF+hzCxMUeUz48Hma8FkfbCjjaZYU7 aKcpUmq4afZMmE4ub06W+UrDCd0FiV3mbW5tQE9xVDBsgGddd38jQXaZaw/x4eWOynWbym6KSEj Lm6iMe8q2vE5C2PViOlbuBSqoE83t/1mfPPF2+4/4N/JoKVUj/4o/F1VpTj5ZMHKw9hgqwmAouN 7Kz3F05Nrp46lLqqcQRNQJNIzwARAvy17K8jB773lxhNPLotVJz5lPlvnsZ584BmUHVloqFHpAY w5+ICOm3KiKyC9QIspPdU5DQ+ymEinxQ3qaihaiMG++9Ah/w8UlHhWRwNxpgf5weHuiZ3/8kYX2 Apj7deQSeUis+bdrYK3M3XCMphJIZjMbKnTAR4bH9xuGnPhE6rufNpaBr+nIRtg== X-Received: by 2002:a17:902:ea09:b0:2bc:8f9a:3642 with SMTP id d9443c01a7336-2c1e7e6eee0mr28231225ad.16.1780651904872; Fri, 05 Jun 2026 02:31:44 -0700 (PDT) X-Received: by 2002:a17:902:ea09:b0:2bc:8f9a:3642 with SMTP id d9443c01a7336-2c1e7e6eee0mr28230645ad.16.1780651904247; Fri, 05 Jun 2026 02:31:44 -0700 (PDT) Received: from [10.206.103.106] ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2c164fa3a5fsm91534805ad.36.2026.06.05.02.31.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 05 Jun 2026 02:31:43 -0700 (PDT) Message-ID: <59331aa7-8430-4754-861c-4ba6a4810ccd@oss.qualcomm.com> Date: Fri, 5 Jun 2026 15:01:37 +0530 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v8 2/2] phy: qcom-mipi-csi2: Add a CSI2 MIPI DPHY driver To: Dmitry Baryshkov , Vijay Kumar Tumati Cc: Bryan O'Donoghue , Vladimir Zapolskiy , Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , Bryan O'Donoghue , linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20260523-x1e-csi2-phy-v8-0-a85668459521@linaro.org> <20260523-x1e-csi2-phy-v8-2-a85668459521@linaro.org> <54904b61-222d-4600-ad4c-c03a9952d337@linaro.org> <8eb709ce-3469-4303-9c3d-8d1a221cb8de@linaro.org> Content-Language: en-US From: Nihal Kumar Gupta In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNjA1MDA5MiBTYWx0ZWRfX4oqRmD5upEZO Jzqh4I3Op+IRYFM5OpAWr+dhpqXT580LO8ELgKlr/+nI/uUNlVmBgLvEUQeUI2aAoXfrHUYRPuv ekfu/7aHbCiuMZAlPlyL6u5X5cC9NqZA7Q0Vs+bZ0N30UJpqBytfkSPvivLndqOPcgxFV0wEfmy KeVd7rgfnPTsiT3TDeT7dpVtk76p4loe1F7D6ki23UCYTO4EGNBIJz7z2WL1/Sf72CgnMgEkHrP V3kNyL3rMrmw9SjvyiT6lhzwjm9xCUzAq8nMWhIZmY6sd7uL5b1Pp43yqJSjKUg0GGkKcVEGC+Y KC32cDa4bKLVfGBXRcxWX9y7nf9m2OG7CBl2HkVbqdQR5hkL9rExkXr7pVsJfVfEKNm8aR7qh1D 1E1yFIUINQZuJkNEHtkB90qPPL0tj9CrqCXoSFcT6D3AVtf5tvg7dNYQs3CDmbhHqBjln7ZzV/b TTUE+wCYjqiidahRefw== X-Proofpoint-ORIG-GUID: W-kohTu3G24Kwyrara8XmwaiBiw96lmy X-Authority-Analysis: v=2.4 cv=dfmwG3Xe c=1 sm=1 tr=0 ts=6a229781 cx=c_pps a=IZJwPbhc+fLeJZngyXXI0A==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17 a=IkcTkHD0fZMA:10 a=FelO9ux0wxsA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=eoimf2acIAo5FJnRuUoq:22 a=VwQbUJbxAAAA:8 a=KKAkSRfTAAAA:8 a=f6Fr6PdTwcyk7UrtzrMA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=uG9DUKGECoFWVXl0Dc02:22 a=cvBusfyB2V15izCimMoJ:22 X-Proofpoint-GUID: W-kohTu3G24Kwyrara8XmwaiBiw96lmy X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.125,FMLib:17.12.100.49 definitions=2026-06-05_01,2026-05-28_03,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 malwarescore=0 adultscore=0 impostorscore=0 phishscore=0 priorityscore=1501 spamscore=0 lowpriorityscore=0 suspectscore=0 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2605210000 definitions=main-2606050092 On 04-06-2026 03:44, Dmitry Baryshkov wrote: > On Wed, Jun 03, 2026 at 02:37:48PM -0700, Vijay Kumar Tumati wrote: >> >> >> On 6/3/2026 5:57 AM, Bryan O'Donoghue wrote: >>> On 03/06/2026 13:40, Dmitry Baryshkov wrote: >>>>> Are you sure about that ? >>>> Yes. >>>> >>>>> ipcat I thought designated lane 7 specifically as clk-lane i.e. named it >>>>> CLK_LN of some description. >>>> Split configurations explicitly use other lanes for clocks. E.g. check >>>> the RB5 Navigation schematics, CAM0B connector. >>> >>> Can you please check: >>> >>> CSI_3PHASE_COMMON.CSI_COMMON_CTRL5 >>> >>> 0 LN0_PWRDN_B Lane 0 >>> ... >>> 7 LNCK_PWRDN_B Clock Lane >>> >>> ... just a badly name field >>> >>> CSI_2PHASE_CTRL10 >>> >>> Bit[2] = IS_CLKLANE >>> >>> Right so CSI_2PHASE_CTRL10 controls lane mode, indeed. Thanks for checking. >> I can check this with the HW team. Although the SWI has this knob, there may >> be some limitations to use any lane as the clk lane. AFAIK, only two >> specific lanes are clk capable in DPHY mode.> > > Having clock-names property doesn't mean that all values are valid. > CSI_COMMON_CTRL5 is a physical lane power-up bitmap: - Bits [0,2,4,6] → D-PHY data lanes(LN0, LN2, LN4, LN6) - Bits [1,3,5] → C-PHY trio lanes(LN1, LN3, LN5) - Bit [7] → D-PHY clock lane(LNCK) dedicated clock enable In combo mode, only LN6 can be configurable as a clock lane. The lane-enable computation in phy_qcom_mipi_csi2_lanes_enable() uses BIT(data[i].pos) directly, assuming physical bit positions <0 2 4 6>, but the DT [1] uses conventional indices <0 1 2 3>, producing 0x8F instead of the correct 0xD5. This goes unnoticed because the wrong value is immediately overwritten by the hardcoded 0xD5 in lane_regs_x1e80100, making the dynamic computation effectively dead. Could you please fix the driver to map logical lane indices, consistent with the gen2 camss convention. [1] https://lore.kernel.org/all/20260326-x1e-camss-csi2-phy-dtsi-v3-5-1d5a9306116a@linaro.org Regards, Nihal