18c2ecf20Sopenharmony_ciWM8962 audio CODEC 28c2ecf20Sopenharmony_ci 38c2ecf20Sopenharmony_ciThis device supports I2C only. 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ciRequired properties: 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ci - compatible : "wlf,wm8962" 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ci - reg : the I2C address of the device. 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ciOptional properties: 128c2ecf20Sopenharmony_ci - spk-mono: This is a boolean property. If present, the SPK_MONO bit 138c2ecf20Sopenharmony_ci of R51 (Class D Control 2) gets set, indicating that the speaker is 148c2ecf20Sopenharmony_ci in mono mode. 158c2ecf20Sopenharmony_ci 168c2ecf20Sopenharmony_ci - mic-cfg : Default register value for R48 (Additional Control 4). 178c2ecf20Sopenharmony_ci If absent, the default should be the register default. 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_ci - gpio-cfg : A list of GPIO configuration register values. The list must 208c2ecf20Sopenharmony_ci be 6 entries long. If absent, no configuration of these registers is 218c2ecf20Sopenharmony_ci performed. And note that only the value within [0x0, 0xffff] is valid. 228c2ecf20Sopenharmony_ci Any other value is regarded as setting the GPIO register by its reset 238c2ecf20Sopenharmony_ci value 0x0. 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_ciExample: 268c2ecf20Sopenharmony_ci 278c2ecf20Sopenharmony_ciwm8962: codec@1a { 288c2ecf20Sopenharmony_ci compatible = "wlf,wm8962"; 298c2ecf20Sopenharmony_ci reg = <0x1a>; 308c2ecf20Sopenharmony_ci 318c2ecf20Sopenharmony_ci gpio-cfg = < 328c2ecf20Sopenharmony_ci 0x0000 /* 0:Default */ 338c2ecf20Sopenharmony_ci 0x0000 /* 1:Default */ 348c2ecf20Sopenharmony_ci 0x0013 /* 2:FN_DMICCLK */ 358c2ecf20Sopenharmony_ci 0x0000 /* 3:Default */ 368c2ecf20Sopenharmony_ci 0x8014 /* 4:FN_DMICCDAT */ 378c2ecf20Sopenharmony_ci 0x0000 /* 5:Default */ 388c2ecf20Sopenharmony_ci >; 398c2ecf20Sopenharmony_ci}; 40