High-Level Data Link Control(HDLC)

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

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

HDLC part in Universal communication controllers (UCCs)

Maintainers (maintainers): "Frank Li <Frank.Li@nxp.com>"

Properties and child nodes (properties) #

compatible — required here #

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

reg — required here #

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

cell-index — not listed as required here #

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

rx-clock-name — not listed as required here #

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

Exactly one of these rules must match (oneOf) #

Rule 1

String pattern (pattern): "^brg([0-9]|1[0-6])$"

Rule 2

String pattern (pattern): "^clk([0-9]|1[0-9]|2[0-4])$"

tx-clock-name — not listed as required here #

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

Exactly one of these rules must match (oneOf) #

Rule 1

String pattern (pattern): "^brg([0-9]|1[0-6])$"

Rule 2

String pattern (pattern): "^clk([0-9]|1[0-9]|2[0-4])$"

fsl,tdm-interface — not listed as required here #

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

Specify that hdlc is based on tdm-interface

fsl,rx-sync-clock — not listed as required here #

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

rx-sync

Allowed values (enum): "none", "rsync_pin", "brg9", "brg10", "brg11", "brg13", "brg14", "brg15"

fsl,tx-sync-clock — not listed as required here #

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

tx-sync

Allowed values (enum): "none", "tsync_pin", "brg9", "brg10", "brg11", "brg13", "brg14", "brg15"

fsl,tdm-framer-type — not listed as required here #

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

required for tdm interface

Allowed values (enum): "e1", "t1"

fsl,tdm-id — not listed as required here #

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

number of TDM ID

fsl,tx-timeslot-mask — not listed as required here #

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

required for tdm interface. time slot mask for TDM operation. Indicates which time slots used for transmitting and receiving.

fsl,rx-timeslot-mask — not listed as required here #

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

required for tdm interface. time slot mask for TDM operation. Indicates which time slots used for transmitting and receiving.

fsl,siram-entry-id — not listed as required here #

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

required for tdm interface Must be 0,2,4...64. the number of TDM entry.

fsl,tdm-internal-loopback — not listed as required here #

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

optional for tdm interface Internal loopback connecting on TDM layer.

fsl,hmask — not listed as required here #

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

HDLC address recognition. Set to zero to disable address filtering of packets: fsl,hmask = /bits/ 16 <0x0000>;

Required in this object (required): "compatible", "reg"

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

false

Not allowed by this rule.

Examples (examples) #

communication@2000 {
    compatible = "fsl,ucc-hdlc";
    reg = <0x2000 0x200>;
    rx-clock-name = "clk8";
    tx-clock-name = "clk9";
    fsl,rx-sync-clock = "rsync_pin";
    fsl,tx-sync-clock = "tsync_pin";
    fsl,tx-timeslot-mask = <0xfffffffe>;
    fsl,rx-timeslot-mask = <0xfffffffe>;
    fsl,tdm-framer-type = "e1";
    fsl,tdm-id = <0>;
    fsl,siram-entry-id = <0>;
    fsl,tdm-interface;
};
communication@2000 {
    compatible = "fsl,ucc-hdlc";
    reg = <0x2000 0x200>;
    rx-clock-name = "brg1";
    tx-clock-name = "brg1";
};

Source notes #

Annotations retained from the schema source

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

Edit this page