tests: drivers: i2c: Add MAX32675EVKIT overlay file

Enable I2C test for MAX32675EVKIT.

Signed-off-by: Mert Ekren <mert.ekren@analog.com>
This commit is contained in:
Mert Ekren 2024-01-31 06:57:28 +03:00 committed by Anas Nashif
parent c33f99351f
commit 01f9b9f0ec
3 changed files with 42 additions and 0 deletions

View File

@ -85,6 +85,12 @@
status = "okay";
};
&i2c2 {
status = "okay";
pinctrl-0 = <&i2c2a_scl_p0_18 &i2c2a_sda_p0_19>;
pinctrl-names = "default";
};
&trng {
status = "okay";
};

View File

@ -0,0 +1,6 @@
#
# Copyright (c) 2024 Analog Devices, Inc.
#
# SPDX-License-Identifier: Apache-2.0
#
CONFIG_I2C_VIRTUAL=n

View File

@ -0,0 +1,30 @@
/*
* Copyright (c) 2024 Analog Devices, Inc.
*
* SPDX-License-Identifier: Apache-2.0
*/
&i2c0 {
status = "okay";
pinctrl-0 = <&i2c0a_scl_p0_6 &i2c0a_sda_p0_7>;
pinctrl-names = "default";
eeprom0: eeprom@54 {
compatible = "zephyr,i2c-target-eeprom";
reg = <0x54>;
address-width = <16>;
size = <1024>;
};
};
&i2c2 {
dmas = <&dma0 1 MAX32_DMA_SLOT_I2C2_TX>, <&dma0 2 MAX32_DMA_SLOT_I2C2_RX>;
dma-names = "tx", "rx";
eeprom1: eeprom@56 {
compatible = "zephyr,i2c-target-eeprom";
reg = <0x56>;
address-width = <16>;
size = <1024>;
};
};