xref: /freebsd/sys/contrib/device-tree/Bindings/sound/amlogic,axg-pdm.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel Vadot* Amlogic Audio PDM input
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotRequired properties:
4*c66ec88fSEmmanuel Vadot- compatible: 'amlogic,axg-pdm' or
5*c66ec88fSEmmanuel Vadot	      'amlogic,g12a-pdm' or
6*c66ec88fSEmmanuel Vadot	      'amlogic,sm1-pdm'
7*c66ec88fSEmmanuel Vadot- reg: physical base address of the controller and length of memory
8*c66ec88fSEmmanuel Vadot       mapped region.
9*c66ec88fSEmmanuel Vadot- clocks: list of clock phandle, one for each entry clock-names.
10*c66ec88fSEmmanuel Vadot- clock-names: should contain the following:
11*c66ec88fSEmmanuel Vadot  * "pclk"   : peripheral clock.
12*c66ec88fSEmmanuel Vadot  * "dclk"   : pdm digital clock
13*c66ec88fSEmmanuel Vadot  * "sysclk" : dsp system clock
14*c66ec88fSEmmanuel Vadot- #sound-dai-cells: must be 0.
15*c66ec88fSEmmanuel Vadot
16*c66ec88fSEmmanuel VadotOptional property:
17*c66ec88fSEmmanuel Vadot- resets: phandle to the dedicated reset line of the pdm input.
18*c66ec88fSEmmanuel Vadot
19*c66ec88fSEmmanuel VadotExample of PDM on the A113 SoC:
20*c66ec88fSEmmanuel Vadot
21*c66ec88fSEmmanuel Vadotpdm: audio-controller@ff632000 {
22*c66ec88fSEmmanuel Vadot	compatible = "amlogic,axg-pdm";
23*c66ec88fSEmmanuel Vadot	reg = <0x0 0xff632000 0x0 0x34>;
24*c66ec88fSEmmanuel Vadot	#sound-dai-cells = <0>;
25*c66ec88fSEmmanuel Vadot	clocks = <&clkc_audio AUD_CLKID_PDM>,
26*c66ec88fSEmmanuel Vadot		 <&clkc_audio AUD_CLKID_PDM_DCLK>,
27*c66ec88fSEmmanuel Vadot		 <&clkc_audio AUD_CLKID_PDM_SYSCLK>;
28*c66ec88fSEmmanuel Vadot	clock-names = "pclk", "dclk", "sysclk";
29*c66ec88fSEmmanuel Vadot};
30