ARM: dts: lpc4357-ea4357: add adc0
authorJoachim Eastwood <manabian@gmail.com>
Sun, 28 Feb 2016 19:47:20 +0000 (20:47 +0100)
committerJoachim Eastwood <manabian@gmail.com>
Tue, 29 Mar 2016 19:56:34 +0000 (21:56 +0200)
Enable adc0 on EA4357 dev kit. This kit has a 22k
potentiometer (R94) connected on ADC0 channel 3.

Signed-off-by: Joachim Eastwood <manabian@gmail.com>
arch/arm/boot/dts/lpc4357-ea4357-devkit.dts

index 079d3cf..bbc70b9 100644 (file)
                reg = <0x28000000 0x2000000>; /* 32 MB */
        };
 
+       vcc: vcc_fixed {
+               compatible = "regulator-fixed";
+               regulator-name = "3v3-supply";
+               regulator-min-microvolt = <3300000>;
+               regulator-max-microvolt = <3300000>;
+       };
+
        /* vmmc is controlled by sdmmc host internally */
        vmmc: vmmc_fixed {
                compatible = "regulator-fixed";
        };
 };
 
+&adc0 {
+       status = "okay";
+       vref-supply = <&vcc>;
+};
+
 &i2c0 {
        status = "okay";
        pinctrl-names = "default";