-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
boards: nxp: frdm_mcxw71: Enable MCXW71 I2C Loopback
Enable and test I2C loopback with i2c_target_api Signed-off-by: Emilio Benavente <[email protected]>
- Loading branch information
1 parent
8998b1a
commit dcaec92
Showing
4 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
CONFIG_I2C_VIRTUAL=n |
37 changes: 37 additions & 0 deletions
37
tests/drivers/i2c/i2c_target_api/boards/frdm_mcxw71.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/* | ||
* Copyright 2025 NXP | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
/* | ||
* This is a looback setup for the frdm_mcxw71 | ||
* To test this sample, connect J2.1 <-> J1.5 and J2.2 <-> J2.9 | ||
*/ | ||
&lpi2c1 { | ||
status = "okay"; | ||
eeprom0: eeprom@54 { | ||
compatible = "zephyr,i2c-target-eeprom"; | ||
reg = <0x54>; | ||
size = <256>; | ||
}; | ||
}; | ||
|
||
&lpi2c0 { | ||
status = "okay"; | ||
pinctrl-0 = <&pinmux_lpi2c0>; | ||
pinctrl-names = "default"; | ||
eeprom1: eeprom@56 { | ||
compatible = "zephyr,i2c-target-eeprom"; | ||
reg = <0x56>; | ||
size = <256>; | ||
}; | ||
}; | ||
|
||
&gpiob { | ||
status = "okay"; | ||
}; | ||
|
||
&gpioa { | ||
status = "okay"; | ||
}; |