How can we configure image sensor from SoC?We have developed a Linux driver for FPD link 111 ds90ub 953/ 954 SerDes.could you provide device tree examples for the above configuration?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
How can we configure image sensor from SoC?We have developed a Linux driver for FPD link 111 ds90ub 953/ 954 SerDes.could you provide device tree examples for the above configuration?
Hello,
Once you establish link between the 953 and 954, you'll need to set your serializer and imager alias IDs:
- Des reg 0x4C: Select the right RX port to write
- Set/Check real I2C addresses
- Reg 0x5B SER DEVICE ID: Set the real serializer I2C address. This is typically loaded already
- Reg 0x5D SlaveID[0]: Set the real CMOS sensor I2C address
- Reg 0x5C SER_ALIAS_ID: Set the alias serializer I2C address
- Reg 0x65 SLAVE_ALIAS_ID[0] (camera alias ID): Set the alias CMOS sensor I2C address.
Communicate to and initialize the imager using the slave alias ID you set in reg 0x65.
Best,
Jiashow
yes, 953a shares the same script and same setting method as 935. 936 shares the same setting as 954 with same reg.
regards,
Steven
we are using 4 i2c device in the serializer side ( CMOS,DIGITAL POT,IO expander, etc.. ).can I use suggested CMOS configuration method to other I2C devices? is it required to add slave device attached to serializer side in the device tree source file(DTS)?
Yes, you can.
in your case, the local I2C mater is linked to de-ser., and the remote ser.'s i2c is linked with 4 i2c slave. for this link, the i2c master can visit these 4 remote i2c slave. in the 954 side, you need set:
1. i2c pass through in reg. 0x58[6]
2. remote slave IDx (the 4 i2c slave IDX), and their alias slave ID in reg. 0x65/66/67/68, then you can use the alias slave ID to visit these 4 i2c slavers respectively.
regarsd,
Steven
Can I use same slave address and slave alias address?
For example ,Reg 0x5D Slave ID[0]=0x35,0x65 SLAVE_ALIAS_ID[0]=0x35
Is it possible?
It will better if you provide any suggestion regarding the DTS(device Tree Source ) file configuration for the above mentioned Architecture
Yes, you can use same IDx. but pls note the reg. bit definition for 0x5d/0x65.
pls confirm if your i2c architecture is same as what i talked above? if yes, you can follow the step1 and step2.
in your case, the local I2C mater is linked to de-ser., and the remote ser.'s i2c is linked with 4 i2c slave. for this link, the i2c master can visit these 4 remote i2c slave. in the 954 side, you need set:
1. i2c pass through in reg. 0x58[6]
2. remote slave IDx (the 4 i2c slave IDX), and their alias slave ID in reg. 0x65/66/67/68, then you can use the alias slave ID to visit these 4 i2c slavers respectively.
regards,
Steven
Hi Vineeth,
What registers did you program? This may be an issue related to the SoC if the registers are programmed correctly.
Best,
Jiashow
Hi Vineeth,
Are you running in synchronous mode? Can you check reg 0x58 and make sure it's set to 0x5E? Are you getting stable lock with the serializer?
Best,
Jiashow
Hi Vineeth,
You should be able to send I2C command from the deserializer to the serializer via the back channel. The serializer will send the ack command back via the forward channel.
Best,
Jiashow
Hi Vineeth,
The imager is CSI interface right? What's the max CSI output bandwidth of the imager? How is the I2C configured on the imager?
Best,
Jiashow
Hi Vineeth,
I don't think there's any compatibility issues with the imager and the serializer.
Can you provide the registers you configured for the slave/alias IDs? If you try to communicate to the imager, is there I2C activities between the imager and the serializer?
Best,
Jiashow
Hi Vineeth,
For the MODE resistors you need to change them to 71.5k pull-up and 56.2k pull down.
You can refer to section 7.4.1.3 in the 953 datasheet for more information.
Best,
Jiashow
Hi,
I need to use GPIO 0 pin of serializer for cmos reset operation. could you share the register configuration?
as per my understanding GPIO_INPUT_CTRL(0x0E) =0x1E (gpio0-output-enable )
GPIO_INPUT_CTRL(0x0E)= 0x10(gpio control value)
after cmos reset GPIO_INPUT_CTRL(0x0E)= 0x00(gpio control value) is it correct?
How to enable CSI-2 Replicate mode in ds90ub954 serializer?
Hi Vineeth,
For GPIO,in reg 0x0E, you need to enable GPIO0 as output and turn off GPIO0 as input. Then you can set reg 0x0D[4] = 0 and 0x0D[0] to 1 to toggle GPIO0 output.
On 954, reg 0x21[7] sets the CSI replication.
Best,
Jiashow
Hi Vineeth,
I believe you're configuring the pattern correctly. The black and white pattern you're showing here is the default pattern.
Best,
Jiashow