Skip to content

Commit fe61262

Browse files
hcodinarobherring
authored andcommitted
dt-bindings: soc: fsl: cpm_qe: cpm1-scc-qmc: Add support for QMC HDLC
The QMC (QUICC mutichannel controller) is a controller present in some PowerQUICC SoC such as MPC885. The QMC HDLC uses the QMC controller to transfer HDLC data. Additionally, a framer can be connected to the QMC HDLC. If present, this framer is the interface between the TDM bus used by the QMC HDLC and the E1/T1 line. The QMC HDLC can use this framer to get information about the E1/T1 line and configure the E1/T1 line. Signed-off-by: Herve Codina <herve.codina@bootlin.com> Reviewed-by: Rob Herring <robh@kernel.org> Link: https://lore.kernel.org/r/20231011061437.64213-9-herve.codina@bootlin.com Signed-off-by: Rob Herring <robh@kernel.org>
1 parent 527de94 commit fe61262

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

Documentation/devicetree/bindings/soc/fsl/cpm_qe/fsl,cpm1-scc-qmc.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,32 @@ patternProperties:
101101
Channel assigned Rx time-slots within the Rx time-slots routed by the
102102
TSA to this cell.
103103

104+
compatible:
105+
items:
106+
- enum:
107+
- fsl,mpc885-scc-qmc-hdlc
108+
- fsl,mpc866-scc-qmc-hdlc
109+
- const: fsl,cpm1-scc-qmc-hdlc
110+
- const: fsl,qmc-hdlc
111+
112+
fsl,framer:
113+
$ref: /schemas/types.yaml#/definitions/phandle
114+
description:
115+
phandle to the framer node. The framer is in charge of an E1/T1 line
116+
interface connected to the TDM bus. It can be used to get the E1/T1 line
117+
status such as link up/down.
118+
119+
allOf:
120+
- if:
121+
properties:
122+
compatible:
123+
not:
124+
contains:
125+
const: fsl,qmc-hdlc
126+
then:
127+
properties:
128+
fsl,framer: false
129+
104130
required:
105131
- reg
106132
- fsl,tx-ts-mask
@@ -155,9 +181,13 @@ examples:
155181
156182
channel@19 {
157183
/* Ch19 : 8 TS (TS 8..15) from all routed from TSA */
184+
compatible = "fsl,mpc885-scc-qmc-hdlc",
185+
"fsl,cpm1-scc-qmc-hdlc",
186+
"fsl,qmc-hdlc";
158187
reg = <19>;
159188
fsl,operational-mode = "hdlc";
160189
fsl,tx-ts-mask = <0x00000000 0x0000ff00>;
161190
fsl,rx-ts-mask = <0x00000000 0x0000ff00>;
191+
fsl,framer = <&framer>;
162192
};
163193
};

0 commit comments

Comments
 (0)