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 AE68633A9E8 for ; Wed, 15 Apr 2026 09:42:05 +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=1776246126; cv=none; b=djcJpmAfLi6EQn+XnHn+UuX6lf22bDFs5n/P83/sq14pVHHZuC4fLJg+O1D+zYmSJavFDrDBDHpChUDL2oIyzXJmP778OAkH/WiRs2gdbeGPDPADdXtD4Qx4cGXucK8a9ZNXGBruHzooEHbejsxTWbLGk2hxLpFpQXAuUEtFNG0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776246126; c=relaxed/simple; bh=KboxyMTnclITlovOtCeHt/2q4Az468hfl1/29hD1Bpo=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=CWMUfPfntcEEIp5MPMv1RR5oRAlbXZGA6DjEUBFgDoDOIrGU0CFCx6nU+wHi9RDUY0Z7KLW064i1omnX8JzqXj4jIKIxqZ1maGrsbuNZp9M5OC53wOInaGcdPaRl6owAAf4tZedpuukUQ99wpr0gA+c0okMZ2osGVf9N5ZxC5K8= 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=ZCMTYzUd; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=LRiAOyhV; arc=none smtp.client-ip=205.220.180.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="ZCMTYzUd"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="LRiAOyhV" Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 63F3qiDB1701772 for ; Wed, 15 Apr 2026 09:42:04 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= 8au+N/1MLaPhi7Q+5KjJ+7n0ETdu8nJODsL00VdDp6o=; b=ZCMTYzUdw7kLLoms 3BiS3Nm3C5g4C01oA+Yx8kFfiIUsdntcJ3bZi0S3rVuWnj0tSglRgzViyXTWAyDl hjQUBHQcLxEAjYhXSah6NuSc0xG49gviLc9z+N1so3PA0+wOuHvHJn29ozQGaWrD 1aV62Qu51ut300p2i/R21a5ZJp0+JBJ3vFwVXp/q8X3YgzfRpGFAbGxMkIpHVMRB T2RZzH8uKC5I1MPicRBtzBjA9SIU/gXwfKnNMkKrSiVlB7280AanJrp3mtnNIBvi jQRN7FM3iB3ShxsWiBB1wL9SySpptpLFC32Oo4O8vrvkE1R2SAlDiFDdN/3FQodH 32v9OQ== Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4dht56tpvw-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 15 Apr 2026 09:42:04 +0000 (GMT) Received: by mail-qk1-f198.google.com with SMTP id af79cd13be357-8d56ae62e86so198839485a.0 for ; Wed, 15 Apr 2026 02:42:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1776246124; x=1776850924; 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=8au+N/1MLaPhi7Q+5KjJ+7n0ETdu8nJODsL00VdDp6o=; b=LRiAOyhV8SkWgE1LlsYCv26Rlum/Xo1jgC445etmkuk65ArjnX0VLweHhpgdiRbenW ursycaUW/GhTwSMCTq38sM7LQY0SF1/pjSSjhwVl5QxBDCiSjK+Kd05oO/INzF6x/1KI b/WojQdRuXEiDI9h6U1U7n67tvHFFmRCvwIifJOwuFrwZn/O5gfu9x9J5R7c6XUfIVeN yajRCGNUBTbnJK1kSO7O8ckRmNSZzPMtpmtbHHQ0pemYMToYQY6/bJPDCZJW59N9VaaE B+lIcGvWn39HM6ogGgW3fkZcl5h/wpjie54NUYvx4jUof3XbnnTzVFdU+E5uagnwzGIV fyaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776246124; x=1776850924; 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=8au+N/1MLaPhi7Q+5KjJ+7n0ETdu8nJODsL00VdDp6o=; b=SshyC33zOIhVM/gsiHJ+F7PztkQes7Wldd8pEQILi8xDmFtNWElH4KwQmH6JKYujFs 07ULOijHtiLyDGqk5imyhJW28XhXurqWeBPIspj9AMKuyJCwXVwT1N2nzp6vBQUs8K6X XkzFOruJjtQn0dnwZewjtweV4u1tTiljrKJDSGtH/dymI+e+o53V7NVRWWRWWq4jNzni fZyizhYxVkxoZ1R51XT2bNSAkTHr3jhy3TvH4YGiQVgHYuJO2PWGVNd9X1K3XeTwQ2Ey zigcoXxJ86hvQ0xlPOZg6OitqKRD/h3HY7uPq84GY0EUc2LIrEmW3yTXfz75a4Dt59A/ dEFA== X-Forwarded-Encrypted: i=1; AFNElJ+9t9JVuCb5sYofoIV65pVXb6ULHSyy/JeWFQ07/pjeLwCJJrk5NIEAbLVh2MltTxdZKytwl/jmJ6MSqBM=@vger.kernel.org X-Gm-Message-State: AOJu0YwpRagI41RWZdGm9q7O4ehIl6oMl0Wsl8grzKMvY2rnUGYFAd9X Z5zt7HBBKqLn+G2AxXbl1xN2UcRu/Qg9EWdpJw9XdksvByOlWnAHyBvoPXGUjv1AJPsHu22oB/2 cNN+VJNxiUCTJygdTZtNHz0t2JNrO7+Ww+FToilSZURuGVxm2ezfjiDzYajqaHcfE/E4= X-Gm-Gg: AeBDieuS44Fcpoev0+Ns9SvV68Ym5iJRf/k5yMdPIbd/hZkfsMb/LKHVXKB550q5ZUK d6ucQ2ix+BkQxZZWTB7wd/wIAWTiy1iz9vRHl1057AnbIRRfWVKlkqmk0TsLb33xvI6JawOOt0g 8M79n3CMk44qf0ICDW50YxDdnGoq/A9nA4bNY89KAEs7y03onWN9gKFW18reXNlYIvjtF+VLryn dbVXJAbPH6ar0cEtwRHOu8zhsJ59lY7YLW/bd/HowooppWz+Tu2LUvxgxgLb3R4xGe82kiGoIiV gpHIc5ZRfO1N6KJkEsInnJ3RvLKm00DI/2PmoH+FUR2Z+YPWDx40TmThW6HO8Whjth2VahoLJG6 TEnVSMI7DtMJGUv7T1ciTYIMKJf/9MEvXdkNvD+CD/LzcdHxIxeHtS+IkofdwiFWMqNP6JAXvvs QtsOtqqZEyfR+k6Q== X-Received: by 2002:a05:620a:3186:b0:8d5:ddc3:a3ab with SMTP id af79cd13be357-8e4cb303470mr158105185a.4.1776246123927; Wed, 15 Apr 2026 02:42:03 -0700 (PDT) X-Received: by 2002:a05:620a:3186:b0:8d5:ddc3:a3ab with SMTP id af79cd13be357-8e4cb303470mr158104085a.4.1776246123537; Wed, 15 Apr 2026 02:42:03 -0700 (PDT) Received: from [192.168.119.254] (078088045245.garwolin.vectranet.pl. [78.88.45.245]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-67238000e68sm249860a12.25.2026.04.15.02.42.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 15 Apr 2026 02:42:02 -0700 (PDT) Message-ID: <5bf3589e-0ec1-493e-ba10-db8237a18d6d@oss.qualcomm.com> Date: Wed, 15 Apr 2026 11:41:59 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v5 1/2] dt-bindings: phy: qcom: Add CSI2 C-PHY/DPHY schema To: Bryan O'Donoghue , Neil Armstrong , Bryan O'Donoghue , Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Vladimir Zapolskiy , 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: <20260326-x1e-csi2-phy-v5-0-0c0fc7f5c01b@linaro.org> <20260326-x1e-csi2-phy-v5-1-0c0fc7f5c01b@linaro.org> <7712fbdd-a225-49f0-aeb9-ebcbb9d5abac@oss.qualcomm.com> <1f38187a-9464-4aa9-b70a-03b767349d56@linaro.org> <016c03b8-27c3-41dc-a630-8e7095db1f88@linaro.org> <456ded59-d13e-4b61-975b-97ca48b5e771@linaro.org> <76ea03d0-d41b-4880-a48c-06570eb089ed@linaro.org> <0101d8bc-1ae8-475e-bb9e-cc1e16db87ec@kernel.org> <6d5ebab6-3c4e-4a1c-9578-6e926cbd96de@oss.qualcomm.com> <6ea214cf-e68e-44c6-ba0c-38aa0a644ae9@kernel.org> Content-Language: en-US From: Konrad Dybcio In-Reply-To: <6ea214cf-e68e-44c6-ba0c-38aa0a644ae9@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Proofpoint-ORIG-GUID: nSNlihuBZceaX5b6HRFXgcJxljbJdzQS X-Proofpoint-GUID: nSNlihuBZceaX5b6HRFXgcJxljbJdzQS X-Authority-Analysis: v=2.4 cv=K9gS2SWI c=1 sm=1 tr=0 ts=69df5d6c cx=c_pps a=qKBjSQ1v91RyAK45QCPf5w==:117 a=FpWmc02/iXfjRdCD7H54yg==:17 a=IkcTkHD0fZMA:10 a=A5OVakUREuEA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=3WHJM1ZQz_JShphwDgj5:22 a=MidpbNYMP4jx3VwMSCAA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=NFOGd7dJGGMPyQGDc5-O:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNDE1MDA4OCBTYWx0ZWRfXzbXIrPy9a2Uf eTHnsB1xYt/lZJACFmZjUHvDAsVwEjpU6/Q2zVpbx4c6+nqnukmxs+iEqnzZvXHWUjEzMlEcYGX aEwrhN49AYGS2r0SyMvCc4UD5NyHY+miALbQW6ok9GtI7pFUQkW7AGqxBxh16YzKezKSL+WTYNn rx8p8UWqspEyYfbjl1QmBMLnnBYrotxjFt3RcXsl0kA8o2SbEbnU3eF5KVIpS+cWJTcwcIDKV2z t+wiS6wwrZ1oH9Bhgy8dPQyxm20BdfL3E6OtgIzd2buA/S/hczyOz8YwBJw4XbwnwamP22kgWLD zDFtlifzwj8CPMvJj3eoyd6zYhg1h5i7+MsJcWi0tUwVvInj7wMr60QaF8UEHepmbepYZ/61SGc ZXYpQ7ow41Pv+xqX77OWBCIayYn1U5yO5rrHy2Z9XpHoF6vRdOC4cOe6HMcWwhdmDcZVv8jB7sD +l+LkBy0JaNjK5cyneQ== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-04-14_04,2026-04-13_04,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 impostorscore=0 suspectscore=0 malwarescore=0 priorityscore=1501 spamscore=0 clxscore=1015 phishscore=0 bulkscore=0 adultscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2604070000 definitions=main-2604150088 On 3/30/26 1:41 PM, Bryan O'Donoghue wrote: > On 30/03/2026 12:34, Konrad Dybcio wrote: >> Let's take a step back - since any CSIPHY can feed into any CSID (at runtime), >> the resulting nodes would either look like: >> >> // hardcoded, m may != n >> csid_n: csid@1000000 { >>     phys = <&csiphy_m>; >> }; >> > > Well that would be wrong they can connect to any CSID. We'd be churning the user-space ABI and imposing an artificial constraint on what the hw can do. > >> >> // determined at runtime >> csid_n: csid@1000000 { >>     phys = <&csiphy_0>, >>            [...] >>            <&csiphy_n-1>; >> }; > > This I think works well and actually maps to what the hardware can do. This would be where to talk more about Neil's mux. > >> >> or we could store them once, centrally, in the "CAMSS_TOP" node and >> pass handles around as necessary: >> >> // camss "catalog/manager" driver/library provides CSIDn with PHYm >> camss: camss@10000000 { >>     phys = <&csiphy_0>, >>            [...] >>            <&csiphy_n-1>; >> >>     csid_n: csid@1000 { >>         // no PHY references >>     }; >> }; > That could work too. I personally think this is the cleanest approach, at least from the dt-description standpoint. For combo mode.. I forgot what the conclusion was on the sensor-to-(CAMSS vs CSIPHY) connections or whether there was one, but in any case, I think that data-lanes and bus-type could be aggregated across each PHY instance and the final operating mode could be chosen based on that, at runtime by the driver that managed all this (say, via phy_configure()) Konrad