Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

Linux/DS90UB954-Q1: Drivers or script examples for the DS90UB954/DS90UB953 setup

$
0
0

Part Number:DS90UB954-Q1

Tool/software: Linux

Hi,

I am working on bringing up a board using the DS90UB954 and DS90UB953 pair, we have an CSI imager and an accelerometer hooked up to the DS90UB953 Serializer, the deserializer is hooked up to an application processor running embedded linux (kernel version 4.9).

1) Are there any Linux drivers that are available for the DS90UB954 (and possibly the DS90UB953)? Or any example drivers from similar chips I could use as a guide?

2) I can't seem to communicate to the the serializer or the remote I2C bus across the FPD3-Link, I can see that the deserializer is locked and I can read registers from it, the SER_ID is read back correctly (and doesn't appear if the cable is not plugged in). But when I try to access either the serializer or the remote I2C slaves I don't get an ack back). I am told my application processor supports I2C clock stretching, and I can see the I2C clocks stop during the transaction. After 254ms the transaction ends with no-ack.

I am following the example from the datasheet to setup the I2C channel:

echo 4c > /sys/bus/i2c/devices/0-0030/reg_addr
echo 1 > /sys/bus/i2c/devices/0-0030/reg_value


echo 58 > /sys/bus/i2c/devices/0-0030/reg_addr
echo d8 > /sys/bus/i2c/devices/0-0030/reg_value

echo 5c > /sys/bus/i2c/devices/0-0030/reg_addr
echo 30 > /sys/bus/i2c/devices/0-0030/reg_value

echo 5d > /sys/bus/i2c/devices/0-0030/reg_addr
echo d0 > /sys/bus/i2c/devices/0-0030/reg_value

echo 65 > /sys/bus/i2c/devices/0-0030/reg_addr
echo d0 > /sys/bus/i2c/devices/0-0030/reg_value

echo 7c > /sys/bus/i2c/devices/0-0030/reg_addr
echo 1 > /sys/bus/i2c/devices/0-0030/reg_value

echo 70 > /sys/bus/i2c/devices/0-0030/reg_addr
echo 1f > /sys/bus/i2c/devices/0-0030/reg_value

When I I try to read from the remote i2c slave I get the following message:

No ACK from address 0xd0, 0:0!
Error: Unable to write i2c!
: Device or resource busy

Thanks,

Adam


Viewing all articles
Browse latest Browse all 262198

Trending Articles