PowerQUICC QE QUICC Multichannel Controller (QMC)

Schema identifier ($id): "http://devicetree.org/schemas/soc/fsl/cpm_qe/fsl,qe-ucc-qmc.yaml#"

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

Maintainers (maintainers): "Herve Codina <herve.codina@bootlin.com>"

The QMC (QUICC Multichannel Controller) emulates up to 64 channels within one serial controller using the same TDM physical interface routed from TSA.

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "fsl,mpc8321-ucc-qmc"

Item 2

Exact value (const): "fsl,qe-ucc-qmc"

reg — required here #

Array item rules (items) #

Item 1

UCC (Unified communication controller) register base

Item 2

Dual port ram base

reg-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "ucc_regs"

Item 2

Exact value (const): "dpram"

interrupts — required here #

Maximum number of items (maxItems): 1

UCC interrupt line in the QE interrupt controller

fsl,tsa-serial — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array

Array item rules (items) #

Item 1

Array item rules (items)

Item 1

phandle to TSA node

Item 2

Allowed values (enum): 1, 2, 3, 4, 5

TSA serial interface (dt-bindings/soc/qe-fsl,tsa.h defines these values) - 1: UCC1 - 2: UCC2 - 3: UCC3 - 4: UCC4 - 5: UCC5

Should be a phandle/number pair. The phandle to TSA node and the TSA serial interface to use.

fsl,soft-qmc — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/string

Soft QMC firmware name to load. If this property is omitted, no firmware are used.

#address-cells — required here #

Exact value (const): 1

#size-cells — required here #

Exact value (const): 0

Properties matching a name pattern (patternProperties) #

^channel@([0-9]|[1-5][0-9]|6[0-3])$ — name matches this regular expression #

A channel managed by this controller

Value type (type): "object"

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

false

Not allowed by this rule.

Properties and child nodes (properties) #

compatible — not listed as required here

Array item rules (items)

Item 1

Allowed values (enum): "fsl,mpc8321-ucc-qmc-hdlc"

Item 2

Exact value (const): "fsl,qe-ucc-qmc-hdlc"

Item 3

Exact value (const): "fsl,qmc-hdlc"

reg — required here

Minimum value (minimum): 0

Maximum value (maximum): 63

The channel number

fsl,operational-mode — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/string

Allowed values (enum): "transparent", "hdlc"

Default value (default): "transparent"

The channel operational mode
  - hdlc: The channel handles HDLC frames
  - transparent: The channel handles raw data without any processing

fsl,reverse-data — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

The bit order as seen on the channels is reversed, transmitting/receiving the MSB of each octet first. This flag is used only in 'transparent' mode.

fsl,tx-ts-mask — required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint64

Channel assigned Tx time-slots within the Tx time-slots routed by the TSA to this cell.

fsl,rx-ts-mask — required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint64

Channel assigned Rx time-slots within the Rx time-slots routed by the TSA to this cell.

fsl,framer — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

phandle to the framer node. The framer is in charge of an E1/T1 line interface connected to the TDM bus. It can be used to get the E1/T1 line status such as link up/down.

All of these rules must match (allOf) #

Rule 1

Condition (if)

Properties and child nodes (properties)

compatible — not listed as required here

This rule must not match (not)

Rule for matching array elements (contains)

Exact value (const): "fsl,qmc-hdlc"

When the condition matches (then)

Properties and child nodes (properties)

fsl,framer — not listed as required here

false — Not permitted by this property rule.

Required in this object (required): "reg", "fsl,tx-ts-mask", "fsl,rx-ts-mask"

Required in this object (required): "compatible", "reg", "reg-names", "interrupts", "fsl,tsa-serial", "#address-cells", "#size-cells"

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/soc/qe-fsl,tsa.h>

qmc@a60 {
    compatible = "fsl,mpc8321-ucc-qmc", "fsl,qe-ucc-qmc";
    reg = <0x3200 0x200>,
          <0x10000 0x1000>;
    reg-names = "ucc_regs", "dpram";
    interrupts = <35>;
    interrupt-parent = <&qeic>;
    fsl,soft-qmc = "fsl_qe_ucode_qmc_8321_11.bin";

    #address-cells = <1>;
    #size-cells = <0>;

    fsl,tsa-serial = <&tsa FSL_QE_TSA_UCC4>;

    channel@16 {
        /* Ch16 : First 4 even TS from all routed from TSA */
        reg = <16>;
        fsl,operational-mode = "transparent";
        fsl,reverse-data;
        fsl,tx-ts-mask = <0x00000000 0x000000aa>;
        fsl,rx-ts-mask = <0x00000000 0x000000aa>;
    };

    channel@17 {
        /* Ch17 : First 4 odd TS from all routed from TSA */
        reg = <17>;
        fsl,operational-mode = "transparent";
        fsl,reverse-data;
        fsl,tx-ts-mask = <0x00000000 0x00000055>;
        fsl,rx-ts-mask = <0x00000000 0x00000055>;
    };

    channel@19 {
        /* Ch19 : 8 TS (TS 8..15) from all routed from TSA */
        compatible = "fsl,mpc8321-ucc-qmc-hdlc",
                     "fsl,qe-ucc-qmc-hdlc",
                     "fsl,qmc-hdlc";
        reg = <19>;
        fsl,operational-mode = "hdlc";
        fsl,tx-ts-mask = <0x00000000 0x0000ff00>;
        fsl,rx-ts-mask = <0x00000000 0x0000ff00>;
        fsl,framer = <&framer>;
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page