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