boards: arm : mimxrt1170_evkb: add support for I2C

Add support for I2C on RT1170 EVKB, verified using I2C target API test.

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
This commit is contained in:
Daniel DeGrasse 2023-06-13 17:26:54 +00:00 committed by Carles Cufí
parent 968ba5190d
commit 903cfc8f15
4 changed files with 52 additions and 1 deletions

View file

@ -106,7 +106,7 @@ RT1170 EVKB (`mimxrt1170_evkb_cm7/cm4`)
+-----------+------------+-------------------------------------+-----------------+-----------------+
| SPI | on-chip | spi | Supported (M7) | No support |
+-----------+------------+-------------------------------------+-----------------+-----------------+
| I2C | on-chip | i2c | Supported | No support |
| I2C | on-chip | i2c | Supported | Supported |
+-----------+------------+-------------------------------------+-----------------+-----------------+
| PWM | on-chip | pwm | Supported | Supported |
+-----------+------------+-------------------------------------+-----------------+-----------------+

View file

@ -21,5 +21,6 @@ supported:
- dma
- gpio
- hwinfo
- i2c
- usb_device
- watchdog

View file

@ -0,0 +1,25 @@
/*
* Copyright 2023 NXP
*
* SPDX-License-Identifier: Apache-2.0
*/
/* To test this sample, connect J26.12 <-> J10.20 and J26.10 <-> J10.18 */
&lpi2c1 {
status = "okay";
eeprom0: eeprom@54 {
compatible = "zephyr,i2c-target-eeprom";
reg = <0x54>;
size = <1024>;
};
};
&lpi2c5 {
status = "okay";
eeprom1: eeprom@56 {
compatible = "zephyr,i2c-target-eeprom";
reg = <0x56>;
size = <1024>;
};
};

View file

@ -0,0 +1,25 @@
/*
* Copyright 2023 NXP
*
* SPDX-License-Identifier: Apache-2.0
*/
/* To test this sample, connect J26.12 <-> J10.20 and J26.10 <-> J10.18 */
&lpi2c1 {
status = "okay";
eeprom0: eeprom@54 {
compatible = "zephyr,i2c-target-eeprom";
reg = <0x54>;
size = <1024>;
};
};
&lpi2c5 {
status = "okay";
eeprom1: eeprom@56 {
compatible = "zephyr,i2c-target-eeprom";
reg = <0x56>;
size = <1024>;
};
};