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

Compute Module • Re: dtoverlay=i2c-fan,emc2301,i2c_csi_dsi fails to function with the latest kernel

$
0
0
Hardware: CM4 4GB Lite/Raspberry pi CM4 IO Board
Fan: Waveshare Dedicated 3007 Cooling Fan for Raspberry Pi Compute Module CM4
OS: Bookworm Desktop 64 bit
Kernel: Linux raspberrypi 6.6.20+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.6.20-1+rpt1 (2024-03-07) aarch64 GNU/Linux
Bootloader:

Code:

2024/04/17 13:51:36version 0b7b6f28b0a25311e6d75518aec0e29ecfb36ec0 (release)timestamp 1713358296update-time 1713999287capabilities 0x0000007f
I am presently booting up from a SSD and have encountered the issue described below.
For clarity, SSD connected over PCIe (ie NVMe), or SSD connected over USB?
However, if I bootup from a microSD card with the same OS and Kernel, I am able to see the 0x2f hex address when I run i2cdetect -y 10, so the issue is strictly with the OS on the SSD.

The dtoverlay=i2c-fan,emc2301,i2c_csi_dsi fails to function after bootup and the fan goes to full speed.
The dtoverlay i2c-fan enables i2c_vc at startup and there is i2c-0, i2c-1, and i2c-10 in the /dev directory.

Running sudo i2cdetect -y 0, i2cdetect -y 1, or i2cdetect -y 10 results in no 0x2f hex address at line 20:

Additionally running dmesg | grep emc or lsmod | grep emc results in the following:

Code:

tciii@raspberrypi:~ $ dmesg | grep emctciii@raspberrypi:~ $

Code:

lsmod | grep emcemc2305                12288  0
However, raspinfo:

Code:

006352.447: Loaded overlay 'i2c-fan'006352.467: dtparam: emc2301=true006355.273: dtparam: i2c_csi_dsi=true
But:

Code:

tciii@raspberrypi:~ $ ls -l /sys/class/hwmon/total 0lrwxrwxrwx 1 root root 0 Dec 31  1969 hwmon0 -> ../../devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/nvme/nvme0/hwmon0lrwxrwxrwx 1 root root 0 Dec 31  1969 hwmon1 -> ../../devices/virtual/thermal/thermal_zone0/hwmon1lrwxrwxrwx 1 root root 0 Apr 25 15:23 hwmon2 -> ../../devices/platform/soc/soc:firmware/raspberrypi-hwmon/hwmon/hwmon2
Check /sys/kernel/debug/devices_deferred for any reason that the driver has delayed loading.
Although if address 0x2f isn't responding then it should abort probe anyway.
Do any of the other addresses respond on i2c-10? IIRC the RTC is 0x51, and will typically trigger 0x0c as well. Any camera on CAM1 or display on DISP1 will also be reported on that bus.
I have checked the /boot/overlays/ directory and there is a i2c-fan.dtbo file, however there is no i2c_fan descriptor in the README file.
https://github.com/raspberrypi/linux/bl ... 2035-L2077

Statistics: Posted by 6by9 — Fri Apr 26, 2024 7:05 am



Viewing all articles
Browse latest Browse all 5070

Trending Articles