PowerQUICC CPM QUICC Multichannel Controller (QMC)
Schema identifier ($id): "http://devicetree.org/schemas/soc/fsl/cpm_qe/fsl,cpm1-scc-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,mpc885-scc-qmc","fsl,mpc866-scc-qmc"
Item 2
Exact value (
const):"fsl,cpm1-scc-qmc"
reg — required here #
Array item rules (items) #
Item 1
SCC (Serial communication controller) register base
Item 2
SCC parameter ram base
Item 3
Dual port ram base
reg-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"scc_regs"
Item 2
Exact value (
const):"scc_pram"
Item 3
Exact value (
const):"dpram"
interrupts — required here #
Maximum number of items (maxItems): 1
SCC interrupt line in the CPM 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,3TSA serial interface (dt-bindings/soc/cpm1-fsl,tsa.h defines these values) - 1: SCC2 - 2: SCC3 - 3: SCC4
Should be a phandle/number pair. The phandle to TSA node and the TSA serial interface to use.
#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) #
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.
compatible — not listed as required here
Array item rules (items)
Item 1
Allowed values (
enum):"fsl,mpc885-scc-qmc-hdlc","fsl,mpc866-scc-qmc-hdlc"
Item 2
Exact value (
const):"fsl,cpm1-scc-qmc-hdlc"
Item 3
Exact value (
const):"fsl,qmc-hdlc"
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 hereThis 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/cpm1-fsl,tsa.h>
qmc@a60 {
compatible = "fsl,mpc885-scc-qmc", "fsl,cpm1-scc-qmc";
reg = <0xa60 0x20>,
<0x3f00 0xc0>,
<0x2000 0x1000>;
reg-names = "scc_regs", "scc_pram", "dpram";
interrupts = <27>;
interrupt-parent = <&CPM_PIC>;
#address-cells = <1>;
#size-cells = <0>;
fsl,tsa-serial = <&tsa FSL_CPM_TSA_SCC4>;
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,mpc885-scc-qmc-hdlc",
"fsl,cpm1-scc-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)