File tree Expand file tree Collapse file tree 4 files changed +60
-1
lines changed 
include/zephyr/dt-bindings/dma Expand file tree Collapse file tree 4 files changed +60
-1
lines changed Original file line number Diff line number Diff line change 154154	status = "okay";
155155};
156156
157+ &i2s0 {
158+ 	status = "okay";
159+ 	pinctrl-0 = <&i2s_sck_p1_2 &i2s_ws_p1_3 &i2s_sdi_p1_4 &i2s_sdo_p1_5>;
160+ 	pinctrl-names = "default";
161+ };
162+ 
157163&wdt0 {
158164	status = "okay";
159165};
Original file line number Diff line number Diff line change 164164				status = "disabled";
165165			};
166166		};
167+ 
168+ 		i2s0: i2s0@40060000 {
169+ 			compatible = "adi,max32-i2s";
170+ 			reg = <0x40060000 0x1000>;
171+ 			#address-cells = <1>;
172+ 			#size-cells = <0>;
173+ 			/*
174+ 			 * DMA Configuration is provided as an example.
175+ 			 * user is free to change dma channel index,
176+ 			 * but tx and rx slot should be kept same as below
177+ 			 *
178+ 			 * ref to MAX32655 User Guide
179+ 			 * Table 9-2: DMA Source and Destination by Peripheral
180+ 			 */
181+ 			dmas = <&dma0 0 MAX32_DMA_SLOT_I2S_TX>, <&dma0 1 MAX32_DMA_SLOT_I2S_RX>;
182+ 			dma-names = "tx", "rx";
183+ 			status = "disabled";
184+ 		};
167185	};
168186};
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+   dmas :
15+     required : true 
16+     description : | 
17+       DMA channels for RX and TX. Two channels must be provided in the following order: 
18+       - RX DMA channel 
19+       - TX DMA channel 
20+ 
21+    dma-names :
22+     required : true 
23+     description : | 
24+       Names of DMA channels for RX and TX. Must be provided in the following order: 
25+       - rx 
26+       - tx 
27+ 
28+    i2s-clk-frequency :
29+     type : int 
30+     default : 12288000 
31+     description : | 
32+       Frequency of the I2S clock in Hz. 
33+       This clock is used to derive the bit clock and frame clock. 
34+       Default to 12.288 MHz, which is suitable for common audio sample rates. 
Original file line number Diff line number Diff line change 1818#define  MAX32_DMA_SLOT_UART2_RX  0x0EU
1919#define  MAX32_DMA_SLOT_SPI0_RX   0x0FU
2020#define  MAX32_DMA_SLOT_UART3_RX  0x1CU
21+ #define  MAX32_DMA_SLOT_I2S_RX    0x1EU
2122#define  MAX32_DMA_SLOT_SPI1_TX   0x21U
2223#define  MAX32_DMA_SLOT_UART0_TX  0x24U
2324#define  MAX32_DMA_SLOT_UART1_TX  0x25U
2829#define  MAX32_DMA_SLOT_UART2_TX  0x2EU
2930#define  MAX32_DMA_SLOT_SPI0_TX   0x2FU
3031#define  MAX32_DMA_SLOT_UART3_TX  0x3CU
31- #define  MAX32_DMA_SLOT_I2S        0x3EU
32+ #define  MAX32_DMA_SLOT_I2S_TX    0x3EU
3233
3334#endif  /* ZEPHYR_INCLUDE_DT_BINDINGS_DMA_MAX32655_DMA_H_ */ 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments