Op 8 jul. 2014, om 09:30 heeft Maxime Ripard <[email protected]> 
het volgende geschreven:

> On Mon, Jul 07, 2014 at 09:13:42PM +0100, bruce bushby wrote:
>> Thanks Koen! I think I'm starting to understand a little more now ....at
>> least enough to have a go learning how to do it. MPU6050 is interesting
>> .... led me to "iio" which is also interesting. Main issue is that it's i2c
>> and doesn't offer all 9 axis.....then agaain I could be talking about my
>> a!ss so  :)
> 
> Yeah, it looks like it's only supporting i2c at the moment.

I wonder if SPI support can be done with regmap.

> I found this:
>> https://mbed.org/users/kylongmu/code/MPU9250_SPI/
>> 
>> Which has been somewhat ported into:
>> https://github.com/emlid/Navio/blob/master/Navio/MPU9250.cpp
>> 
>> Which is close....but it's C++ and it's more Middleware then a device
>> driver ....so I'm thinking that with all the above examples and the
>> "spidev.c" skeleton, I would have a go at copying/porting/writing an
>> MPU9250 SPI device driver.
> 
> Or extending the current MPU6050 driver, if the sensors are similar
> (which is often the case)

The MPU9000 series is a 6000 series with an extra sensor on the internal i2c 
bus and a "motion processor". The motion processor is snake oil, but there are 
commands to query all the sensors at once instead of iterating over them.

The ardupilot linux port should have a userspace spidev version of this.

regards,

Koen


> 
>> I'm guessing:
>> Interrupt wakes up processor, reads 9 axis values into a binary string and
>> outputs to device "/dev/mpu9250"
> 
> Or just the IIO interface that allows to do pretty much every thing
> you might need, plus has some userspace library to handle all that,
> documentation, and so on... (and it will probably turn out to be
> easier if you're extending the current driver)
> 
> Maxime
> 
> -- 
> Maxime Ripard, Free Electrons
> Embedded Linux, Kernel and Android engineering
> http://free-electrons.com

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to