From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f68.google.com ([74.125.82.68]:34386 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754448AbdA0Jc1 (ORCPT ); Fri, 27 Jan 2017 04:32:27 -0500 Received: by mail-wm0-f68.google.com with SMTP id c85so56721686wmi.1 for ; Fri, 27 Jan 2017 01:31:10 -0800 (PST) Subject: Re: [RFC] iio: accel: Add driver for the Analog Devices ADXL345 3-axis accelerometer To: Daniel Baluta References: <1485336354-26566-1-git-send-email-eraretuya@gmail.com> <86cc101b-6a3e-41d0-6a8a-4743ac7bb152@gmail.com> Cc: Eva Rachel Retuya , "linux-iio@vger.kernel.org" , Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald , Michael Hennerich , Alison Schofield From: Florian Vaussard Message-ID: <3f691b8d-b55e-f3ec-ed03-3a957386b681@gmail.com> Date: Fri, 27 Jan 2017 10:31:08 +0100 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Sender: linux-iio-owner@vger.kernel.org List-Id: linux-iio@vger.kernel.org Hi! On 01/26/2017 09:33 AM, Daniel Baluta wrote: > On Thu, Jan 26, 2017 at 9:23 AM, Florian Vaussard > wrote: >> Hello, >> >> On 01/25/2017 10:25 AM, Eva Rachel Retuya wrote: >>> Add basic IIO support for the Analog Devices ADXL345 3-axis accelerometer. >>> The datasheet can be found here: >>> http://www.analog.com/media/en/technical-documentation/data-sheets/ADXL345.pdf >>> >> >> There is already a driver in the kernel for this accelerometer (under >> drivers/input/misc/adxl34x*). Maybe it would be worth migrating the exiting >> driver to IIO instead of duplicating the effort? >> >> Your driver appears to support only the I2C variant, whereas the existing driver >> supports both I2C / SPI (hint: I have the SPI variant on a board :)) > > Hi Florian, > > This is our intention, to migrate the ADXL34x input driver to adxl345 > IIO driver, > supporting all the features the input driver is offering. > Great to hear that! > We sent this patch early for review in order to get a feeling of > what IIO/input folks think about this device and if moving it to IIO > is a good thing. > > Glad that you have the SPI variant, perhaps you can help us with > testing the patches :). > I probably missed the RFC tag ;) Sure, I can test with SPI variant when your driver integrates the SPI support. Please CC it to florian.vaussard@heig-vd.ch, otherwise I may miss it. Best, Florian