GENI Serial Engine QUP Wrapper Controller

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

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

Maintainers (maintainers): "Bjorn Andersson <bjorn.andersson@linaro.org>"

Generic Interface (GENI) based Qualcomm Universal Peripheral (QUP) wrapper is a programmable module for supporting a wide range of serial interfaces like UART, SPI, I2C, I3C, etc. A single QUP module can provide upto 8 Serial Interfaces, using its internal Serial Engines. The GENI Serial Engine QUP Wrapper controller is modeled as a node with zero or more child nodes each representing a serial engine.

Properties and child nodes (properties) #

compatible — required here #

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

reg — required here #

QUP wrapper common register address and length.

Maximum number of items (maxItems): 1

clock-names — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

clocks — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

#address-cells — required here #

Exact value (const): 2

#size-cells — required here #

Exact value (const): 2

ranges — required here #

true — No constraints added by this property rule.

interconnects — not listed as required here #

Maximum number of items (maxItems): 1

interconnect-names — not listed as required here #

Exact value (const): "qup-core"

iommus — not listed as required here #

Maximum number of items (maxItems): 1

dma-coherent — not listed as required here #

true — No constraints added by this property rule.

firmware-name — not listed as required here #

Maximum number of items (maxItems): 1

Specify the name of the QUP firmware to load.

Required in this object (required): "compatible", "reg", "clock-names", "clocks", "#address-cells", "#size-cells", "ranges"

Properties matching a name pattern (patternProperties) #

spi@[0-9a-f]+$ — name matches this regular expression #

Value type (type): "object"

GENI serial engine based SPI controller. SPI in master mode supports up to 50MHz, up to four chip selects, programmable data path from 4 bits to 32 bits and numerous protocol variants.

Shared schema rule ($ref): /schemas/spi/qcom,spi-geni-qcom.yaml#

i2c@[0-9a-f]+$ — name matches this regular expression #

Value type (type): "object"

GENI serial engine based I2C controller.

Shared schema rule ($ref): /schemas/i2c/qcom,i2c-geni-qcom.yaml#

serial@[0-9a-f]+$ — name matches this regular expression #

Value type (type): "object"

GENI Serial Engine based UART Controller.

Shared schema rule ($ref): /schemas/serial/qcom,serial-geni-qcom.yaml#

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)

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

When the condition matches (then) #

Properties and child nodes (properties)

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "s-ahb"

clocks — not listed as required here

Array item rules (items)

Item 1

Slave AHB Clock

iommus — not listed as required here

false — Not permitted by this property rule.

Properties matching a name pattern (patternProperties)

spi@[0-9a-f]+$ — name matches this regular expression

false — Not permitted by this property rule.

serial@[0-9a-f]+$ — name matches this regular expression

false — Not permitted by this property rule.

When the condition does not match (else) #

Properties and child nodes (properties)

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "m-ahb"

Item 2

Exact value (const): "s-ahb"

clocks — not listed as required here

Array item rules (items)

Item 1

Master AHB Clock

Item 2

Slave AHB Clock

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

false

Not allowed by this rule.

Examples (examples) #

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

soc {
    #address-cells = <2>;
    #size-cells = <2>;

    geniqup@8c0000 {
        compatible = "qcom,geni-se-qup";
        reg = <0 0x008c0000 0 0x6000>;
        clock-names = "m-ahb", "s-ahb";
        clocks = <&gcc GCC_QUPV3_WRAP_0_M_AHB_CLK>,
            <&gcc GCC_QUPV3_WRAP_0_S_AHB_CLK>;
        #address-cells = <2>;
        #size-cells = <2>;
        ranges;
        firmware-name = "qcom/sa8775p/qupv3fw.elf";

        i2c0: i2c@a94000 {
            compatible = "qcom,geni-i2c";
            reg = <0 0xa94000 0 0x4000>;
            interrupts = <GIC_SPI 358 IRQ_TYPE_LEVEL_HIGH>;
            clock-names = "se";
            clocks = <&gcc GCC_QUPV3_WRAP0_S5_CLK>;
            pinctrl-names = "default", "sleep";
            pinctrl-0 = <&qup_1_i2c_5_active>;
            pinctrl-1 = <&qup_1_i2c_5_sleep>;
            #address-cells = <1>;
            #size-cells = <0>;
        };

        uart0: serial@a88000 {
            compatible = "qcom,geni-uart";
            reg = <0 0xa88000 0 0x7000>;
            interrupts = <GIC_SPI 355 IRQ_TYPE_LEVEL_HIGH>;
            clock-names = "se";
            clocks = <&gcc GCC_QUPV3_WRAP0_S0_CLK>;
            pinctrl-names = "default", "sleep";
            pinctrl-0 = <&qup_1_uart_3_active>;
            pinctrl-1 = <&qup_1_uart_3_sleep>;
        };
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page