1 # SPDX-License-Identifier: GPL-2.0 1 # SPDX-License-Identifier: GPL-2.0 2 %YAML 1.2 2 %YAML 1.2 3 --- 3 --- 4 $id: http://devicetree.org/schemas/sound/dmic- 4 $id: http://devicetree.org/schemas/sound/dmic-codec.yaml# 5 $schema: http://devicetree.org/meta-schemas/co 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 6 6 7 title: Generic PDM Digital microphone (DMIC) c 7 title: Generic PDM Digital microphone (DMIC) codec 8 8 9 maintainers: 9 maintainers: 10 - Arnaud Pouliquen <arnaud.pouliquen@foss.st. 10 - Arnaud Pouliquen <arnaud.pouliquen@foss.st.com> 11 11 12 allOf: 12 allOf: 13 - $ref: dai-common.yaml# 13 - $ref: dai-common.yaml# 14 14 15 properties: 15 properties: 16 compatible: 16 compatible: 17 const: dmic-codec 17 const: dmic-codec 18 18 19 '#sound-dai-cells': 19 '#sound-dai-cells': 20 const: 0 20 const: 0 21 21 22 dmicen-gpios: 22 dmicen-gpios: 23 description: GPIO specifier for DMIC to co 23 description: GPIO specifier for DMIC to control start and stop 24 maxItems: 1 24 maxItems: 1 25 25 26 num-channels: 26 num-channels: 27 description: Number of microphones on this 27 description: Number of microphones on this DAI 28 $ref: /schemas/types.yaml#/definitions/uin 28 $ref: /schemas/types.yaml#/definitions/uint32 29 minimum: 1 29 minimum: 1 30 maximum: 8 30 maximum: 8 31 default: 8 31 default: 8 32 32 33 modeswitch-delay-ms: 33 modeswitch-delay-ms: 34 description: Delay (in ms) to complete DMI 34 description: Delay (in ms) to complete DMIC mode switch 35 35 36 wakeup-delay-ms: 36 wakeup-delay-ms: 37 description: Delay (in ms) after enabling 37 description: Delay (in ms) after enabling the DMIC 38 38 39 required: 39 required: 40 - compatible 40 - compatible 41 41 42 unevaluatedProperties: false 42 unevaluatedProperties: false 43 43 44 examples: 44 examples: 45 - | 45 - | 46 #include <dt-bindings/gpio/gpio.h> 46 #include <dt-bindings/gpio/gpio.h> 47 47 48 dmic { 48 dmic { 49 compatible = "dmic-codec"; 49 compatible = "dmic-codec"; 50 dmicen-gpios = <&gpio4 3 GPIO_ACTIVE_H 50 dmicen-gpios = <&gpio4 3 GPIO_ACTIVE_HIGH>; 51 num-channels = <1>; 51 num-channels = <1>; 52 wakeup-delay-ms = <50>; 52 wakeup-delay-ms = <50>; 53 modeswitch-delay-ms = <35>; 53 modeswitch-delay-ms = <35>; 54 }; 54 }; 55 ... 55 ...
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.