Microchip Pulse Density Microphone Controller
Schema identifier ($id): "http://devicetree.org/schemas/sound/microchip,sama7g5-pdmc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Codrin Ciubotariu <codrin.ciubotariu@microchip.com>"
The Microchip Pulse Density Microphone Controller (PDMC) interfaces up to 4 digital microphones having Pulse Density Modulated (PDM) outputs.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):dai-common.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "microchip,sama7g5-pdmc"
reg — required here #
Maximum number of items (maxItems): 1
#sound-dai-cells — required here #
Exact value (const): 0
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Array item rules (items) #
Item 1
Peripheral Bus Clock
Item 2
Generic Clock
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"pclk"
Item 2
Exact value (
const):"gclk"
dmas — required here #
RX DMA Channel
Maximum number of items (maxItems): 1
dma-names — required here #
Exact value (const): "rx"
microchip,mic-pos — required here #
Position of PDM microphones on the DS line and the sampling edge (rising or falling) of the CLK line. A microphone is represented as a pair of DS line and the sampling edge. The first microphone is mapped to channel 0, the second to channel 1, etc.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-matrix
Array item rules (items) #
Array item rules (
items)Item 1
value for DS line
Item 2
value for sampling edge
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 4
Items must be unique (uniqueItems): true
microchip,startup-delay-us — not listed as required here #
Specifies the delay in microseconds that needs to be applied after enabling the PDMC microphones to avoid unwanted noise due to microphones not being ready.
Required in this object (required): "compatible", "reg", "#sound-dai-cells", "interrupts", "clocks", "clock-names", "dmas", "dma-names", "microchip,mic-pos"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/at91.h>
#include <dt-bindings/dma/at91.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/sound/microchip,pdmc.h>
pdmc: sound@e1608000 {
compatible = "microchip,sama7g5-pdmc";
reg = <0xe1608000 0x4000>;
#sound-dai-cells = <0>;
interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>;
dmas = <&dma0 AT91_XDMAC_DT_PERID(37)>;
dma-names = "rx";
clocks = <&pmc PMC_TYPE_PERIPHERAL 68>, <&pmc PMC_TYPE_GCK 68>;
clock-names = "pclk", "gclk";
microchip,mic-pos = <MCHP_PDMC_DS0 MCHP_PDMC_CLK_POSITIVE>,
<MCHP_PDMC_DS0 MCHP_PDMC_CLK_NEGATIVE>,
<MCHP_PDMC_DS1 MCHP_PDMC_CLK_POSITIVE>,
<MCHP_PDMC_DS1 MCHP_PDMC_CLK_NEGATIVE>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)