From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B91ADEC047F for ; Tue, 3 Mar 2026 09:27:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To:Subject: MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=TRPTKpDv8fb5IOpls+v2Q3kUg+RQHQ95QjpWwvgN+oo=; b=Inz6t8Y1Kavlj/ pzLuG6kNejsQOgl3PtkSr2F+HOZq0ZMXwVZboWYCelVI6X22QQz6mKT3EuDiytibjzUtmcdhyoWZO AVejOACi6GYtbjiJd7a6I5bVU+j9OSHE+lxGA6Q9xc7ZS7ELJnGqtfZWfpHNEr0hR8YgatEo8ZkAx Ft0TigLgytWSwGv0Sdfvhf7KvDCgHcMzNRhw86pfJbBUvyuOMFR9JknFm0t1xh1h34i9zzQzseTUG tJf0ibJJV0mAOaagUa1aFWt8NrchaO/g9Apt7ldhL4nzlKJGNPDJUmNARDEgCBOvaG4DS+HR6e+Si uZcR94Nqfypm635loLRw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1vxM2p-0000000EsOY-1Tmn; Tue, 03 Mar 2026 09:27:59 +0000 Received: from sea.source.kernel.org ([2600:3c0a:e001:78e:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1vxM2m-0000000EsNQ-3pqu for linux-phy@lists.infradead.org; Tue, 03 Mar 2026 09:27:58 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sea.source.kernel.org (Postfix) with ESMTP id 1D3DB4407B; Tue, 3 Mar 2026 09:27:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id ED395C19425; Tue, 3 Mar 2026 09:27:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1772530074; bh=SBVQh6r2Q+TQ8oufapkjvVPEEK4nBLLPJpy29offkyU=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=HC4Py1tb6Xk6lZN3vnm53HvzK+DePoC3Loc5E59wRwVS++gJTFH6g0SB417J9Nc9s ltuigYBv+/c0w3Be3jQYjPYnpI6c11nwJFPTrSde8hB8DRm9EtNyHNWvCEOIWdjK/v Fu27uJaBWS/CCrqO+bHh/xDG6A3g+t6L+09g9A8gV70CPvDPx3NqP8K4WTJ7BHmof5 cOL5EepIfxjnYFTgjMwft+VSpzL+ZF3pETqtV5Sb56RKoeC7SsQqHwGF+U7Ustftl9 cG5+D5dpRRttO+whCm0JLeagFH+T26Iu1giHUnL8kwNchmRUDzOuQjZAJXxVAmMO97 rHiyVnia+O48w== Message-ID: <03b44922-72d5-465b-96e1-97a19655e97d@kernel.org> Date: Tue, 3 Mar 2026 09:27:47 +0000 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 1/2] dt-bindings: phy: qcom: Add CSI2 C-PHY/DPHY schema To: Vijay Kumar Tumati , Bryan O'Donoghue , Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong 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: <20260226-x1e-csi2-phy-v3-0-11e608759410@linaro.org> <20260226-x1e-csi2-phy-v3-1-11e608759410@linaro.org> <4pFL6wOeTKUt-Zq4YbjqJdacMgUIPSYJD-4-5DcIMEZ1sM7JsNFYcSv1bd7ZRVOklTsmkEfxM2b6tTflmiECNQ==@protonmail.internalid> From: Bryan O'Donoghue Content-Language: en-US In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260303_012757_010416_382B02F3 X-CRM114-Status: GOOD ( 22.03 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org On 03/03/2026 01:51, Vijay Kumar Tumati wrote: > Hi Bryan, > > On 2/26/2026 4:34 AM, Bryan O'Donoghue wrote: >> Add a base schema initially compatible with x1e80100 to describe MIPI CSI2 >> PHY devices. >> >> The hardware can support both C-PHY and D-PHY modes. The CSIPHY devices >> have their own pinouts on the SoC as well as their own individual voltage >> rails. >> >> The need to model voltage rails on a per-PHY basis leads us to define >> CSIPHY devices as individual nodes. >> >> Two nice outcomes in terms of schema and DT arise from this change. >> >> 1. The ability to define on a per-PHY basis voltage rails. >> 2. The ability to require those voltage. >> >> We have had a complete bodge upstream for this where a single set of >> voltage rail for all CSIPHYs has been buried inside of CAMSS. >> >> Much like the I2C bus which is dedicated to Camera sensors - the CCI bus in >> CAMSS parlance, the CSIPHY devices should be individually modelled. >> >> Signed-off-by: Bryan O'Donoghue >> --- >> .../bindings/phy/qcom,x1e80100-csi2-phy.yaml | 114 +++++++++++++++++++++ >> 1 file changed, 114 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..c937d26ccbda9 >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/phy/qcom,x1e80100-csi2-phy.yaml >> @@ -0,0 +1,114 @@ >> +# 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 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 >> + >> + "#phy-cells": >> + const: 1 >> + >> + clocks: >> + maxItems: 4 >> + >> + clock-names: >> + items: >> + - const: csiphy >> + - const: csiphy_timer >> + - const: camnoc_axi >> + - const: cpas_ahb >> + >> + interrupts: >> + maxItems: 1 >> + >> + operating-points-v2: >> + maxItems: 1 >> + >> + power-domains: >> + maxItems: 1 >> + >> + vdda-0p8-supply: >> + description: Phandle to a 0.8V regulator supply to a PHY. >> + >> + vdda-1p2-supply: >> + description: Phandle to 1.2V regulator supply to a PHY. >> + >> +required: >> + - compatible >> + - reg >> + - "#phy-cells" >> + - clocks >> + - clock-names >> + - interrupts >> + - operating-points-v2 >> + - power-domains >> + - vdda-0p8-supply >> + - vdda-1p2-supply >> + >> +additionalProperties: false >> + >> +examples: >> + - | >> + #include >> + #include >> + #include >> + #include >> + >> + csiphy@ace4000 { >> + compatible = "qcom,x1e80100-csi2-phy"; >> + reg = <0x0ace4000 0x2000>; >> + #phy-cells = <1>; >> + >> + clocks = <&camcc CAM_CC_CSIPHY0_CLK>, >> + <&camcc CAM_CC_CSI0PHYTIMER_CLK>, >> + <&camcc CAM_CC_CAMNOC_AXI_RT_CLK>, >> + <&camcc CAM_CC_CPAS_AHB_CLK>; >> + clock-names = "csiphy", >> + "csiphy_timer", >> + "camnoc_axi", >> + "cpas_ahb"; >> + >> + operating-points-v2 = <&csiphy_opp_table>; >> + >> + interrupts = ; >> + >> + power-domains = <&camcc CAM_CC_TITAN_TOP_GDSC>; > As we are cleaning up the PHY device nodes, we should consider fixing > the power domains as well. Although TOP GDSC is defined as a power > domain, it is not the power source for the PHY devices. Rather, it is > the MMCX, MXC and optionally MXA based on the architecture (Refer to > 'Voltage rail' column for PHY clocks in IPCAT). Feel free to send me a qcom laptop and I will :) From memory though I _thought_ only the TOP was required for the PHY. I'd be grateful if you could confirm yourself in ipcat. - TITAN_TOP_GDSC - MXC - MMCX - MXA - first time I've heard of this rail, from memory I don't remember having seen this in ipcat when I could do so. There is no > parent-child relationship between the TOP GDSC and these in the clock > driver and it was just working as the required power rails are getting > enabled by/for other MM devices. Well only the GDSC is supplied by the clock controller. >> + >> + vdda-0p8-supply = <&vreg_l2c_0p8>; >> + vdda-1p2-supply = <&vreg_l1c_1p2>; >> + }; >> + >> + csiphy_opp_table: opp-table-csiphy { >> + compatible = "operating-points-v2"; >> + >> + opp-300000000 { >> + opp-hz = /bits/ 64 <300000000>; >> + required-opps = <&rpmhpd_opp_low_svs_d1>; >> + }; >> + >> + opp-400000000 { >> + opp-hz = /bits/ 64 <400000000>; >> + required-opps = <&rpmhpd_opp_low_svs>; >> + }; >> + >> + opp-480000000 { >> + opp-hz = /bits/ 64 <480000000>; >> + required-opps = <&rpmhpd_opp_low_svs>; >> + }; >> + }; >> > Thanks, > Vijay. -- linux-phy mailing list linux-phy@lists.infradead.org https://lists.infradead.org/mailman/listinfo/linux-phy