@@ -29,6 +29,7 @@ properties:
- qcom,glymur-cci
- qcom,kaanapali-cci
- qcom,milos-cci
+ - qcom,nord-cci
- qcom,qcm2290-cci
- qcom,qcs8300-cci
- qcom,sa8775p-cci
@@ -70,6 +71,20 @@ properties:
reg:
maxItems: 1
+ qcom,ccu-mux-sel:
+ $ref: /schemas/types.yaml#/definitions/phandle-array
+ description:
+ On SoCs where the CCI sits in a CCU wrapper, the CCI I2C ports are
+ routed to the CCU after reset and the CCU output mux has to select the
+ CCI before any transfer.
+ items:
+ - items:
+ - description: phandle to the Titan CAM_TOP syscon
+ - description: byte offset of the CCU output mux register in the
+ syscon
+ - description: mask of the mux bits of this CCI, set to 1 to route
+ the I2C ports to this CCI
+
patternProperties:
"^i2c-bus@[01]$":
$ref: /schemas/i2c/i2c-controller.yaml#
@@ -131,6 +146,32 @@ allOf:
- const: cci_ahb
- const: cci
+ - if:
+ properties:
+ compatible:
+ contains:
+ const: qcom,nord-cci
+ then:
+ properties:
+ clocks:
+ items:
+ - description: Camera subsystem top AHB clock, needed by the CCI
+ register interface and to access the CCU output mux
+ - description: CCI core clock
+ - description: AHB clock of the CCU wrapper the CCI sits in
+ - description: Camera subsystem top fast AHB clock
+ clock-names:
+ items:
+ - const: ahb
+ - const: cci
+ - const: ccu_ahb
+ - const: fast_ahb
+ required:
+ - qcom,ccu-mux-sel
+ else:
+ properties:
+ qcom,ccu-mux-sel: false
+
- if:
properties:
compatible:
Add the Nord CCI compatible. The CCI is based on the CCI v2 core, but is wrapped by a CCU. After reset, the I2C ports are routed to the CCU and the CCU output mux must select the CCI before any transfer can take place. Add the qcom,ccu-mux-sel property to describe the syscon register and bits controlling the CCU output mux. In addition to its core clock, the CCI requires the CCU AHB clock and the camera subsystem top AHB and fast AHB clocks. The top AHB clock is required to access the CCI registers and the CCU output mux. Signed-off-by: Wenmeng Liu <wenmeng.liu@oss.qualcomm.com> --- .../devicetree/bindings/i2c/qcom,i2c-cci.yaml | 41 ++++++++++++++++++++++ 1 file changed, 41 insertions(+)