xref: /freebsd/sys/contrib/device-tree/Bindings/sound/amlogic,axg-tdm-formatters.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel Vadot* Amlogic Audio TDM formatters
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotRequired properties:
4*c66ec88fSEmmanuel Vadot- compatible: 'amlogic,axg-tdmin' or
5*c66ec88fSEmmanuel Vadot	      'amlogic,axg-tdmout' or
6*c66ec88fSEmmanuel Vadot	      'amlogic,g12a-tdmin' or
7*c66ec88fSEmmanuel Vadot	      'amlogic,g12a-tdmout' or
8*c66ec88fSEmmanuel Vadot	      'amlogic,sm1-tdmin' or
9*c66ec88fSEmmanuel Vadot	      'amlogic,sm1-tdmout
10*c66ec88fSEmmanuel Vadot- reg: physical base address of the controller and length of memory
11*c66ec88fSEmmanuel Vadot       mapped region.
12*c66ec88fSEmmanuel Vadot- clocks: list of clock phandle, one for each entry clock-names.
13*c66ec88fSEmmanuel Vadot- clock-names: should contain the following:
14*c66ec88fSEmmanuel Vadot  * "pclk"     : peripheral clock.
15*c66ec88fSEmmanuel Vadot  * "sclk"     : bit clock.
16*c66ec88fSEmmanuel Vadot  * "sclk_sel" : bit clock input multiplexer.
17*c66ec88fSEmmanuel Vadot  * "lrclk"    : sample clock
18*c66ec88fSEmmanuel Vadot  * "lrclk_sel": sample clock input multiplexer
19*c66ec88fSEmmanuel Vadot
20*c66ec88fSEmmanuel VadotOptional property:
21*c66ec88fSEmmanuel Vadot- resets: phandle to the dedicated reset line of the tdm formatter.
22*c66ec88fSEmmanuel Vadot
23*c66ec88fSEmmanuel VadotExample of TDMOUT_A on the S905X2 SoC:
24*c66ec88fSEmmanuel Vadot
25*c66ec88fSEmmanuel Vadottdmout_a: audio-controller@500 {
26*c66ec88fSEmmanuel Vadot	compatible = "amlogic,axg-tdmout";
27*c66ec88fSEmmanuel Vadot	reg = <0x0 0x500 0x0 0x40>;
28*c66ec88fSEmmanuel Vadot	resets = <&clkc_audio AUD_RESET_TDMOUT_A>;
29*c66ec88fSEmmanuel Vadot	clocks = <&clkc_audio AUD_CLKID_TDMOUT_A>,
30*c66ec88fSEmmanuel Vadot		 <&clkc_audio AUD_CLKID_TDMOUT_A_SCLK>,
31*c66ec88fSEmmanuel Vadot		 <&clkc_audio AUD_CLKID_TDMOUT_A_SCLK_SEL>,
32*c66ec88fSEmmanuel Vadot		 <&clkc_audio AUD_CLKID_TDMOUT_A_LRCLK>,
33*c66ec88fSEmmanuel Vadot		 <&clkc_audio AUD_CLKID_TDMOUT_A_LRCLK>;
34*c66ec88fSEmmanuel Vadot	clock-names = "pclk", "sclk", "sclk_sel",
35*c66ec88fSEmmanuel Vadot		      "lrclk", "lrclk_sel";
36*c66ec88fSEmmanuel Vadot};
37