Questions tagged [i2c]
The i2c tag has no summary.
21 questions
0 votes
1 answer
50 views
FTDI or USB to I2C Chip available for Linux kernel drivers
Sorry if this has been solved, but I would like to connect some drivers on Linux over I2C, but I only have USB available. I was going to use a FT4232 or FT260 USB to I2C; however, is there is a way to ...
0 votes
2 answers
590 views
how do I find the current i2c bus speed?
I am building custom game controllers on Linux that use the i2c bus present in video ports such as HDMI, dvi, and VGA, on standard PC hardware (x86_64). I would like to verify my current i2c bus speed ...
0 votes
1 answer
253 views
Customized Linux system cannot recognize i2c?
When I use ubuntu22.04, I use i2c-tools to identify that my current i2c adapter is a Synopsys DesignWare I2C adapter. However, when I use the Linux kernel 6.1 compiled by myself and load the two ...
1 vote
0 answers
51 views
Adding MCP23017 to device-tree and accessing ICs connected to expander
I try access multiple ICs via I2C over the MCP23017 I/O Expander for a custom embedded board. I know ICs I2C adresses. How should I add the MCP23017 to the device-tree? I think I need to add the ICs ...
2 votes
2 answers
2k views
Ubuntu 24.04 System Instability After BIOS Update: Random reboots
I’ve been experiencing significant system instability on my Ubuntu 24.04 machine after a recent BIOS update. The system randomly resets itself, and the logs show various errors. I’m hoping to get some ...
1 vote
0 answers
338 views
Does udev have an issue with the 'hwmon' subsystem?
I have a temp/humidity sensor connected to the i2c-0 interface on a Raspberry Pi: Rpi OS ver 'bookworm'. It works fine, and I can read sensor values from the files in /sys/class/hwmon/hwmon2 (or ...
1 vote
1 answer
58 views
How remove/debug Stylus Asus pen which sends events every time laptop starts since is disabled
Week ago stylus have been added somehow between devices (I do not have own stylus for few months) and spam me with events every time laptop starts: $ sudo libinput debug-events | grep event5 -event5 ...
1 vote
1 answer
311 views
x86 ACPI SSDT for I2C device
I'm trying to register I2C gpio expander (PCF8575) on Odroid H3+/Ubuntu 22.04 using ACPI SSDT so later I can easly assign each GPIO as led and use nice names for toggling pins. I have following SSDT ...
1 vote
0 answers
179 views
Read data from LIS2DE12 accelerometer
I am trying to read the acceleration data in the X, Y and Z axes from the LIS2DE12 accelerometer which is connected to an I2C-to-USB adapter, it is UMFT201XB. I am using a virtual machine in ...
0 votes
0 answers
105 views
Giving www-data access to i2c
I have a light sensor that uses I2C for data transmision. Now I want to display that data on a Website. The problem is www-data can't access I2C. I use a Python script that gets run by PHP (I know it'...
1 vote
0 answers
237 views
Register I2C RTC on x86 platform
I'm trying to register an I2C RTC device on an x86 platform. I've disabled the PC-Style CMOS driver because I'm on an embedded platform and only my I2C RTC is properly backed up. Now when I load the ...
2 votes
0 answers
638 views
How to configure an I2c Controller in the PS of the Zynq 7000 as a slave from Linux
I am using a zed board with a Zynq 7000 on it. The end goal is to have the I2c-0 controller in the physical PS of the Zynq7000 to act as an I2c slave device. I am using yocto/bitbake to generate linux ...
0 votes
1 answer
3k views
Is there any difference between #include <linux/ioctl.h> and #include <sys/ioctl.h>?
I have to write a device driver code for temperature sensor using IOCTL, when I was going through a lot of sample codes, I found while surfing the net, I came across this difference in header file, I ...
0 votes
0 answers
368 views
i2c bus not seen on debian
I have a single board computer with debian jessie installed on it. On this board, there is 2 RTC. One that is not backed up that correspond to rtc-cmos and the other one that is backed up and is ...
1 vote
0 answers
596 views
How is simultaneous i2c bus access handled by Linux kernel?
I have two sensors with different slave addresses connected on an i2c bus in my custom board. If two different programs try to read the different sensors a same moment of time, will it lead to an ...