Skip to content

Commit 4103337

Browse files
committed
add sof support on imx95
Merge series from Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>: Add sof support on imx95. This series also includes some changes to the audio-graph-card2 binding required for the support.
2 parents b7a253d + ed92f40 commit 4103337

File tree

3 files changed

+95
-0
lines changed

3 files changed

+95
-0
lines changed

Documentation/devicetree/bindings/sound/audio-graph-card2.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ properties:
3737
codec2codec:
3838
type: object
3939
description: Codec to Codec node
40+
hp-det-gpios:
41+
$ref: audio-graph.yaml#/properties/hp-det-gpios
42+
widgets:
43+
$ref: audio-graph.yaml#/properties/widgets
4044

4145
required:
4246
- compatible
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/sound/fsl,imx95-cm7-sof.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: NXP imx95 CM7 core
8+
9+
maintainers:
10+
- Daniel Baluta <daniel.baluta@nxp.com>
11+
12+
description: NXP imx95 CM7 core used for audio processing
13+
14+
properties:
15+
compatible:
16+
const: fsl,imx95-cm7-sof
17+
18+
reg:
19+
maxItems: 1
20+
21+
reg-names:
22+
const: sram
23+
24+
memory-region:
25+
maxItems: 1
26+
27+
memory-region-names:
28+
const: dma
29+
30+
port:
31+
description: SAI3 port
32+
$ref: audio-graph-port.yaml#
33+
unevaluatedProperties: false
34+
35+
required:
36+
- compatible
37+
- reg
38+
- reg-names
39+
- memory-region
40+
- memory-region-names
41+
- port
42+
43+
allOf:
44+
- $ref: fsl,sof-cpu.yaml#
45+
46+
unevaluatedProperties: false
47+
48+
examples:
49+
- |
50+
cm7-cpu@80000000 {
51+
compatible = "fsl,imx95-cm7-sof";
52+
reg = <0x80000000 0x6100000>;
53+
reg-names = "sram";
54+
mboxes = <&mu7 2 0>, <&mu7 2 1>, <&mu7 3 0>, <&mu7 3 1>;
55+
mbox-names = "txdb0", "txdb1", "rxdb0", "rxdb1";
56+
memory-region = <&adma_res>;
57+
memory-region-names = "dma";
58+
port {
59+
/* SAI3-WM8962 link */
60+
endpoint {
61+
remote-endpoint = <&wm8962_ep>;
62+
};
63+
};
64+
};
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/sound/fsl,sof-cpu.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: NXP audio processor common properties
8+
9+
maintainers:
10+
- Daniel Baluta <daniel.baluta@nxp.com>
11+
12+
properties:
13+
mboxes:
14+
maxItems: 4
15+
16+
mbox-names:
17+
items:
18+
- const: txdb0
19+
- const: txdb1
20+
- const: rxdb0
21+
- const: rxdb1
22+
23+
required:
24+
- mboxes
25+
- mbox-names
26+
27+
additionalProperties: true

0 commit comments

Comments
 (0)