how to move HDMI from I2C2 to I2C3 (I.MX6Q SABRE lite)?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

how to move HDMI from I2C2 to I2C3 (I.MX6Q SABRE lite)?

Jump to solution
1,182 Views
michaelsadikov
Contributor I

I am trying to install Linux on our custom board similar to the I.MX6Q SabreLite board. I am using linux-imx6-boundary-imx_3.0.35_4.0.0
and linux-imx6-boundary-imx_3.0.35_1.1.1.

On the SabreLite board HDMI uses I2C2, and on our custom board HDMI uses I2C3.
How to move HDMI from I2C2 to I2C3?
I move I2C_BOARD_INFO("mxc_hdmi_i2c", 0x50) from static struct i2c_board_info mxc_i2c1_board_info[] __initdata to
static struct i2c_board_info mxc_i2c2_board_info[] __initdata in board_mx6q_sabrelite.c ...
What else it is necessary to make? (excuse for my bad English).

0 Kudos
1 Solution
564 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hello,Michael,

       At first , I2C3_SDA & I2C3_SCLK should be iomuxed via corresponding PADs on CPU. The following code is from board-mx6q_sabrelite.c

/* I2C3 */

MX6Q_PAD_GPIO_5__I2C3_SCL, /* GPIO1[5] - J7 - Display card */

#ifdef CONFIG_FEC_1588

MX6Q_PAD_GPIO_16__ENET_ANATOP_ETHERNET_REF_OUT,

#else

MX6Q_PAD_GPIO_16__I2C3_SDA, /* GPIO7[11] - J15 - RGB connector */

#endif

Please notice that you can 't select FEC_1588 when you configue linux kerel if your I2C3 is iomuxed like abve.

Then add HDMI DDC address and driver's name to I2C3 board info structure: 

static struct i2c_board_info mxc_i2c2_board_info[] __initdata = {

{

       I2C_BOARD_INFO("egalax_ts", 0x4),

       .irq = gpio_to_irq(MX6Q_SABRELITE_CAP_TCH_INT1),

},

{

       I2C_BOARD_INFO("mxc_hdmi_i2c", 0x50), /*Don't forget to remove it from I2C2 BOARD INFO*/

},

};

Try it please !

Weidong

  

View solution in original post

0 Kudos
1 Reply
565 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hello,Michael,

       At first , I2C3_SDA & I2C3_SCLK should be iomuxed via corresponding PADs on CPU. The following code is from board-mx6q_sabrelite.c

/* I2C3 */

MX6Q_PAD_GPIO_5__I2C3_SCL, /* GPIO1[5] - J7 - Display card */

#ifdef CONFIG_FEC_1588

MX6Q_PAD_GPIO_16__ENET_ANATOP_ETHERNET_REF_OUT,

#else

MX6Q_PAD_GPIO_16__I2C3_SDA, /* GPIO7[11] - J15 - RGB connector */

#endif

Please notice that you can 't select FEC_1588 when you configue linux kerel if your I2C3 is iomuxed like abve.

Then add HDMI DDC address and driver's name to I2C3 board info structure: 

static struct i2c_board_info mxc_i2c2_board_info[] __initdata = {

{

       I2C_BOARD_INFO("egalax_ts", 0x4),

       .irq = gpio_to_irq(MX6Q_SABRELITE_CAP_TCH_INT1),

},

{

       I2C_BOARD_INFO("mxc_hdmi_i2c", 0x50), /*Don't forget to remove it from I2C2 BOARD INFO*/

},

};

Try it please !

Weidong

  

0 Kudos