mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-03 09:59:44 +00:00
5decbf5300
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> |
||
---|---|---|
.. | ||
adc | ||
ata | ||
clock | ||
cpu | ||
exynos | ||
gpio | ||
gpu | ||
i2c | ||
input | ||
leds | ||
misc | ||
mtd/spi | ||
nand | ||
net | ||
pinctrl | ||
pmic | ||
power | ||
pwm | ||
regulator | ||
remoteproc | ||
serial | ||
spi | ||
thermal | ||
timer | ||
usb | ||
video | ||
README | ||
root.txt |
Device Tree Bindings Staging Area ================================= This directory contains device tree bindings for U-Boot. These follow along with Linux kernel bindings, with a few additions. By adding the files here, U-Boot patches can clearly show thees additions. This makes it easier for device tree people to review these additions in patches sent to the U-Boot mailing list. The intent IS to commit these files to U-Boot. Hopefully at some point the files will be stored in another repo (shared with Linux) which is brought in as needed. Changes here are intended to mirror changes in the Linux Documentation/devicetree/bindings/ directory. sjg@chromium.org 17-Jan-12