Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4416

Interfacing (DSI, CSI, I2C, etc.) • Pi 5 Waveshare DSI 4.3 inch Capacitive Display Backlight Problem

$
0
0
Hi,
I am working on a Yocto-based distro where I want to interface Pi 5 with Waveshare DSI 4.3 inch display. (Rev 2.1)
Unfortunately, so far wasn't able to get past the following backlight problem and somehow i2c controller looks timed out when I plug the module in:

Code:

[   44.778014] panel-simple 100000001.panel_disp: [drm:drm_panel_disable] failed to disable backlight: -110                                                                                                [   45.828072] i2c_designware 1f00080000.i2c: controller timed out


It seems based on logs that at least DSI panel is recognized but this backlight is the issue.

Here is how my config looks:

Code:

enable_uart=1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         dtoverlay=uart0-pi5                                                                                                                                                                                        dtoverlay=vc4-kms-v3d-pi5                                                                                                                                                                                  dtoverlay=vc4-kms-dsi-7inch                                                                                                                                                                                max_usb_current=1                                                                                                                                                                                          hdmi_group=2                                                                                                                                                                                               hdmi_mode=87                                                                                                                                                                                               hdmi_cvt 1024 600 60 6 0 0 0                                                                                                                                                                               hdmi_drive=1
Here is the output of raspinfo (some of it):

Code:

root@raspberrypi5_custom:~# raspinfoLinux raspberrypi5_custom 6.1.77-v8-16k #1 SMP PREEMPT Tue Feb 20 18:18:05 UTC 2024 aarch64 GNU/LinuxRevision        : c04170Serial          : 751555830fbf9074Model           : Raspberry Pi 5 Model B Rev 1.0                                                                                                                                                                   Display Information                                                                                                                                                                                        -------------------                                                                                                                                                                                                                                                                                                                                                                                                   Running (F)KMS and X                                                                                                                                                                                                                                                                                                                                                                                                  Screen 0: minimum 320 x 200, current 1024 x 768, maximum 8192 x 8192                                                                                                                                       HDMI-1 disconnected primary (normal left inverted right x axis y axis)                                                                                                                                     ...                                                                                                                                                                       HDMI-2 disconnected (normal left inverted right x axis y axis)                                                                                                                                             ...                                                                                                                                                    DSI-1-2 connected (normal left inverted right x axis y axis)                                                                                                                                                       Identifier: 0x74                                                                                                                                                                                           Timestamp:  33591                                                                                                                                                                                          Subpixel:   unknown                                                                                                                                                                                        Clones:                                                                                                                                                                                                    CRTCs:      4                                                                                                                                                                                              Transform:  1.000000 0.000000 0.000000                                                                                                                                                                                 0.000000 1.000000 0.000000                                                                                                                                                                                 0.000000 0.000000 1.000000                                                                                                                                                                                filter:                                                                                                                                                                                         PRIME Synchronization: 1                                                                                                                                                                                           supported: 0, 1                                                                                                                                                                                    link-status: Good                                                                                                                                                                                                  supported: Good, Bad                                                                                                                                                                               CONNECTOR_ID: 35                                                                                                                                                                                                   supported: 35                                                                                                                                                                                      non-desktop: 0                                                                                                                                                                                                     range: (0, 1)                                                                                                                                                                                800x480 (0x76) 27.777MHz -HSync -VSync +preferred                                                                                                                                                                h: width   800 start  859 end  861 total  907 skew    0 clock  30.63KHz                                                                                                                                    v: height  480 start  487 end  489 total  510           clock  60.05Hz                                                                                                                                                                                                                                                                                                                                        Connector 0 (32) HDMI-A-1 (disconnected)                                                                                                                                                                     Encoder 0 (31) TMDS                                                                                                                                                                                      Connector 1 (42) HDMI-A-2 (disconnected)                                                                                                                                                                     Encoder 1 (41) TMDS                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            dmesg log                                                                                                                                                                                                  ---------                                                                                                                                                                                                  ...                                                                                                                                [    2.280293] vc4-drm axi:gpu: bcm2712_iommu_of_xlate: MMU 1000005200.iommu                                                                                                                               [    2.289125] vc4-drm axi:gpu: bound 107c580000.hvs (ops vc4_hvs_ops)                                                                                                                                     [    2.295646] sdhci-brcmstb 1000fff000.mmc: there is not valid maps for state default                                                                                                                     [    2.295789] mmc1: CQHCI version 5.10                                                                                                                                                                    [    2.307876] pl011-axi 1f00030000.serial: cts_event_workaround enabled                                                                                                                                   [    2.308035] mmc0: CQHCI version 5.10                                                                                                                                                                    [    2.314386] 1f00030000.serial: ttyAMA0 at MMIO 0x1f00030000 (irq = 126, base_baud = 0) is a PL011 AXI                                                                                                   [    2.329255] vc4-drm axi:gpu: bound 107c580000.hvs (ops vc4_hvs_ops)                                                                                                                                     [    2.337589] vc4-drm axi:gpu: bound 107c580000.hvs (ops vc4_hvs_ops)                                                                                                                                     [    2.344207] of_cfs_init                                                                                                                                                                                 [    2.346670] of_cfs_init: OK                                                                                                                                                                             [    2.360085] mmc0: SDHCI controller on 1000fff000.mmc [1000fff000.mmc] using ADMA 64-bit                                                                                                                 [    2.370059] vc4-drm axi:gpu: bound 107c580000.hvs (ops vc4_hvs_ops)                                                                                                                                     [    2.471436] mmc0: new ultra high speed SDR104 SDXC card at address aaaa                                                                                                                                 [    2.478315] mmcblk0: mmc0:aaaa SD256 238 GiB                                                                                                                                                            [    2.484046]  mmcblk0: p1 p2                                                                                                                                                                             [    2.486927] mmcblk0: mmc0:aaaa SD256 238 GiB (quirks 0x00004000)                                                                                                                                        [    2.494605] mmc1: SDHCI controller on 1001100000.mmc [1001100000.mmc] using ADMA 64-bit                                                                                                                 [    2.507780] vc4-drm axi:gpu: bound 107c580000.hvs (ops vc4_hvs_ops)                                                                                                                                     [    2.528413] ALSA device list:                                                                                                                                                                           [    2.531386]   No soundcards found.                                                                                                                                                                      [    2.532968] vc4-drm axi:gpu: bound 107c580000.hvs (ops vc4_hvs_ops)                                                                                                                                     [    2.542031] uart-pl011 107d001000.serial: no DMA platform data                                                                                                                                          [    2.542805] mmc1: new ultra high speed DDR50 SDIO card at address 0001                                                                                                                                  [    2.589581] EXT4-fs (mmcblk0p2): orphan cleanup on readonly fs                                                                                                                                          [    2.595484] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Quota mode: none.                                                                                                           [    2.604058] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.                                                                                                                               ...                                                                                                                    [    3.180353] vc4-drm axi:gpu: bound 107c501000.moplet (ops vc4_txp_ops)                                                                                                                                  [    3.188665] edt_ft5x06 4-0038: supply iovcc not found, using dummy regulator                                                                                                                            [    3.191175] cfg80211: Loaded X.509 cert 'benh@debian.org: 577e021cb980e0e820821ba7b54b4961b8b4fadf'                                                                                                     [    3.191376] cfg80211: Loaded X.509 cert 'romain.perier@gmail.com: 3abbc6ec146e09d1b6016ab9d6cf71dd233f0328'                                                                                             [    3.191567] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'                                                                                                                                  [    3.191756] cfg80211: Loaded X.509 cert 'wens: 61c038651aabdcf94bd0ac7ff06c7248db18c600'                                                                                                                [    3.194670] vc4-drm axi:gpu: bound 107c410000.pixelvalve (ops vc4_crtc_ops)                                                                                                                             [    3.210812] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2                                                                                                          [    3.220622] vc4-drm axi:gpu: bound 107c411000.pixelvalve (ops vc4_crtc_ops)                                                                                                                             [    3.227126] cfg80211: failed to load regulatory.db                                                                                                                                                      [    3.235640] [drm] Initialized vc4 0.0.0 20140616 for axi:gpu on minor 0                                                                                                                                 [    3.272573] vc4-drm axi:gpu: [drm] Cannot find any crtc or sizes                                                                                                                                        [    3.281869] vc4-drm axi:gpu: [drm] Cannot find any crtc or sizes                                                                                                                                        [    3.291105] vc4-drm axi:gpu: [drm] Cannot find any crtc or sizes                                                                                                                                        [    3.324325] i2c_designware 1f00080000.i2c: i2c_dw_handle_tx_abort: lost arbitration                                                                                                                     [    4.356072] i2c_designware 1f00080000.i2c: controller timed out                                                                                                                                         [    5.380086] i2c_designware 1f00080000.i2c: controller timed out                                                                                                                                         [    5.386146] drm-rp1-dsi 1f00130000.dsi: rp1dsi_host_attach: Attach DSI device name=tc358762 channel=0 lanes=1 format=0 flags=0x815 hs_rate=0 lp_rate=0                                                  [    5.403316] [drm] Initialized drm-rp1-dsi 1.0.0 0 for 1f00130000.dsi on minor 1                                                                                                                         [    5.414193] drm-rp1-dsi 1f00130000.dsi: [drm] rp1dsi: Nominal byte clock 72000000; scale by 4/12                                                                                                        [    6.404074] i2c_designware 1f00080000.i2c: controller timed out                                                                                                                                         [    7.428072] i2c_designware 1f00080000.i2c: controller timed out                                                                                                                                         [    8.452073] i2c_designware 1f00080000.i2c: controller timed out                                                                                                                                         [    8.452084] edt_ft5x06 4-0038: touchscreen probe failed                                                                                                                                                 [    9.476078] i2c_designware 1f00080000.i2c: controller timed out                                                                                                                                         [   10.500071] i2c_designware 1f00080000.i2c: controller timed out                                                                                                                                         [   11.524071] i2c_designware 1f00080000.i2c: controller timed out                                                                                                                                         [   12.548070] i2c_designware 1f00080000.i2c: controller timed out                                                                                                                                         [   12.656158] edt_ft5x06: probe of 4-0038 failed with error -110                                                                                                                                          [   12.670107] pispbe 1000880000.pisp_be: bcm2712_iommu_of_xlate: MMU 1000005100.iommu                                                                                                                     [   12.670243] pispbe 1000880000.pisp_be: pispbe_probe: HW version:  0x02252700                                                                                                                            [   12.670244] pispbe 1000880000.pisp_be: pispbe_probe: BatchStatus: 0x00000000                                                                                                                            [   12.670246] pispbe 1000880000.pisp_be: pispbe_probe: Status:      0x00000000                                                                                                                            [   12.670247] pispbe 1000880000.pisp_be: Register nodes for group 0                                                                                                                                       [   12.670425] pispbe 1000880000.pisp_be: input device node registered as /dev/video20                                                                                                                     [   12.670549] pispbe 1000880000.pisp_be: tdn_input device node registered as /dev/video21                                                                                                                 [   12.670604] pispbe 1000880000.pisp_be: stitch_input device node registered as /dev/video22                                                                                                              [   12.670650] pispbe 1000880000.pisp_be: hog_output device node registered as /dev/video23                                                                                                                [   12.670689] pispbe 1000880000.pisp_be: output0 device node registered as /dev/video24                                                                                                                   [   12.670738] pispbe 1000880000.pisp_be: output1 device node registered as /dev/video25                                                                                                                   [   12.670780] pispbe 1000880000.pisp_be: tdn_output device node registered as /dev/video26                                                                                                                [   12.670829] pispbe 1000880000.pisp_be: stitch_output device node registered as /dev/video27                                                                                                             [   12.670868] pispbe 1000880000.pisp_be: config device node registered as /dev/video28                                                                                                                    [   12.671164] pispbe 1000880000.pisp_be: Register nodes for group 1                                                                                                                                       [   12.672937] rpivid_hevc: module is from the staging directory, the quality is unknown, you have been warned.                                                                                            [   12.674076] rpivid 1000800000.codec: bcm2712_iommu_of_xlate: MMU 1000005100.iommu                                                                                                                       [   12.674178] pispbe 1000880000.pisp_be: input device node registered as /dev/video29                                                                                                                     [   12.674288] pispbe 1000880000.pisp_be: tdn_input device node registered as /dev/video30                                                                                                                 [   12.674335] pispbe 1000880000.pisp_be: stitch_input device node registered as /dev/video31                                                                                                              [   12.674387] pispbe 1000880000.pisp_be: hog_output device node registered as /dev/video32                                                                                                                [   12.674535] pispbe 1000880000.pisp_be: output0 device node registered as /dev/video33                                                                                                                   [   12.674742] pispbe 1000880000.pisp_be: output1 device node registered as /dev/video34                                                                                                                   [   12.674972] pispbe 1000880000.pisp_be: tdn_output device node registered as /dev/video35                                                                                                                [   12.675041] pispbe 1000880000.pisp_be: stitch_output device node registered as /dev/video36                                                                                                             [   12.675082] pispbe 1000880000.pisp_be: config device node registered as /dev/video37                                                                                                                    [   12.683556] brcmfmac: F1 signature read @0x18000000=0x15264345                                                                                                                                          [   12.684643] rpivid 1000800000.codec: Device registered as /dev/video19                                                                                                                                  [   12.685116] Bluetooth: Core ver 2.22                                                                                                                                                                    [   12.685579] NET: Registered PF_BLUETOOTH protocol family                                                                                                                                                [   12.685584] Bluetooth: HCI device and connection manager initialized                                                                                                                                    [   12.685600] Bluetooth: HCI socket layer initialized                                                                                                                                                     [   12.685605] Bluetooth: L2CAP socket layer initialized                                                                                                                                                   [   12.685614] Bluetooth: SCO socket layer initialized                                                                                                                                                     [   12.687150] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6                                                                                                          [   12.687386] usbcore: registered new interface driver brcmfmac                                                                                                                                           [   12.687878] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43455-sdio.raspberrypi,5-model-b.bin failed with error -2                                                                       [   12.691080] Bluetooth: HCI UART driver ver 2.3                                                                                                                                                          [   12.691094] Bluetooth: HCI UART protocol H4 registered                                                                                                                                                  [   12.691119] Bluetooth: HCI UART protocol Three-wire (H5) registered                                                                                                                                     [   12.691748] Bluetooth: HCI UART protocol Broadcom registered                                                                                                                                            [   12.691802] hci_uart_bcm serial0-0: supply vbat not found, using dummy regulator                                                                                                                        [   12.691844] hci_uart_bcm serial0-0: supply vddio not found, using dummy regulator                                                                                                                       [   12.841323] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Nov  1 2021 00:37:25 version 7.45.241 (1a2f2fa CY) FWID 01-703fd60                                                                [   12.928811] EXT4-fs (mmcblk0p2): re-mounted. Quota mode: none.                                                                                                                                          [   13.028501] Bluetooth: hci0: BCM: chip id 107                                                                                                                                                           [   13.028712] Bluetooth: hci0: BCM: features 0x2f                                                                                                                                                         [   13.029803] Bluetooth: hci0: BCM4345C0                                                                                                                                                                  [   13.029805] Bluetooth: hci0: BCM4345C0 (003.001.025) build 0000                                                                                                                                         [   13.031015] Bluetooth: hci0: BCM4345C0 'brcm/BCM4345C0.hcd' Patch                                                                                                                                       [   13.716693] Bluetooth: hci0: BCM: features 0x2f                                                                                                                                                         [   13.718081] Bluetooth: hci0: BCM43455 37.4MHz Raspberry Pi 3+-0190                                                                                                                                      [   13.718082] Bluetooth: hci0: BCM4345C0 (003.001.025) build 0382                                                                                                                                         [   13.718400] Bluetooth: hci0: BCM: Using default device address (m.m.m.m)                                                                                                                                [   13.892073] i2c_designware 1f00080000.i2c: controller timed out                                                                                                                                         [   14.916070] i2c_designware 1f00080000.i2c: controller timed out                                                                                                                                         [   15.940070] i2c_designware 1f00080000.i2c: controller timed out                                                                                                                                         [   16.964077] i2c_designware 1f00080000.i2c: controller timed out                                                                                                                                         [   17.988072] i2c_designware 1f00080000.i2c: controller timed out                                                                                                                                         [   19.012071] i2c_designware 1f00080000.i2c: controller timed out                                                                                                                                         [   20.036073] i2c_designware 1f00080000.i2c: controller timed out                                                                                                                                         [   21.060071] i2c_designware 1f00080000.i2c: controller timed out                                                                                                                                         [   22.084070] i2c_designware 1f00080000.i2c: controller timed out                                                                                                                                         [   23.108074] i2c_designware 1f00080000.i2c: controller timed out                                                                                                                                         [   23.108081] panel-simple 100000001.panel_disp: [drm:drm_panel_enable] failed to enable backlight: -110                                                                                                  [   23.130737] Console: switching to colour frame buffer device 100x30                                                                                                                                     [   23.653754] drm-rp1-dsi 1f00130000.dsi: [drm] fb0: drm-rp1-dsidrmf frame buffer device                                                                                                                  [   23.668081] drm-rp1-dsi 1f00130000.dsi: rp1dsi_bind succeeded                                                                                                                                           [   23.951422] macb 1f00100000.ethernet eth0: PHY [1f00100000.ethernet-ffffffff:01] driver [Broadcom BCM54213PE] (irq=POLL)                                                                                [   23.962393] macb 1f00100000.ethernet eth0: configuring for phy/rgmii-id link mode                                                                                                                       [   23.976322] pps pps0: new PPS source ptp0                                                                                                                                                               [   23.980373] macb 1f00100000.ethernet: gem-ptp-timer ptp clock registered.                                                                                                                               [   28.069154] macb 1f00100000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off                                                                                                                   [   32.366551] NET: Registered PF_INET6 protocol family                                                                                                                                                    [   32.371913] Segment Routing with IPv6                                                                                                                                                                   [   32.375611] In-situ OAM (IOAM) with IPv6                                                                                                                                                                [   33.832607] pl011-axi 1f00030000.serial: DMA channel TX dma2chan0                                                                                                                                       [   33.838773] pl011-axi 1f00030000.serial: DMA channel RX dma2chan1                                                                                                                                       [   35.556086] i2c_designware 1f00080000.i2c: controller timed out                                                                                                                                         [   36.580087] i2c_designware 1f00080000.i2c: controller timed out                                                                                                                                         [   37.604083] i2c_designware 1f00080000.i2c: controller timed out                                                                                                                                         [   38.628072] i2c_designware 1f00080000.i2c: controller timed out                                                                                                                                         [   39.652074] i2c_designware 1f00080000.i2c: controller timed out                                                                                                                                         [   40.676070] i2c_designware 1f00080000.i2c: controller timed out                                                                                                                                         [   41.700070] i2c_designware 1f00080000.i2c: controller timed out                                                                                                                                         [   42.724072] i2c_designware 1f00080000.i2c: controller timed out                                                                                                                                         [   43.748069] i2c_designware 1f00080000.i2c: controller timed out                                                                                                                                         [   44.772069] i2c_designware 1f00080000.i2c: controller timed out                                                                                                                                         [   44.778014] panel-simple 100000001.panel_disp: [drm:drm_panel_disable] failed to disable backlight: -110                                                                                                [   45.828072] i2c_designware 1f00080000.i2c: controller timed out                                                                                                                                         [   47.908085] i2c_designware 1f00080000.i2c: controller timed out                                                                                                                                         [   48.932085] i2c_designware 1f00080000.i2c: controller timed out                                                                                                                                         [   49.956076] i2c_designware 1f00080000.i2c: controller timed out                                                                                                                                         [   50.980075] i2c_designware 1f00080000.i2c: controller timed out
I am compiling raspberrypi kernel 6.1.77 from rpi-6.1.y branch where the last commits is with hash afd5f659b0453e4c710ce5cf74c577563ff16239.

Here is the output from i2cdetect -y 4 where DSI1 i2c should be:

Code:

root@raspberrypi5_custom:~# i2cdetect -y 4                                                                                                                                                                      0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f                                                                                                                                                        00:                         -- -- -- -- -- -- -- --                                                                                                                                                        10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --                                                                                                                                                        20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --                                                                                                                                                        30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --                                                                                                                                                        40: -- -- -- -- -- UU -- -- -- -- -- -- -- -- -- --                                                                                                                                                        50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --                                                                                                                                                        60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --                                                                                                                                                        70: -- -- -- -- -- -- -- --
Here are some extra kernel config options I am enabling:

Code:

CONFIG_DRM_PANEL_SIMPLE=yCONFIG_BACKLIGHT_CLASS_DEVICE=yCONFIG_REGULATOR_RASPBERRYPI_TOUCHSCREEN_ATTINY=yCONFIG_REGULATOR_FIXED_VOLTAGE=yCONFIG_I2C=yCONFIG_DRM_TOSHIBA_TC358762=y
Here is output from xrandr:

Code:

root@raspberrypi5_custom:~# export DISPLAY=:0.0                                                                                                                                                            root@raspberrypi5_custom:~# xrandr                                                                                                                                                                         Screen 0: minimum 320 x 200, current 1024 x 768, maximum 8192 x 8192                                                                                                                                       HDMI-1 disconnected primary (normal left inverted right x axis y axis)                                                                                                                                     HDMI-2 disconnected (normal left inverted right x axis y axis)                                                                                                                                             DSI-1-2 connected (normal left inverted right x axis y axis)                                                                                                                                                  800x480       60.05 + 
Since I dont have much Pi 5 specific knowledge I wanted to ask about you guys' opinions. What do you think the problem might be? I didn't try this in the default Raspbian OS but Waveshare website says it works with Pi 5.

It could also help if there is anybody who confirmed this module is working with Pi 5 official OS to post "cat /proc/config.gz | gunzip" and "uname -a" so that I can tailor the distro according to those information.

Any help is appreciated, Thanks

Statistics: Posted by mozcelikors — Sat Feb 24, 2024 6:48 pm — Replies 1 — Views 49



Viewing all articles
Browse latest Browse all 4416

Trending Articles