ARM: dts: lpc4350-hitex-eval: add adc1
authorJoachim Eastwood <manabian@gmail.com>
Tue, 1 Mar 2016 15:53:06 +0000 (16:53 +0100)
committerJoachim Eastwood <manabian@gmail.com>
Tue, 29 Mar 2016 19:57:56 +0000 (21:57 +0200)
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>
arch/arm/boot/dts/lpc4350-hitex-eval.dts

index 022d495432c1bd7fda095427c446bc34a7a8e6af..6d0c698a6d94f4977915f8d4e3a6bb714253e0e5 100644 (file)
                        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",
        };
 };
 
+&adc1 {
+       status = "okay";
+       vref-supply = <&vcc>;
+       pinctrl-names = "default";
+       pinctrl-0 = <&adc1_pins>;
+};
+
 &emc {
        status = "okay";
        pinctrl-names = "default";