From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lj1-f181.google.com (mail-lj1-f181.google.com [209.85.208.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 430413CFF73 for ; Mon, 27 Jul 2026 20:03:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785182613; cv=none; b=oorTuhZdIseRtywgiv+7t+EkaWbKMb7if3tbDwiYKuFd2JMaV0DKr99bQIJs/PEdcWHA8oEvFgqGw6hY58rtlruQaZrZpTUrd0Tutv9wP83UNNm+3BQRD4dMT9hDvIOcmFXr6l8oj8Yp46DW6toJcprX+RW+4ocd5TpBgNRRvrk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785182613; c=relaxed/simple; bh=d0iUYQW5lagdp9O0uq3YsaEfuKSw1aijjKKgnN1yAME=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=RDWjLYEuZ0fXUzL3U2g809a2pswG8LieswQzj8hJT+t17TeZdC0lL/bFfb6GVAJX1zsjsDEJtRFxY25tWyLlnLkm91eGYp/6yuLL1uORCGgnumhc7eN2B0oz0xfnsFBBOe99QPs1eDk8KUKSlJNXPIeozfnXOiWvQ/2jVTorNaM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=uiZ4fL9r; arc=none smtp.client-ip=209.85.208.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="uiZ4fL9r" Received: by mail-lj1-f181.google.com with SMTP id 38308e7fff4ca-39c6b6c54b3so2971801fa.1 for ; Mon, 27 Jul 2026 13:03:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1785182608; x=1785787408; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:from:references :cc:to:subject:user-agent:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to:content-type; bh=e06HUI85J7qEibvlYFhV0EnRMDOk7ZPREkdwrntmP6k=; b=uiZ4fL9runDzSl1a+Gcwaw+kuJ2lohu+Yu7P64eQ9wk+lTWsZtUaKwTpTjoY444HUl ymt+rqfdV2tMFA+HDEJ+HeV5o7w+UGv50uFiVhMsBFSQu/BiRdMayc7J7qaitTc3gEvN dllIqAKr37xY4HrP33VdReL/xbqDlko2IWedEo808vmGU9ZFY0FmITH/dr5+f0dfbr37 ILFe9z6HcUkg/yZfmvpCEu4iN2r03Gs4PWWIrp37Y40UFS3Px1RgWb57sED6iS07AKW2 ztb4DjD6tVH5NnS2N8Fve5sL6h2zx+X+Wju7EiF10Ol4IlsFwQDkCKsOdTIVvj1QJE/X zRPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785182608; x=1785787408; h=content-transfer-encoding:content-type:in-reply-to:from: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 :content-type; bh=e06HUI85J7qEibvlYFhV0EnRMDOk7ZPREkdwrntmP6k=; b=RPhnADQoXc0Y4GFCEdqQ0QD5JDS1eY+LRf470Uh8ZG7mVyP4pe1eXfFpwsom4Zmqyo h7wfNSX0331sBf93huN6/hpHn3Edc9U+9sY2STRMZQMyBhoAY7Ia7If9vkWrOgpATAm2 m+097XbY18RB7NQd9v5yUhFDkvkuegH3bTsfDOhR+OnWpFsl6cYRPnvL63o4AOYYrK8X DrxQMVqILcnHs4Ar07IL25K4T2s6FyREbinNBnkzUxGvEwA6VybESFIpVMeHg14HHABR ADltALUZNDgYqIvZ+PzGgg47Ykz+vimMPmVPkSova4hM7kLf2x08HWruQAer5TWJwAWE uReA== X-Forwarded-Encrypted: i=1; AHgh+RpUk6SK1xLLNgrhVcctrXMEt83sVwlF7yCEFDcXi1pftKPcuILEfgmicC9MoGe/k7NYUyYH7c47Cf5beOE=@vger.kernel.org X-Gm-Message-State: AOJu0Yx75R62HNVUGV4xgI8KVGZU/TD5zvRHGXUkvQ7mOrYSUyeqvt8t utT60RVRuDkz6lq4sTqwR4JQBxnvAmud6q+Wne2Sercx9wD4loxjgUhI6IoV7NlqKMg= X-Gm-Gg: AR+sD11x4SmQKYEQwIZZioq814ySwZE3fuXRKFw301gxjCTpQWm7ypoK9tWyopA05QN lesAiY/XyInyf44AIleqHaKQGYc1/oXoyvfeQ0sTZOa4KvMhRGJ2892rjS+IS6eY3fVs6jlSMaM KnBiFZrLKYdGG+8P6QmRjqNlMiLazgWpgmYP8dXrSLYj5swSZeQV9SeAFeYcu/yaLQ0114LfPIG ZkW3m/fKxDGm7eNJJI51pCWXpFu5rmoCsindvrYY5bm3nUEKL45o9rYaVX+twqvegKuFiLcdNfJ VoRRerFljGK75xWO04ahQVGiAvZva+B6uj/Nmao4PpkgcXa6CKa2Q4v2tnQ3AfOv6jGYKkQES7D xST7CZmiGCsklDui+Q8epB0mdRipsGmYc9Uucgx26HjRyQn7jh0q+OO/bMgPfRcAINLkTKjvju4 GchnMNNr8L6UZ2j9wuzROFG11Iu/J/WORpcnQbn3JRv7Jx+MRtOiSOFXXQ X-Received: by 2002:a05:6512:3c94:b0:5b1:4fde:61a with SMTP id 2adb3069b0e04-5b2cd8064fbmr193340e87.2.1785182608171; Mon, 27 Jul 2026 13:03:28 -0700 (PDT) Received: from [192.168.1.100] (91-159-24-186.elisa-laajakaista.fi. [91.159.24.186]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-5b2be077b9asm1643146e87.2.2026.07.27.13.03.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 27 Jul 2026 13:03:27 -0700 (PDT) Message-ID: <1e1bc17a-4c7a-4c08-b0c8-2a2ff31fe870@linaro.org> Date: Mon, 27 Jul 2026 23:03:26 +0300 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 v14 1/2] dt-bindings: phy: qcom: Add CSI2 C-PHY/DPHY schema To: Bryan O'Donoghue , Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong Cc: 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: <20260727-x1e-csi2-phy-v14-0-27d1bf477593@linaro.org> <20260727-x1e-csi2-phy-v14-1-27d1bf477593@linaro.org> From: Vladimir Zapolskiy In-Reply-To: <20260727-x1e-csi2-phy-v14-1-27d1bf477593@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 7/27/26 22:16, Bryan O'Donoghue wrote: > Add a base schema for the MIPI CSI2 PHYs on Qualcomm SoCs. This PHY > supports both DPHY and CPHY operation. A special mode of DPHY operation - > called variously split-mode or combo-mode also allows for two sensors to be > connected to one PHY. > > The submitted binding here describes the DPHY modes of operation only. CPHY > is left to future work. C-PHY bus type is also well described by this version of the bindings. > > Signed-off-by: Bryan O'Donoghue > --- > .../bindings/phy/qcom,x1e80100-csi2-phy.yaml | 198 +++++++++++++++++++++ > 1 file changed, 198 insertions(+) > > diff --git a/Documentation/devicetree/bindings/phy/qcom,x1e80100-csi2-phy.yaml b/Documentation/devicetree/bindings/phy/qcom,x1e80100-csi2-phy.yaml > new file mode 100644 > index 0000000000000..7d0363812aa89 > --- /dev/null > +++ b/Documentation/devicetree/bindings/phy/qcom,x1e80100-csi2-phy.yaml > @@ -0,0 +1,198 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/phy/qcom,x1e80100-csi2-phy.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Qualcomm X1E80100 SoC CSI2 PHY > + > +maintainers: > + - Bryan O'Donoghue > + > +description: > + Qualcomm MIPI CSI2 C-PHY/D-PHY combination PHY. Connects MIPI CSI2 sensors > + to Qualcomm's Camera CSI Decoder. The PHY supports both C-PHY and D-PHY > + modes. > + > +properties: > + compatible: > + const: qcom,x1e80100-csi2-phy > + > + reg: > + maxItems: 1 > + > + clocks: > + maxItems: 3 > + > + clock-names: > + items: > + - const: core > + - const: timer > + - const: ahb > + > + 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. > + - description: MMCX voltage rail > + - description: MXC or MXA voltage rail > + > + power-domain-names: > + items: > + - const: top > + - const: mmcx > + - const: mx > + > + vdda-0p9-supply: > + description: Phandle to a 0.9V regulator supply to a PHY. > + > + vdda-1p2-supply: > + description: Phandle to 1.2V regulator supply to a PHY. > + > + 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. DPHY split mode, > + where two independent sensors share the same PHY, is described > + by two endpoints; endpoint@0 with exactly two data-lanes and I believe it might be possible to set combo mode with two single data lane sensors, but I can not be certain in it. > + endpoint@1 with exactly one data-lane. > + unevaluatedProperties: false > + > + patternProperties: > + "^endpoint(@[0-9a-f]+)?$": The review comment to a few previous versions of the series including v13 about too wide regexp mask has not been addressed so far, please fix this issue in the next revision of the series. > + $ref: /schemas/media/video-interfaces.yaml# > + unevaluatedProperties: false > + properties: > + bus-type: > + enum: > + - 1 # MEDIA_BUS_TYPE_CSI2_CPHY > + - 4 # MEDIA_BUS_TYPE_CSI2_DPHY > + > + data-lanes: > + minItems: 1 > + maxItems: 4 > + description: > + Logical lane indices 0-3, not physical pad positions. In hardware description it's physical data lane indexes, the same is said in video-interfaces.yaml documentation, the numeration starting from zero is selected to follow even bits in CSI_COMMON_CTRL5 register (D-PHY mode): * https://lore.kernel.org/all/59331aa7-8430-4754-861c-4ba6a4810ccd@oss.qualcomm.com/ > + > + required: > + - bus-type 'bus-type' property could be optional, if it's not present, it can be assumed D-PHY mode. > + - data-lanes > + - remote-endpoint > + > + allOf: > + - if: > + required: > + - endpoint@1 > + then: > + properties: > + endpoint@0: > + properties: > + data-lanes: > + minItems: 2 > + maxItems: 2 > + endpoint@1: > + properties: > + data-lanes: > + maxItems: 1 > + 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-0p9-supply > + - vdda-1p2-supply > + - ports > + > +additionalProperties: false > + > +examples: > + - | > + #include > + #include > + #include > + #include > + #include Please sort the list of headers in alphabetical order. > + > + phy@ace4000 { > + compatible = "qcom,x1e80100-csi2-phy"; > + reg = <0x0ace4000 0x2000>; > + > + clocks = <&camcc CAM_CC_CSIPHY0_CLK>, > + <&camcc CAM_CC_CSI0PHYTIMER_CLK>, > + <&camcc CAM_CC_CORE_AHB_CLK>; > + clock-names = "core", > + "timer", > + "ahb"; > + > + interrupts = ; > + > + operating-points-v2 = <&csiphy_opp_table>; > + > + power-domains = <&camcc CAM_CC_TITAN_TOP_GDSC>, > + <&rpmhpd RPMHPD_MMCX>, > + <&rpmhpd RPMHPD_MX>; > + power-domain-names = "top", > + "mmcx", > + "mx"; > + > + vdda-0p9-supply = <&vreg_l2c_0p9>; > + vdda-1p2-supply = <&vreg_l1c_1p2>; > + > + ports { > + #address-cells = <1>; > + #size-cells = <0>; > + > + port@0 { > + reg = <0>; > + csiphy0_in: endpoint { > + bus-type = ; > + data-lanes = <0 1 2 3>; > + 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>; > + required-opps = <&rpmhpd_opp_low_svs_d1>, > + <&rpmhpd_opp_low_svs_d1>; > + }; > + }; > + }; > That's a great improvement, thank you. -- Best wishes, Vladimir