diff options
author | Przemyslaw Marczak <p.marczak@samsung.com> | 2015-10-27 13:08:06 +0100 |
---|---|---|
committer | Minkyu Kang <mk7.kang@samsung.com> | 2015-11-02 10:38:00 +0900 |
commit | 08d6300a35bf2eb7915f0fa2fea9fa60b5075b71 (patch) | |
tree | 21aac272797217701e4e74f0600ea0578595c9d7 /arch/sandbox | |
parent | 1611c8cbcfe2ee50cc5e96f3a5c666c99d235107 (diff) | |
download | u-boot-imx-08d6300a35bf2eb7915f0fa2fea9fa60b5075b71.zip u-boot-imx-08d6300a35bf2eb7915f0fa2fea9fa60b5075b71.tar.gz u-boot-imx-08d6300a35bf2eb7915f0fa2fea9fa60b5075b71.tar.bz2 |
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>
Diffstat (limited to 'arch/sandbox')
-rw-r--r-- | arch/sandbox/dts/sandbox_pmic.dtsi | 2 | ||||
-rw-r--r-- | arch/sandbox/dts/test.dts | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/arch/sandbox/dts/sandbox_pmic.dtsi b/arch/sandbox/dts/sandbox_pmic.dtsi index 44a26b1..ce261b9 100644 --- a/arch/sandbox/dts/sandbox_pmic.dtsi +++ b/arch/sandbox/dts/sandbox_pmic.dtsi @@ -55,7 +55,7 @@ regulator-always-on; }; - buck2 { + buck2: buck2 { regulator-name = "SUPPLY_3.3V"; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; diff --git a/arch/sandbox/dts/test.dts b/arch/sandbox/dts/test.dts index 730de8a..e2c4971 100644 --- a/arch/sandbox/dts/test.dts +++ b/arch/sandbox/dts/test.dts @@ -189,6 +189,12 @@ }; }; + adc@0 { + compatible = "sandbox,adc"; + vdd-supply = <&buck2>; + vss-microvolts = <0>; + }; + leds { compatible = "gpio-leds"; |