Qualcomm Camera Control Interface (CCI) I2C controller

Schema identifier ($id): "http://devicetree.org/schemas/i2c/qcom,i2c-cci.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Loic Poulain <loic.poulain@linaro.org>", "Robert Foss <robert.foss@linaro.org>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "qcom,msm8226-cci", "qcom,msm8953-cci", "qcom,msm8974-cci", "qcom,msm8996-cci"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "qcom,msm8916-cci"

Item 2

Exact value (const): "qcom,msm8226-cci"

Rule 3

Array item rules (items)

Item 1

Allowed values (enum): "qcom,kaanapali-cci", "qcom,qcm2290-cci", "qcom,qcs8300-cci", "qcom,sa8775p-cci", "qcom,sc7280-cci", "qcom,sc8280xp-cci", "qcom,sdm670-cci", "qcom,sdm845-cci", "qcom,sm6350-cci", "qcom,sm8250-cci", "qcom,sm8450-cci", "qcom,sm8550-cci", "qcom,sm8650-cci", "qcom,sm8750-cci", "qcom,x1e80100-cci"

Item 2

Exact value (const): "qcom,msm8996-cci"

#address-cells — not listed as required here #

Exact value (const): 1

#size-cells — not listed as required here #

Exact value (const): 0

clocks — required here #

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 6

clock-names — required here #

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 6

interrupts — required here #

Maximum number of items (maxItems): 1

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

reg — required here #

Maximum number of items (maxItems): 1

Properties matching a name pattern (patternProperties) #

^i2c-bus@[01]$ — name matches this regular expression #

Shared schema rule ($ref): /schemas/i2c/i2c-controller.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Properties and child nodes (properties) #

reg — not listed as required here

Maximum number of items (maxItems): 1

clock-frequency — not listed as required here

Default value (default): 100000

Required in this object (required): "compatible", "clock-names", "clocks", "interrupts", "reg"

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "qcom,msm8996-cci"

When the condition matches (then) #

Required in this object (required): "power-domains"

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "qcom,msm8226-cci", "qcom,msm8916-cci"

When the condition matches (then) #

Properties and child nodes (properties)

i2c-bus@1 — not listed as required here

false — Not permitted by this property rule.

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Exactly one of these rules must match (oneOf)

Rule 1

Rule for matching array elements (contains)

Allowed values (enum): "qcom,msm8974-cci"

Rule 2

Exact value (const): "qcom,msm8226-cci"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 3

Maximum number of items (maxItems): 3

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "camss_top_ahb"

Item 2

Exact value (const): "cci_ahb"

Item 3

Exact value (const): "cci"

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "qcom,kaanapali-cci", "qcom,qcm2290-cci", "qcom,qcs8300-cci", "qcom,sm8750-cci"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "ahb"

Item 2

Exact value (const): "cci"

Rule 5 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Exactly one of these rules must match (oneOf)

Rule 1

Rule for matching array elements (contains)

Allowed values (enum): "qcom,msm8916-cci", "qcom,msm8953-cci"

Rule 2

Exact value (const): "qcom,msm8996-cci"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 4

Maximum number of items (maxItems): 4

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "camss_top_ahb"

Item 2

Exact value (const): "cci_ahb"

Item 3

Exact value (const): "cci"

Item 4

Exact value (const): "camss_ahb"

Rule 6 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "qcom,sdm670-cci"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 4

Maximum number of items (maxItems): 4

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "camnoc_axi"

Item 2

Exact value (const): "soc_ahb"

Item 3

Exact value (const): "cpas_ahb"

Item 4

Exact value (const): "cci"

Rule 7 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "qcom,sdm845-cci", "qcom,sm6350-cci"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 6

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "camnoc_axi"

Item 2

Exact value (const): "soc_ahb"

Item 3

Exact value (const): "slow_ahb_src"

Item 4

Exact value (const): "cpas_ahb"

Item 5

Exact value (const): "cci"

Item 6

Exact value (const): "cci_src"

Rule 8 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "qcom,sc7280-cci", "qcom,sm8250-cci", "qcom,sm8450-cci"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 5

Maximum number of items (maxItems): 5

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "camnoc_axi"

Item 2

Exact value (const): "slow_ahb_src"

Item 3

Exact value (const): "cpas_ahb"

Item 4

Exact value (const): "cci"

Item 5

Exact value (const): "cci_src"

Rule 9 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "qcom,sc8280xp-cci"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 4

Maximum number of items (maxItems): 4

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "camnoc_axi"

Item 2

Exact value (const): "slow_ahb_src"

Item 3

Exact value (const): "cpas_ahb"

Item 4

Exact value (const): "cci"

Rule 10 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "qcom,sa8775p-cci", "qcom,sm8550-cci", "qcom,sm8650-cci", "qcom,x1e80100-cci"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 3

Maximum number of items (maxItems): 3

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "camnoc_axi"

Item 2

Exact value (const): "cpas_ahb"

Item 3

Exact value (const): "cci"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/qcom,camcc-sdm845.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>

cci@ac4a000 {
    reg = <0x0ac4a000 0x4000>;
    compatible = "qcom,sdm845-cci", "qcom,msm8996-cci";
    #address-cells = <1>;
    #size-cells = <0>;

    interrupts = <GIC_SPI 460 IRQ_TYPE_EDGE_RISING>;
    power-domains = <&clock_camcc TITAN_TOP_GDSC>;

    clocks = <&clock_camcc CAM_CC_CAMNOC_AXI_CLK>,
             <&clock_camcc CAM_CC_SOC_AHB_CLK>,
             <&clock_camcc CAM_CC_SLOW_AHB_CLK_SRC>,
             <&clock_camcc CAM_CC_CPAS_AHB_CLK>,
             <&clock_camcc CAM_CC_CCI_CLK>,
             <&clock_camcc CAM_CC_CCI_CLK_SRC>;
    clock-names = "camnoc_axi",
                  "soc_ahb",
                  "slow_ahb_src",
                  "cpas_ahb",
                  "cci",
                  "cci_src";

    assigned-clocks = <&clock_camcc CAM_CC_CAMNOC_AXI_CLK>,
                      <&clock_camcc CAM_CC_CCI_CLK>;
    assigned-clock-rates = <80000000>,
                           <37500000>;

    pinctrl-names = "default", "sleep";
    pinctrl-0 = <&cci0_default &cci1_default>;
    pinctrl-1 = <&cci0_sleep &cci1_sleep>;

    i2c-bus@0 {
        reg = <0>;
        clock-frequency = <1000000>;
        #address-cells = <1>;
        #size-cells = <0>;

        camera@10 {
            compatible = "ovti,ov8856";
            reg = <0x10>;

            reset-gpios = <&tlmm 9 GPIO_ACTIVE_LOW>;
            pinctrl-names = "default";
            pinctrl-0 = <&cam0_default>;

            clocks = <&clock_camcc CAM_CC_MCLK0_CLK>;
            clock-names = "xvclk";
            assigned-clocks = <&clock_camcc CAM_CC_MCLK0_CLK>;
            assigned-clock-rates = <19200000>;

            dovdd-supply = <&vreg_lvs1a_1p8>;
            avdd-supply = <&cam0_avdd_2v8>;
            dvdd-supply = <&cam0_dvdd_1v2>;

            port {
                ov8856_ep: endpoint {
                    link-frequencies = /bits/ 64 <360000000 180000000>;
                    data-lanes = <1 2 3 4>;
                    remote-endpoint = <&csiphy0_ep>;
                };
            };
        };
    };

    cci_i2c1: i2c-bus@1 {
        reg = <1>;
        clock-frequency = <1000000>;
        #address-cells = <1>;
        #size-cells = <0>;

        camera@60 {
            compatible = "ovti,ov7251";
            reg = <0x60>;

            enable-gpios = <&tlmm 21 GPIO_ACTIVE_HIGH>;
            pinctrl-names = "default";
            pinctrl-0 = <&cam3_default>;

            clocks = <&clock_camcc CAM_CC_MCLK3_CLK>;
            clock-names = "xclk";
            assigned-clocks = <&clock_camcc CAM_CC_MCLK3_CLK>;
            assigned-clock-rates = <24000000>;

            vdddo-supply = <&vreg_lvs1a_1p8>;
            vdda-supply = <&cam3_avdd_2v8>;

            port {
                ov7251_ep: endpoint {
                    data-lanes = <0>;
                    link-frequencies = /bits/ 64 <240000000 319200000>;
                    remote-endpoint = <&csiphy3_ep>;
                };
            };
        };
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause

Line 25: CCI v1

Line 44: CCI v2

Edit this page