18cc087a1SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 28cc087a1SEmmanuel Vadot%YAML 1.2 38cc087a1SEmmanuel Vadot--- 48cc087a1SEmmanuel Vadot$id: http://devicetree.org/schemas/sound/mt8192-afe-pcm.yaml# 58cc087a1SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 68cc087a1SEmmanuel Vadot 78cc087a1SEmmanuel Vadottitle: Mediatek AFE PCM controller for mt8192 88cc087a1SEmmanuel Vadot 98cc087a1SEmmanuel Vadotmaintainers: 108cc087a1SEmmanuel Vadot - Jiaxin Yu <jiaxin.yu@mediatek.com> 118cc087a1SEmmanuel Vadot - Shane Chien <shane.chien@mediatek.com> 128cc087a1SEmmanuel Vadot 138cc087a1SEmmanuel Vadotproperties: 148cc087a1SEmmanuel Vadot compatible: 158cc087a1SEmmanuel Vadot const: mediatek,mt8192-audio 168cc087a1SEmmanuel Vadot 178cc087a1SEmmanuel Vadot interrupts: 188cc087a1SEmmanuel Vadot maxItems: 1 198cc087a1SEmmanuel Vadot 208cc087a1SEmmanuel Vadot resets: 218cc087a1SEmmanuel Vadot maxItems: 1 228cc087a1SEmmanuel Vadot 238cc087a1SEmmanuel Vadot reset-names: 248cc087a1SEmmanuel Vadot const: audiosys 258cc087a1SEmmanuel Vadot 268cc087a1SEmmanuel Vadot mediatek,apmixedsys: 27*fac71e4eSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/phandle 288cc087a1SEmmanuel Vadot description: The phandle of the mediatek apmixedsys controller 298cc087a1SEmmanuel Vadot 308cc087a1SEmmanuel Vadot mediatek,infracfg: 31*fac71e4eSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/phandle 328cc087a1SEmmanuel Vadot description: The phandle of the mediatek infracfg controller 338cc087a1SEmmanuel Vadot 348cc087a1SEmmanuel Vadot mediatek,topckgen: 35*fac71e4eSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/phandle 368cc087a1SEmmanuel Vadot description: The phandle of the mediatek topckgen controller 378cc087a1SEmmanuel Vadot 388cc087a1SEmmanuel Vadot power-domains: 398cc087a1SEmmanuel Vadot maxItems: 1 408cc087a1SEmmanuel Vadot 418cc087a1SEmmanuel Vadot clocks: 428cc087a1SEmmanuel Vadot items: 438cc087a1SEmmanuel Vadot - description: AFE clock 448cc087a1SEmmanuel Vadot - description: ADDA DAC clock 458cc087a1SEmmanuel Vadot - description: ADDA DAC pre-distortion clock 468cc087a1SEmmanuel Vadot - description: audio infra sys clock 478cc087a1SEmmanuel Vadot - description: audio infra 26M clock 488cc087a1SEmmanuel Vadot 498cc087a1SEmmanuel Vadot clock-names: 508cc087a1SEmmanuel Vadot items: 518cc087a1SEmmanuel Vadot - const: aud_afe_clk 528cc087a1SEmmanuel Vadot - const: aud_dac_clk 538cc087a1SEmmanuel Vadot - const: aud_dac_predis_clk 548cc087a1SEmmanuel Vadot - const: aud_infra_clk 558cc087a1SEmmanuel Vadot - const: aud_infra_26m_clk 568cc087a1SEmmanuel Vadot 578cc087a1SEmmanuel Vadotrequired: 588cc087a1SEmmanuel Vadot - compatible 598cc087a1SEmmanuel Vadot - interrupts 608cc087a1SEmmanuel Vadot - resets 618cc087a1SEmmanuel Vadot - reset-names 628cc087a1SEmmanuel Vadot - mediatek,apmixedsys 638cc087a1SEmmanuel Vadot - mediatek,infracfg 648cc087a1SEmmanuel Vadot - mediatek,topckgen 658cc087a1SEmmanuel Vadot - power-domains 668cc087a1SEmmanuel Vadot - clocks 678cc087a1SEmmanuel Vadot - clock-names 688cc087a1SEmmanuel Vadot 698cc087a1SEmmanuel VadotadditionalProperties: false 708cc087a1SEmmanuel Vadot 718cc087a1SEmmanuel Vadotexamples: 728cc087a1SEmmanuel Vadot - | 738cc087a1SEmmanuel Vadot #include <dt-bindings/clock/mt8192-clk.h> 748cc087a1SEmmanuel Vadot #include <dt-bindings/interrupt-controller/arm-gic.h> 758cc087a1SEmmanuel Vadot #include <dt-bindings/interrupt-controller/irq.h> 768cc087a1SEmmanuel Vadot #include <dt-bindings/power/mt8192-power.h> 778cc087a1SEmmanuel Vadot #include <dt-bindings/reset/mt8192-resets.h> 788cc087a1SEmmanuel Vadot 798cc087a1SEmmanuel Vadot afe: mt8192-afe-pcm { 808cc087a1SEmmanuel Vadot compatible = "mediatek,mt8192-audio"; 818cc087a1SEmmanuel Vadot interrupts = <GIC_SPI 202 IRQ_TYPE_LEVEL_HIGH>; 828cc087a1SEmmanuel Vadot resets = <&watchdog MT8192_TOPRGU_AUDIO_SW_RST>; 838cc087a1SEmmanuel Vadot reset-names = "audiosys"; 848cc087a1SEmmanuel Vadot mediatek,apmixedsys = <&apmixedsys>; 858cc087a1SEmmanuel Vadot mediatek,infracfg = <&infracfg>; 868cc087a1SEmmanuel Vadot mediatek,topckgen = <&topckgen>; 878cc087a1SEmmanuel Vadot power-domains = <&scpsys MT8192_POWER_DOMAIN_AUDIO>; 888cc087a1SEmmanuel Vadot clocks = <&audsys CLK_AUD_AFE>, 898cc087a1SEmmanuel Vadot <&audsys CLK_AUD_DAC>, 908cc087a1SEmmanuel Vadot <&audsys CLK_AUD_DAC_PREDIS>, 918cc087a1SEmmanuel Vadot <&infracfg CLK_INFRA_AUDIO>, 928cc087a1SEmmanuel Vadot <&infracfg CLK_INFRA_AUDIO_26M_B>; 938cc087a1SEmmanuel Vadot clock-names = "aud_afe_clk", 948cc087a1SEmmanuel Vadot "aud_dac_clk", 958cc087a1SEmmanuel Vadot "aud_dac_predis_clk", 968cc087a1SEmmanuel Vadot "aud_infra_clk", 978cc087a1SEmmanuel Vadot "aud_infra_26m_clk"; 988cc087a1SEmmanuel Vadot }; 998cc087a1SEmmanuel Vadot 1008cc087a1SEmmanuel Vadot... 101