From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=205.220.180.131 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796158934; b=c7BRu1zygT1rZXv9kOuRJUDRk5ZztHeXOcw6I1WQArklQ8ygwsZTUvQ7QTpMywsYNlwx WR/GM3TJItUhRv3cC25kg4nlunQsG63MAKAHDj5cZi4KRgzXdxzbPGyEu6uzM0zZPgQPx rPh9WeeCcOZiP/oAfF2UPT/rAsSIRTvUePfpPSpkeuVWGnv9r+5UzAuUKBrn3vujyPk3g WWYm6lxre9naFyeI6goFiXJY9tKbybCzuFcXlWU+o5XXyqqYnEa26y7hGuMhVKQYAppVP 9rsK/43FHYcnlQkVpVMvEBMIcQQD/bsGzddji5FVCubaFjqQiAfkF/VKdME8TWfY7nQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796158934; h=DMARC-Filter:Received:DKIM-Signature:Received:Received: DKIM-Signature:X-Google-DKIM-Signature:X-Forwarded-Encrypted: X-Gm-Message-State:X-Gm-Gg:X-Received:X-Received:Received:From:To:Cc: Subject:Date:Message-Id:X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding:X-Proofpoint-Spam-Details-Enc: X-Proofpoint-GUID:X-Proofpoint-ORIG-GUID:X-Authority-Analysis: X-Proofpoint-Spam-Info:X-Proofpoint-Virus-Version: X-Proofpoint-Spam-Details; bh=Me3B8aBM4M1BI3zHV8QYdRgMEMJBdKCumVBs5B9zVVE=; b=j7Hl6HKSHOn8c11yux7S0C17FlvnOljRy8R0Gg38TRoHFVvUEY5hV6OOgbWXvLG66hj6 99gutsHTAW0mAeXHunx74PX6BYU9YP+2vCLiBUXlh6kHQPzU6pofToZ1t35w3BjZv6upI eI4e94QMJkDJusKISNd1AhI0OVRwgg5b3GhWh9Gq8qdvmCuByRU4hqpilPA6EAcNfGCUG l9MNOvTlHMB859heC6q1uWw5icltCLWL0OWk4fimorHIjJ3MbvwQgnGF3VSPdfyxsBiIP P/9A16lllGXUIwJSt4hljNwtL0fqE/IAu2eSKDnEGvvkQe8POjjqDIa9GcUiDNkjOzA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=Lqe504u7; dkim=pass header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=fylXJeOK; arc=none smtp.remote-ip=205.220.180.131 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6E492606A33A for ; Tue, 1 Dec 2026 21:02:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 6E492606A33A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none 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.a=rsa-sha256 header.s=qcppdkim1 header.b=Lqe504u7; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=fylXJeOK Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6B1Jd2gf2728130 for ; Tue, 1 Dec 2026 21:02:13 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=Me3B8aBM4M1 BI3zHV8QYdRgMEMJBdKCumVBs5B9zVVE=; b=Lqe504u7mwxh4OUZAPFOjZOgGWN TYuCt+Uv6Y2yfoGFtmKR0AXnCGMuYJvhAK/kEEp2yz1YaTGy7PJVZS8R9DlMMgzM 2PGpri30HESYN8U/0eLZ9tRwmN03F+OTRN9osq7B31EJ7fIyS/sh1D8DrS7ZKBXz 06QOZ2CF6ZV9voHlI2L2RzShptRJSN6oJ1mcilvaaBOvd5N4oU45+dTn+vfLn4cx qAo7jxRqh3OpHfwBColcAMShqg794QgT6IaK6jymokJm521QTH8BAmXKnSOvw1DW 0f6FpYjn/pVKeCQFJIh+LY+CMhE6cX03Y2vN+ZyT4zlbb0barXDrlPEXEpA== Received: from mail-dy1-f198.google.com (mail-dy1-f198.google.com [74.125.82.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4ja4k088e2-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 01 Dec 2026 21:02:12 +0000 (GMT) Received: by mail-dy1-f198.google.com with SMTP id 5a478bee46e88-386a65fca25so11817665eec.0 for ; Tue, 01 Dec 2026 13:02:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1796158932; x=1796763732; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=Me3B8aBM4M1BI3zHV8QYdRgMEMJBdKCumVBs5B9zVVE=; b=fylXJeOKRexr75vdOCWfaCv1Dw5ILoJk3l0wu3+9sVNk7PwroEuR+owpJywCpAVjAN 0iNtjyjj/8ZJsLGkhnUhkKSKydIgkamHApKTPEIDAdYcAhPHaIzpqVayVX59VvTjGnR0 xOjf1Ygqda7vIzA5a3qSGeN+D7ODaZTC6vtn+7MAczjO3daMnd7fjGwYLvE9klfUHsMc KzYVB/73mV1dnkbePi5gG+LtiXrfAipkyuHD9ZEuIZmmj9K+jx/lCN4RRkdDOUEvN1xO L/53pfQ6o3BO1ufjVrYzA8sHy3K/8HT/KSwbYbkcUW4fhw+DdtlzmDMOOxjdDbKgE4av 1+/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796158932; x=1796763732; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=Me3B8aBM4M1BI3zHV8QYdRgMEMJBdKCumVBs5B9zVVE=; b=oTBFOIrgziwTV+/JPZxa1dhlGAsDRZDGxELSoTCnYe5jUSF3oOvD/NFr13ybfIGaWB ciFOcyG6mx/ClQEau2ZwbKffYQZbKpCN9P/6lko5bEIsBJ3tzHx3OGoBwbB4ROHDCknO RwsP3yocDaO3aPIX7Va5NbF+v2hhp0fiQpF9SYqtEB3eAWSxiGb0r/qU5gKeEfWz82o8 MM4q4MY8ALDr+rZ7JvwxXSQaUSqPkcn+j0jN2H1QIpGSUWyKzpuRr1sZuCqC5RBjsnNw PYsNuQ6DlYwkqxJZ5dIix4A3zOGM1Xxh1s0iVA6HhicJcRyDDAHf6kvFryxp/mIyV+IV 1alg== X-Forwarded-Encrypted: i=1; AL+hErF1955okK+DUswfNys6FOfjIBIKiH4JzNQgGwn0812k2h+4aA+5p28Blim6m8kYthteeeVmPSPBkZLU@vger.kernel.org X-Gm-Message-State: APuU4Z/17VH4Tf6Hwj5qfaAM413Q/RKtJqee4JiquBQ9uFVVRLKERhTA lHAK9pr2p0F1U2N5BIZIgIimRGE8peeibNysyiN9j3uIHatutmwS81+HUDJwEdmaNpa4kvZ8bvM slCDFddrqEmjB/NtPGfuGNZapSxtOo69YinWe6JfRX5GEk0/pt1rjSQ23UQ3kgx41 X-Gm-Gg: AZFdTZeYaI+n9a8XcHyAzA5EBc7RiXzWqRBTbTPLsAJ0jH2ufdUU77ute0BHFSP0SeC 863rKE+WuBslFi4hL43ani0ByyyGFcMsYrO/+16eOe8I1PPn9n+0ICeei1vklcfSmNqBktIiU60 WPh1KSkZDLueeLPTlsvcU50/zsLF8aF6p39kBPKvqRVzkFSKDK3J9MomNkye786yzhcpCP54yV9 XNEZxE2ukJP/lafEcb7GPxrlwkIIWUe2ILwAdzPvfzfw9hJ4AUqRo5WlmMQvY61u1CL5fmEwBaH ONHEGjmgCE015vgOhlU3gNfjempJnXqtOQzQ9B6wdh8Pr4SIbXgbNf5f4SdTWivuPc1Glp8K1Wo otrjdTnU8/xbe+ZmpFWzSHl1CT2iEXwgTUFU1uP1Snak4x17oxOywmLzjVPDhLDRQtmTNgn1GoI jWTjES6KqV9tkkYtC0g7/VaWQsJF+x X-Received: by 2002:a05:7300:d509:b0:385:ac93:91f4 with SMTP id 5a478bee46e88-385ac939fc3mr47743777eec.26.1796158931360; Tue, 01 Dec 2026 13:02:11 -0800 (PST) X-Received: by 2002:a05:7300:d509:b0:385:ac93:91f4 with SMTP id 5a478bee46e88-385ac939fc3mr47743722eec.26.1796158930541; Tue, 01 Dec 2026 13:02:10 -0800 (PST) Received: from hu-aarunnan-lv.qualcomm.com (Global_NAT1.qualcomm.com. [129.46.96.20]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-38566cd46c5sm140911461eec.11.2026.12.01.13.02.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Dec 2026 13:02:10 -0800 (PST) From: Anusha Arun Nandi To: Bryan O'Donoghue Cc: Vinod Koul , Neil Armstrong , Manivannan Sadhasivam , gjorgji.rosikopulos@oss.qualcomm.com, hariram.purushothaman@oss.qualcomm.com, akapatra@quicinc.com, jigarkumar.zala@oss.qualcomm.com, linux-phy@lists.infradead.org, linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v4 1/5] dt-bindings: phy: qcom: Add common qcom,csi2-phy Date: Tue, 1 Dec 2026 13:02:03 -0800 Message-Id: <20261201210207.1049452-2-anusha.nandi@oss.qualcomm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20261201210207.1049452-1-anusha.nandi@oss.qualcomm.com> References: <20261201210207.1049452-1-anusha.nandi@oss.qualcomm.com> X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMjAxMDA4MyBTYWx0ZWRfX9Gb6vhAupJoD YFTeiPux29C/eD8MpTFB/ZY/96uIDUjWLw1i4GBwNxq3xtGfWW8TdpFE4JYF5v0kIfCQzMZ9onG Zecra1RDeaspYR3JmPt/nflv5+yFspk9C/NwhXNu1VaJlvXQLUIkK5Y7mgELlpzT2zoGKSV66h5 1FuQADgCM6PCr7hRt6HHQTTaZGWlZqMfkXjzwQmQ2GwPCVtUa+ztsWQi61AV/Cx1WuqEkJUqsgN ztz0uhpoR2swi2dR64LC7ZOydMdT6DwvoE+U5SHjrGrBTQlZQPPMJnhoaL+2R72yqcYZYUvcr/O gKyqankGMj84hs7okfnoqGjc/FykLpGCMk02/kN5MsjmM73PgjRpP/eD7G7hsB8Mz3wOpog3d9P gBOjcpPeGny0vqYYPdiwY6uwdwGS5sMEEdst/wacCi/vIXGzl+FIxkl3oXeNEPwN13XL5E5t0Kp mPvwa8b7rgJ7y28rz5g== X-Proofpoint-GUID: dtmBn3qrWN-v7NmPlYIOaIeyUs2w_KYQ X-Proofpoint-ORIG-GUID: dtmBn3qrWN-v7NmPlYIOaIeyUs2w_KYQ X-Authority-Analysis: v=2.4 cv=I+Tw19gg c=1 sm=1 tr=0 ts=6b0f35d5 cx=c_pps a=wEP8DlPgTf/vqF+yE6f9lg==:117 a=ouPCqIW2jiPt+lZRy3xVPw==:17 a=pUM-KoujPXoA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=gowsoOTTUOVcmtlkKump:22 a=gEfo2CItAAAA:8 a=EUspDBNiAAAA:8 a=Qi6pjpdL7GA_D8ehSiUA:9 a=bBxd6f-gb0O0v-kibOvt:22 a=sptkURWiP4Gy88Gu7hUp:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMjAxMDA4MyBTYWx0ZWRfX31bUt/0/M690 BsPnIbjUmaGqPDQ9f32SnEDI6ugtrHpk00PluQrUI1GwRJHrxQaSyonk2ay8sAUytM9ZHqBcec+ +jMhchuXAJ3r3Sm60rBcjZbZSG4P3Qg= X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-12-01_04,2026-12-01_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 suspectscore=0 clxscore=1015 malwarescore=0 spamscore=0 phishscore=0 adultscore=0 lowpriorityscore=0 bulkscore=0 priorityscore=1501 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2612010083 SA8775P, QCS8300 and SC7280 CSI2 PHYs are bit-for-bit identical in devicetree shape (ports, bus-type, data-lanes, operating-points-v2, clocks, single "top" power-domain, vdda-hs/vdda-lp supplies). Describe all three with a single qcom,csi2-phy.yaml and a compatible oneOf, rather than one standalone schema per SoC. QCS8300 is further required to be paired with a qcom,sa8775p-csi2-phy fallback compatible. This lets the driver bind QCS8300 nodes via its qcom,sa8775p-csi2-phy match entry rather than carrying a duplicate. qcom,x1e80100-csi2-phy.yaml is a separate PHY with a different shape (3 clocks, 3 power-domains, different supply names, DPHY split-mode support) and is left untouched, but port@0's DPHY split-mode definition (two endpoints, lane-count constraint) is cloned into this schema rather than dropped, since this PHY supports the same split mode. The supply names are vdda-hs/vdda-lp rather than the hardware's own power-rail names, since those names aren't guaranteed to stay consistent across future platforms using this binding. Co-developed-by: Jigarkumar Zala Signed-off-by: Jigarkumar Zala Signed-off-by: Anusha Arun Nandi --- .../bindings/phy/qcom,csi2-phy.yaml | 201 ++++++++++++++++++ 1 file changed, 201 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/qcom,csi2-phy.yaml diff --git a/Documentation/devicetree/bindings/phy/qcom,csi2-phy.yaml b/Documentation/devicetree/bindings/phy/qcom,csi2-phy.yaml new file mode 100644 index 000000000000..44791802a3ed --- /dev/null +++ b/Documentation/devicetree/bindings/phy/qcom,csi2-phy.yaml @@ -0,0 +1,201 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +# Copyright (c) 2026 Qualcomm Innovation Center, Inc. All rights reserved. +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/qcom,csi2-phy.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm CSI2 PHY + +maintainers: + - Anusha Arun Nandi + +description: + Qualcomm MIPI CSI2 D-PHY. Connects MIPI CSI2 sensors to Qualcomm's Camera + CSI Decoder. + +properties: + compatible: + oneOf: + - enum: + - qcom,sa8775p-csi2-phy + - qcom,sc7280-csi2-phy + - items: + - enum: + - qcom,qcs8300-csi2-phy + - const: qcom,sa8775p-csi2-phy + + reg: + maxItems: 1 + + clocks: + maxItems: 2 + + clock-names: + items: + - const: core + - const: timer + + interrupts: + maxItems: 1 + + operating-points-v2: true + + opp-table: + type: object + + power-domains: + items: + - description: Titan Top GDSC - Titan ISP Block, Global Distributed Switch Controller. + + power-domain-names: + items: + - const: top + + vdda-hs-supply: + description: Phandle to PHY supply. + + vdda-lp-supply: + description: Phandle to PLL supply. + + ports: + $ref: /schemas/graph.yaml#/properties/ports + + properties: + port@0: + $ref: /schemas/graph.yaml#/$defs/port-base + description: + Sensor input. Always present. A single sensor is described by a + single endpoint with one to four data lanes, numbered 1-4. The + clock lane is position 0. + + DPHY split mode, where two independent sensors share the PHY, is + described by two endpoints. endpoint@0 uses data lanes 1 or 1-2, + clock lane position 0; endpoint@1 uses data lane 3, clock lane + position 4. + + unevaluatedProperties: false + + patternProperties: + "^endpoint(@[01])?$": + $ref: /schemas/media/video-interfaces.yaml# + unevaluatedProperties: false + properties: + bus-type: + enum: + - 1 # MEDIA_BUS_TYPE_CSI2_CPHY + - 4 # MEDIA_BUS_TYPE_CSI2_DPHY + default: 4 + + data-lanes: + minItems: 1 + maxItems: 4 + items: + minimum: 1 + maximum: 4 + description: + Data lane positions following this endpoint's clock + lane. Positions are a per-port logical numbering, not + package pad or ball positions. + + required: + - data-lanes + - remote-endpoint + + allOf: + - if: + required: + - endpoint@1 + then: + properties: + endpoint@0: + properties: + data-lanes: + maxItems: 2 + items: + maximum: 2 + endpoint@1: + properties: + data-lanes: + items: + - const: 3 + required: + - endpoint@0 + + port@1: + $ref: /schemas/graph.yaml#/properties/port + description: Output to the CAMSS CSID controller. + + required: + - port@0 + - port@1 + +required: + - compatible + - reg + - clocks + - clock-names + - interrupts + - operating-points-v2 + - power-domains + - power-domain-names + - vdda-hs-supply + - vdda-lp-supply + - ports + +additionalProperties: false + +examples: + - | + #include + #include + #include + + phy@ac9c000 { + compatible = "qcom,sa8775p-csi2-phy"; + reg = <0x0ac9c000 0x2000>; + + clocks = <&camcc CAM_CC_CSIPHY0_CLK>, + <&camcc CAM_CC_CSI0PHYTIMER_CLK>; + clock-names = "core", + "timer"; + + interrupts = ; + + operating-points-v2 = <&csiphy_opp_table>; + + power-domains = <&camcc CAM_CC_TITAN_TOP_GDSC>; + power-domain-names = "top"; + + vdda-hs-supply = <&vreg_l4a>; + vdda-lp-supply = <&vreg_l1c>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + csiphy0_in: endpoint { + bus-type = ; + data-lanes = <1 2 3 4>; + remote-endpoint = <&sensor_out>; + }; + }; + + port@1 { + reg = <1>; + csiphy0_out: endpoint { + remote-endpoint = <&csid_in>; + }; + }; + }; + + csiphy_opp_table: opp-table { + compatible = "operating-points-v2"; + + opp-300000000 { + opp-hz = /bits/ 64 <300000000>; + }; + }; + }; -- 2.34.1