Questions tagged [i2c]

16 questions
3
votes
2 answers

i2c port change randomly

I'm using an Up squared computer. I connect a device via the i2c port in the HAT connector. When using i2cdetect I detect the same device (identified by the address) on different ports. Changes occur between reboots. To my understanding, I may be…
LAR marine
  • 31
  • 1
2
votes
0 answers

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 images for my device. So far, I have been able…
alexv9
  • 21
  • 2
1
vote
1 answer

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 table: DefinitionBlock ("gpio-expander.aml",…
Novakov
  • 111
  • 3
1
vote
0 answers

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 VirtualBox whose operating system is a lubuntu 20.04.5…
Escris
  • 11
  • 2
1
vote
0 answers

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 RV3028 kernel module, no /dev/rtc is registered.…
Davi Jones
  • 11
  • 1
1
vote
0 answers

Unable to enable TLV320AIC3104 codec driver /simple sound card for iMx8M with SAI2 BCLK/MCLK provided with external clock

I am trying to access codec driver (TLV320AIC3104) connected to iMX8M over I2C3 and SAI2 lines. The codec clocks bclk is 4096000 and it is provided from an FPGA and its mclk is grounded. iMx8M SOM SAI2 BCLk& MCLK is connected to clock line provided…
user480313
  • 11
  • 1
1
vote
1 answer

hwmon: add missing kernel module

TL;DR: The kernel module sht3x (https://www.kernel.org/doc/html/latest/hwmon/sht3x.html) seems to be missing in a standard debian installation. I need it in order to read an external sensor. How can I install this kernel module? The whole story I…
Marcel
  • 1,114
  • 1
  • 14
  • 28
1
vote
1 answer

i2cdetect addresses 7-bit or 8-bit?

Are the addresses reported by i2cdetect 7-bit or 8-bit I2C addresses? My hope is the more general 7-bit address. I'm starting to run some experiments, but it would be nice if the manpages were a bit more explicit about the reported format. $ sudo…
tarabyte
  • 4,166
  • 10
  • 36
  • 48
0
votes
0 answers

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's not the best idea) and it throws ERROR:…
Bhasim
  • 1
0
votes
0 answers

Set DDCI values with i2cset

I want to control my monitors with a microcontroller via i2c and DDCI. Before doing that I wanted to try it via command line to understand which i2c commands to send. I used ddcutil to get the i2c bus number (i2c-3) and address of my monitor (0x50)…
StefanoN
  • 121
  • 3
0
votes
0 answers

Using I2C GPIO device from kernel space

I have a GPIO I2C device as followed by DTS: &i2c0 { pca_1: pca9554@23 { reg = <0x23>; compatible = "nxp,pca9554"; }; }; The device is working as expected, and I am now able to set these values from Linux user…
Lars
  • 23
  • 5
0
votes
1 answer

Is there any difference between #include and #include ?

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 counldn't get an accurate answer for it, hence…
hari
  • 9
  • 1
0
votes
0 answers

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 accessible by i2c bus. With a i2cdetect -l I obtain…
naeco
  • 1
0
votes
0 answers

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 contention in i2c subsystem for Linux kernel? I tried…
skjoshi
  • 131
  • 7
0
votes
0 answers

When ever new i2c device(slave) is inserted/poweredON, kernel/host has to detect slave device dynamically just like USB. How to achieve it?

The power conditions are that the i2c device(slave) is powered off and the host controller is on. And kernel module should be loaded while booting. When ever new i2c device(slave) is inserted/poweredON, kernel has to detect slave device dynamically…
1
2