Hi Marek,
Am 14.07.2015 um 21:43 schrieb Belisko Marek marek.belisko@gmail.com:
Hi Nikolaus,
On Tue, Jul 14, 2015 at 4:48 PM, Dr. H. Nikolaus Schaller hns@goldelico.com wrote:
Hi, anyone found a little time to dig into that or should I ask elsewhere?
twl6030-gpadc looks promising just DT bindings and some platform specific things needs to be added for twl6037 (AFAIK TRM isn't available only under NDA?)
I have a copy so that is not the problem. But finding out what differs and how to make it interwork is… For example how to load it from the palmas driver (there is some inconsistency between twl6030 and palmas naming).
So it is more work than I would like to spend on it.
The best would be if someone already has done it. Maybe in some recent OMAP5432 TI kernel (with DT support).
Then needs to be written:
- battery driver for backup batter (drivers/power - similar we have for gta04)
Yes, this should be quite similar. Maybe even a new compatible entry could make the driver fit both.
- potentiometer could be integrated probably to drivers/input
Maybe with some udev rule to modify alsa settings.
- not sure about USB-ID pin (needs to be reported to user space or to
other kernel module?)
Good question I have no answer yet.
hope this helps.
BR,
marek
Thanks and BR, Nikolaus
BR, NIkolaus
Am 27.06.2015 um 09:25 schrieb Dr. H. Nikolaus Schaller hns@goldelico.com:
Hi, the twl4030 has the madc to report some voltages (e.g. battery backup voltage) and the twl63x has a similar thing called gpadc.
What I could not yet find is a working and complete driver for the twl6037, preferrably for iio because that is the future for twl4030.
There is the twl6030-gpadc driver for iio but it is not configured for twl6037 by DT (there are also differences between twl6030 and twl6032 and twl6035/7 is missing).
Here are some references to twl603x/palmas gpadc:
http://lxr.free-electrons.com/source/drivers/mfd/palmas.c#L712 http://lxr.free-electrons.com/source/drivers/iio/adc/twl6030-gpadc.c#L867 http://lxr.free-electrons.com/source/Documentation/devicetree/bindings/mfd/p... http://lxr.free-electrons.com/source/drivers/iio/adc/Kconfig?v=3.14#L186
It is no problem to configure and compile twl6030-gpadc.c but it is not loaded or activated.
What do we need it for in the Pyra?
- detection of the USB-ID pin of the OTG port
- backup battery and other measurements for bring-up of CPU board
- potentiometer position readout if we throw out the pandora compatible DAC+potentiometer+amplifier solution (depends on WiFi module need for board space) and use digital volume control through twl6040
So is there some patch for omap5-uevm floating around with likelihood to get accepted upstream sooner or later? Or do we have to fix it ourselves?
BR, Nikolaus
-- as simple and primitive as possible
Marek Belisko - OPEN-NANDRA Freelance Developer
Ruska Nova Ves 219 | Presov, 08005 Slovak Republic Tel: +421 915 052 184 skype: marekwhite twitter: #opennandra web: http://open-nandra.com