Texas Instruments K3 DMSS BCDMA

Schema identifier ($id): "http://devicetree.org/schemas/dma/ti/k3-bcdma.yaml#"

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

Maintainers (maintainers): "Peter Ujfalusi <peter.ujfalusi@gmail.com>"

The Block Copy DMA (BCDMA) is intended to perform similar functions as the TR mode channels of K3 UDMA-P. BCDMA includes block copy channels and Split channels.

Block copy channels mainly used for memory to memory transfers, but with optional triggers a block copy channel can service peripherals by accessing directly to memory mapped registers or area.

Split channels can be used to service PSI-L based peripherals. The peripherals can be PSI-L native or legacy, non PSI-L native peripherals with PDMAs. PDMA is tasked to act as a bridge between the PSI-L fabric and the legacy peripheral.

PDMAs can be configured via BCDMA split channel's peer registers to match with the configuration of the legacy peripheral.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "ti,am62a-dmss-bcdma-csirx", "ti,am64-dmss-bcdma", "ti,j721s2-dmss-bcdma-csi", "ti,j722s-dmss-bcdma-csi"

reg — required here #

Minimum number of items (minItems): 3

Maximum number of items (maxItems): 9

reg-names — required here #

Minimum number of items (minItems): 3

Maximum number of items (maxItems): 9

#dma-cells — required here #

Exact value (const): 3

cell 1: type of the BCDMA channel to be used to service the peripheral:
  0 - split channel
  1 - block copy channel using global trigger 1
  2 - block copy channel using global trigger 2
  3 - block copy channel using local trigger
cell 2: parameter for the channel:
  if cell 1 is 0 (split channel):
    PSI-L thread ID of the remote (to BCDMA) end.
    Valid ranges for thread ID depends on the data movement direction:
    for source thread IDs (rx): 0 - 0x7fff
    for destination thread IDs (tx): 0x8000 - 0xffff
    Please refer to the device documentation for the PSI-L thread map and
    also the PSI-L peripheral chapter for the correct thread ID.
  if cell 1 is 1 or 2 (block copy channel using global trigger):
    Unused, ignored
    The trigger must be configured for the channel externally to BCDMA,
    channels using global triggers should not be requested directly, but
    via DMA event router.
  if cell 1 is 3 (block copy channel using local trigger):
    bchan number of the locally triggered channel

cell 3: ASEL value for the channel

msi-parent — required here #

true — No constraints added by this property rule.

power-domains — not listed as required here #

Power domain if available

Maximum number of items (maxItems): 1

ti,asel — not listed as required here #

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

ASEL value for non slave channels

ti,sci-rm-range-bchan — not listed as required here #

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

Array of BCDMA block-copy channel resource subtypes for resource allocation for this host

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 255

Array item rules (items) #

Maximum value (maximum): 63

ti,sci-rm-range-tchan — not listed as required here #

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

Array of BCDMA split tx channel resource subtypes for resource allocation for this host

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 255

Array item rules (items) #

Maximum value (maximum): 63

ti,sci-rm-range-rchan — required here #

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

Array of BCDMA split rx channel resource subtypes for resource allocation for this host

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 255

Array item rules (items) #

Maximum value (maximum): 63

Required in this object (required): "compatible", "#dma-cells", "reg", "reg-names", "msi-parent", "ti,sci", "ti,sci-dev-id", "ti,sci-rm-range-rchan"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/dma/dma-controller.yaml#

Rule 2 #

Shared schema rule ($ref): /schemas/arm/keystone/ti,k3-sci-common.yaml#

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "ti,am62a-dmss-bcdma-csirx"

When the condition matches (then) #

Properties and child nodes (properties)

ti,sci-rm-range-bchan — not listed as required here

false — Not permitted by this property rule.

ti,sci-rm-range-tchan — not listed as required here

false — Not permitted by this property rule.

reg — not listed as required here

Array item rules (items)

Item 1

BCDMA Control /Status Registers region

Item 2

RX Channel Realtime Registers region

Item 3

Ring Realtime Registers region

reg-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "gcfg"

Item 2

Exact value (const): "rchanrt"

Item 3

Exact value (const): "ringrt"

Required in this object (required): "power-domains"

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "ti,am64-dmss-bcdma"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

Minimum number of items (minItems): 5

Array item rules (items)

Item 1

BCDMA Control /Status Registers region

Item 2

Block Copy Channel Realtime Registers region

Item 3

RX Channel Realtime Registers region

Item 4

TX Channel Realtime Registers region

Item 5

Ring Realtime Registers region

Item 6

Ring Configuration Registers region

Item 7

TX Channel Configuration Registers region

Item 8

RX Channel Configuration Registers region

Item 9

Block Copy Channel Configuration Registers region

reg-names — not listed as required here

Minimum number of items (minItems): 5

Array item rules (items)

Item 1

Exact value (const): "gcfg"

Item 2

Exact value (const): "bchanrt"

Item 3

Exact value (const): "rchanrt"

Item 4

Exact value (const): "tchanrt"

Item 5

Exact value (const): "ringrt"

Item 6

Exact value (const): "ring"

Item 7

Exact value (const): "tchan"

Item 8

Exact value (const): "rchan"

Item 9

Exact value (const): "bchan"

Required in this object (required): "ti,sci-rm-range-bchan", "ti,sci-rm-range-tchan"

Rule 5 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "ti,j721s2-dmss-bcdma-csi", "ti,j722s-dmss-bcdma-csi"

When the condition matches (then) #

Properties and child nodes (properties)

ti,sci-rm-range-bchan — not listed as required here

false — Not permitted by this property rule.

reg — not listed as required here

Array item rules (items)

Item 1

BCDMA Control /Status Registers region

Item 2

RX Channel Realtime Registers region

Item 3

TX Channel Realtime Registers region

Item 4

Ring Realtime Registers region

reg-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "gcfg"

Item 2

Exact value (const): "rchanrt"

Item 3

Exact value (const): "tchanrt"

Item 4

Exact value (const): "ringrt"

Required in this object (required): "ti,sci-rm-range-tchan"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

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

    main_dmss {
        compatible = "simple-mfd";
        #address-cells = <2>;
        #size-cells = <2>;
        dma-ranges;
        ranges;

        ti,sci-dev-id = <25>;

        main_bcdma: dma-controller@485c0100 {
            compatible = "ti,am64-dmss-bcdma";

            reg = <0x0 0x485c0100 0x0 0x100>,
                  <0x0 0x4c000000 0x0 0x20000>,
                  <0x0 0x4a820000 0x0 0x20000>,
                  <0x0 0x4aa40000 0x0 0x20000>,
                  <0x0 0x4bc00000 0x0 0x100000>,
                  <0x0 0x48600000 0x0 0x8000>,
                  <0x0 0x484a4000 0x0 0x2000>,
                  <0x0 0x484c2000 0x0 0x2000>,
                  <0x0 0x48420000 0x0 0x2000>;
            reg-names = "gcfg", "bchanrt", "rchanrt", "tchanrt", "ringrt",
                        "ring", "tchan", "rchan", "bchan";
            msi-parent = <&inta_main_dmss>;
            #dma-cells = <3>;

            ti,sci = <&dmsc>;
            ti,sci-dev-id = <26>;

            ti,sci-rm-range-bchan = <0x20>; /* BLOCK_COPY_CHAN */
            ti,sci-rm-range-rchan = <0x21>; /* SPLIT_TR_RX_CHAN */
            ti,sci-rm-range-tchan = <0x22>; /* SPLIT_TR_TX_CHAN */
        };
    };
};

Source notes #

Annotations retained from the schema source

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

Line 2: Copyright (C) 2020 Texas Instruments Incorporated

Line 3: Author: Peter Ujfalusi <peter.ujfalusi@ti.com>

Line 93: Should be enough

Line 104: Should be enough

Line 115: Should be enough

Edit this page