18c2ecf20Sopenharmony_ciCS42L52 audio CODEC 28c2ecf20Sopenharmony_ci 38c2ecf20Sopenharmony_ciRequired properties: 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ci - compatible : "cirrus,cs42l52" 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ci - reg : the I2C address of the device for I2C 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ciOptional properties: 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ci - cirrus,reset-gpio : GPIO controller's phandle and the number 128c2ecf20Sopenharmony_ci of the GPIO used to reset the codec. 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_ci - cirrus,chgfreq-divisor : Values used to set the Charge Pump Frequency. 158c2ecf20Sopenharmony_ci Allowable values of 0x00 through 0x0F. These are raw values written to the 168c2ecf20Sopenharmony_ci register, not the actual frequency. The frequency is determined by the following. 178c2ecf20Sopenharmony_ci Frequency = (64xFs)/(N+2) 188c2ecf20Sopenharmony_ci N = chgfreq_val 198c2ecf20Sopenharmony_ci Fs = Sample Rate (variable) 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_ci - cirrus,mica-differential-cfg : boolean, If present, then the MICA input is configured 228c2ecf20Sopenharmony_ci as a differential input. If not present then the MICA input is configured as 238c2ecf20Sopenharmony_ci Single-ended input. Single-ended mode allows for MIC1 or MIC2 muxing for input. 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_ci - cirrus,micb-differential-cfg : boolean, If present, then the MICB input is configured 268c2ecf20Sopenharmony_ci as a differential input. If not present then the MICB input is configured as 278c2ecf20Sopenharmony_ci Single-ended input. Single-ended mode allows for MIC1 or MIC2 muxing for input. 288c2ecf20Sopenharmony_ci 298c2ecf20Sopenharmony_ci - cirrus,micbias-lvl: Set the output voltage level on the MICBIAS Pin 308c2ecf20Sopenharmony_ci 0 = 0.5 x VA 318c2ecf20Sopenharmony_ci 1 = 0.6 x VA 328c2ecf20Sopenharmony_ci 2 = 0.7 x VA 338c2ecf20Sopenharmony_ci 3 = 0.8 x VA 348c2ecf20Sopenharmony_ci 4 = 0.83 x VA 358c2ecf20Sopenharmony_ci 5 = 0.91 x VA 368c2ecf20Sopenharmony_ci 378c2ecf20Sopenharmony_ciExample: 388c2ecf20Sopenharmony_ci 398c2ecf20Sopenharmony_cicodec: codec@4a { 408c2ecf20Sopenharmony_ci compatible = "cirrus,cs42l52"; 418c2ecf20Sopenharmony_ci reg = <0x4a>; 428c2ecf20Sopenharmony_ci reset-gpio = <&gpio 10 0>; 438c2ecf20Sopenharmony_ci cirrus,chgfreq-divisor = <0x05>; 448c2ecf20Sopenharmony_ci cirrus.mica-differential-cfg; 458c2ecf20Sopenharmony_ci cirrus,micbias-lvl = <5>; 468c2ecf20Sopenharmony_ci}; 47