Skip to content

Commit 903cfc8

Browse files
danieldegrassecarlescufi
authored andcommitted
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 <[email protected]>
1 parent 968ba51 commit 903cfc8

File tree

4 files changed

+52
-1
lines changed

4 files changed

+52
-1
lines changed

boards/arm/mimxrt1170_evk/doc/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ RT1170 EVKB (`mimxrt1170_evkb_cm7/cm4`)
106106
+-----------+------------+-------------------------------------+-----------------+-----------------+
107107
| SPI | on-chip | spi | Supported (M7) | No support |
108108
+-----------+------------+-------------------------------------+-----------------+-----------------+
109-
| I2C | on-chip | i2c | Supported | No support |
109+
| I2C | on-chip | i2c | Supported | Supported |
110110
+-----------+------------+-------------------------------------+-----------------+-----------------+
111111
| PWM | on-chip | pwm | Supported | Supported |
112112
+-----------+------------+-------------------------------------+-----------------+-----------------+

boards/arm/mimxrt1170_evk/mimxrt1170_evkb_cm7.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,6 @@ supported:
2121
- dma
2222
- gpio
2323
- hwinfo
24+
- i2c
2425
- usb_device
2526
- watchdog
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/*
2+
* Copyright 2023 NXP
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/* To test this sample, connect J26.12 <-> J10.20 and J26.10 <-> J10.18 */
8+
9+
&lpi2c1 {
10+
status = "okay";
11+
eeprom0: eeprom@54 {
12+
compatible = "zephyr,i2c-target-eeprom";
13+
reg = <0x54>;
14+
size = <1024>;
15+
};
16+
};
17+
18+
&lpi2c5 {
19+
status = "okay";
20+
eeprom1: eeprom@56 {
21+
compatible = "zephyr,i2c-target-eeprom";
22+
reg = <0x56>;
23+
size = <1024>;
24+
};
25+
};
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/*
2+
* Copyright 2023 NXP
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/* To test this sample, connect J26.12 <-> J10.20 and J26.10 <-> J10.18 */
8+
9+
&lpi2c1 {
10+
status = "okay";
11+
eeprom0: eeprom@54 {
12+
compatible = "zephyr,i2c-target-eeprom";
13+
reg = <0x54>;
14+
size = <1024>;
15+
};
16+
};
17+
18+
&lpi2c5 {
19+
status = "okay";
20+
eeprom1: eeprom@56 {
21+
compatible = "zephyr,i2c-target-eeprom";
22+
reg = <0x56>;
23+
size = <1024>;
24+
};
25+
};

0 commit comments

Comments
 (0)