Microchip I2S Multi-Channel Controller
Schema identifier ($id): "http://devicetree.org/schemas/sound/microchip,sama7g5-i2smcc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Codrin Ciubotariu <codrin.ciubotariu@microchip.com>"
The I2SMCC complies with the Inter-IC Sound (I2S) bus specification and supports a Time Division Multiplexed (TDM) interface with external multi-channel audio codecs. It consists of a receiver, a transmitter and a common clock generator that can be enabled separately to provide Adapter, Client or Controller modes with receiver and/or transmitter active. On later I2SMCC versions (starting with Microchip's SAMA7G5) I2S multi-channel is supported by using multiple data pins, output and input, without TDM.
Properties and child nodes (properties) #
#sound-dai-cells — required here #
Exact value (const): 0
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"microchip,sam9x60-i2smcc","microchip,sama7g5-i2smcc"
Rule 2
Array item rules (
items)Item 1
Item 2
Exact value (
const):"microchip,sam9x60-i2smcc"
reg — required here #
Maximum number of items (maxItems): 1
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 (Optional). Should be set mostly when Master Mode is required.
Minimum number of items (minItems): 1
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"pclk"
Item 2
Exact value (
const):"gclk"
Minimum number of items (minItems): 1
dmas — required here #
Array item rules (items) #
Item 1
TX DMA Channel
Item 2
RX DMA Channel
dma-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"tx"
Item 2
Exact value (
const):"rx"
microchip,tdm-data-pair — not listed as required here #
Represents the DIN/DOUT pair pins that are used to receive/send TDM data. It is optional and it is only needed if the controller uses the TDM mode.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8
Allowed values (enum): 0, 1, 2, 3
Default value (default): 0
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):dai-common.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereExact value (
const):"microchip,sam9x60-i2smcc"When the condition matches (
then) #Properties and child nodes (
properties)
microchip,tdm-data-pair— not listed as required here
false— Not permitted by this property rule.
Required in this object (required): "#sound-dai-cells", "compatible", "reg", "interrupts", "clocks", "clock-names", "dmas", "dma-names"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/dma/at91.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
i2s@f001c000 {
#sound-dai-cells = <0>;
compatible = "microchip,sam9x60-i2smcc";
reg = <0xf001c000 0x100>;
interrupts = <34 IRQ_TYPE_LEVEL_HIGH 7>;
dmas = <&dma0 (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) |
AT91_XDMAC_DT_PERID(36))>,
<&dma0 (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) |
AT91_XDMAC_DT_PERID(37))>;
dma-names = "tx", "rx";
clocks = <&i2s_clk>, <&i2s_gclk>;
clock-names = "pclk", "gclk";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_i2s_default>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)