166727cdbSYC Hung# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 266727cdbSYC Hung%YAML 1.2 366727cdbSYC Hung--- 466727cdbSYC Hung$id: http://devicetree.org/schemas/dsp/mediatek,mt8195-dsp.yaml# 566727cdbSYC Hung$schema: http://devicetree.org/meta-schemas/core.yaml# 666727cdbSYC Hung 766727cdbSYC Hungtitle: Mediatek mt8195 DSP core 866727cdbSYC Hung 966727cdbSYC Hungmaintainers: 1066727cdbSYC Hung - YC Hung <yc.hung@mediatek.com> 1166727cdbSYC Hung 1266727cdbSYC Hungdescription: | 1366727cdbSYC Hung Some boards from mt8195 contain a DSP core used for 1466727cdbSYC Hung advanced pre- and post- audio processing. 1566727cdbSYC Hung 1666727cdbSYC Hungproperties: 1766727cdbSYC Hung compatible: 1866727cdbSYC Hung const: mediatek,mt8195-dsp 1966727cdbSYC Hung 2066727cdbSYC Hung reg: 2166727cdbSYC Hung items: 2266727cdbSYC Hung - description: Address and size of the DSP Cfg registers 2366727cdbSYC Hung - description: Address and size of the DSP SRAM 2466727cdbSYC Hung 2566727cdbSYC Hung reg-names: 2666727cdbSYC Hung items: 2766727cdbSYC Hung - const: cfg 2866727cdbSYC Hung - const: sram 2966727cdbSYC Hung 3066727cdbSYC Hung clocks: 3166727cdbSYC Hung items: 3266727cdbSYC Hung - description: mux for audio dsp clock 3366727cdbSYC Hung - description: 26M clock 3466727cdbSYC Hung - description: mux for audio dsp local bus 3566727cdbSYC Hung - description: default audio dsp local bus clock source 3666727cdbSYC Hung - description: clock gate for audio dsp clock 3766727cdbSYC Hung - description: mux for audio dsp access external bus 3866727cdbSYC Hung 3966727cdbSYC Hung clock-names: 4066727cdbSYC Hung items: 4166727cdbSYC Hung - const: adsp_sel 4266727cdbSYC Hung - const: clk26m_ck 4366727cdbSYC Hung - const: audio_local_bus 4466727cdbSYC Hung - const: mainpll_d7_d2 4566727cdbSYC Hung - const: scp_adsp_audiodsp 4666727cdbSYC Hung - const: audio_h 4766727cdbSYC Hung 4866727cdbSYC Hung power-domains: 4966727cdbSYC Hung maxItems: 1 5066727cdbSYC Hung 5166727cdbSYC Hung mboxes: 5266727cdbSYC Hung items: 53*009b21f3STinghan Shen - description: mailbox for receiving audio DSP requests. 54*009b21f3STinghan Shen - description: mailbox for transmitting requests to audio DSP. 5566727cdbSYC Hung 5666727cdbSYC Hung mbox-names: 5766727cdbSYC Hung items: 58*009b21f3STinghan Shen - const: rx 59*009b21f3STinghan Shen - const: tx 6066727cdbSYC Hung 6166727cdbSYC Hung memory-region: 6266727cdbSYC Hung items: 6366727cdbSYC Hung - description: dma buffer between host and DSP. 6466727cdbSYC Hung - description: DSP system memory. 6566727cdbSYC Hung 6666727cdbSYC Hungrequired: 6766727cdbSYC Hung - compatible 6866727cdbSYC Hung - reg 6966727cdbSYC Hung - reg-names 7066727cdbSYC Hung - clocks 7166727cdbSYC Hung - clock-names 7266727cdbSYC Hung - memory-region 7366727cdbSYC Hung - power-domains 7466727cdbSYC Hung - mbox-names 7566727cdbSYC Hung - mboxes 7666727cdbSYC Hung 7766727cdbSYC HungadditionalProperties: false 7866727cdbSYC Hung 7966727cdbSYC Hungexamples: 8066727cdbSYC Hung - | 8166727cdbSYC Hung #include <dt-bindings/interrupt-controller/arm-gic.h> 8266727cdbSYC Hung #include <dt-bindings/interrupt-controller/irq.h> 8366727cdbSYC Hung dsp@10803000 { 8466727cdbSYC Hung compatible = "mediatek,mt8195-dsp"; 8566727cdbSYC Hung reg = <0x10803000 0x1000>, 8666727cdbSYC Hung <0x10840000 0x40000>; 8766727cdbSYC Hung reg-names = "cfg", "sram"; 8866727cdbSYC Hung clocks = <&topckgen 10>, //CLK_TOP_ADSP 8966727cdbSYC Hung <&clk26m>, 9066727cdbSYC Hung <&topckgen 107>, //CLK_TOP_AUDIO_LOCAL_BUS 9166727cdbSYC Hung <&topckgen 136>, //CLK_TOP_MAINPLL_D7_D2 9266727cdbSYC Hung <&scp_adsp 0>, //CLK_SCP_ADSP_AUDIODSP 9366727cdbSYC Hung <&topckgen 34>; //CLK_TOP_AUDIO_H 9466727cdbSYC Hung clock-names = "adsp_sel", 9566727cdbSYC Hung "clk26m_ck", 9666727cdbSYC Hung "audio_local_bus", 9766727cdbSYC Hung "mainpll_d7_d2", 9866727cdbSYC Hung "scp_adsp_audiodsp", 9966727cdbSYC Hung "audio_h"; 10066727cdbSYC Hung memory-region = <&adsp_dma_mem_reserved>, 10166727cdbSYC Hung <&adsp_mem_reserved>; 10266727cdbSYC Hung power-domains = <&spm 6>; //MT8195_POWER_DOMAIN_ADSP 103*009b21f3STinghan Shen mbox-names = "rx", "tx"; 10466727cdbSYC Hung mboxes = <&adsp_mailbox0>, <&adsp_mailbox1>; 10566727cdbSYC Hung }; 106