File tree Expand file tree Collapse file tree 3 files changed +61
-0
lines changed Expand file tree Collapse file tree 3 files changed +61
-0
lines changed Original file line number Diff line number Diff line change 148
148
status = "okay";
149
149
};
150
150
151
+ &i2s0 {
152
+ status = "okay";
153
+ pinctrl-0 = <&i2s_sck_p1_2 &i2s_ws_p1_3 &i2s_sdi_p1_4 &i2s_sdo_p1_5>;
154
+ pinctrl-names = "default";
155
+ };
156
+
151
157
&wdt0 {
152
158
status = "okay";
153
159
};
Original file line number Diff line number Diff line change 149
149
interrupts = <67 0>;
150
150
status = "disabled";
151
151
};
152
+
153
+ i2s0: i2s0@40060000 {
154
+ compatible = "adi,max32-i2s";
155
+ reg = <0x40060000 0x1000>;
156
+ #address-cells = <1>;
157
+ #size-cells = <0>;
158
+ /*
159
+ * DMA Configuration is provided as an example.
160
+ * user is free to change dma channel index,
161
+ * but tx and rx slot should be 0x3e and 0x1e respectively.
162
+ *
163
+ * ref to MAX32655 Reference Manual
164
+ * Table 6-1. I2S DMA Channel Assignments
165
+ */
166
+ dmas = <&dma0 0 0x3e>, <&dma0 1 0x1e>;
167
+ dma-names = "tx", "rx";
168
+ };
152
169
};
153
170
};
Original file line number Diff line number Diff line change
1
+ # Copyright (c) 2025 Croxel Inc.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
4
+ description : Analog Devices MAX32 series I2S controller
5
+
6
+ compatible : " adi,max32-i2s"
7
+
8
+ include : [i2s-controller.yaml, pinctrl-device.yaml]
9
+
10
+ properties :
11
+ reg :
12
+ required : true
13
+
14
+ pinctrl-0 :
15
+ required : true
16
+ description : |
17
+ GPIO pin configuration for I2S signals. The required signals are:
18
+ - I2S_WS (Word Select/Frame sync)
19
+ - I2S_SCK (Bit clock)
20
+ - I2S_SDO (Serial data output)
21
+ - I2S_SDI (Serial data input)
22
+
23
+ pinctrl-names :
24
+ required : true
25
+
26
+ dmas :
27
+ required : true
28
+ description : |
29
+ DMA channels for RX and TX. Two channels must be provided in the following order:
30
+ - RX DMA channel
31
+ - TX DMA channel
32
+
33
+ dma-names :
34
+ required : true
35
+ description : |
36
+ Names of DMA channels for RX and TX. Must be provided in the following order:
37
+ - rx
38
+ - tx
You can’t perform that action at this time.
0 commit comments