From 4536d78f60fa04d86da9141417ab3d84e9985886 Mon Sep 17 00:00:00 2001 From: Richard Oliver Date: Wed, 12 Mar 2025 09:03:41 +0000 Subject: [PATCH] overlays: Use current I2C Sysfs in README examples Linux v6.12 (7e722083fcc3e) 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 --- arch/arm/boot/dts/overlays/README | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/arch/arm/boot/dts/overlays/README +++ b/arch/arm/boot/dts/overlays/README @@ -59,12 +59,12 @@ Using Overlays Overlays are loaded using the "dtoverlay" config.txt setting. As an example, consider I2C Real Time Clock drivers. In the pre-DT world these would be loaded by writing a magic string comprising a device identifier and an I2C address to -a special file in /sys/class/i2c-adapter, having first loaded the driver for +a special file in /sys/bus/i2c/devices, having first loaded the driver for the I2C interface and the RTC device - something like this: modprobe i2c-bcm2835 modprobe rtc-ds1307 - echo ds1307 0x68 > /sys/class/i2c-adapter/i2c-1/new_device + echo ds1307 0x68 > /sys/bus/i2c/devices/i2c-1/new_device With DT enabled, this becomes a line in config.txt: