Hello,
NCS1.9.1, Windows10 X64,nRF5340-DK
D:\v1.9.1\zephyr\tests\drivers\i2c\i2c_api. default codes,
in file prj.conf
build error.

file app.overlay

or 
thanks
Best Regards
Hello
sorry,i've forget it;
app.overlay
&uart1 {
status = "disabled";
};
&i2c1 {
status = "okay";
label = "i2c_1";
sda-pin = < 0x22 >;
scl-pin = < 0x23 >;
};
&i2s0 {
status = "okay";
sck-pin = <37>;
lrck-pin = <36>;
sdout-pin = <33>;
sdin-pin = <32>;
};
thanks
Best Regards
Hello
sorry,i've forget it;
app.overlay
&uart1 {
status = "disabled";
};
&i2c1 {
status = "okay";
label = "i2c_1";
sda-pin = < 0x22 >;
scl-pin = < 0x23 >;
};
&i2s0 {
status = "okay";
sck-pin = <37>;
lrck-pin = <36>;
sdout-pin = <33>;
sdin-pin = <32>;
};
thanks
Best Regards
Hi,
The overlay file should be named as <boad name>.overlay. So in your case, it should be nrf5240dk_nrf5340_cpuapp.overlay
Also, since the i2c1 is already enabled and you are using the default pins, you do not have to enter them again in the overlay file. But since the name in the program is not i2c1, an alias to this should be given in the overlay.
Regards,
Priyanka