Op 28 apr. 2013, om 11:25 heeft Zubair Lutfullah <
zubair.l...@gmail.com> het volgende geschreven:
> Hi,
>
> Thank-you Koen for narrowing down the scope of the patch work.
>
> I would like to give time to IIO sysfs.
> Because among these three, I think the one that requires the most attention would be IIO. Fixing it so that it has sysfs bindings.
> This would make it easy to access dozens of peripherals from maxim/analog etc who release IIO device drivers.[1]
Most IIO drivers already have sysfs binding, I think it's part of the core IIO framework (correct if I'm wrong!), the TI ADC drivers had the sysfs entries and then lost them. So this project is not for generic IIO bindings :)
I'm not an IIO expert, but here's what I think needs to get done for the ADC drivers:
1) support sysfs entries
2) fix the actual /dev/iio:deviceX usage, that doesn't seem to work currently
3) write a small test app to read from the device node and output to console, should be largely copy&paste from iio-utils and the in-kernel test app in staging/Documentation
That's the base work, when that's working:
4) Investigate LCD+touchscreen + ADC interaction, allocating 4 channels to the TS and using the remaining four for ADC should work, but people report weird interactions.
and/or
5) Write a hwmon driver that reads AIN7 and sets the correct mux in the PMIC to measure current consumption. using the shunt resistor attached to AIN7.
> It lays a foundation for other drivers and the maintenance overhead of patches and workarounds will keep rising until someone does it. (hopefully me :) )
>
> I assume Koen/Matt will be mentoring this project.
> Do you have a further specific area in mind.
> Would it be possible for you guys to give my draft proposal a skim before the deadline or should I work and refine it myself?
Certainly!
>
> If (yes),
> do you guys prefer working via the melange website for the draft.
> OR I can make a google doc and give permissions;
I think either is fine, if you make a change, just email this list. I think most mentors check their email more often than melange :)
For students wanting to work on IIO for the TSADC block: we can provide known working i2c sensors with IIO support if needed. That should provide a way to see if your app is broken or the TSADC driver :)
regards,
Koen