xref: /freebsd/sys/contrib/device-tree/Bindings/mfd/twl4030-audio.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel VadotTexas Instruments TWL family (twl4030) audio module
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotThe audio module inside the TWL family consist of an audio codec and a vibra
4*c66ec88fSEmmanuel Vadotdriver.
5*c66ec88fSEmmanuel Vadot
6*c66ec88fSEmmanuel VadotRequired properties:
7*c66ec88fSEmmanuel Vadot- compatible : must be "ti,twl4030-audio"
8*c66ec88fSEmmanuel Vadot
9*c66ec88fSEmmanuel VadotOptional properties, nodes:
10*c66ec88fSEmmanuel Vadot
11*c66ec88fSEmmanuel VadotAudio functionality:
12*c66ec88fSEmmanuel Vadot- codec { }: Need to be present if the audio functionality is used. Within this
13*c66ec88fSEmmanuel Vadot	     section the following options can be used:
14*c66ec88fSEmmanuel Vadot- ti,digimic_delay: Delay need after enabling the digimic to reduce artifacts
15*c66ec88fSEmmanuel Vadot		    from the start of the recorded sample (in ms)
16*c66ec88fSEmmanuel Vadot-ti,ramp_delay_value: HS ramp delay configuration to reduce pop noise
17*c66ec88fSEmmanuel Vadot-ti,hs_extmute: Use external mute for HS pop reduction
18*c66ec88fSEmmanuel Vadot-ti,hs_extmute_gpio: Use external GPIO to control the external mute
19*c66ec88fSEmmanuel Vadot-ti,offset_cncl_path: Offset cancellation path selection, refer to TRM for the
20*c66ec88fSEmmanuel Vadot		      valid values.
21*c66ec88fSEmmanuel Vadot
22*c66ec88fSEmmanuel VadotVibra functionality
23*c66ec88fSEmmanuel Vadot- ti,enable-vibra: Need to be set to <1> if the vibra functionality is used. if
24*c66ec88fSEmmanuel Vadot		   missing or it is 0, the vibra functionality is disabled.
25*c66ec88fSEmmanuel Vadot
26*c66ec88fSEmmanuel VadotExample:
27*c66ec88fSEmmanuel Vadot&i2c1 {
28*c66ec88fSEmmanuel Vadot	clock-frequency = <2600000>;
29*c66ec88fSEmmanuel Vadot
30*c66ec88fSEmmanuel Vadot	twl: twl@48 {
31*c66ec88fSEmmanuel Vadot		reg = <0x48>;
32*c66ec88fSEmmanuel Vadot		interrupts = <7>; /* SYS_NIRQ cascaded to intc */
33*c66ec88fSEmmanuel Vadot		interrupt-parent = <&intc>;
34*c66ec88fSEmmanuel Vadot
35*c66ec88fSEmmanuel Vadot		twl_audio: audio {
36*c66ec88fSEmmanuel Vadot			compatible = "ti,twl4030-audio";
37*c66ec88fSEmmanuel Vadot
38*c66ec88fSEmmanuel Vadot			ti,enable-vibra = <1>;
39*c66ec88fSEmmanuel Vadot
40*c66ec88fSEmmanuel Vadot			codec {
41*c66ec88fSEmmanuel Vadot				ti,ramp_delay_value = <3>;
42*c66ec88fSEmmanuel Vadot			};
43*c66ec88fSEmmanuel Vadot
44*c66ec88fSEmmanuel Vadot		};
45*c66ec88fSEmmanuel Vadot	};
46*c66ec88fSEmmanuel Vadot};
47