Support Auvidea B101 (TC358743)

Bug #1926755 reported by jeremyszu on 2021-04-30
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OEM Priority Project
Critical
jeremyszu
linux-raspi (Ubuntu)
Undecided
Unassigned
Focal
Undecided
Unassigned
Groovy
Undecided
Unassigned
Hirsute
Undecided
Unassigned

Bug Description

[Impact]

The Auvidea B101 module doesn't work on raspberry pi 4 with 20.04.2 LTS ubuntu server image.

[Test Plan]

With enabling
+CONFIG_VIDEO_TC358743=m
+CONFIG_VIDEO_TC358743_CEC=y

$ cat /boot/firmware/usercfg.txt
# Place "config.txt" changes (dtparam, dtoverlay, disable_overscan, etc.) in
# this file. Please refer to the README file for a description of the various
# configuration files on the boot partition.
dtoverlay=tc358743
dtoverlay=vc4-fkms-v3d
gpu_mem=128
start_x=1

the device is up

Mar 17 21:36:10 ubuntu kernel: tc358743 10-000f: tc358743 found @ 0x1e (i2c-11-mux (chan_id 1)

The device works as expected.

[Where problems could occur]

Enable building "CONFIG_VIDEO_TC358743" as a module should not cause the regression but only increase the linux-modules space.

jeremyszu (os369510) on 2021-04-30
Changed in linux-raspi (Ubuntu):
assignee: nobody → jeremyszu (os369510)
Juerg Haefliger (juergh) on 2021-05-01
Changed in linux-raspi (Ubuntu Hirsute):
status: New → Confirmed
Changed in linux-raspi (Ubuntu Groovy):
status: New → Confirmed
Changed in linux-raspi (Ubuntu Focal):
status: New → Confirmed
jeremyszu (os369510) wrote :

@Juerg,

Thank you for quick add this config.
but even I built a new kernel with "CONFIG_VIDEO_TC358743" and "CONFIG_VIDEO_TC358743_CEC", it looks still need something to enable it (e.g. no device alias match to probe tc358743), I will do more test on my environment.

jeremyszu (os369510) wrote :

$ modinfo tc358743
...
alias: i2c:tc358743
alias: of:N*T*Ctoshiba,tc358743C*
alias: of:N*T*Ctoshiba,tc358743

---

$ i2cdetect -l
i2c-1 unknown bcm2835 (i2c@7e804000) N/A

---

$ sudo i2cdetect -y 1
     0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --

---

no i2c device found

jeremyszu (os369510) wrote :
Download full text (3.6 KiB)

After adding:

$ cat /boot/firmware/usercfg.txt
# Place "config.txt" changes (dtparam, dtoverlay, disable_overscan, etc.) in
# this file. Please refer to the README file for a description of the various
# configuration files on the boot partition.
dtoverlay=tc358743
dtoverlay=vc4-fkms-v3d
gpu_mem=128
start_x=1

the device is up

Mar 17 21:36:10 ubuntu kernel: tc358743 10-000f: tc358743 found @ 0x1e (i2c-11-mux (chan_id 1)

---

ubuntu@ubuntu:~$ i2cdetect -l
i2c-10 unknown i2c-11-mux (chan_id 1) N/A
i2c-1 unknown bcm2835 (i2c@7e804000) N/A
i2c-11 unknown bcm2835 (i2c@7e205000) N/A
i2c-0 unknown i2c-11-mux (chan_id 0) N/A

ubuntu@ubuntu:~$ v4l2-ctl --log-status

Status Log:

   [ 174.913303] unicam fe801000.csi: ================= START STATUS =================
   [ 174.914985] tc358743 10-000f: -----Chip status-----
   [ 174.915605] tc358743 10-000f: Chip ID: 0x00
   [ 174.916225] tc358743 10-000f: Chip revision: 0x00
   [ 174.916234] tc358743 10-000f: Reset: IR: 1, CEC: 0, CSI TX: 0, HDMI: 0
   [ 174.916241] tc358743 10-000f: Sleep mode: off
   [ 174.916248] tc358743 10-000f: Cable detected (+5V power): yes
   [ 174.916775] tc358743 10-000f: DDC lines enabled: yes
   [ 174.917301] tc358743 10-000f: Hotplug enabled: no
   [ 174.917918] tc358743 10-000f: CEC enabled: no
   [ 174.917925] tc358743 10-000f: -----Signal status-----
   [ 174.917931] tc358743 10-000f: TMDS signal detected: no
   [ 174.917937] tc358743 10-000f: Stable sync signal: no
   [ 174.917944] tc358743 10-000f: PHY PLL locked: no
   [ 174.917950] tc358743 10-000f: PHY DE detected: no
<7>[ 174.918511] tc358743 10-000f: tc358743_get_detected_timings: no valid signal
   [ 174.918522] tc358743 10-000f: No video detected
   [ 174.918535] tc358743 10-000f: Configured format: 640x480p59.94 (800x525)
   [ 174.918544] tc358743 10-000f: horizontal: fp = 16, -sync = 96, bp = 48
   [ 174.918552] tc358743 10-000f: vertical: fp = 10, -sync = 2, bp = 33
   [ 174.918559] tc358743 10-000f: pixelclock: 25175000
   [ 174.918569] tc358743 10-000f: flags (0x80): HAS_CEA861_VIC
   [ 174.918577] tc358743 10-000f: standards (0x3): CEA DMT
   [ 174.918584] tc358743 10-000f: CEA-861 VIC: 1
   [ 174.918590] tc358743 10-000f: -----CSI-TX status-----
   [ 174.918597] tc358743 10-000f: Lanes needed: 1
   [ 174.918604] tc358743 10-000f: Lanes in use: 1
<7>[ 174.919146] tc358743 10-000f: tc358743_isr: IntStatus = 0x0000
   [ 174.919780] tc358743 10-000f: Waiting for particular sync signal: no
   [ 174.921027] tc358743 10-000f: Transmit mode: no
   [ 174.921646] tc358743 10-000f: Receive mode: no
   [ 174.922338] tc358743 10-000f: Stopped: no
   [ 174.922346] tc358743 10-000f: Color space: RGB 888 24-bit
   [ 174.922882] tc358743 10-000f: -----DVI-D status-----
   [ 174.922890] tc358743 10-000f: HDCP encrypted content: no
   [ 174.922898] tc358743 10-000f: Input color space: RGB full range
   [ 174.923430] unicam fe801000.csi: -----Receiver status-----
   [ 174.923439] unicam fe801000.csi: V4L2 width/height: 640x480
   [ 174.923446] unicam fe801000.csi: Mediabus format: 0000100a
   [ 174.923453] unicam fe801000....

Read more...

jeremyszu (os369510) wrote :

After applying

ubuntu@ubuntu:~/workspace$ wget https://raw.githubusercontent.com/6by9/RPiTest/master/1080P50EDID.txt

ubuntu@ubuntu:~/workspace$ v4l2-ctl --set-edid=file=1080P50EDID.txt --fix-edid-checksums

CTA-861 Header
  IT Formats Underscanned: yes
  Audio: yes
  YCbCr 4:4:4: no
  YCbCr 4:2:2: no

HDMI Vendor-Specific Data Block
  Physical Address: 3.0.0.0
  YCbCr 4:4:4 Deep Color: no
  30-bit: no
  36-bit: no
  48-bit: no

CTA-861 Video Capability Descriptor
  RGB Quantization Range: yes
  YCC Quantization Range: no
  PT: Supports both over- and underscan
  IT: Supports both over- and underscan
  CE: Supports both over- and underscan

---

it's working now.

@Juerg,

I already confirmed the https://lists.ubuntu.com/archives/kernel-team/2021-May/119706.html works.

Changed in linux-raspi (Ubuntu):
assignee: jeremyszu (os369510) → nobody
description: updated
tags: added: oem-priority originate-from-1926731 zapper
Changed in oem-priority:
assignee: nobody → jeremyszu (os369510)
importance: Undecided → Medium
status: New → Triaged
Rex Tsai (chihchun) on 2021-05-05
Changed in oem-priority:
importance: Medium → Critical
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers