ARM: dts: meson8b: odroidc1: enable the SAR ADC
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Thu, 13 Sep 2018 20:29:18 +0000 (22:29 +0200)
committerKevin Hilman <khilman@baylibre.com>
Wed, 26 Sep 2018 08:49:49 +0000 (01:49 -0700)
Odroid-C1 exposes ADC channels 0 and 1 on the GPIO headers. NOTE: Due
to the SoC design these are limited to 1.8V (instead of 3.3V like all
other pins).
Enable the SAR ADC to enable voltage measurements on these pins.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
arch/arm/boot/dts/meson8b-odroidc1.dts

index a08dccc..7c12256 100644 (file)
        pinctrl-names = "default";
 };
 
+&saradc {
+       status = "okay";
+       vref-supply = <&vcc_1v8>;
+};
+
 &sdio {
        status = "okay";