tests: drivers: i2c: i2c_target_api: support numaker_m2l31ki
Add support for Nuvoton numaker board numaker_m2l31ki. Signed-off-by: Chun-Chieh Li <ccli8@nuvoton.com>
This commit is contained in:
parent
360bc4f1ca
commit
4a0aa603c8
2 changed files with 43 additions and 0 deletions
|
@ -0,0 +1,2 @@
|
|||
CONFIG_I2C=y
|
||||
CONFIG_I2C_TARGET=y
|
|
@ -0,0 +1,41 @@
|
|||
/* SPDX-License-Identifier: Apache-2.0 */
|
||||
|
||||
&pinctrl {
|
||||
i2c2_default: i2c2_default {
|
||||
group0 {
|
||||
pinmux = <PA10MFP_I2C2_SDA>, /* UNO D6 */
|
||||
<PA11MFP_I2C2_SCL>; /* UNO D7 */
|
||||
};
|
||||
};
|
||||
|
||||
i2c0_default: i2c0_default {
|
||||
group0 {
|
||||
pinmux = <PA4MFP_I2C0_SDA>, /* UNO D14 */
|
||||
<PA5MFP_I2C0_SCL>; /* UNO D15 */
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&i2c2 {
|
||||
pinctrl-0 = <&i2c2_default>;
|
||||
pinctrl-names = "default";
|
||||
status = "okay";
|
||||
|
||||
eeprom0: eeprom@54 {
|
||||
compatible = "zephyr,i2c-target-eeprom";
|
||||
reg = <0x54>;
|
||||
size = <1024>;
|
||||
};
|
||||
};
|
||||
|
||||
&i2c0 {
|
||||
pinctrl-0 = <&i2c0_default>;
|
||||
pinctrl-names = "default";
|
||||
status = "okay";
|
||||
|
||||
eeprom1: eeprom@56 {
|
||||
compatible = "zephyr,i2c-target-eeprom";
|
||||
reg = <0x56>;
|
||||
size = <1024>;
|
||||
};
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue