18c2ecf20Sopenharmony_ciRT5651 audio CODEC 28c2ecf20Sopenharmony_ci 38c2ecf20Sopenharmony_ciThis device supports I2C only. 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ciRequired properties: 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ci- compatible : "realtek,rt5651". 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ci- reg : The I2C address of the device. 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ciOptional properties: 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ci- realtek,in2-differential 148c2ecf20Sopenharmony_ci Boolean. Indicate MIC2 input are differential, rather than single-ended. 158c2ecf20Sopenharmony_ci 168c2ecf20Sopenharmony_ci- realtek,dmic-en 178c2ecf20Sopenharmony_ci Boolean. true if dmic is used. 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_ci- realtek,jack-detect-source 208c2ecf20Sopenharmony_ci u32. Valid values: 218c2ecf20Sopenharmony_ci 1: Use JD1_1 pin for jack-detect 228c2ecf20Sopenharmony_ci 2: Use JD1_2 pin for jack-detect 238c2ecf20Sopenharmony_ci 3: Use JD2 pin for jack-detect 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_ci- realtek,jack-detect-not-inverted 268c2ecf20Sopenharmony_ci bool. Normal jack-detect switches give an inverted (active-low) signal, 278c2ecf20Sopenharmony_ci set this bool in the rare case you've a jack-detect switch which is not 288c2ecf20Sopenharmony_ci inverted. 298c2ecf20Sopenharmony_ci 308c2ecf20Sopenharmony_ci- realtek,over-current-threshold-microamp 318c2ecf20Sopenharmony_ci u32, micbias over-current detection threshold in µA, valid values are 328c2ecf20Sopenharmony_ci 600, 1500 and 2000µA. 338c2ecf20Sopenharmony_ci 348c2ecf20Sopenharmony_ci- realtek,over-current-scale-factor 358c2ecf20Sopenharmony_ci u32, micbias over-current detection scale-factor, valid values are: 368c2ecf20Sopenharmony_ci 0: Scale current by 0.5 378c2ecf20Sopenharmony_ci 1: Scale current by 0.75 388c2ecf20Sopenharmony_ci 2: Scale current by 1.0 398c2ecf20Sopenharmony_ci 3: Scale current by 1.5 408c2ecf20Sopenharmony_ci 418c2ecf20Sopenharmony_ciPins on the device (for linking into audio routes) for RT5651: 428c2ecf20Sopenharmony_ci 438c2ecf20Sopenharmony_ci * DMIC L1 448c2ecf20Sopenharmony_ci * DMIC R1 458c2ecf20Sopenharmony_ci * IN1P 468c2ecf20Sopenharmony_ci * IN2P 478c2ecf20Sopenharmony_ci * IN2N 488c2ecf20Sopenharmony_ci * IN3P 498c2ecf20Sopenharmony_ci * HPOL 508c2ecf20Sopenharmony_ci * HPOR 518c2ecf20Sopenharmony_ci * LOUTL 528c2ecf20Sopenharmony_ci * LOUTR 538c2ecf20Sopenharmony_ci * PDML 548c2ecf20Sopenharmony_ci * PDMR 558c2ecf20Sopenharmony_ci 568c2ecf20Sopenharmony_ciExample: 578c2ecf20Sopenharmony_ci 588c2ecf20Sopenharmony_cirt5651: codec@1a { 598c2ecf20Sopenharmony_ci compatible = "realtek,rt5651"; 608c2ecf20Sopenharmony_ci reg = <0x1a>; 618c2ecf20Sopenharmony_ci realtek,dmic-en = "true"; 628c2ecf20Sopenharmony_ci realtek,in2-diff = "false"; 638c2ecf20Sopenharmony_ci}; 64