Part Number: DS90UB954-Q1
Other Parts Discussed in Thread: ALP
Hi Team,
We want to verify the pattern from DS90UB954 to our SOC, we have connected CSI-2 x2 lane to DS90UB954 from SOC, below is the setting we are doing for pattern generation and using gstreamer to stream video to HDMI, please confirm the below settings are fine or we need to modify the registers,
i2cset -y 2 0x38 0x33 0x23
i2cset -y 2 0x38 0x1f 0x02
i2cset -y 2 0x38 0xB0 0x00
i2cset -y 2 0x38 0xB1 0x01
i2cset -y 2 0x38 0xB2 0x01 #enable pattern generator
i2cset -y 2 0x38 0xB1 0x02
i2cset -y 2 0x38 0xB2 0x33 #fixed color pattern, 8 color bars, block size of 5
i2cset -y 2 0x38 0xB1 0x03
i2cset -y 2 0x38 0xB2 0x1E #CSI Data Identifier (0x24 = RGB888, 0x2C = RAW12, 0x2B = RAW10
# 0xA00 = 2560 bytes (= 1280 pixels x2
i2cset -y 2 0x38 0xB1 0x04
i2cset -y 2 0x38 0xB2 0x0A #line size (15:8
i2cset -y 2 0x38 0xB1 0x05
i2cset -y 2 0x38 0xB2 0x00 #line size (7:0
# 0x140 = 320 bytes (= 2560/8
i2cset -y 2 0x38 0xB1 0x06
i2cset -y 2 0x38 0xB2 0x01 #bar size (15:8
i2cset -y 2 0x38 0xB1 0x07
i2cset -y 2 0x38 0xB2 0x40 #bar size (7:0
# 0x320 = 800 lines
i2cset -y 2 0x38 0xB1 0x08
i2cset -y 2 0x38 0xB2 0x03 #active lines per frame (15:8
i2cset -y 2 0x38 0xB1 0x09
i2cset -y 2 0x38 0xB2 0x20 #active lines per frame (7:0
# 0x33F = 831 (VESA Standard
i2cset -y 2 0x38 0xB1 0x0a
i2cset -y 2 0x38 0xB2 0x03 #total lines per frame (15:8
i2cset -y 2 0x38 0xB1 0x0b
i2cset -y 2 0x38 0xB2 0x3F #total lines per frame (7:0
# 10^9/(60x831x10 = 2006 = 0x7D6
i2cset -y 2 0x38 0xB1 0x0c
i2cset -y 2 0x38 0xB2 0x07 #line period (15:8
i2cset -y 2 0x38 0xB1 0x0d
i2cset -y 2 0x38 0xB2 0xD6 #line period (7:0
# 0x21 = 33 (VESA Standard
i2cset -y 2 0x38 0xB1 0x0e
i2cset -y 2 0x38 0xB2 0x21 #vertical back porch
# 0x0A = 10 (VESA Standard
i2cset -y 2 0x38 0xB1 0x0f
i2cset -y 2 0x38 0xB2 0x0A #vertical front porch
i2cset -y 2 0x38 0xB1 0x10
i2cset -y 2 0x38 0xB2 0x00 #1st byte of fixed color
i2cset -y 2 0x38 0xB1 0x11
i2cset -y 2 0x38 0xB2 0x00 #2nd byte of fixed color
i2cset -y 2 0x38 0xB1 0x12
i2cset -y 2 0x38 0xB2 0xFF #3rd byte of fixed color
gst-launch-1.0 v4l2src device=/dev/video12 ! 'video/x-raw,format=(string)YUY2,width=1280,height=720' ! autovideosink