Re: ADS1256 SPI driver for Raspberry Pi

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Any help would be much appreciated !

You would probably want to look at the drivers in drivers/iio/adc 
(and the staging drivers in drivers/staging/iio/adc)
and take one as an example for your development - maybe on is even
sufficiently compatible to your ADS1256, so that you only need to
extend the compatibility list.

To activate it instead of the default spi-dev create a device-overlay
similar to this one:
https://github.com/raspberrypi/linux/blob/rpi-3.18.y/arch/arm/boot/dts/ads7846-overlay.dts
compile it and reference it in /boot/config.txt
(here some more info on the overlays: https://www.raspberrypi.org/documentation/configuration/device-tree.md)

As for how to use those drivers from user-space here an introduction
to the iio framework (kernel and user-space):
https://archive.fosdem.org/2012/schedule/event/693/127_iio-a-new-subsystem.pdf


--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux