Skip to content

RFC DT support for ST micro accelerometers and gyroscopes

Jean Delvare linux-arm-kernel linux-devicetree linux-iio 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest0 of 3 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 3 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/3] DT support for ST micro accelerometers and gyroscopes
Quoted 19 lines · Maxime Ripard

Hi Jean,

Quoted 16 lines · Jean Delvare
Quoted 15 lines

i2c has a generic binding that matches to the name bit of the i2c_device_id array. That is then exported in sysfs. There are quite a lot of instances of underscores out there in these names. Thus unforutnately they can't be changed without possibly breaking userspace. Typically those same names are also output by IIO though obviously we could keep that the same whilst changing the dt binding.

Also the i2c binding allows binding after dropping the vendor prefix which is even more 'interesting'. See of_modialias_node in drivers/of/base.c

I'd therefore argue in favour of just leaving the underscores in existing drivers as a nasty bit of legacy and doing our best to not introduce any new ones!

Quoted 6 lines
Quoted 3 lines

I don't know what is the problem with underscores, but please note that hwmon i2c devices are NOT allowed to have dashes in their name because that would break libsensors.

As far as I remember, hwmon doesn't handle the accelerometers or gyroscopes, does it?

You remember correctly, it does not and never will.

Signature · 1 line
Jean Delvare