new file mode 100644
@@ -0,0 +1,96 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/media/qcom,csiphy.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Qualcomm CSI PHY
+
+maintainers:
+ - Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org>
+
+description:
+ Qualcomm SoCs equipped with a number of MIPI CSI PHY IPs, which
+ supports D-PHY or C-PHY interfaces to camera sensors.
+
+properties:
+ compatible:
+ enum:
+ - qcom,csiphy
+
+ reg:
+ maxItems: 1
+
+ clocks:
+ maxItems: 2
+
+ clock-names:
+ items:
+ - const: csiphy
+ - const: csiphy_timer
+
+ interrupts:
+ maxItems: 1
+
+ "#phy-cells":
+ const: 0
+
+ port:
+ $ref: /schemas/graph.yaml#/$defs/port-base
+ description: CAMSS CSIPHY input port
+
+ patternProperties:
+ "^endpoint@[0-1]$":
+ $ref: /schemas/media/video-interfaces.yaml#
+ unevaluatedProperties: false
+
+ properties:
+ data-lanes:
+ minItems: 1
+ maxItems: 4
+
+ bus-type:
+ enum:
+ - 1 # MEDIA_BUS_TYPE_CSI2_CPHY
+ - 4 # MEDIA_BUS_TYPE_CSI2_DPHY
+
+ required:
+ - data-lanes
+
+ oneOf:
+ - required:
+ - endpoint
+ - required:
+ - endpoint@0
+
+required:
+ - compatible
+ - reg
+ - clocks
+ - interrupts
+ - "#phy-cells"
+
+additionalProperties: true
+
+examples:
+ - |
+ #include <dt-bindings/clock/qcom,camcc-sm8250.h>
+ #include <dt-bindings/interrupt-controller/arm-gic.h>
+ #include <dt-bindings/interrupt-controller/irq.h>
+
+ phy@ac6e000 {
+ compatible = "qcom,csiphy";
+ reg = <0x0ac6e000 0x1000>;
+ clocks = <&camcc CAM_CC_CSIPHY2_CLK>,
+ <&camcc CAM_CC_CSI2PHYTIMER_CLK>;
+ clock-names = "csiphy", "csiphy_timer";
+ interrupts = <GIC_SPI 479 IRQ_TYPE_EDGE_RISING>;
+ #phy-cells = <0>;
+
+ port {
+ csiphy_in: endpoint {
+ data-lanes = <1 2 3 4>;
+ remote-endpoint = <&sensor_out>;
+ };
+ };
+ };
Add dt-binding schema for Qualcomm CAMSS CSIPHY IP, which provides MIPI C-PHY/D-PHY interfaces on Qualcomm SoCs. Signed-off-by: Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org> --- RFC verion of the change: * https://lore.kernel.org/all/20250513143918.2572689-1-vladimir.zapolskiy@linaro.org/ Changes from RFC to v1: * moved from phy/qcom,csiphy.yaml to media/qcom,csiphy.yaml, * added 'clock-names' property, * removed SM8250 CSIPHY specifics, a generic binding is good enough for now, * the above implies a removal of SM8250 specific supplies. .../bindings/media/qcom,csiphy.yaml | 96 +++++++++++++++++++ 1 file changed, 96 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/qcom,csiphy.yaml