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.

Linux/DS90UB954-Q1: How to bind deserializer in device tree?

Part Number: DS90UB954-Q1

Tool/software: Linux

Is there a standard driver for the 954? I need to bind the deserializer to a driver in device tree. I am trying to use it as CSI input to a CSI module on my SoC. This is needed to setup the endpoint and remote endpoints. 

  • Matt,
    for UB954 CSI2 mode, in many cases it can work automatically with external MODE_SEL setting. for more functions, you can consider:
    1. if you need the remote control mode, you should set the I2C reg. firstly in the driver (0x58 ~0x6x).
    2. for CSI2 port, you need configure the lane number, clock mode, etc.
    3. for FPD-Link port, you can set the GPIO mapping and error detection etc.
    4. also, in some cases, you should "reset" function, this is described in reg. 0x01.

    the above reg. setting is typical if you need change the default setting of UB954.

    regards,
    Steven
  • Steven,

    Thank you for your response! I have configured my image sensor, 953 and 954 and am seeing "valid" data on the outgoing CSI ports on the 954. However to establish the CSI link between the 954 and the CSI module on my SoC, I believe I need to make device tree changes.

    In device tree I have the node "csi20" which is a 2 lane CSI port and corresponds to the CSI module on my SoC. With saying that, I need to create a remote-endpoint to the deserializer, within the csi20 node. Likewise, I need to create a node for the deserializer under the proper i2c channel and also point the remote-endpoing to the csi20 node, to establish the link.

    Are any drivers needed / available to establish that link? Or am I misunderstanding?

    Thank you,

    Matt
  • yes, you just need set the csi2 port and I2C, please refer to page22 of UB96x EVM board user guide, it has one example script for your reference.

    regards,
    Steven