Texas Instruments J721e Common Processor Board Audio Support

Schema identifier ($id): "http://devicetree.org/schemas/sound/ti,j721e-cpb-audio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Peter Ujfalusi <peter.ujfalusi@gmail.com>"

The audio support on the board is using pcm3168a codec connected to McASP10 serializers in parallel setup. The pcm3168a SCKI clock is sourced from j721e AUDIO_REFCLK2 pin. In order to support 48KHz and 44.1KHz family of sampling rates the parent clock for AUDIO_REFCLK2 needs to be changed between PLL4 (for 48KHz) and PLL15 (for 44.1KHz). The same PLLs are used for McASP10's AUXCLK clock via different HSDIVIDER.

Clocking setup for j721e:
  48KHz family:
  PLL4 ---> PLL4_HSDIV0 ---> MCASP10_AUXCLK ---> McASP10.auxclk
        |-> PLL4_HSDIV2 ---> AUDIO_REFCLK2  ---> pcm3168a.SCKI
  44.1KHz family:
  PLL15 ---> PLL15_HSDIV0 ---> MCASP10_AUXCLK ---> McASP10.auxclk
         |-> PLL15_HSDIV2 ---> AUDIO_REFCLK2  ---> pcm3168a.SCKI
Clocking setup for j7200:
  48KHz family:
  PLL4 ---> PLL4_HSDIV0 ---> MCASP0_AUXCLK ---> McASP0.auxclk
        |-> PLL4_HSDIV2 ---> AUDIO_REFCLK2  ---> pcm3168a.SCKI

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "ti,j721e-cpb-audio", "ti,j7200-cpb-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

clocks — required here #

Minimum number of items (minItems): 4

Maximum number of items (maxItems): 6

clock-names — required here #

Minimum number of items (minItems): 4

Maximum number of items (maxItems): 6

Required in this object (required): "compatible", "model", "ti,cpb-mcasp", "ti,cpb-codec", "clocks", "clock-names"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "ti,j721e-cpb-audio"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as 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)

clock-names — not listed as 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"

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "ti,j7200-cpb-audio"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as 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

SCKI clock for the pcm3168a codec on CPB

Item 4

Parent for CPB_SCKI clock (for 48KHz)

clock-names — not listed as 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-codec-scki"

Item 4

Exact value (const): "cpb-codec-scki-48000"

Examples (examples) #

sound {
    compatible = "ti,j721e-cpb-audio";
    model = "j721e-cpb";

    ti,cpb-mcasp = <&mcasp10>;
    ti,cpb-codec = <&pcm3168a_1>;

    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>;
    clock-names = "cpb-mcasp-auxclk",
                  "cpb-mcasp-auxclk-48000", "cpb-mcasp-auxclk-44100",
                  "cpb-codec-scki",
                  "cpb-codec-scki-48000", "cpb-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>

Edit this page