Mediatek mt8195 DSP core

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)

Edit this page