diff options
author | Joachim Eastwood <manabian@gmail.com> | 2016-03-01 18:53:06 +0300 |
---|---|---|
committer | Joachim Eastwood <manabian@gmail.com> | 2016-03-29 22:57:56 +0300 |
commit | 7e7a3e9c892ab798da2be67fe842b77f3bdee317 (patch) | |
tree | bee02151509b59a70d0c00f06516092358009859 | |
parent | 31b8f1af5a055a968999e88cdb16622f7bbf38df (diff) | |
download | linux-7e7a3e9c892ab798da2be67fe842b77f3bdee317.tar.xz |
ARM: dts: lpc4350-hitex-eval: add adc1
Enable adc1 on LPC4350 Hitex Evalution board. This board has a
10k potensiometer (R26) connected to ADC1 channel 2.
Signed-off-by: Joachim Eastwood <manabian@gmail.com>
-rw-r--r-- | arch/arm/boot/dts/lpc4350-hitex-eval.dts | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/lpc4350-hitex-eval.dts b/arch/arm/boot/dts/lpc4350-hitex-eval.dts index 022d495432c1..6d0c698a6d94 100644 --- a/arch/arm/boot/dts/lpc4350-hitex-eval.dts +++ b/arch/arm/boot/dts/lpc4350-hitex-eval.dts @@ -119,9 +119,25 @@ gpios = <&pca_gpio 3 GPIO_ACTIVE_LOW>; }; }; + + vcc: vcc_fixed { + compatible = "regulator-fixed"; + regulator-name = "3v3io"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + }; }; &pinctrl { + adc1_pins: adc1-pins { + adc1_pins_cfg { + pins = "pf_9"; + function = "adc"; + input-disable; + bias-disable; + }; + }; + emc_pins: emc-pins { emc_addr0_23_cfg { pins = "p2_9", "p2_10", "p2_11", "p2_12", @@ -325,6 +341,13 @@ }; }; +&adc1 { + status = "okay"; + vref-supply = <&vcc>; + pinctrl-names = "default"; + pinctrl-0 = <&adc1_pins>; +}; + &emc { status = "okay"; pinctrl-names = "default"; |