1*c66ec88fSEmmanuel VadotMediatek AFE PCM controller for mt2701 2*c66ec88fSEmmanuel Vadot 3*c66ec88fSEmmanuel VadotRequired properties: 4*c66ec88fSEmmanuel Vadot- compatible: should be one of the followings. 5*c66ec88fSEmmanuel Vadot - "mediatek,mt2701-audio" 6*c66ec88fSEmmanuel Vadot - "mediatek,mt7622-audio" 7*c66ec88fSEmmanuel Vadot- interrupts: should contain AFE and ASYS interrupts 8*c66ec88fSEmmanuel Vadot- interrupt-names: should be "afe" and "asys" 9*c66ec88fSEmmanuel Vadot- power-domains: should define the power domain 10*c66ec88fSEmmanuel Vadot- clocks: Must contain an entry for each entry in clock-names 11*c66ec88fSEmmanuel Vadot See ../clocks/clock-bindings.txt for details 12*c66ec88fSEmmanuel Vadot- clock-names: should have these clock names: 13*c66ec88fSEmmanuel Vadot "infra_sys_audio_clk", 14*c66ec88fSEmmanuel Vadot "top_audio_mux1_sel", 15*c66ec88fSEmmanuel Vadot "top_audio_mux2_sel", 16*c66ec88fSEmmanuel Vadot "top_audio_a1sys_hp", 17*c66ec88fSEmmanuel Vadot "top_audio_a2sys_hp", 18*c66ec88fSEmmanuel Vadot "i2s0_src_sel", 19*c66ec88fSEmmanuel Vadot "i2s1_src_sel", 20*c66ec88fSEmmanuel Vadot "i2s2_src_sel", 21*c66ec88fSEmmanuel Vadot "i2s3_src_sel", 22*c66ec88fSEmmanuel Vadot "i2s0_src_div", 23*c66ec88fSEmmanuel Vadot "i2s1_src_div", 24*c66ec88fSEmmanuel Vadot "i2s2_src_div", 25*c66ec88fSEmmanuel Vadot "i2s3_src_div", 26*c66ec88fSEmmanuel Vadot "i2s0_mclk_en", 27*c66ec88fSEmmanuel Vadot "i2s1_mclk_en", 28*c66ec88fSEmmanuel Vadot "i2s2_mclk_en", 29*c66ec88fSEmmanuel Vadot "i2s3_mclk_en", 30*c66ec88fSEmmanuel Vadot "i2so0_hop_ck", 31*c66ec88fSEmmanuel Vadot "i2so1_hop_ck", 32*c66ec88fSEmmanuel Vadot "i2so2_hop_ck", 33*c66ec88fSEmmanuel Vadot "i2so3_hop_ck", 34*c66ec88fSEmmanuel Vadot "i2si0_hop_ck", 35*c66ec88fSEmmanuel Vadot "i2si1_hop_ck", 36*c66ec88fSEmmanuel Vadot "i2si2_hop_ck", 37*c66ec88fSEmmanuel Vadot "i2si3_hop_ck", 38*c66ec88fSEmmanuel Vadot "asrc0_out_ck", 39*c66ec88fSEmmanuel Vadot "asrc1_out_ck", 40*c66ec88fSEmmanuel Vadot "asrc2_out_ck", 41*c66ec88fSEmmanuel Vadot "asrc3_out_ck", 42*c66ec88fSEmmanuel Vadot "audio_afe_pd", 43*c66ec88fSEmmanuel Vadot "audio_afe_conn_pd", 44*c66ec88fSEmmanuel Vadot "audio_a1sys_pd", 45*c66ec88fSEmmanuel Vadot "audio_a2sys_pd", 46*c66ec88fSEmmanuel Vadot "audio_mrgif_pd"; 47*c66ec88fSEmmanuel Vadot- assigned-clocks: list of input clocks and dividers for the audio system. 48*c66ec88fSEmmanuel Vadot See ../clocks/clock-bindings.txt for details. 49*c66ec88fSEmmanuel Vadot- assigned-clocks-parents: parent of input clocks of assigned clocks. 50*c66ec88fSEmmanuel Vadot- assigned-clock-rates: list of clock frequencies of assigned clocks. 51*c66ec88fSEmmanuel Vadot 52*c66ec88fSEmmanuel VadotMust be a subnode of MediaTek audsys device tree node. 53*c66ec88fSEmmanuel VadotSee ../arm/mediatek/mediatek,audsys.txt for details about the parent node. 54*c66ec88fSEmmanuel Vadot 55*c66ec88fSEmmanuel VadotExample: 56*c66ec88fSEmmanuel Vadot 57*c66ec88fSEmmanuel Vadot audsys: audio-subsystem@11220000 { 58*c66ec88fSEmmanuel Vadot compatible = "mediatek,mt2701-audsys", "syscon"; 59*c66ec88fSEmmanuel Vadot ... 60*c66ec88fSEmmanuel Vadot 61*c66ec88fSEmmanuel Vadot afe: audio-controller { 62*c66ec88fSEmmanuel Vadot compatible = "mediatek,mt2701-audio"; 63*c66ec88fSEmmanuel Vadot interrupts = <GIC_SPI 104 IRQ_TYPE_LEVEL_LOW>, 64*c66ec88fSEmmanuel Vadot <GIC_SPI 132 IRQ_TYPE_LEVEL_LOW>; 65*c66ec88fSEmmanuel Vadot interrupt-names = "afe", "asys"; 66*c66ec88fSEmmanuel Vadot power-domains = <&scpsys MT2701_POWER_DOMAIN_IFR_MSC>; 67*c66ec88fSEmmanuel Vadot 68*c66ec88fSEmmanuel Vadot clocks = <&infracfg CLK_INFRA_AUDIO>, 69*c66ec88fSEmmanuel Vadot <&topckgen CLK_TOP_AUD_MUX1_SEL>, 70*c66ec88fSEmmanuel Vadot <&topckgen CLK_TOP_AUD_MUX2_SEL>, 71*c66ec88fSEmmanuel Vadot <&topckgen CLK_TOP_AUD_48K_TIMING>, 72*c66ec88fSEmmanuel Vadot <&topckgen CLK_TOP_AUD_44K_TIMING>, 73*c66ec88fSEmmanuel Vadot <&topckgen CLK_TOP_AUD_K1_SRC_SEL>, 74*c66ec88fSEmmanuel Vadot <&topckgen CLK_TOP_AUD_K2_SRC_SEL>, 75*c66ec88fSEmmanuel Vadot <&topckgen CLK_TOP_AUD_K3_SRC_SEL>, 76*c66ec88fSEmmanuel Vadot <&topckgen CLK_TOP_AUD_K4_SRC_SEL>, 77*c66ec88fSEmmanuel Vadot <&topckgen CLK_TOP_AUD_K1_SRC_DIV>, 78*c66ec88fSEmmanuel Vadot <&topckgen CLK_TOP_AUD_K2_SRC_DIV>, 79*c66ec88fSEmmanuel Vadot <&topckgen CLK_TOP_AUD_K3_SRC_DIV>, 80*c66ec88fSEmmanuel Vadot <&topckgen CLK_TOP_AUD_K4_SRC_DIV>, 81*c66ec88fSEmmanuel Vadot <&topckgen CLK_TOP_AUD_I2S1_MCLK>, 82*c66ec88fSEmmanuel Vadot <&topckgen CLK_TOP_AUD_I2S2_MCLK>, 83*c66ec88fSEmmanuel Vadot <&topckgen CLK_TOP_AUD_I2S3_MCLK>, 84*c66ec88fSEmmanuel Vadot <&topckgen CLK_TOP_AUD_I2S4_MCLK>, 85*c66ec88fSEmmanuel Vadot <&audsys CLK_AUD_I2SO1>, 86*c66ec88fSEmmanuel Vadot <&audsys CLK_AUD_I2SO2>, 87*c66ec88fSEmmanuel Vadot <&audsys CLK_AUD_I2SO3>, 88*c66ec88fSEmmanuel Vadot <&audsys CLK_AUD_I2SO4>, 89*c66ec88fSEmmanuel Vadot <&audsys CLK_AUD_I2SIN1>, 90*c66ec88fSEmmanuel Vadot <&audsys CLK_AUD_I2SIN2>, 91*c66ec88fSEmmanuel Vadot <&audsys CLK_AUD_I2SIN3>, 92*c66ec88fSEmmanuel Vadot <&audsys CLK_AUD_I2SIN4>, 93*c66ec88fSEmmanuel Vadot <&audsys CLK_AUD_ASRCO1>, 94*c66ec88fSEmmanuel Vadot <&audsys CLK_AUD_ASRCO2>, 95*c66ec88fSEmmanuel Vadot <&audsys CLK_AUD_ASRCO3>, 96*c66ec88fSEmmanuel Vadot <&audsys CLK_AUD_ASRCO4>, 97*c66ec88fSEmmanuel Vadot <&audsys CLK_AUD_AFE>, 98*c66ec88fSEmmanuel Vadot <&audsys CLK_AUD_AFE_CONN>, 99*c66ec88fSEmmanuel Vadot <&audsys CLK_AUD_A1SYS>, 100*c66ec88fSEmmanuel Vadot <&audsys CLK_AUD_A2SYS>, 101*c66ec88fSEmmanuel Vadot <&audsys CLK_AUD_AFE_MRGIF>; 102*c66ec88fSEmmanuel Vadot 103*c66ec88fSEmmanuel Vadot clock-names = "infra_sys_audio_clk", 104*c66ec88fSEmmanuel Vadot "top_audio_mux1_sel", 105*c66ec88fSEmmanuel Vadot "top_audio_mux2_sel", 106*c66ec88fSEmmanuel Vadot "top_audio_a1sys_hp", 107*c66ec88fSEmmanuel Vadot "top_audio_a2sys_hp", 108*c66ec88fSEmmanuel Vadot "i2s0_src_sel", 109*c66ec88fSEmmanuel Vadot "i2s1_src_sel", 110*c66ec88fSEmmanuel Vadot "i2s2_src_sel", 111*c66ec88fSEmmanuel Vadot "i2s3_src_sel", 112*c66ec88fSEmmanuel Vadot "i2s0_src_div", 113*c66ec88fSEmmanuel Vadot "i2s1_src_div", 114*c66ec88fSEmmanuel Vadot "i2s2_src_div", 115*c66ec88fSEmmanuel Vadot "i2s3_src_div", 116*c66ec88fSEmmanuel Vadot "i2s0_mclk_en", 117*c66ec88fSEmmanuel Vadot "i2s1_mclk_en", 118*c66ec88fSEmmanuel Vadot "i2s2_mclk_en", 119*c66ec88fSEmmanuel Vadot "i2s3_mclk_en", 120*c66ec88fSEmmanuel Vadot "i2so0_hop_ck", 121*c66ec88fSEmmanuel Vadot "i2so1_hop_ck", 122*c66ec88fSEmmanuel Vadot "i2so2_hop_ck", 123*c66ec88fSEmmanuel Vadot "i2so3_hop_ck", 124*c66ec88fSEmmanuel Vadot "i2si0_hop_ck", 125*c66ec88fSEmmanuel Vadot "i2si1_hop_ck", 126*c66ec88fSEmmanuel Vadot "i2si2_hop_ck", 127*c66ec88fSEmmanuel Vadot "i2si3_hop_ck", 128*c66ec88fSEmmanuel Vadot "asrc0_out_ck", 129*c66ec88fSEmmanuel Vadot "asrc1_out_ck", 130*c66ec88fSEmmanuel Vadot "asrc2_out_ck", 131*c66ec88fSEmmanuel Vadot "asrc3_out_ck", 132*c66ec88fSEmmanuel Vadot "audio_afe_pd", 133*c66ec88fSEmmanuel Vadot "audio_afe_conn_pd", 134*c66ec88fSEmmanuel Vadot "audio_a1sys_pd", 135*c66ec88fSEmmanuel Vadot "audio_a2sys_pd", 136*c66ec88fSEmmanuel Vadot "audio_mrgif_pd"; 137*c66ec88fSEmmanuel Vadot 138*c66ec88fSEmmanuel Vadot assigned-clocks = <&topckgen CLK_TOP_AUD_MUX1_SEL>, 139*c66ec88fSEmmanuel Vadot <&topckgen CLK_TOP_AUD_MUX2_SEL>, 140*c66ec88fSEmmanuel Vadot <&topckgen CLK_TOP_AUD_MUX1_DIV>, 141*c66ec88fSEmmanuel Vadot <&topckgen CLK_TOP_AUD_MUX2_DIV>; 142*c66ec88fSEmmanuel Vadot assigned-clock-parents = <&topckgen CLK_TOP_AUD1PLL_98M>, 143*c66ec88fSEmmanuel Vadot <&topckgen CLK_TOP_AUD2PLL_90M>; 144*c66ec88fSEmmanuel Vadot assigned-clock-rates = <0>, <0>, <49152000>, <45158400>; 145*c66ec88fSEmmanuel Vadot }; 146*c66ec88fSEmmanuel Vadot }; 147