Qualcomm Geni based QUP I2C Controller

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

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

Maintainers (maintainers): "Andy Gross <agross@kernel.org>", "Bjorn Andersson <bjorn.andersson@linaro.org>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "qcom,geni-i2c", "qcom,geni-i2c-master-hub"

clocks — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

clock-names — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

clock-frequency — not listed as required here #

Default value (default): 100000

dmas — not listed as required here #

Maximum number of items (maxItems): 2

dma-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "tx"

Item 2

Exact value (const): "rx"

interconnects — not listed as required here #

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 3

interconnect-names — not listed as required here #

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 3

interrupts — required here #

Maximum number of items (maxItems): 1

operating-points-v2 — not listed as required here #

true — No constraints added by this property rule.

pinctrl-0 — not listed as required here #

true — No constraints added by this property rule.

pinctrl-1 — not listed as required here #

true — No constraints added by this property rule.

pinctrl-names — not listed as required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "default"

Item 2

Exact value (const): "sleep"

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

reg — required here #

Maximum number of items (maxItems): 1

required-opps — not listed as required here #

Maximum number of items (maxItems): 1

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

All of these rules must match (allOf) #

Rule 1 #

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

Rule 2 #

Shared schema rule ($ref): /schemas/soc/qcom/qcom,se-common-props.yaml#

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "qcom,geni-i2c-master-hub"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 2

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "se"

Item 2

Exact value (const): "core"

dmas — not listed as required here

false — Not permitted by this property rule.

dma-names — not listed as required here

false — Not permitted by this property rule.

interconnects — not listed as required here

Maximum number of items (maxItems): 2

interconnect-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "qup-core"

Item 2

Exact value (const): "qup-config"

When the condition does not match (else) #

Properties and child nodes (properties)

clocks — not listed as required here

Maximum number of items (maxItems): 1

clock-names — not listed as required here

Exact value (const): "se"

interconnects — not listed as required here

Minimum number of items (minItems): 3

interconnect-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "qup-core"

Item 2

Exact value (const): "qup-config"

Item 3

Exact value (const): "qup-memory"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/qcom,gcc-sc7180.h>
#include <dt-bindings/interconnect/qcom,sc7180.h>
#include <dt-bindings/power/qcom-rpmpd.h>

i2c@88000 {
    compatible = "qcom,geni-i2c";
    reg = <0x00880000 0x4000>;
    clock-names = "se";
    clocks = <&gcc GCC_QUPV3_WRAP0_S0_CLK>;
    pinctrl-names = "default";
    pinctrl-0 = <&qup_i2c0_default>;
    interrupts = <GIC_SPI 601 IRQ_TYPE_LEVEL_HIGH>;
    #address-cells = <1>;
    #size-cells = <0>;
    interconnects = <&qup_virt MASTER_QUP_CORE_0 0 &qup_virt SLAVE_QUP_CORE_0 0>,
                    <&gem_noc MASTER_APPSS_PROC 0 &config_noc SLAVE_QUP_0 0>,
                    <&aggre1_noc MASTER_QUP_0 0 &mc_virt SLAVE_EBI1 0>;
    interconnect-names = "qup-core", "qup-config", "qup-memory";
    power-domains = <&rpmhpd SC7180_CX>;
    required-opps = <&rpmhpd_opp_low_svs>;
};

Source notes #

Annotations retained from the schema source

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

Edit this page