McASP Controller for TI SoCs
Schema identifier ($id): "http://devicetree.org/schemas/sound/davinci-mcasp-audio.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jayesh Choudhary <j-choudhary@ti.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ti,dm646x-mcasp-audio", "ti,da830-mcasp-audio", "ti,am33xx-mcasp-audio", "ti,dra7-mcasp-audio", "ti,omap4-mcasp-audio"
reg — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
CFG registers
Item 2
data registers
reg-names — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"mpu"
Item 2
Exact value (
const):"dat"
op-mode — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
0 - I2S or 1 - DIT operation mode
tdm-slots — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Number of channels over one serializer. This property specifies the TX playback TDM slot count, along with default RX slot count if tdm-slots-rx is not specified. The property is ignored in DIT mode.
Minimum value (minimum): 2
Maximum value (maximum): 32
tdm-slots-rx — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Number of RX capture channels over one serializer. If specified, allows independent RX TDM slot count separate from TX. Requires ti,async-mode to be enabled for independent TX/RX clock rates. The property is ignored in DIT mode.
Minimum value (minimum): 2
Maximum value (maximum): 32
ti,async-mode — not listed as required here #
Specify to allow independent TX & RX clocking, to enable audio playback & record with different sampling rate, and different number of bits per frame. if property is omitted, TX and RX will share same bit clock and frame clock signals, thus RX need to use same bits per frame and sampling rate as TX in synchronous mode. the property is ignored in DIT mode (as DIT is TX-only)
Value type (type): "boolean"
serial-dir — not listed as required here #
A list of serializer configuration Entry is indication for serializer pin direction 0 - Inactive, 1 - TX, 2 - RX All AXR pins should be present in the array even if inactive
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 25
Array item rules (items) #
Minimum value (
minimum):0Maximum value (
maximum):2
dmas — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
transmission DMA channel
Item 2
reception DMA channel
dma-names — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"tx"
Item 2
Exact value (
const):"rx"
ti,hwmods — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Name of hwmod associated with McASP
Maximum number of items (maxItems): 1
Deprecated (deprecated): true
tx-num-evt — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
configures WFIFO threshold 0 disables the FIFO use if property is missing, then also FIFO use is disabled
rx-num-evt — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
configures RFIFO threshold 0 disables the FIFO use if property is missing, then also FIFO use is disabled
dismod — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
specify the drive on TX pin during inactive time slots 0 - 3-state, 2 - logic low, 3 - logic high
Allowed values (enum): 0, 2, 3
Default value (default): 2
interrupts — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
interrupt-names — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
TX interrupt
Exact value (
const):"tx"
Rule 2
RX interrupt
Exact value (
const):"rx"
Rule 3
TX and RX interrupts
Array item rules (
items)Item 1
Exact value (
const):"tx"Item 2
Exact value (
const):"rx"
Rule 4
Common/combined interrupt
Exact value (
const):"common"
fck_parent — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
parent clock name for McASP fck
Maximum number of items (maxItems): 1
auxclk-fs-ratio — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Ratio of AUCLK and FS rate if applicable. This property specifies the TX ratio, along with default RX ratio if auxclk-fs-ratio-rx is not specified. When not specified, the inputted system clock frequency via set_sysclk callback by the machine driver is used for divider calculation.
auxclk-fs-ratio-rx — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Ratio of AUCLK and FS rate for RX. If specified, allows for a different RX ratio. Requires ti,async-mode to be enabled when the ratio differs from auxclk-fs-ratio. When not specified, it defaults to the value of auxclk-fs-ratio. The property is ignored in DIT mode.
gpio-controller — not listed as required here #
true — No constraints added by this property rule.
#gpio-cells — not listed as required here #
Exact value (const): 2
clocks — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
functional clock
Item 2
module specific optional ahclkx clock
Item 3
module specific optional ahclkr clock
clock-names — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"fck"
Item 2
Exact value (
const):"ahclkx"
Item 3
Exact value (
const):"ahclkr"
power-domains — not listed as required here #
phandle to the corresponding power-domain
Maximum number of items (maxItems): 1
#sound-dai-cells — not listed as required here #
Exact value (const): 0
port — not listed as required here #
connection for when McASP is used via graph card
Value type (type): "object"
Required in this object (required): "compatible", "reg", "reg-names", "dmas", "dma-names", "interrupts", "interrupt-names"
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)
op-mode— not listed as required hereWhen the condition matches (
then) #
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
op-mode— not listed as required hereExact value (
const):1When the condition matches (
then) #Properties and child nodes (
properties)
tdm-slots— not listed as required here
false— Not permitted by this property rule.
tdm-slots-rx— not listed as required here
false— Not permitted by this property rule.
ti,async-mode— not listed as required here
false— Not permitted by this property rule.
auxclk-fs-ratio-rx— not listed as required here
false— Not permitted by this property rule.
Rule 4 #
Condition (
if) #When the condition matches (
then) #
Rule 5 #
Condition (
if) #When the condition matches (
then) #
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
mcasp0: mcasp0@1d00000 {
compatible = "ti,da830-mcasp-audio";
reg = <0x100000 0x3000>;
reg-names = "mpu";
interrupts = <82>, <83>;
interrupt-names = "tx", "rx";
op-mode = <0>; /* MCASP_IIS_MODE */
tdm-slots = <2>;
ti,async-mode;
dmas = <&main_udmap 0xc400>, <&main_udmap 0x4400>;
dma-names = "tx", "rx";
serial-dir = <
0 0 0 0 /* 0: INACTIVE, 1: TX, 2: RX */
0 0 0 0
0 0 0 1
2 0 0 0 >;
tx-num-evt = <1>;
rx-num-evt = <1>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)