18c2ecf20Sopenharmony_ciDevice-Tree bindings for Digital microphone (DMIC) codec 28c2ecf20Sopenharmony_ci 38c2ecf20Sopenharmony_ciThis device support generic PDM digital microphone. 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ciRequired properties: 68c2ecf20Sopenharmony_ci - compatible: should be "dmic-codec". 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ciOptional properties: 98c2ecf20Sopenharmony_ci - dmicen-gpios: GPIO specifier for dmic to control start and stop 108c2ecf20Sopenharmony_ci - num-channels: Number of microphones on this DAI 118c2ecf20Sopenharmony_ci - wakeup-delay-ms: Delay (in ms) after enabling the DMIC 128c2ecf20Sopenharmony_ci - modeswitch-delay-ms: Delay (in ms) to complete DMIC mode switch 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_ciExample node: 158c2ecf20Sopenharmony_ci 168c2ecf20Sopenharmony_ci dmic_codec: dmic@0 { 178c2ecf20Sopenharmony_ci compatible = "dmic-codec"; 188c2ecf20Sopenharmony_ci dmicen-gpios = <&gpio4 3 GPIO_ACTIVE_HIGH>; 198c2ecf20Sopenharmony_ci num-channels = <1>; 208c2ecf20Sopenharmony_ci wakeup-delay-ms <50>; 218c2ecf20Sopenharmony_ci modeswitch-delay-ms <35>; 228c2ecf20Sopenharmony_ci }; 23