Skip to content

Commit aa394e0

Browse files
ttmutnashif
authored andcommitted
tests: i2c: i2c_target_api: Assign DMA channels to MAX32 I2C nodes
Add DMA channels to test overlay files as DMA support is now available for MAX32 I2C driver. Signed-off-by: Tahsin Mutlugun <[email protected]>
1 parent 04e8570 commit aa394e0

File tree

5 files changed

+15
-0
lines changed

5 files changed

+15
-0
lines changed

tests/drivers/i2c/i2c_target_api/boards/max32655evkit_max32655_m4.overlay

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
pinctrl-0 = <&i2c1_scl_p0_16 &i2c1_sda_p0_17>;
1919
pinctrl-names = "default";
2020

21+
dmas = <&dma0 1 MAX32_DMA_SLOT_I2C1_TX>, <&dma0 2 MAX32_DMA_SLOT_I2C1_RX>;
22+
dma-names = "tx", "rx";
23+
2124
eeprom1: eeprom@56 {
2225
compatible = "zephyr,i2c-target-eeprom";
2326
reg = <0x56>;

tests/drivers/i2c/i2c_target_api/boards/max32670evkit.overlay

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
pinctrl-0 = <&i2c1_scl_p0_12 &i2c1_sda_p0_13>;
1919
pinctrl-names = "default";
2020

21+
dmas = <&dma0 1 MAX32_DMA_SLOT_I2C1_TX>, <&dma0 2 MAX32_DMA_SLOT_I2C1_RX>;
22+
dma-names = "tx", "rx";
23+
2124
eeprom1: eeprom@56 {
2225
compatible = "zephyr,i2c-target-eeprom";
2326
reg = <0x56>;

tests/drivers/i2c/i2c_target_api/boards/max32672evkit.overlay

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
pinctrl-0 = <&i2c1a_scl_p0_12 &i2c1a_sda_p0_13>;
1919
pinctrl-names = "default";
2020

21+
dmas = <&dma0 1 MAX32_DMA_SLOT_I2C1_TX>, <&dma0 2 MAX32_DMA_SLOT_I2C1_RX>;
22+
dma-names = "tx", "rx";
23+
2124
eeprom1: eeprom@56 {
2225
compatible = "zephyr,i2c-target-eeprom";
2326
reg = <0x56>;

tests/drivers/i2c/i2c_target_api/boards/max32680evkit_max32680_m4.overlay

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
};
1515

1616
&i2c1 {
17+
dmas = <&dma0 1 MAX32_DMA_SLOT_I2C1_TX>, <&dma0 2 MAX32_DMA_SLOT_I2C1_RX>;
18+
dma-names = "tx", "rx";
19+
1720
eeprom1: eeprom@56 {
1821
compatible = "zephyr,i2c-target-eeprom";
1922
reg = <0x56>;

tests/drivers/i2c/i2c_target_api/boards/max32690evkit_max32690_m4.overlay

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
pinctrl-0 = <&i2c2c_scl_p1_8 &i2c2c_sda_p1_7>;
1919
pinctrl-names = "default";
2020

21+
dmas = <&dma0 1 MAX32_DMA_SLOT_I2C2_TX>, <&dma0 2 MAX32_DMA_SLOT_I2C2_RX>;
22+
dma-names = "tx", "rx";
23+
2124
eeprom1: eeprom@56 {
2225
compatible = "zephyr,i2c-target-eeprom";
2326
reg = <0x56>;

0 commit comments

Comments
 (0)