xref: /freebsd/sys/contrib/device-tree/Bindings/sound/omap-mcpdm.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel Vadot* Texas Instruments OMAP4+ McPDM
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotRequired properties:
4*c66ec88fSEmmanuel Vadot- compatible: "ti,omap4-mcpdm"
5*c66ec88fSEmmanuel Vadot- reg: Register location and size as an array:
6*c66ec88fSEmmanuel Vadot       <MPU access base address, size>,
7*c66ec88fSEmmanuel Vadot       <L3 interconnect address, size>;
8*c66ec88fSEmmanuel Vadot- interrupts: Interrupt number for McPDM
9*c66ec88fSEmmanuel Vadot- ti,hwmods: Name of the hwmod associated to the McPDM
10*c66ec88fSEmmanuel Vadot- clocks:  phandle for the pdmclk provider, likely <&twl6040>
11*c66ec88fSEmmanuel Vadot- clock-names: Must be "pdmclk"
12*c66ec88fSEmmanuel Vadot
13*c66ec88fSEmmanuel VadotExample:
14*c66ec88fSEmmanuel Vadot
15*c66ec88fSEmmanuel Vadotmcpdm: mcpdm@40132000 {
16*c66ec88fSEmmanuel Vadot	compatible = "ti,omap4-mcpdm";
17*c66ec88fSEmmanuel Vadot	reg = <0x40132000 0x7f>, /* MPU private access */
18*c66ec88fSEmmanuel Vadot	      <0x49032000 0x7f>; /* L3 Interconnect */
19*c66ec88fSEmmanuel Vadot	interrupts = <0 112 0x4>;
20*c66ec88fSEmmanuel Vadot	interrupt-parent = <&gic>;
21*c66ec88fSEmmanuel Vadot	ti,hwmods = "mcpdm";
22*c66ec88fSEmmanuel Vadot};
23*c66ec88fSEmmanuel Vadot
24*c66ec88fSEmmanuel VadotIn board DTS file the pdmclk needs to be added:
25*c66ec88fSEmmanuel Vadot
26*c66ec88fSEmmanuel Vadot&mcpdm {
27*c66ec88fSEmmanuel Vadot	clocks = <&twl6040>;
28*c66ec88fSEmmanuel Vadot	clock-names = "pdmclk";
29*c66ec88fSEmmanuel Vadot	status = "okay";
30*c66ec88fSEmmanuel Vadot};
31