Skip to content

Commit 9e61a31

Browse files
roliver-rpipelwell
authored andcommitted
overlays: Use current I2C Sysfs in README examples
Linux v6.12 (7e72208) removed I2C_COMPAT making /sys/class/i2c-adapter no longer available in userspace. This commit adjusts the dtoverlays documentation to refer to the current I2C Sysfs (/sys/bus/i2c/devices). Signed-off-by: Richard Oliver <[email protected]>
1 parent 5b22a40 commit 9e61a31

File tree

1 file changed

+2
-2
lines changed
  • arch/arm/boot/dts/overlays

1 file changed

+2
-2
lines changed

arch/arm/boot/dts/overlays/README

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,12 @@ Using Overlays
5959
Overlays are loaded using the "dtoverlay" config.txt setting. As an example,
6060
consider I2C Real Time Clock drivers. In the pre-DT world these would be loaded
6161
by writing a magic string comprising a device identifier and an I2C address to
62-
a special file in /sys/class/i2c-adapter, having first loaded the driver for
62+
a special file in /sys/bus/i2c/devices, having first loaded the driver for
6363
the I2C interface and the RTC device - something like this:
6464

6565
modprobe i2c-bcm2835
6666
modprobe rtc-ds1307
67-
echo ds1307 0x68 > /sys/class/i2c-adapter/i2c-1/new_device
67+
echo ds1307 0x68 > /sys/bus/i2c/devices/i2c-1/new_device
6868

6969
With DT enabled, this becomes a line in config.txt:
7070

0 commit comments

Comments
 (0)