mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-07-28 19:46:58 +08:00

These patches were generated from: https://github.com/raspberrypi/linux/commits/rpi-6.12.y With the following command: git format-patch -N v6.12.27..HEAD (HEAD -> 8d3206ee456a5ecdf9ddbfd8e5e231e4f0cd716e) Exceptions: - (def)configs patches - github workflows patches - applied & reverted patches - readme patches - wireless patches Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
33 lines
1.4 KiB
Diff
33 lines
1.4 KiB
Diff
From 4536d78f60fa04d86da9141417ab3d84e9985886 Mon Sep 17 00:00:00 2001
|
|
From: Richard Oliver <richard.oliver@raspberrypi.com>
|
|
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 <richard.oliver@raspberrypi.com>
|
|
---
|
|
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:
|
|
|