I2C Configuration Issue in nrf5340 audio dk

Hi Team,

I have configured I2C0 for reading data and sending iqs323 and iqs7211a. i have configured overlay file according pin conjuration which is below.

Pin configuration:

SCL - P0.26

SDA - P0.25

RDY(0x44) - P1.00

RDY(0x56) - P1.01

i have enabled below in config file.

# I2C
CONFIG_I2C=y
CONFIG_NRFX_TWIM1=y
CONFIG_GPIO=y

after this i was checking binding in main file but is showing that binding failed.
below is main file screenshort to check binding. so, it is always fail satisfy if and condition and showing binding fail.


Below is overlay file configuration.


below is config file configuration


i have done changes in existing code of nrf5340 audio code sample. i have not changed anything except this.
kindly guide to configuration of I2C.
Regards, 
Dhruvish Patel
  • &i2c2 {
    	status = "okay";
    
    	/* Azoteq IQS323: touch/wear detection */
    	iqs323: iqs323@44 {
    		compatible = "azoteq,iqs323";
    		reg = <0x44>;
    		enable-gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; /* P0.12 - RDY pin */
    		status = "okay";
    	};
    
    	/* Azoteq IQS7211E: touch/slider */
    	iqs7211e: iqs7211e@56 {
    		compatible = "azoteq,iqs7211e";
    		reg = <0x56>;
    		enable-gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; /* P0.13 - RDY pin */
    		status = "okay";
    	};
    };

  • Hi Dhruvish Patel,

    Could you please verify that you have added a label like for example "I2C_2" to your overlay? Please also verify that you have updated the main file with this label as well. 

    Please try adding the I2C_2 label as shown below. 

    &i2c2 {
    	status = "okay";
    	label = "I2C_2";
    
    	/* Azoteq IQS323: touch/wear detection */
    	iqs323: iqs323@44 {
    		compatible = "azoteq,iqs323";
    		reg = <0x44>;
    		enable-gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; /* P0.12 - RDY pin */
    		status = "okay";
    	};
    
    	/* Azoteq IQS7211E: touch/slider */
    	iqs7211e: iqs7211e@56 {
    		compatible = "azoteq,iqs7211e";
    		reg = <0x56>;
    		enable-gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; /* P0.13 - RDY pin */
    		status = "okay";
    	};
    };

Related