Files
u-boot-tk1-som/include
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
..
2015-10-23 07:37:03 +08:00
2015-09-11 17:15:32 -04:00
2015-10-26 09:22:36 +01:00
2014-07-30 08:48:03 -04:00
2015-05-05 20:58:20 -06:00
2015-06-10 19:26:54 -06:00
2015-07-21 17:39:29 -06:00
2015-07-27 15:53:48 -07:00
2015-10-29 10:34:00 -07:00
2015-08-05 21:06:16 -06:00
2014-06-21 10:06:58 -06:00
2015-04-10 14:23:23 +02:00
2015-08-05 08:42:41 -06:00
2015-08-05 08:44:07 -06:00
2015-05-28 08:18:24 -04:00
2015-01-21 10:25:02 +01:00
2015-10-24 13:50:32 -04:00
2015-08-25 22:53:57 -05:00
2015-07-22 08:57:54 +02:00
2014-11-19 08:48:42 +01:00
2014-12-11 13:18:43 -07:00
2014-10-25 15:27:37 -04:00
2014-05-28 10:58:19 +09:00
2014-06-20 11:54:29 -06:00
2015-09-02 15:26:12 +02:00
2015-10-23 07:37:03 +08:00
2015-07-21 17:39:25 -06:00
2014-05-30 14:03:24 -04:00
2015-01-06 10:10:04 +02:00
2015-09-09 07:48:03 -06:00
2015-06-04 03:34:47 -06:00
2015-08-05 08:42:41 -06:00
2015-01-05 12:08:55 -05:00
2015-04-20 17:57:13 -05:00
2015-07-21 17:39:27 -06:00
2015-07-21 17:39:28 -06:00
2014-11-24 12:00:00 +01:00
2015-03-05 20:50:29 -05:00
2015-07-26 12:11:33 +02:00
2015-10-23 07:37:03 +08:00
2015-01-21 10:25:53 +01:00