All of lore.kernel.org
 help / color / mirror / Atom feed
* directions to write a new adc driver
@ 2015-11-27 15:08 Ludovic Desroches
  2015-11-29 17:17 ` Jonathan Cameron
  0 siblings, 1 reply; 3+ messages in thread
From: Ludovic Desroches @ 2015-11-27 15:08 UTC (permalink / raw)
  To: linux-iio; +Cc: Ludovic Desroches

Hi,

I want to add support for the ADC device of the SAMA5D2 SoC. I may
write a new driver because they are some changes about the register
contents. Moreover, the new device doesn't fit the dt bindings (which are
not very good since there is configuration stuff which is not
relating to the SoC or to the board).

My main concern is how to adress the configuration of my ADC, some
examples:
- choosing the resolution (some resolutions will impact the sampling
  time)
- enabling the sleep mode or not
- using offset correction
- signed or unsigned conversions
- etc.

Having a look to other adc drivers, it seems resolution only depends on the
SoC.
Is there a generic solution? If not, can I create the files I need for my
device in sysfs?

Which adc driver would be the best to take as a reference?

If you have some interesting discussions, I am interested too. I have
browsed the iio mainling list up to september but I have not found
answers.

Thanks for you help

Regards

Ludovic

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-11-30  9:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-27 15:08 directions to write a new adc driver Ludovic Desroches
2015-11-29 17:17 ` Jonathan Cameron
2015-11-30  9:05   ` Ludovic Desroches

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.