NVIDIA Tegra HDA controller

Schema identifier ($id): "http://devicetree.org/schemas/sound/nvidia,tegra30-hda.yaml#"

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

The High Definition Audio (HDA) block provides a serial interface to audio codec. It supports multiple input and output streams.

Maintainers (maintainers): "Thierry Reding <treding@nvidia.com>", "Jon Hunter <jonathanh@nvidia.com>"

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "^hda@[0-9a-f]*$"

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "nvidia,tegra30-hda", "nvidia,tegra194-hda", "nvidia,tegra234-hda", "nvidia,tegra264-hda"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "nvidia,tegra186-hda", "nvidia,tegra210-hda", "nvidia,tegra124-hda", "nvidia,tegra114-hda"

Item 2

Exact value (const): "nvidia,tegra30-hda"

Rule 3

Array item rules (items)

Item 1

Exact value (const): "nvidia,tegra132-hda"

Item 2

Exact value (const): "nvidia,tegra124-hda"

Item 3

Exact value (const): "nvidia,tegra30-hda"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

The interrupt from the HDA controller

Maximum number of items (maxItems): 1

clocks — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 3

clock-names — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 3

resets — not listed as required here #

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 3

reset-names — not listed as required here #

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 3

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

interconnects — not listed as required here #

Maximum number of items (maxItems): 2

interconnect-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "dma-mem"

Item 2

Exact value (const): "write"

iommus — not listed as required here #

Maximum number of items (maxItems): 1

nvidia,model — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/string

The user-visible name of this sound complex. If this property is not specified then boards can use default name provided in hda driver.

Required in this object (required): "compatible", "reg", "interrupts", "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)

Allowed values (enum): "nvidia,tegra30-hda"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 3

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "hda"

Item 2

Exact value (const): "hda2hdmi"

Item 3

Exact value (const): "hda2codec_2x"

resets — not listed as required here

Minimum number of items (minItems): 3

reset-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "hda"

Item 2

Exact value (const): "hda2hdmi"

Item 3

Exact value (const): "hda2codec_2x"

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "nvidia,tegra194-hda"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 3

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "hda"

Item 2

Exact value (const): "hda2hdmi"

Item 3

Exact value (const): "hda2codec_2x"

resets — not listed as required here

Maximum number of items (maxItems): 2

reset-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "hda"

Item 2

Exact value (const): "hda2hdmi"

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "nvidia,tegra234-hda"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "hda"

Item 2

Exact value (const): "hda2codec_2x"

resets — not listed as required here

Maximum number of items (maxItems): 2

reset-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "hda"

Item 2

Exact value (const): "hda2codec_2x"

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "nvidia,tegra264-hda"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Maximum number of items (maxItems): 1

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "hda"

resets — not listed as required here

Maximum number of items (maxItems): 2

reset-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "hda"

Item 2

Exact value (const): "hda2codec_2x"

power-domains — not listed as required here

false — Not permitted by this property rule.

Examples (examples) #

#include<dt-bindings/clock/tegra124-car-common.h>
#include<dt-bindings/interrupt-controller/arm-gic.h>

hda@70030000 {
    compatible = "nvidia,tegra124-hda", "nvidia,tegra30-hda";
    reg = <0x70030000 0x10000>;
    interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&tegra_car TEGRA124_CLK_HDA>,
             <&tegra_car TEGRA124_CLK_HDA2HDMI>,
             <&tegra_car TEGRA124_CLK_HDA2CODEC_2X>;
    clock-names = "hda", "hda2hdmi", "hda2codec_2x";
    resets = <&tegra_car 125>, /* hda */
             <&tegra_car 128>, /* hda2hdmi */
             <&tegra_car 111>; /* hda2codec_2x */
    reset-names = "hda", "hda2hdmi", "hda2codec_2x";
    nvidia,model = "jetson-tk1-hda";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Edit this page