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:
parent
c33f99351f
commit
01f9b9f0ec
|
@ -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";
|
||||
};
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
#
|
||||
# Copyright (c) 2024 Analog Devices, Inc.
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
CONFIG_I2C_VIRTUAL=n
|
|
@ -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>;
|
||||
};
|
||||
};
|
Loading…
Reference in New Issue