Texas Instruments J721e Common Processor Board Audio Support
Schema identifier ($id): "http://devicetree.org/schemas/sound/ti,j721e-cpb-ivi-audio.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Peter Ujfalusi <peter.ujfalusi@gmail.com>"
The Infotainment board plugs into the Common Processor Board, the support of the extension board is extending the CPB audio support, described in: sound/ti,j721e-cpb-audio.txt
The audio support on the Infotainment Expansion Board consists of McASP0 connected to two pcm3168a codecs with dedicated set of serializers to each. The SCKI for pcm3168a is sourced from j721e AUDIO_REFCLK0 pin.
In order to support 48KHz and 44.1KHz family of sampling rates the parent clock for AUDIO_REFCLK0 needs to be changed between PLL4 (for 48KHz) and PLL15 (for 44.1KHz). The same PLLs are used for McASP0's AUXCLK clock via different HSDIVIDER.
Note: the same PLL4 and PLL15 is used by the audio support on the CPB!
Clocking setup for 48KHz family:
PLL4 ---> PLL4_HSDIV0 ---> MCASP10_AUXCLK ---> McASP10.auxclk
| |-> MCASP0_AUXCLK ---> McASP0.auxclk
|
|-> PLL4_HSDIV2 ---> AUDIO_REFCLK2 ---> pcm3168a.SCKI
|-> AUDIO_REFCLK0 ---> pcm3168a_a/b.SCKI
Clocking setup for 44.1KHz family:
PLL15 ---> PLL15_HSDIV0 ---> MCASP10_AUXCLK ---> McASP10.auxclk
| |-> MCASP0_AUXCLK ---> McASP0.auxclk
|
|-> PLL15_HSDIV2 ---> AUDIO_REFCLK2 ---> pcm3168a.SCKI
|-> AUDIO_REFCLK0 ---> pcm3168a_a/b.SCKI
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
Exact value (
const):"ti,j721e-cpb-ivi-audio"
model — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
User specified audio sound card name
ti,cpb-mcasp — required here #
phandle to McASP used on CPB
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
ti,cpb-codec — required here #
phandle to the pcm3168a codec used on the CPB
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
ti,ivi-mcasp — required here #
phandle to McASP used on IVI
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
ti,ivi-codec-a — required here #
phandle to the pcm3168a-A codec on the expansion board
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
ti,ivi-codec-b — required here #
phandle to the pcm3168a-B codec on the expansion board
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
clocks — required here #
Array item rules (items) #
Item 1
AUXCLK clock for McASP used by CPB audio
Item 2
Parent for CPB_McASP auxclk (for 48KHz)
Item 3
Parent for CPB_McASP auxclk (for 44.1KHz)
Item 4
SCKI clock for the pcm3168a codec on CPB
Item 5
Parent for CPB_SCKI clock (for 48KHz)
Item 6
Parent for CPB_SCKI clock (for 44.1KHz)
Item 7
AUXCLK clock for McASP used by IVI audio
Item 8
Parent for IVI_McASP auxclk (for 48KHz)
Item 9
Parent for IVI_McASP auxclk (for 44.1KHz)
Item 10
SCKI clock for the pcm3168a codec on IVI
Item 11
Parent for IVI_SCKI clock (for 48KHz)
Item 12
Parent for IVI_SCKI clock (for 44.1KHz)
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"cpb-mcasp-auxclk"
Item 2
Exact value (
const):"cpb-mcasp-auxclk-48000"
Item 3
Exact value (
const):"cpb-mcasp-auxclk-44100"
Item 4
Exact value (
const):"cpb-codec-scki"
Item 5
Exact value (
const):"cpb-codec-scki-48000"
Item 6
Exact value (
const):"cpb-codec-scki-44100"
Item 7
Exact value (
const):"ivi-mcasp-auxclk"
Item 8
Exact value (
const):"ivi-mcasp-auxclk-48000"
Item 9
Exact value (
const):"ivi-mcasp-auxclk-44100"
Item 10
Exact value (
const):"ivi-codec-scki"
Item 11
Exact value (
const):"ivi-codec-scki-48000"
Item 12
Exact value (
const):"ivi-codec-scki-44100"
Required in this object (required): "compatible", "model", "ti,cpb-mcasp", "ti,cpb-codec", "ti,ivi-mcasp", "ti,ivi-codec-a", "ti,ivi-codec-b", "clocks", "clock-names"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
sound {
compatible = "ti,j721e-cpb-ivi-audio";
model = "j721e-cpb-ivi";
ti,cpb-mcasp = <&mcasp10>;
ti,cpb-codec = <&pcm3168a_1>;
ti,ivi-mcasp = <&mcasp0>;
ti,ivi-codec-a = <&pcm3168a_a>;
ti,ivi-codec-b = <&pcm3168a_b>;
clocks = <&k3_clks 184 1>,
<&k3_clks 184 2>, <&k3_clks 184 4>,
<&k3_clks 157 371>,
<&k3_clks 157 400>, <&k3_clks 157 401>,
<&k3_clks 174 1>,
<&k3_clks 174 2>, <&k3_clks 174 4>,
<&k3_clks 157 301>,
<&k3_clks 157 330>, <&k3_clks 157 331>;
clock-names = "cpb-mcasp-auxclk",
"cpb-mcasp-auxclk-48000", "cpb-mcasp-auxclk-44100",
"cpb-codec-scki",
"cpb-codec-scki-48000", "cpb-codec-scki-44100",
"ivi-mcasp-auxclk",
"ivi-mcasp-auxclk-48000", "ivi-mcasp-auxclk-44100",
"ivi-codec-scki",
"ivi-codec-scki-48000", "ivi-codec-scki-44100";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 2: Copyright (C) 2020 Texas Instruments Incorporated
Line 3: Author: Peter Ujfalusi <peter.ujfalusi@ti.com>