tests: drivers: i2c: i2c_target_api: support numaker_pfm_m467

Add support for Nuvoton numaker board numaker_pfm_m467.

Signed-off-by: cyliang tw <cyliang@nuvoton.com>
This commit is contained in:
cyliang tw 2023-11-24 14:55:27 +08:00 committed by Fabio Baltieri
parent dfff1107b8
commit c07156ef3c
2 changed files with 43 additions and 0 deletions

View file

@ -0,0 +1,2 @@
CONFIG_I2C=y
CONFIG_I2C_TARGET=y

View file

@ -0,0 +1,41 @@
/* SPDX-License-Identifier: Apache-2.0 */
&pinctrl {
i2c1_default: i2c1_default {
group0 {
pinmux = <PB2MFP_I2C1_SDA>, /* UNO D0 */
<PB3MFP_I2C1_SCL>; /* UNO D1 */
};
};
i2c3_default: i2c3_default {
group0 {
pinmux = <PG1MFP_I2C3_SDA 0x0000>, /* UNO D14 */
<PG0MFP_I2C3_SCL 0x0000>; /* UNO D15 */
};
};
};
&i2c1 {
pinctrl-0 = <&i2c1_default>;
pinctrl-names = "default";
status = "okay";
eeprom0: eeprom@54 {
compatible = "zephyr,i2c-target-eeprom";
reg = <0x54>;
size = <1024>;
};
};
&i2c3 {
pinctrl-0 = <&i2c3_default>;
pinctrl-names = "default";
status = "okay";
eeprom1: eeprom@56 {
compatible = "zephyr,i2c-target-eeprom";
reg = <0x56>;
size = <1024>;
};
};