Unverified Commit 811944a7 authored by Laurentiu Mihalcea's avatar Laurentiu Mihalcea Committed by Mark Brown
Browse files

ASoC: dt-bindings: support imx95's CM7 core



Add binding for imx95's CM7 core, used for audio processing.
Additionally, introduce a common binding for NXP audio processors with
Sound Open Firmware (SOF) support.

Signed-off-by: default avatarLaurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
Reviewed-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: default avatarIuliana Prodan <iuliana.prodan@nxp.com>
Link: https://patch.msgid.link/20250311163255.2664-2-laurentiumihalcea111@gmail.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 3cab1fc8
Loading
Loading
Loading
Loading
+64 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/sound/fsl,imx95-cm7-sof.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: NXP imx95 CM7 core

maintainers:
  - Daniel Baluta <daniel.baluta@nxp.com>

description: NXP imx95 CM7 core used for audio processing

properties:
  compatible:
    const: fsl,imx95-cm7-sof

  reg:
    maxItems: 1

  reg-names:
    const: sram

  memory-region:
    maxItems: 1

  memory-region-names:
    const: dma

  port:
    description: SAI3 port
    $ref: audio-graph-port.yaml#
    unevaluatedProperties: false

required:
  - compatible
  - reg
  - reg-names
  - memory-region
  - memory-region-names
  - port

allOf:
  - $ref: fsl,sof-cpu.yaml#

unevaluatedProperties: false

examples:
  - |
    cm7-cpu@80000000 {
        compatible = "fsl,imx95-cm7-sof";
        reg = <0x80000000 0x6100000>;
        reg-names = "sram";
        mboxes = <&mu7 2 0>, <&mu7 2 1>, <&mu7 3 0>, <&mu7 3 1>;
        mbox-names = "txdb0", "txdb1", "rxdb0", "rxdb1";
        memory-region = <&adma_res>;
        memory-region-names = "dma";
        port {
            /* SAI3-WM8962 link */
            endpoint {
                remote-endpoint = <&wm8962_ep>;
            };
        };
    };
+27 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/sound/fsl,sof-cpu.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: NXP audio processor common properties

maintainers:
  - Daniel Baluta <daniel.baluta@nxp.com>

properties:
  mboxes:
    maxItems: 4

  mbox-names:
    items:
      - const: txdb0
      - const: txdb1
      - const: rxdb0
      - const: rxdb1

required:
  - mboxes
  - mbox-names

additionalProperties: true