I am faced "I2C read failed reg 0x00 err -5" issue
&pinctrl {
i2c22_default: i2c22_default {
group1 {
psels = <NRF_PSEL(TWIM_SCL, 2, 7)>,
<NRF_PSEL(TWIM_SDA, 2, 6)>;
bias-pull-up;
};
};
i2c22_sleep: i2c22_sleep {
group1 {
psels = <NRF_PSEL(TWIM_SCL, 2, 7)>,
<NRF_PSEL(TWIM_SDA, 2, 6)>;
low-power-enable;
};
};
i2s20_default: i2s20_default {
group1 {
psels = <NRF_PSEL(I2S_SDOUT, 0, 0)>,
<NRF_PSEL(I2S_SDIN, 0, 1)>,
<NRF_PSEL(I2S_SCK_S, 0, 2)>,
<NRF_PSEL(I2S_MCK, 0, 3)>,
<NRF_PSEL(I2S_LRCK_M, 0, 4)>;
};
};
i2s20_sleep: i2s20_sleep {
group1 {
psels = <NRF_PSEL(I2S_SDOUT, 0, 0)>,
<NRF_PSEL(I2S_SDIN, 0, 1)>,
<NRF_PSEL(I2S_SCK_S, 0, 2)>,
<NRF_PSEL(I2S_MCK, 0, 3)>,
<NRF_PSEL(I2S_LRCK_M, 0, 4)>;
};
};
};
&i2c22 {
status = "okay";
pinctrl-0 = <&i2c22_default>;
pinctrl-1 = <&i2c22_sleep>;
pinctrl-names = "default", "sleep";
audiocodec: audiocodec@18 {
compatible = "i2c-device";
status = "okay";
reg = < 0x18 >;
};
};
&i2s20 {
status = "okay";
pinctrl-0 = <&i2s20_default>;
pinctrl-1 = <&i2s20_sleep>;
pinctrl-names = "default", "sleep";
}; this is my overlay

