18c2ecf20Sopenharmony_ciTexas Instruments TWL family (twl4030) audio module 28c2ecf20Sopenharmony_ci 38c2ecf20Sopenharmony_ciThe audio module inside the TWL family consist of an audio codec and a vibra 48c2ecf20Sopenharmony_cidriver. 58c2ecf20Sopenharmony_ci 68c2ecf20Sopenharmony_ciRequired properties: 78c2ecf20Sopenharmony_ci- compatible : must be "ti,twl4030-audio" 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ciOptional properties, nodes: 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ciAudio functionality: 128c2ecf20Sopenharmony_ci- codec { }: Need to be present if the audio functionality is used. Within this 138c2ecf20Sopenharmony_ci section the following options can be used: 148c2ecf20Sopenharmony_ci- ti,digimic_delay: Delay need after enabling the digimic to reduce artifacts 158c2ecf20Sopenharmony_ci from the start of the recorded sample (in ms) 168c2ecf20Sopenharmony_ci-ti,ramp_delay_value: HS ramp delay configuration to reduce pop noise 178c2ecf20Sopenharmony_ci-ti,hs_extmute: Use external mute for HS pop reduction 188c2ecf20Sopenharmony_ci-ti,hs_extmute_gpio: Use external GPIO to control the external mute 198c2ecf20Sopenharmony_ci-ti,offset_cncl_path: Offset cancellation path selection, refer to TRM for the 208c2ecf20Sopenharmony_ci valid values. 218c2ecf20Sopenharmony_ci 228c2ecf20Sopenharmony_ciVibra functionality 238c2ecf20Sopenharmony_ci- ti,enable-vibra: Need to be set to <1> if the vibra functionality is used. if 248c2ecf20Sopenharmony_ci missing or it is 0, the vibra functionality is disabled. 258c2ecf20Sopenharmony_ci 268c2ecf20Sopenharmony_ciExample: 278c2ecf20Sopenharmony_ci&i2c1 { 288c2ecf20Sopenharmony_ci clock-frequency = <2600000>; 298c2ecf20Sopenharmony_ci 308c2ecf20Sopenharmony_ci twl: twl@48 { 318c2ecf20Sopenharmony_ci reg = <0x48>; 328c2ecf20Sopenharmony_ci interrupts = <7>; /* SYS_NIRQ cascaded to intc */ 338c2ecf20Sopenharmony_ci interrupt-parent = <&intc>; 348c2ecf20Sopenharmony_ci 358c2ecf20Sopenharmony_ci twl_audio: audio { 368c2ecf20Sopenharmony_ci compatible = "ti,twl4030-audio"; 378c2ecf20Sopenharmony_ci 388c2ecf20Sopenharmony_ci ti,enable-vibra = <1>; 398c2ecf20Sopenharmony_ci 408c2ecf20Sopenharmony_ci codec { 418c2ecf20Sopenharmony_ci ti,ramp_delay_value = <3>; 428c2ecf20Sopenharmony_ci }; 438c2ecf20Sopenharmony_ci 448c2ecf20Sopenharmony_ci }; 458c2ecf20Sopenharmony_ci }; 468c2ecf20Sopenharmony_ci}; 47