Skip to content

Commit

Permalink
bindings: nxp,dai-sai: add configuration examples
Browse files Browse the repository at this point in the history
Add some examples depicting how the SAI node may be configured.

Signed-off-by: Laurentiu Mihalcea <[email protected]>
  • Loading branch information
LaurentiuM1234 authored and kartben committed Feb 5, 2025
1 parent a185f6a commit 343f3f8
Showing 1 changed file with 41 additions and 1 deletion.
42 changes: 41 additions & 1 deletion dts/bindings/dai/nxp,dai-sai.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,47 @@
# Copyright 2023 NXP
# SPDX-License-Identifier: Apache-2.0

description: NXP Synchronous Audio Interface (SAI) node
description: |
NXP Synchronous Audio Interface (SAI) node
Below you may find some configuration examples:
1) Configuring SAI1 for i.MX8QM MEK board
#include <zephyr/dt-bindings/clock/imx_ccm.h>
dai@59050000 {
compatible = "nxp,dai-sai";
reg = <0x59050000 DT_SIZE_K(64)>;
interrupt-parent = <&master5>;
interrupts = <28>;
clocks = <&ccm IMX_CCM_SAI1_CLK 0x0 0x0>;
clock-names = "bus";
dai-index = <1>;
dmas = <&edma0 15 0>, <&edma0 14 0>;
dma-names = "tx", "rx";
rx-fifo-watermark = <48>;
tx-fifo-watermark = <2>;
fifo-depth = <48>;
rx-sync-mode = <1>;
};
2) Configuring SAI6 for i.MX8ULP EVK9 board
dai@2da90000 {
compatible = "nxp,dai-sai";
reg = <0x2da90000 DT_SIZE_K(4)>;
interrupt-parent = <&clic>;
interrupts = <24 0 0>;
dmas = <&edma2 0 72>, <&edma2 1 71>;
dma-names = "tx", "rx";
dai-index = <6>;
rx-fifo-watermark = <8>;
tx-fifo-watermark = <1>;
fifo-depth = <8>;
rx-sync-mode = <1>;
tx-dataline = <2>;
};
compatible: "nxp,dai-sai"

Expand Down

0 comments on commit 343f3f8

Please sign in to comment.