ARM: dts: exynos: Add ADCs on 4412 and 5422 based odroid boards.
authorMarkus Reichl <m.reichl@fivetechno.de>
Fri, 18 Nov 2016 09:55:04 +0000 (10:55 +0100)
committerKrzysztof Kozlowski <krzk@kernel.org>
Fri, 18 Nov 2016 12:04:45 +0000 (14:04 +0200)
Odroid-X, -X2, -XU3 and -XU4 have SOC-ADC routed to an external connector.
Enable the ADC for use as iio-device.

Signed-off-by: Markus Reichl <m.reichl@fivetechno.de>
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
arch/arm/boot/dts/exynos4412-odroidx.dts
arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi

index 61906b35ea7a07f1b70ba78fa3a2fd68aed8b12f..153a75fe6e24ec9efbc4062dfb345593ea95f15b 100644 (file)
        };
 };
 
+&adc {
+       vdd-supply = <&ldo10_reg>;
+       status = "okay";
+};
+
 /* VDDQ for MSHC (eMMC card) */
 &buck8_reg {
        regulator-name = "BUCK8_VDDQ_MMC4_2.8V";
index 246d298557f510f02165fe5d701cf7d46948bb38..9e63328b961f5f13b6371f6fd7bb4e053901d2da 100644 (file)
        };
 };
 
+&adc {
+       vdd-supply = <&ldo4_reg>;
+       status = "okay";
+};
+
 &bus_wcore {
        devfreq-events = <&nocp_mem0_0>, <&nocp_mem0_1>,
                        <&nocp_mem1_0>, <&nocp_mem1_1>;
                                regulator-max-microvolt = <1800000>;
                        };
 
+                       ldo4_reg: LDO4 {
+                               regulator-name = "vdd_adc";
+                               regulator-min-microvolt = <1800000>;
+                               regulator-max-microvolt = <1800000>;
+                       };
+
                        ldo5_reg: LDO5 {
                                regulator-name = "vdd_ldo5";
                                regulator-min-microvolt = <1800000>;