All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 1/2] dt-bindings: i2c: qcom-cci: Document QCM2290 compatible
@ 2025-04-02 12:36 Loic Poulain
  2025-04-02 12:36 ` [PATCH v2 2/2] arm64: dts: qcom: qcm2290: Add CCI node Loic Poulain
  2025-04-02 18:39 ` [PATCH v2 1/2] dt-bindings: i2c: qcom-cci: Document QCM2290 compatible Krzysztof Kozlowski
  0 siblings, 2 replies; 3+ messages in thread
From: Loic Poulain @ 2025-04-02 12:36 UTC (permalink / raw)
  To: andersson, konradybcio, robh, krzk+dt
  Cc: linux-arm-msm, devicetree, Loic Poulain

The CCI on QCM2290 is the interface for controlling camera sensor over I2C.
It requires only two clocks.

Signed-off-by: Loic Poulain <loic.poulain@oss.qualcomm.com>
---
 v2: Reorder commits and Fix binding testing syntax

 .../devicetree/bindings/i2c/qcom,i2c-cci.yaml | 21 +++++++++++++++++--
 1 file changed, 19 insertions(+), 2 deletions(-)

diff --git a/Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml b/Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml
index 73144473b9b2..55ec65df4f7a 100644
--- a/Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml
+++ b/Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml
@@ -25,6 +25,7 @@ properties:
 
       - items:
           - enum:
+              - qcom,qcm2290-cci
               - qcom,sc7280-cci
               - qcom,sc8280xp-cci
               - qcom,sdm670-cci
@@ -44,11 +45,11 @@ properties:
     const: 0
 
   clocks:
-    minItems: 3
+    minItems: 2
     maxItems: 6
 
   clock-names:
-    minItems: 3
+    minItems: 2
     maxItems: 6
 
   interrupts:
@@ -120,6 +121,22 @@ allOf:
             - const: cci_ahb
             - const: cci
 
+  - if:
+      properties:
+        compatible:
+          contains:
+            enum:
+              - qcom,qcm2290-cci
+    then:
+      properties:
+        clocks:
+          minItems: 2
+          maxItems: 2
+        clock-names:
+          items:
+            - const: camss_top_ahb
+            - const: cci
+
   - if:
       properties:
         compatible:
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-04-02 18:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-02 12:36 [PATCH v2 1/2] dt-bindings: i2c: qcom-cci: Document QCM2290 compatible Loic Poulain
2025-04-02 12:36 ` [PATCH v2 2/2] arm64: dts: qcom: qcm2290: Add CCI node Loic Poulain
2025-04-02 18:39 ` [PATCH v2 1/2] dt-bindings: i2c: qcom-cci: Document QCM2290 compatible Krzysztof Kozlowski

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.