u-boot-2016/drivers
Przemyslaw Marczak 5decbf5300 dm: adc: add simple ADC uclass implementation
This commit adds:
- new uclass id: UCLASS_ADC
- new uclass driver: drivers/adc/adc-uclass.c

The new uclass's API allows for ADC operation on:
* single-channel with channel selection by a number
* multti-channel with channel selection by bit mask

ADC uclass's functions:
* single-channel:
  - adc_start_channel()        - start channel conversion
  - adc_channel_data()         - get conversion data
  - adc_channel_single_shot()  - start/get conversion data
* multi-channel:
  - adc_start_channels()       - start selected channels conversion
  - adc_channels_data()        - get conversion data
  - adc_channels_single_shot() - start/get conversion data for channels
                                 selected by bit mask
* general:
  - adc_stop()      - stop the conversion
  - adc_vdd_value() - positive reference Voltage value with polarity [uV]
  - adc_vss_value() - negative reference Voltage value with polarity [uV]
  - adc_data_mask() - conversion data bit mask

The device tree can provide below constraints/properties:
- vdd-polarity-negative: if true: Vdd = vdd-microvolts * (-1)
- vss-polarity-negative: if true: Vss = vss-microvolts * (-1)
- vdd-supply:            phandle to Vdd regulator's node
- vss-supply:            phandle to Vss regulator's node
And optional, checked only if the above corresponding, doesn't exist:
  - vdd-microvolts:      positive reference Voltage [uV]
  - vss-microvolts:      negative reference Voltage [uV]

Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
Cc: Simon Glass <sjg@chromium.org>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
2015-11-02 10:38:00 +09:00
..
adc dm: adc: add simple ADC uclass implementation 2015-11-02 10:38:00 +09:00
bios_emulator biosemu: Do not free vga_info->BIOSImage when it is 0xc0000 2015-04-29 18:51:49 -06:00
block Move ALLOC_CACHE_ALIGN_BUFFER() to the new memalign.h header 2015-09-11 17:15:20 -04:00
bootcount qe: move immap_qe.h from arch directory into common directory 2014-07-22 16:25:54 -07:00
clk rockchip: rk3288: Add clock driver 2015-09-02 21:28:23 -06:00
core Merge branch 'master' of git://git.denx.de/u-boot-net 2015-10-29 16:30:33 -04:00
cpu x86: Move MP initialization codes into a common place 2015-07-14 18:03:16 -06:00
crypto crypto/fsl: SEC driver cleanup for 64 bit and endianness 2015-10-29 10:33:57 -07:00
ddr drivers/ddr/fsl_ddr: Make SR_IE configurable 2015-10-30 09:19:41 -07:00
demo drivers: hierarchize drivers Kconfig menu 2015-08-12 20:47:44 -04:00
dfu dfu: dfu_sf: Take the start address into account 2015-10-19 17:05:13 -04:00
dma dma: keystone_nav: Fix linkram size 2015-10-22 14:22:22 -04:00
fpga arm: socfpga: Fix FPGA bitstream programming routine 2015-08-08 14:14:04 +02:00
gpio nios2 : convert altera_pio to driver model 2015-10-23 07:37:03 +08:00
hwmon Fix bad return value checks (detected with Coccinelle) 2015-10-24 13:50:30 -04:00
i2c Merge branch 'master' of git://git.denx.de/u-boot-fsl-qoriq 2015-10-30 12:56:58 -04:00
input x86: i8042: Correctly initialize the controller 2015-08-26 07:54:16 -07:00
led dm: led: Tidy up SPL options for the led and led-gpio 2015-09-02 21:28:22 -06:00
memory ARM: keystone: aemif: move aemif driver to drivers/memory/ti-aemif.c 2014-06-19 17:53:58 -04:00
misc Merge branch 'master' of git://git.denx.de/u-boot-fsl-qoriq 2015-10-30 12:56:58 -04:00
mmc armv8/ls1043ardb: esdhc: Add esdhc support for ls1043ardb 2015-10-29 10:34:01 -07:00
mtd Merge branch 'master' of git://git.denx.de/u-boot-spi 2015-10-28 16:56:43 -04:00
net Merge branch 'master' of git://git.denx.de/u-boot-fsl-qoriq 2015-10-30 12:56:58 -04:00
pci armv8/fsl_lsch3: Change arch to fsl-layerscape 2015-10-29 10:34:00 -07:00
pcmcia powerpc: mpc824x: remove MPC824X cpu support 2015-01-05 12:08:55 -05:00
pinctrl ARM: uniphier: rename CONFIG_MACH_* to CONFIG_ARCH_UNIPHIER_* 2015-09-25 00:27:53 +09:00
power dm: regulator: add function device_get_supply_regulator() 2015-11-02 10:38:00 +09:00
pwm pwm: imx: Remove unreachable code 2015-05-26 14:13:12 +02:00
qe driver/qe: use strncpy instead of strcpy 2015-08-03 12:06:36 -07:00
ram ram: rename CONFIG_SPL_RAM_SUPPORT to CONFIG_SPL_RAM 2015-08-18 13:46:02 -04:00
remoteproc remoteproc: Introduce a sandbox dummy driver 2015-10-22 14:18:39 -04:00
rtc dm: rtc: Correct rtc_read32() return value 2015-10-21 07:46:50 -06:00
serial dm: keystone: serial: Add driver model support 2015-10-23 10:53:46 -04:00
soc soc: keystone_serdes: generalize configuration mechanism 2014-10-23 11:27:28 -04:00
sound of: clean up OF_CONTROL ifdef conditionals 2015-08-18 13:46:05 -04:00
spi Merge branch 'master' of git://git.denx.de/u-boot-spi 2015-10-28 16:56:43 -04:00
thermal thermal: imx_thermal: Do not print on error 2015-09-13 10:49:21 +02:00
timer nios2: convert altera timer to driver model 2015-10-23 07:37:03 +08:00
tpm dm: tpm: Drop CONFIG_DM_TPM 2015-10-23 09:42:28 -06:00
twserial drivers: convert makefiles to Kbuild style 2013-10-31 13:26:01 -04:00
usb Merge branch 'master' of git://git.denx.de/u-boot-net 2015-10-29 16:30:33 -04:00
video Merge git://git.denx.de/u-boot-x86 2015-10-21 20:47:40 -04:00
watchdog ls102xa: Fix reset hang 2015-10-12 12:56:32 -04:00
Kconfig dm: adc: add simple ADC uclass implementation 2015-11-02 10:38:00 +09:00
Makefile dm: adc: add simple ADC uclass implementation 2015-11-02 10:38:00 +09:00