https://e2e.ti.com/support/interface-group/interface/f/interface-forum/579350/linux-sn65dsi83-0
部件号:SN65DSI83工具/软件:Linux
您好,
我们正在尝试在设备中启用SN65DSI83 IC的“测试模式”功能,SN65DSI83似乎没有数据输出(LCD面板仍为白屏)。
以下是问题:
1.有人能告诉我们,如果成功启用“测试模式”功能,SN65DSI83将输出哪种模式?
2.以下是我们配置SN65DSI83的设置,有人能帮我们检查是否有任何步骤遗漏或错误吗? 谢谢。
//软复位和禁用PLL
I2C_smbus_write_byte_data(dsi65_i2c_dev->client,SN65DSI83_soft_reset,0x01);
I2C_smbus_write_byte_data(dsi65_i2c_dev->client,SN65DSI83_PLL_EN,0x00);
//从REFCLK和范围62.5MHz - 87.5MHz中选择LVDS piexl时钟
I2C_smbus_write_byte_data(dsi65_i2c_dev->client,SN65DSI83_core_PLL,0x04);
//将REFCLK乘以3。
I2C_smbus_write_byte_data(dsi65_i2c_dev->client,SN65DSI83_PLL_DIV,0x02);
//单通道的四个DSI通道
I2C_smbus_write_byte_data(dsi65_i2c_dev->client,SN65DSI83_DSI_CFG,0x20);
I2C_smbus_write_byte_data(dsi65_i2c_dev->client,SN65DSI83_DSI_EQ,0x00);
//设置DSI时钟范围450MHz - 455MHz
I2C_smbus_write_byte_data(dsi65_i2c_dev->client,SN65DSI83_CHA_DSI_CLK_RNG,0x5A);
//为单通道,24位模式,HS/VS低,DE高设置LVDS
I2C_smbus_write_byte_data(dsi65_i2c_dev->client,SN65DSI83_LVDS_mode,0x78);
//设置LVDS 100欧姆端接和最大差分摆动电压
I2C_smbus_write_byte_data(dsi65_i2c_dev->client,SN65DSI83_LVDS_sign,0x00);
I2C_smbus_write_byte_data(dsi65_i2c_dev->client,SN65DSI83_LVDS_term,0x02);
//x高分辨率/低分辨率(通道A 1366)
I2C_smbus_write_byte_data(dsi65_i2c_dev->client,SN65DSI83_CHA_LINE_LEN_LO,0x56);
I2C_smbus_write_byte_data(dsi65_i2c_dev->client,SN65DSI83_CHA_LINE_LEN_HI,0x05);
//y分辨率高/低(通道A 768)
I2C_smbus_write_byte_data(dsi65_i2c_dev->client,SN65DSI83_CHA_VERT_Lines_LO,0x00);
I2C_smbus_write_byte_data(dsi65_i2c_dev->client,SN65DSI83_CHA_VERT_Lines_HI,0x03);
//通道A的同步延迟高/低
I2C_smbus_write_byte_data(dsi65_i2c_dev->client,SN65DSI83_CHA_SYNC_DELAY _LO,0x00);
I2C_smbus_write_byte_data(dsi65_i2c_dev->client,SN65DSI83_Cha_sync_delay_HI,0x02);
//通道A 14的HSYNC宽度高/低
I2C_smbus_write_byte_data(dsi65_i2c_dev->client,SN65DSI83_CHA_HSYNC_width_LO,0x0E);
I2C_smbus_write_byte_data(dsi65_i2c_dev->client,SN65DSI83_CHA_HSYNC_width_HI,0x00);
//通道A 3的VSYNC宽度高/低
I2C_smbus_write_byte_data(dsi65_i2c_dev->client,SN65DSI83_CHA_VSYNC_width_LO,0x03);
I2C_smbus_write_byte_data(dsi65_i2c_dev->client,SN65DSI83_CHA_VSYNC_width_HI,0x00);
//通道A 30的水平后向
I2C_smbus_write_byte_data(dsi65_i2c_dev->client,SN65DSI83_CHA_HORZ_BACKPORCH,0x1E);
//通道A 15的垂直BackPorch
I2C_smbus_write_byte_data(dsi65_i2c_dev->client,SN65DSI83_CHA_VERT_BACKPORCH,0x0F);
//通道A 150的水平前向通道
I2C_smbus_write_byte_data(dsi65_i2c_dev->client,SN65DSI83_CHA_HORZ_FRONTPORCH,0x96);
//通道A的垂直前向通道20
I2C_smbus_write_byte_data(dsi65_i2c_dev->client,SN65DSI83_CHA_VERT_FRONTPORCH,0x14);
I2C_smbus_write_byte_data(dsi65_i2c_dev->client,SN65DSI83_test_pattern,0x11);
//软重置并启用PL
I2C_smbus_write_byte_data(dsi65_i2c_dev->client,SN65DSI83_soft_reset,0x00);
I2C_smbus_write_byte_data(dsi65_i2c_dev->client,SN65DSI83_PLL_EN,0x01);