Re: [PATCH v2 1/5] ASoC: dt-bindings: nvidia,tegra-audio: document CPCAP CODEC
From: Rob Herring
Date: Mon Feb 09 2026 - 21:46:36 EST
On Fri, Feb 06, 2026 at 07:34:18PM +0200, Svyatoslav Ryhel wrote:
> Add dt-binding for CPCAP CODEC.
>
> Signed-off-by: Svyatoslav Ryhel <clamor95@xxxxxxxxx>
> ---
> .../sound/nvidia,tegra-audio-cpcap.yaml | 90 +++++++++++++++++++
> 1 file changed, 90 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/sound/nvidia,tegra-audio-cpcap.yaml
>
> diff --git a/Documentation/devicetree/bindings/sound/nvidia,tegra-audio-cpcap.yaml b/Documentation/devicetree/bindings/sound/nvidia,tegra-audio-cpcap.yaml
> new file mode 100644
> index 000000000000..5335fa56fb3c
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/sound/nvidia,tegra-audio-cpcap.yaml
> @@ -0,0 +1,90 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/sound/nvidia,tegra-audio-cpcap.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: NVIDIA Tegra audio complex with CPCAP CODEC
> +
> +maintainers:
> + - Svyatoslav Ryhel <clamor95@xxxxxxxxx>
> +
> +allOf:
> + - $ref: nvidia,tegra-audio-common.yaml#
> +
> +properties:
> + compatible:
> + items:
> + - pattern: '^[a-z0-9]+,tegra-audio-cpcap(-[a-z0-9]+)+$'
Expecting a lot of devices and differences? I would assume all known h/w
is well known and any differences are known by now. Perhaps even just
the fallback is sufficient?
> + - const: nvidia,tegra-audio-cpcap
> +
> + - |
> + #include <dt-bindings/clock/tegra20-car.h>
> + #include <dt-bindings/soc/tegra-pmc.h>
> + sound {
> + compatible = "motorola,tegra-audio-cpcap-mot",
Why do we need motorola twice?
> + "nvidia,tegra-audio-cpcap";
> + nvidia,model = "Motorola Atrix 4G (MB860) CPCAP";
> +
> + nvidia,audio-routing =
> + "Headphones", "HSR",
> + "Headphones", "HSL",
> + "Int Spk", "SPKR",
> + "Int Spk", "SPKL",
> + "Earpiece", "EP",
> + "HSMIC", "Mic Jack",
> + "MICR", "Internal Mic 1",
> + "MICL", "Internal Mic 2";
> +
> + nvidia,i2s-controller = <&tegra_i2s1>;
> + nvidia,audio-codec = <&cpcap_audio>;
> +
> + clocks = <&tegra_car TEGRA20_CLK_PLL_A>,
> + <&tegra_car TEGRA20_CLK_PLL_A_OUT0>,
> + <&tegra_car TEGRA20_CLK_CDEV1>;
> + clock-names = "pll_a", "pll_a_out0", "mclk";
> + };
> --
> 2.51.0
>