From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 253EA606A31A for ; Tue, 1 Dec 2026 21:02:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=vsDzywBK; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=casper.20170209 header.b=NBlE28cV; dkim=fail reason="signature verification failed" (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=Lqe504u7; dkim=neutral header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=ZeFdcI34 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=b36XQ4o4lzdupBYxd2qnmIujYw5T/OHxflDvy7QHryk=; b=vsDzywBKrVUrjkGAf9aq+8zaIM cknUnNyMKtm1afxeuH1mp9tR7olooPsHjZR8VKM9RWGyTZdnqqafzrXqtNnEhaIHCylvBJb8wkE3a bnwePQOfCKasfdqJ80/pGEWaiPWaeGQPjD2okxmd6Aou9dAPedQ8ar3uQeVNbbx1e1YEXW/bToqi8 JTbelnZEFX75zlg/+Do6IWrdpjJZwJmten9hCNucjj5FzbnPMZuIGlChE/CHo9dq86KHq/TVDpCSQ g3WP+ICyyc+YmUSmjnTf8CRuT2GaQsXDikxi0olJDO9bzlMVReCG3DOHjL9Y29i0T5B9bqeIRf+vs G/NhWFIg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYUzi-00000009S6r-3goQ; Tue, 01 Dec 2026 21:02:34 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYUzg-00000009S6a-2EQf for linux-phy@bombadil.infradead.org; Tue, 01 Dec 2026 21:02:32 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=Me3B8aBM4M1BI3zHV8QYdRgMEMJBdKCumVBs5B9zVVE=; b=NBlE28cVcPFe0btppxA2M/dvf0 uGUuWB3IVLe/GH5O26UhxKyzSo377XG0N1sfZ/w7NHFkK7wHOkfEh2W2MbP7KR8DfNIaqNHDkWO+A Ik0+HSgCbBq42hG09gXhb2W10ifYii5gNqqELyBtfvCOpTZeTa6Hr5dsEpxFdb4lDgbga77HSmhcq EZzLmTqRVPKIkrAdZbJEZhgumrIQ6cYlaaLX75vj/QNpzKmpelSOEixI+DHOCs+XIumqdGvNe84Ye Yr6CpDFDZHmWCsodgd7xMGtoYrfXoGiHWCJ7eX1TN6zFmj9r8OpBLCzW+JVfOIDTTJAfB1F8GX//j eKLy3Gng==; Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by casper.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYUzc-0000000Fz3D-1ld3 for linux-phy@lists.infradead.org; Tue, 01 Dec 2026 21:02:31 +0000 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 6B1JfONJ079526 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-f199.google.com (mail-dy1-f199.google.com [74.125.82.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4ja4m8884w-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-f199.google.com with SMTP id 5a478bee46e88-386a65fca25so11817656eec.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=lists.infradead.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=ZeFdcI34PjJ470jKImAWhAxEHVNMN1KGxHwkZ3dptjgkCdqBVi6Ejgq0PSHrfH8VlX orKXXvsg6o0cyeskvbUGcXORCIabMCz0GgyMUXo0ekCtaOBgfYXymFFt46tr8oo7ULJN xtjgoJM27C+kmyU2n3ZtcG+hZnOwkUz9fCPzrIIo5CzGCD5qYskJH8rQlk4uZP2Zj/rz wXSh/upcSDRetdM3hhcw/sg5lE9+p7fqjdNYQlLDYbFlsl6GRLNKzQs2mmGFaPkjo+n8 2u6NsottDxgCmu/WV8ZeSFSz9S+Nt4CQVdpi8tujvmAoEqAcLKMWnAPKP6uNLt48KUL1 l+ZQ== 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=gLpQs4dFosFlfvgVJvfW8fxi3tgAAjFAnP+zN1NXwlRXaV9RSAUv2E025LbwD938Pj SDTrDnspViJLhu0SrocNsu+sK1g45zcPuW6rgTXIeKC+R8FlnjAQl8qintYAMOJCdruG M7KlQ8KeTkIawdA3So7Yb1knKKx9wZwbsRT1utl3/NIXrnjPEsSOk2f7R1mmpmFHFze7 jGtvA3ga4HkGzBDWuV9J60jGFxdnYRVAZ1nTyettLtYOGvtKE46vn7X9W7ol+cgUsf4V W2STM0bueBt20/lhRgx7Qo2r7Ao7GrCXB2H6Kv8K+jsHE2fTZecYKWEY65q4Npy6LfaK oCBA== X-Forwarded-Encrypted: i=1; AL+hErEskcQ/ihiMST/6DhzAEmMvsedMit5UkhGixE9QY1KCzOzh8meIw1A7DY03ocwUbcUm8TyR0yPOweM=@lists.infradead.org X-Gm-Message-State: APuU4Z/XUZYuOEbgSHtmQO1vm1aHtKfixlP7GQI2YDkA8jDP2Iu3XQl8 TJQKLFAjdSYX5CJNi6JzQxuAuzyZg7WOceqMznylancKJP8kT4udctU0TLNfx0PXzw9grddJYQc V5Z3YMrKsMD7XVeCvpseqljKaTcSuDs8Lia7KgIwBF3AFtGwB8/qwIWITavYGbBzgRv6Pb0EwVi t2 X-Gm-Gg: AZFdTZc5fmnkjL7V9JNN+aYcmfmMu0ZBH3A/kV6mOPgX6NBIN5EohDhtfzTyjr2ArW4 B2icXNRuMvaRzeUCVR7gB2NQwNJ4fBoqLhl6Ziz0fkrMOPRzEYRmXt0IO7bsaz729Z1Uw0kvmBO MJR8Xa6xo26T8oVcAshrpMmE4SsJris+3hYZXnmZ83duLMBXQoI3MD+dNUR7F82SJ9u11KFJy09 nSUcIe3Cvsba+UgQzlmyqU4txExmDix1xuK250NkWlb/XP4er2P8liIKuvao8vop5lvy1d1p+9+ aPd3a0P3+iSnWFuovHaeUU63lv4FmXiIflvFbrJKArHQQsO8OnkKJd5/zsCLxFifTL2H2aUY0// C44IXvm2i+kXwj/YM780M6o5Fn+RUQQn/SZY701M6ZZ2Vbfm4EWQWqwuckzEPu9WFi89OioQoES hhqt68kKZaZT2IHXFznXfkgPpKST5x X-Received: by 2002:a05:7300:d509:b0:385:ac93:91f4 with SMTP id 5a478bee46e88-385ac939fc3mr47743776eec.26.1796158931353; 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-Archived-By: MIME-Version: 1.0 X-Proofpoint-Spam-Info: AW1haW4tMjYxMjAxMDA4MyBTYWx0ZWRfXz4atzfTWSbrD rB9xmpo37DPDSkSerBVAw7VQmz+k6yATk/le5v/xDl8nCcLssrTheUkEZBsCE8lyoJVSOg5ovC8 jr3zjn5mrZjyZVjNIzv3CZ3xUVppZj4= X-Authority-Analysis: v=2.4 cv=P6CvFSAu c=1 sm=1 tr=0 ts=6b0f35d4 cx=c_pps a=cFYjgdjTJScbgFmBucgdfQ==:117 a=ouPCqIW2jiPt+lZRy3xVPw==:17 a=pUM-KoujPXoA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=3WHJM1ZQz_JShphwDgj5:22 a=gEfo2CItAAAA:8 a=EUspDBNiAAAA:8 a=Qi6pjpdL7GA_D8ehSiUA:9 a=scEy_gLbYbu1JhEsrz4S:22 a=sptkURWiP4Gy88Gu7hUp:22 X-Proofpoint-ORIG-GUID: MeL-hTn8qcPuR03FS7PKmnRHkWX399aY X-Proofpoint-GUID: MeL-hTn8qcPuR03FS7PKmnRHkWX399aY X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMjAxMDA4MyBTYWx0ZWRfX55HUzmVPex2+ aWCNL3VDX+GtdmdFNw2XSIU7muqQsBKotPJFHB02Mu8pE2bQdikXJ3bcJ8BdbpT63a2CGGvLYMw iWUWIZYIgQPH92I5Vkbr32I3f0L//XZ3slhd+8umZIj+pcuEodob209BfRWBfSwnzu+IxwhHIsW R/4cRYTGXc7CP1law2Wd/tmKTSD9yoVlo9fSG44CzXwSvWhlwTW9HN5DdQI9De0rq97+v0aKnDd xQbalgXBY0booP5B5kCpuEAqebvMTkapbORwmEplN66+bK6LawXu4tFl422uZsp7XDvJ/1KfEIp Sl4iUyqVfTyT7hVPWRGAkvvkG4khwKsIGk1DP+rst2kTP5zz209h32/pU4SO7OsAeVMI/NXGvTG UpS/ryFnq8gRlo212mXteq8n+Y5/3rNMqRevd1evrUp6XJc7VpegGarjEZffHSS/L1eJC/6VuIM 5nqP5NPn87dMB/skxcw== 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 suspectscore=0 lowpriorityscore=0 adultscore=0 clxscore=1015 priorityscore=1501 bulkscore=0 malwarescore=0 spamscore=0 phishscore=0 impostorscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2612010083 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261201_210228_734959_2A740463 X-CRM114-Status: GOOD ( 14.70 ) X-Spam-Score: -2.8 (--) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-phy" X-Spam-Status: No, score=-16.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 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 -- linux-phy mailing list linux-phy@lists.infradead.org https://lists.infradead.org/mailman/listinfo/linux-phy