Accelerometer sysfs paths

Thomas White taw at bitwiz.org.uk
Fri Mar 27 15:13:20 CET 2009


Hi there,

I've noticed that the commit e866878cd2a68e7ef46241f4317e[..] seems to
have changed the sysfs paths for the accelerometers from:

/sys/class/i2c-adapter/i2c-0/0-0073/lis302dl.{1,2}/

to:

/sys/class/i2c-adapter/i2c-0/0-0073/spi_s3c24xx_gpio.0/spi3.{0,1}/

or, equivalently:

/sys/devices/platform/s3c2440-i2c/i2c-adapter:i2c-0 [chopped]
  /0-0073/spi_s3c24xx_gpio.0/spi3.{0,1}/threshold

I had a quick look around for an announcement of this, but didn't find
one.  Perhaps I just missed it,in amongst all the other stuff going on
recently?

If someone (Balaji?) could confirm my findings, I'm happy to do things
like update the Wiki to include the information.

In a wider sense, I notice that our default configs have
"SYSFS_DEPRECATED_V2=y".  I wonder if we missed a trick here, by not
switching to the new layout when we switched to 2.6.28 and broke
everything anyway.  However, I don't see any immediate harm in using
the old layout (...?).

Tom



More information about the openmoko-kernel mailing list