1. TI ds90ub954 i2c-tool 调试脚本(单路)
脚本中主要设置954寄存器,以访问远端933/913
#!/bin/bash
# i2c bus num
export I2C_BUS_NUM=1
#
# ds90ub954 deserializer
#
export primary_devaddr_7bit=0x30
# register
export FPD3_PORT_SEL_ADDR=0x4c
export RX_PORT_CTL_ADDR=0x0c
export BCC_CONFIG=0x58
export SER_ALIAS_ID_ADDR=0x5C
export SLAVE_ID0_ADDR=0x5D
export SLAVE_ALIAS_ID0_ADDR=0x65
export I2C_DEVICE_ID_REG=0x00
# 913 i2c addr
# remote 913 SER slave addr: 7'bit: 0x5d
export REMOTE_SER_ADDR_8BIT=0xBA
# ar0144
# ar0144 slave addr: 7'bit: 0x10
export AR0144_ADDR_8BIT=0x20
if [ $1x = "1"x ];then
modprobe i2c-dev
echo "ds90ub954 power down and camera module power on"
#
#