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 | |
parent | 1611c8cbcfe2ee50cc5e96f3a5c666c99d235107 (diff) |
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')
-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 44a26b18ca..ce261b930e 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 730de8a57f..e2c4971d74 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"; |