sandbox: add ADC driver

This commit adds implementation of Sandbox ADC device emulation.
The device provides:
- single and multi-channel conversion
- 4 channels with predefined conversion output data
- 16-bit resolution

Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
Cc: Simon Glass <sjg@chromium.org>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
This commit is contained in:
Przemyslaw Marczak
2015-10-27 13:08:06 +01:00
committed by Minkyu Kang
parent 1611c8cbcf
commit 08d6300a35
6 changed files with 193 additions and 1 deletions

View File

@@ -55,7 +55,7 @@
regulator-always-on;
};
buck2 {
buck2: buck2 {
regulator-name = "SUPPLY_3.3V";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;

View File

@@ -189,6 +189,12 @@
};
};
adc@0 {
compatible = "sandbox,adc";
vdd-supply = <&buck2>;
vss-microvolts = <0>;
};
leds {
compatible = "gpio-leds";