From: Alexander Holler <holler@ahsoftware.de>
To: Lars-Peter Clausen <lars@metafoo.de>
Cc: Denis Ciocca <denis.ciocca@gmail.com>,
"linux-iio@vger.kernel.org" <linux-iio@vger.kernel.org>,
Jonathan Cameron <jic23@kernel.org>
Subject: Re: question about driver for different sensors in the same ASIC
Date: Wed, 12 Dec 2012 22:09:07 +0100 [thread overview]
Message-ID: <50C8F273.4010404@ahsoftware.de> (raw)
In-Reply-To: <50C8E7A7.2030901@metafoo.de>
Am 12.12.2012 21:23, schrieb Lars-Peter Clausen:
> On 12/12/2012 08:49 PM, Denis Ciocca wrote:
>>> Usually you'd want to be able to sample both the accelerometer and gyro
>> sensors
>>> at the same time, so just one driver should be fine.
>>>
>>> Or have the gyro and accelerometer sensors completely separated register
>> maps
>>> and don't share any functionality?
>>
>> Some sensors doesn't share any functionality, simply share the same
>> interface or better the control registers for single sensor are separated.
>> I test this with the current driver but the second proble doesn't start!
>> Only one probe is mandatory?
>
> You can only have one device per I2C address and only one probe call per
> device. If you really want to use two separated drivers you could create a mfd
> device and one subdevice for the gyro and accelerometer.
There are patches for a driver to use HID over i2c on lkml. Might be
need some effort to implement that on devices, but maybe it's a solution.
Regards,
Alexander
next prev parent reply other threads:[~2012-12-12 21:09 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-12 19:19 question about driver for different sensors in the same ASIC Denis Ciocca
2012-12-12 19:45 ` Lars-Peter Clausen
[not found] ` <CAEE_umopjN7C_jXhozc5r+uyCbO32E3NoLF=REvwtvPXYaR54w@mail.gmail.com>
[not found] ` <50C8E7A7.2030901@metafoo.de>
2012-12-12 21:09 ` Alexander Holler [this message]
2012-12-13 8:28 ` Jonathan Cameron
2012-12-13 8:48 ` Jonathan Cameron
2012-12-13 8:57 ` Jonathan Cameron
2012-12-13 9:07 ` Jonathan Cameron
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=50C8F273.4010404@ahsoftware.de \
--to=holler@ahsoftware.de \
--cc=denis.ciocca@gmail.com \
--cc=jic23@kernel.org \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.