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=HMdAaCfNCnhmeUvJ71dLj+GSgrH+d8CIM1MDPdTHpoJXTMPfjuuAlNZruTaIUcMYlifb 8ULjz1PefLBq2oKb+eXY2q+OstYv+C1/lZoXVSZSpfQYJVF0kGWpxQ70yta+ivLCNrdEu /Q9mK4vZLAgzV0+bFPfUsnZuxpNNTGS34HUi+e5qu0eVsx1l5wjM0kzZjucGyRlK9Prb7 yQADsx8ULKtIXTjbSSFt0h/R+CWoHs/gZ9dVL5TmH8b/go+sAn6BXx1rp6WRvSrxjIUqk tOZoVUGiTilzgiMghC8dYxFlnaxmwhyy4+0Zc6Ld7vhwWVfrfTXDZkm15oSLO1Xnqwg== 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-GUID:X-Proofpoint-Spam-Info: X-Authority-Analysis:X-Proofpoint-ORIG-GUID: X-Proofpoint-Spam-Details-Enc:X-Proofpoint-Virus-Version: X-Proofpoint-Spam-Details; bh=Me3B8aBM4M1BI3zHV8QYdRgMEMJBdKCumVBs5B9zVVE=; b=XDMRLEPTtATDihZlPjSyvcdHJkZzaxFtiEsS1A3zVGPGcnkfZgFzXKn/flfzIAVEOKwa v/xMLptZxttGdLgWnugaqSTjuEn2VzE7cfOWkrOYo/4hlS/3p1Ab3i8khP85lTfAxWRZw OIXA1jbHPom/XK8U+H9WoJ/np9MNDH77wE8Mo194nDipcq3aX9VxL5+lfnZ9+5ZBZkW5w +UZv+1ooAydWP6KYHfOfzh7Voc/w0elODRkCch2diJgXTJM4T8fC6T+MjIDsSxmPrXIy4 MV7vFDsia57KjPkAm0FF1ADjnI/Jw0h5XN8uhFAz1zK+xLjHy79nMf6GdleNLMZ9CIw== 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 DD72A606A331 for ; Tue, 1 Dec 2026 21:02:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org DD72A606A331 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 (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6B1JfchC2352010 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 4ja4m9g81e-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-386a65fca25so11817661eec.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=QxgXi/0WMStrrX2x+HvR7n8pdok4Gsbm1iiRSratEfW4FPSlef3KfFzxzykIYFCMxO UpIiEAhgd4ubjMLCKPExxb068LvJRLp4fbF49uxV2UwnJRsv843c14XYRb1JhN0KQy7w yfT2UajyPvDHCVCsVGMNNJrr1HBrEjjuyZsoHiHdtIYJ4niJstDNFArQ4hbFHjcJ3mVV OdIxcMxdaq0y7IkGa2v/ZEDj0pTQVQkeMuzclm1E/aVmMmJ0kV0+POqQC+QZ0+10l27d A27pfXfiUco192yxM34gJH05C1vjA+9AyfEuqHzf3YgqAf3LX29XSsgoYoVVm/MrvLAa ETfQ== X-Forwarded-Encrypted: i=1; AL+hErH0GuAvADsIzQ7nESHCZIJ9DyE1/HtuUqpqe7z/cxSAMXdAqI4qpwe28lgTSDoouZqloo6YlepLrT4FcTo=@vger.kernel.org X-Gm-Message-State: APuU4Z//7JHGzf3ltCot8qgr2VpUFINZWkCcrXclRj5+BPBg2FO2mPuR gEUzYhJ7SXWM+zEKONIWHwaP4tla5Z9x7QhqFi606vQir5kNQauRvdrxeqGlqJouUOOQLMP4qlI hzZ7bsV+Du6uobdIpryM64fim/xIlA8gNL999ACzaknD3PLzkH5z/t1SvuF9wbINkLW8= X-Gm-Gg: AZFdTZewLmqtJiefc6in7VPXLWMCPD/qY6/HrB4P2TB00SY+S3uinOzy+KYFH4c03zX 4b9931rXuk1/DW274nh80pamxwz7ApJwCIHynFc5c1sX29ejJF5ynvETWgIDUErB9AB93hmuX01 llD8nDSGIX0FvpnSQZlCJNc/h3InIygasYBROdhTpblqJOn6uDj09joCeLO5FuTF5G1eyfqEpmP EQAx6r25fgPPMcoVvsRsw982C1Qx81IT7/cvmY67vMhZUue7o7tdXlRKQx+aAeeIJ8cLUWRs0+p 9uAGPf1KkbQUF/nn836UXnqPuonuZwlWF9BU48ruxEenAaQxOfxwseAHOLa5Ms0XjnKZGQWnRae SOlmJQSRqUfB/MJGV32dM4DFhU+rMm5drpqM7fzFEQbMtEPDebk/FLUGf6/lWqGrDac1+vJ/RKf aYBYnTPqbp2q2cpogT+hwFxVeACwhj X-Received: by 2002:a05:7300:d509:b0:385:ac93:91f4 with SMTP id 5a478bee46e88-385ac939fc3mr47743771eec.26.1796158931339; 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: linux-kernel@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-GUID: Ow44j_6y6M9xQCUrnF4yS1IloOlTd3ih X-Proofpoint-Spam-Info: AW1haW4tMjYxMjAxMDA4MyBTYWx0ZWRfX7DTbfK2aKTSA 2ThIaxqGPwCGiqjG0OlGbc0isk0H7pCmcduWYh7j+zSBBOfIqlkxhAtGCXetZcshQDUV1OHgNRY ofjHp6EEOn0gLTPn+6UdOfY5SR7SqMc= X-Authority-Analysis: v=2.4 cv=Y+1tIReN 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=ZpdpYltYx_vBUK5n70dp:22 a=gEfo2CItAAAA:8 a=EUspDBNiAAAA:8 a=Qi6pjpdL7GA_D8ehSiUA:9 a=scEy_gLbYbu1JhEsrz4S:22 a=sptkURWiP4Gy88Gu7hUp:22 X-Proofpoint-ORIG-GUID: Ow44j_6y6M9xQCUrnF4yS1IloOlTd3ih X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMjAxMDA4MyBTYWx0ZWRfX9M8SXzm9UIJm QgIPWlroN/SswwjmpoJTqu1TvcuG5WzYMgxf/tFzqyNw5m3ir2Q5nmZ33gTjQUVdxP5wp8rceam R7Qja+fVOS1iSvZtluDra5yA0IVFW/E6+AE8WsmanRzatFcYymm8winbmdbM5R3uwavzkAKisg0 5IZCz2/+YKa+R/lx5u8PIzD3aWOjz7cwSCuVm/nSFzta/an4YWphT4vBrmwxbx+Tw+rKEOHyOX4 6vgxZdF5LebCbUt9Jk8sPC4i6Kni0r8lQMQkzmCqSV2WcGMPGACF/ULzTsYbaht/pIH6K8UZnuF XvB5GU2s6W+JlswNn2bjglxdtqYvf9rCYdHEcGAMbxWz/e3qtVa6vpP1v4VaWBfx4KtYN0SAW+x I8S7NrFpcbuM870iO3oVDG4L9MgSx2rg30q2+fhvLkN43uCtqctthRRW95XGEC3aRPx7qBtdpj2 xxLIYodkIgZU0bHK34w== 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 phishscore=0 spamscore=0 adultscore=0 lowpriorityscore=0 impostorscore=0 malwarescore=0 priorityscore=1501 suspectscore=0 clxscore=1015 bulkscore=0 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