Dsp bindings
Single-page view · as markdown
NXP i.MX8 DSP core
Peios Kernel / Hardware and drivers / Device-tree binding reference / Dsp bindings
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 hereRule 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 hereMinimum number of items (
minItems):2Maximum number of items (
maxItems):2
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
power-domains— not listed as required hereMinimum number of items (
minItems):4
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule 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 hereMaximum number of items (
maxItems):1
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule 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 hereMinimum number of items (
minItems):4
mboxes— not listed as required hereMaximum number of items (
maxItems):3
mbox-names— not listed as required hereArray 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 hereMaximum number of items (
maxItems):1
mboxes— not listed as required hereMinimum number of items (
minItems):4
mbox-names— not listed as required hereArray 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 hereRule for matching array elements (
contains)When the condition matches (
then) #
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)
MediaTek mt8186 DSP core
Peios Kernel / Hardware and drivers / Device-tree binding reference / Dsp bindings
Schema identifier ($id): "http://devicetree.org/schemas/dsp/mediatek,mt8186-dsp.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>"
MediaTek mt8186 SoC contains a DSP core used for advanced pre- and post- audio processing.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "mediatek,mt8186-dsp", "mediatek,mt8188-dsp"
reg — required here #
Array item rules (items) #
Item 1
Address and size of the DSP config registers
Item 2
Address and size of the DSP SRAM
Item 3
Address and size of the DSP secure registers
Item 4
Address and size of the DSP bus registers
reg-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"cfg"
Item 2
Exact value (
const):"sram"
Item 3
Exact value (
const):"sec"
Item 4
Exact value (
const):"bus"
clocks — required here #
Array item rules (items) #
Item 1
mux for audio dsp clock
Item 2
mux for audio dsp local bus
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"audiodsp"
Item 2
Exact value (
const):"adsp_bus"
power-domains — required here #
Maximum number of items (maxItems): 1
mboxes — required here #
Array item rules (items) #
Item 1
mailbox for receiving audio DSP requests.
Item 2
mailbox for transmitting requests to audio DSP.
mbox-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"rx"
Item 2
Exact value (
const):"tx"
memory-region — not listed as required here #
Array item rules (items) #
Item 1
dma buffer between host and DSP.
Item 2
DSP system memory.
Required in this object (required): "compatible", "reg", "reg-names", "clocks", "clock-names", "power-domains", "mbox-names", "mboxes"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/mt8186-clk.h>
dsp@10680000 {
compatible = "mediatek,mt8186-dsp";
reg = <0x10680000 0x2000>,
<0x10800000 0x100000>,
<0x1068b000 0x100>,
<0x1068f000 0x1000>;
reg-names = "cfg", "sram", "sec", "bus";
clocks = <&topckgen CLK_TOP_AUDIODSP>,
<&topckgen CLK_TOP_ADSP_BUS>;
clock-names = "audiodsp",
"adsp_bus";
power-domains = <&spm 6>;
mbox-names = "rx", "tx";
mboxes = <&adsp_mailbox0>, <&adsp_mailbox1>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Mediatek mt8195 DSP core
Peios Kernel / Hardware and drivers / Device-tree binding reference / Dsp bindings
Schema identifier ($id): "http://devicetree.org/schemas/dsp/mediatek,mt8195-dsp.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "YC Hung <yc.hung@mediatek.com>"
Some boards from mt8195 contain a DSP core used for advanced pre- and post- audio processing.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "mediatek,mt8195-dsp"
reg — required here #
Array item rules (items) #
Item 1
Address and size of the DSP Cfg registers
Item 2
Address and size of the DSP SRAM
reg-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"cfg"
Item 2
Exact value (
const):"sram"
clocks — required here #
Array item rules (items) #
Item 1
mux for audio dsp clock
Item 2
26M clock
Item 3
mux for audio dsp local bus
Item 4
default audio dsp local bus clock source
Item 5
clock gate for audio dsp clock
Item 6
mux for audio dsp access external bus
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"adsp_sel"
Item 2
Exact value (
const):"clk26m_ck"
Item 3
Exact value (
const):"audio_local_bus"
Item 4
Exact value (
const):"mainpll_d7_d2"
Item 5
Exact value (
const):"scp_adsp_audiodsp"
Item 6
Exact value (
const):"audio_h"
power-domains — required here #
Maximum number of items (maxItems): 1
mboxes — required here #
Array item rules (items) #
Item 1
mailbox for receiving audio DSP requests.
Item 2
mailbox for transmitting requests to audio DSP.
mbox-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"rx"
Item 2
Exact value (
const):"tx"
memory-region — required here #
Array item rules (items) #
Item 1
dma buffer between host and DSP.
Item 2
DSP system memory.
Required in this object (required): "compatible", "reg", "reg-names", "clocks", "clock-names", "memory-region", "power-domains", "mbox-names", "mboxes"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
dsp@10803000 {
compatible = "mediatek,mt8195-dsp";
reg = <0x10803000 0x1000>,
<0x10840000 0x40000>;
reg-names = "cfg", "sram";
clocks = <&topckgen 10>, //CLK_TOP_ADSP
<&clk26m>,
<&topckgen 107>, //CLK_TOP_AUDIO_LOCAL_BUS
<&topckgen 136>, //CLK_TOP_MAINPLL_D7_D2
<&scp_adsp 0>, //CLK_SCP_ADSP_AUDIODSP
<&topckgen 34>; //CLK_TOP_AUDIO_H
clock-names = "adsp_sel",
"clk26m_ck",
"audio_local_bus",
"mainpll_d7_d2",
"scp_adsp_audiodsp",
"audio_h";
memory-region = <&adsp_dma_mem_reserved>,
<&adsp_mem_reserved>;
power-domains = <&spm 6>; //MT8195_POWER_DOMAIN_ADSP
mbox-names = "rx", "tx";
mboxes = <&adsp_mailbox0>, <&adsp_mailbox1>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)