xref: /freebsd/sys/contrib/device-tree/Bindings/sound/mtk-afe-pcm.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel VadotMediatek AFE PCM controller
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotRequired properties:
4*c66ec88fSEmmanuel Vadot- compatible = "mediatek,mt8173-afe-pcm";
5*c66ec88fSEmmanuel Vadot- reg: register location and size
6*c66ec88fSEmmanuel Vadot- interrupts: Should contain AFE interrupt
7*c66ec88fSEmmanuel Vadot- clock-names: should have these clock names:
8*c66ec88fSEmmanuel Vadot		"infra_sys_audio_clk",
9*c66ec88fSEmmanuel Vadot		"top_pdn_audio",
10*c66ec88fSEmmanuel Vadot		"top_pdn_aud_intbus",
11*c66ec88fSEmmanuel Vadot		"bck0",
12*c66ec88fSEmmanuel Vadot		"bck1",
13*c66ec88fSEmmanuel Vadot		"i2s0_m",
14*c66ec88fSEmmanuel Vadot		"i2s1_m",
15*c66ec88fSEmmanuel Vadot		"i2s2_m",
16*c66ec88fSEmmanuel Vadot		"i2s3_m",
17*c66ec88fSEmmanuel Vadot		"i2s3_b";
18*c66ec88fSEmmanuel Vadot
19*c66ec88fSEmmanuel VadotExample:
20*c66ec88fSEmmanuel Vadot
21*c66ec88fSEmmanuel Vadot	afe: mt8173-afe-pcm@11220000  {
22*c66ec88fSEmmanuel Vadot		compatible = "mediatek,mt8173-afe-pcm";
23*c66ec88fSEmmanuel Vadot		reg = <0 0x11220000 0 0x1000>;
24*c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 134 IRQ_TYPE_EDGE_FALLING>;
25*c66ec88fSEmmanuel Vadot		clocks = <&infracfg INFRA_AUDIO>,
26*c66ec88fSEmmanuel Vadot			<&topckgen TOP_AUDIO_SEL>,
27*c66ec88fSEmmanuel Vadot			<&topckgen TOP_AUD_INTBUS_SEL>,
28*c66ec88fSEmmanuel Vadot			<&topckgen TOP_APLL1_DIV0>,
29*c66ec88fSEmmanuel Vadot			<&topckgen TOP_APLL2_DIV0>,
30*c66ec88fSEmmanuel Vadot			<&topckgen TOP_I2S0_M_CK_SEL>,
31*c66ec88fSEmmanuel Vadot			<&topckgen TOP_I2S1_M_CK_SEL>,
32*c66ec88fSEmmanuel Vadot			<&topckgen TOP_I2S2_M_CK_SEL>,
33*c66ec88fSEmmanuel Vadot			<&topckgen TOP_I2S3_M_CK_SEL>,
34*c66ec88fSEmmanuel Vadot			<&topckgen TOP_I2S3_B_CK_SEL>;
35*c66ec88fSEmmanuel Vadot		clock-names = "infra_sys_audio_clk",
36*c66ec88fSEmmanuel Vadot				"top_pdn_audio",
37*c66ec88fSEmmanuel Vadot				"top_pdn_aud_intbus",
38*c66ec88fSEmmanuel Vadot				"bck0",
39*c66ec88fSEmmanuel Vadot				"bck1",
40*c66ec88fSEmmanuel Vadot				"i2s0_m",
41*c66ec88fSEmmanuel Vadot				"i2s1_m",
42*c66ec88fSEmmanuel Vadot				"i2s2_m",
43*c66ec88fSEmmanuel Vadot				"i2s3_m",
44*c66ec88fSEmmanuel Vadot				"i2s3_b";
45*c66ec88fSEmmanuel Vadot	};
46