RFC DT support for ST micro accelerometers and gyroscopes
Get series with b4
b4 am [email protected]Versions newest first
- 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.
Cover letter [RFC PATCH 0/3] DT support for ST micro accelerometers and gyroscopes
Hi Maxime, everyone,
only one point: it's possible to use the same names with DT? (using _ instead of -)
Why only for i2c?
Thanks,
Denis
Quoted 32 lines
Hi everyone,
This is an attempt at adding the DT probing to the
st_sensorsaccelerometers and gyroscopes.It's somewhat hackish, because the core actively checks for the value of the device at probe time, and DT probing generates a quite different name.
I first tried to turn the function
st_sensors_check_device_supportthe other way around, with the "leaf" providing the sensor structure, and the function checking that it's consistent with the WAI stored in the sensor. However, it turned to be a quite intrusive change, so I'm sending the easiest one, to try to get some feedback :)Thanks!
MaximeMaxime Ripard (3):
iio: accel: Add device tree probing for STMicro accelerometers
iio: accel: Add device tree probing for STMicro gyroscopes
ARM:cfa10057: Add the accelerometer and gyroscope to the device tree.../devicetree/bindings/iio/accel/st_accel_i2c.txt | 22 +++++++++++++++ .../devicetree/bindings/iio/gyro/st_gyro_i2c.txt | 20 +++++++++++++ arch/arm/boot/dts/imx28-cfa10057.dts | 13 +++++++++ drivers/iio/accel/st_accel_i2c.c | 33 ++++++++++++++++++++++ drivers/iio/gyro/st_gyro_i2c.c | 31 ++++++++++++++++++++ 5 files changed, 119 insertions(+)create mode 100644
Documentation/devicetree/bindings/iio/accel/st_accel_i2c.txtcreate mode 100644Documentation/devicetree/bindings/iio/gyro/st_gyro_i2c.txt