Re: [PATCH v4 1/5] dt-bindings: phy: qcom: Add common qcom,csi2-phy

From: Nihal Kumar Gupta

Date: Wed Dec 02 2026 - 03:16:43 EST




On 02-12-2026 02:32, Anusha Arun Nandi wrote:
> 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 <jigarkumar.zala@xxxxxxxxxxxxxxxx>
> Signed-off-by: Jigarkumar Zala <jigarkumar.zala@xxxxxxxxxxxxxxxx>
> Signed-off-by: Anusha Arun Nandi <anusha.nandi@xxxxxxxxxxxxxxxx>
> ---
> .../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 <anusha.nandi@xxxxxxxxxxxxxxxx>
> +
> +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

We already discussed this in the CSI2 PHY v8 thread:

https://lore.kernel.org/all/1433c48a-5df4-40a7-80ab-348caea588cd@xxxxxxxxxxxxxxxx/

Since the PHY is modeled as an independently probed device, it cannot
rely on CAMSS to keep the top/register bus path enabled. The AHB clock is
needed for register access/configuration, while the core/timer clocks are
for PHY operation and timing. So adding the AHB dependency is reasonable.

> +
> + 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
> +

I checked: Lemans has both MXC and MMCX rails.

> + vdda-hs-supply:
> + description: Phandle to PHY supply.
> +
> + vdda-lp-supply:
> + description: Phandle to PLL supply.

...

--
Regards,
Nihal Kumar Gupta