NXP i.MX8 DSP core

Schema identifier ($id): "http://devicetree.org/schemas/dsp/fsl,dsp.yaml#"

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

Maintainers (maintainers): "Daniel Baluta <daniel.baluta@nxp.com>", "Shengjiu Wang <shengjiu.wang@nxp.com>"

Some boards from i.MX8 family contain a DSP core used for advanced pre- and post- audio processing.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "fsl,imx8qxp-dsp", "fsl,imx8qm-dsp", "fsl,imx8mp-dsp", "fsl,imx8ulp-dsp", "fsl,imx8qxp-hifi4", "fsl,imx8qm-hifi4", "fsl,imx8mp-hifi4", "fsl,imx8ulp-hifi4"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

ipg clock

Item 2

ocram clock

Item 3

core clock

Item 4

debug interface clock

Item 5

message unit clock

Minimum number of items (minItems): 3

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "ipg"

Item 2

Exact value (const): "ocram"

Item 3

Exact value (const): "core"

Item 4

Exact value (const): "debug"

Item 5

Exact value (const): "mu"

Minimum number of items (minItems): 3

power-domains — required here #

List of phandle and PM domain specifier as documented in Documentation/devicetree/bindings/power/power_domain.txt

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4

mboxes — required here #

List of <&phandle type channel> - 2 channels for TXDB, 2 channels for RXDB or - 1 channel for TX, 1 channel for RX, 1 channel for RXDB (see mailbox/fsl,mu.txt)

Minimum number of items (minItems): 3

Maximum number of items (maxItems): 4

mbox-names — required here #

Minimum number of items (minItems): 3

Maximum number of items (maxItems): 4

memory-region — required here #

phandle to a node describing reserved memory (System RAM memory) used by DSP (see bindings/reserved-memory/reserved-memory.txt)

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4

firmware-name — not listed as required here #

Default name of the firmware to load to the remote processor.

fsl,dsp-ctrl — not listed as required here #

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

Phandle to syscon block which provide access for processor enablement

resets — not listed as required here #

Minimum number of items (minItems): 1

reset-names — not listed as required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "runstall"

Item 2

Exact value (const): "softreset"

access-controllers — not listed as required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "clocks", "clock-names", "power-domains", "mboxes", "mbox-names", "memory-region"

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "fsl,imx8qxp-dsp", "fsl,imx8qxp-hifi4"

When the condition matches (then) #

Properties and child nodes (properties)

power-domains — not listed as required here

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "fsl,imx8qm-dsp", "fsl,imx8qm-hifi4"

When the condition matches (then) #

Properties and child nodes (properties)

power-domains — not listed as required here

Minimum number of items (minItems): 4

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "fsl,imx8mp-dsp", "fsl,imx8mp-hifi4", "fsl,imx8ulp-dsp", "fsl,imx8ulp-hifi4"

When the condition matches (then) #

Properties and child nodes (properties)

power-domains — not listed as required here

Maximum number of items (maxItems): 1

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "fsl,imx8qxp-hifi4", "fsl,imx8qm-hifi4", "fsl,imx8mp-hifi4", "fsl,imx8ulp-hifi4"

When the condition matches (then) #

Properties and child nodes (properties)

memory-region — not listed as required here

Minimum number of items (minItems): 4

mboxes — not listed as required here

Maximum number of items (maxItems): 3

mbox-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "tx"

Item 2

Exact value (const): "rx"

Item 3

Exact value (const): "rxdb"

When the condition does not match (else) #

Properties and child nodes (properties)

memory-region — not listed as required here

Maximum number of items (maxItems): 1

mboxes — not listed as required here

Minimum number of items (minItems): 4

mbox-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "txdb0"

Item 2

Exact value (const): "txdb1"

Item 3

Exact value (const): "rxdb0"

Item 4

Exact value (const): "rxdb1"

Rule 5 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "fsl,imx8mp-dsp", "fsl,imx8mp-hifi4"

When the condition matches (then) #

Required in this object (required): "resets", "reset-names"

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/firmware/imx/rsrc.h>
#include <dt-bindings/clock/imx8-clock.h>
dsp@596e8000 {
    compatible = "fsl,imx8qxp-dsp";
    reg = <0x596e8000 0x88000>;
    clocks = <&adma_lpcg IMX_ADMA_LPCG_DSP_IPG_CLK>,
             <&adma_lpcg IMX_ADMA_LPCG_OCRAM_IPG_CLK>,
             <&adma_lpcg IMX_ADMA_LPCG_DSP_CORE_CLK>;
    clock-names = "ipg", "ocram", "core";
    power-domains = <&pd IMX_SC_R_MU_13B>,
                    <&pd IMX_SC_R_MU_2A>;
    mbox-names = "txdb0", "txdb1", "rxdb0", "rxdb1";
    mboxes = <&lsio_mu13 2 0>, <&lsio_mu13 2 1>, <&lsio_mu13 3 0>, <&lsio_mu13 3 1>;
    memory-region = <&dsp_reserved>;
};
#include <dt-bindings/clock/imx8mp-clock.h>
#include <dt-bindings/reset/imx8mp-reset-audiomix.h>
dsp_reserved: dsp@92400000 {
  reg = <0x92400000 0x1000000>;
  no-map;
};
dsp_vdev0vring0: vdev0vring0@942f0000 {
  reg = <0x942f0000 0x8000>;
  no-map;
};
dsp_vdev0vring1: vdev0vring1@942f8000 {
  reg = <0x942f8000 0x8000>;
  no-map;
};
dsp_vdev0buffer: vdev0buffer@94300000 {
  compatible = "shared-dma-pool";
  reg = <0x94300000 0x100000>;
  no-map;
};

dsp: dsp@3b6e8000 {
  compatible = "fsl,imx8mp-hifi4";
  reg = <0x3b6e8000 0x88000>;
  clocks = <&audio_blk_ctrl IMX8MP_CLK_AUDIOMIX_DSP_ROOT>,
           <&audio_blk_ctrl IMX8MP_CLK_AUDIOMIX_OCRAMA_IPG>,
           <&audio_blk_ctrl IMX8MP_CLK_AUDIOMIX_DSP_ROOT>,
           <&audio_blk_ctrl IMX8MP_CLK_AUDIOMIX_DSPDBG_ROOT>;
  clock-names = "ipg", "ocram", "core", "debug";
  firmware-name = "imx/dsp/hifi4.bin";
  power-domains = <&audiomix_pd>;
  mbox-names = "tx", "rx", "rxdb";
  mboxes = <&mu2 0 0>,
           <&mu2 1 0>,
           <&mu2 3 0>;
  memory-region = <&dsp_vdev0buffer>, <&dsp_vdev0vring0>,
                  <&dsp_vdev0vring1>, <&dsp_reserved>;
  resets = <&audio_blk_ctrl IMX8MP_AUDIOMIX_DSP_RUNSTALL>;
  reset-names = "runstall";
};

Source notes #

Annotations retained from the schema source

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

Edit this page