/sys/class/i2c-adapter

Ask questions about Arch Linux ARM. Please search before making a new topic.

/sys/class/i2c-adapter

Postby Argypy » Tue Dec 03, 2024 10:33 am

Hi all,

I have an RPi3 which is running 6.12.1-1-aarch64-ARCH and it has a little rtc on there which has been working fine for years.

recently it stopped working and this appears to be due to the fact that /sys/class/i2c-adapter no longer exists.
I used to 'echo ds1307 0x68 > /sys/class/i2c-adapter/i2c-1/new_device' to get the rtc working.

I have found a way around it by doing 'echo ds1307 0x68 > /sys/devices/platform/soc/3f804000.i2c/i2c-1/new_device' instead but was wondering if anyone knows if the removal of /sys/class/i2c-adapter is a design change? or whether I have something {un, mis} configured on my system?

Is my workaround perhaps now the new recommended way of doing this?

I'm a bit worried that '3f80400.i2c' may change at some point...

Thanks.
Argypy
 
Posts: 1
Joined: Sat Feb 10, 2024 4:10 pm

Re: /sys/class/i2c-adapter

Postby lategoodbye » Tue Dec 03, 2024 4:33 pm

Hi @Argypy,
do you remember which kernel version was working?
lategoodbye
 
Posts: 124
Joined: Sat Dec 29, 2018 1:24 am


Return to User Questions

Who is online

Users browsing this forum: No registered users and 28 guests