ARM64: dts: meson-gxl-libretech-cc: enable saradc
authorJerome Brunet <jbrunet@baylibre.com>
Tue, 5 Sep 2017 17:09:55 +0000 (19:09 +0200)
committerKevin Hilman <khilman@baylibre.com>
Thu, 12 Oct 2017 00:12:02 +0000 (17:12 -0700)
Enable saradc and add the reference 1.8v regulator required.
The libretech-cc has saradc channel 0 and 2 available on the 2 first
pins of 2J3 header

Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc.dts

index 64c54c9..a8aa9ce 100644 (file)
                regulator-settling-time-down-us = <50000>;
        };
 
+       vddio_ao18: regulator-vddio_ao18 {
+               compatible = "regulator-fixed";
+               regulator-name = "VDDIO_AO18";
+               regulator-min-microvolt = <1800000>;
+               regulator-max-microvolt = <1800000>;
+       };
+
        vddio_boot: regulator-vddio_boot {
                compatible = "regulator-fixed";
                regulator-name = "VDDIO_BOOT";
                          "7J1 Header Pin15";
 };
 
+&saradc {
+       status = "okay";
+       vref-supply = <&vddio_ao18>;
+};
+
 /* SD card */
 &sd_emmc_b {
        status = "okay";